I am running Ubuntu. I downloaded the source code examples for a book I
purchased. Some of the examples load image files located in the same
directory as the program. If I go to the current directory in the
terminal the program can use the image files. However, if I use a
launcher or the
Steven D'Aprano wrote:
My apologizes to Steven and the list, when I replied originally I messed
up and sent it to him privately which was not my intention.
On Mon, 12 Jul 2010 03:42:28 am Jim Byrnes wrote:
I am running Ubuntu. I downloaded the source code examples for a
book I purchased
Adam Bark wrote:
On 13 July 2010 14:43, Jim Byrnesjf_byr...@comcast.net wrote:
Steven D'Aprano wrote:
My apologizes to Steven and the list, when I replied originally I messed up
and sent it to him privately which was not my intention.
On Mon, 12 Jul 2010 03:42:28 am Jim Byrnes wrote:
I
Adam Bark wrote:
snipped some old stuff
If I use the terminal to start the program it has no problem using the
file. There are multiple files in multiple directories so I was looking
for
a way to just double click them and have them run. If it turns out that
I
must make changes to or for
Adam Bark wrote:
On 14 July 2010 02:53, Jim Byrnesjf_byr...@comcast.net wrote:
Adam Bark wrote:
snipped some old stuff
If I use the terminal to start the program it has no problem using the
file. There are multiple files in multiple directories so I was
looking
for
a way to just double
Adam Bark wrote:
On 14 July 2010 17:41, Jim Byrnesjf_byr...@comcast.net wrote:
Adam Bark wrote:
On 14 July 2010 02:53, Jim Byrnesjf_byr...@comcast.net wrote:
Adam Bark wrote:
snipped some old stuff
If I use the terminal to start the program it has no problem using the
file.
I'm trying to teach myself OOP in python (again). The following code
from Dawson's book runs fine, unaltered [1].
class Critter(object):
A virtual pet
def __init__(self, name):
print A new critter is born
self.name = name
Steven D'Aprano wrote:
Jim Byrnes wrote:
I'm trying to teach myself OOP in python (again). The following code
from Dawson's book runs fine, unaltered [1].
What's Dawson's book?
Python Programming for the absolute beginner, by Michael Dawson
snip the explanation
Thanks for the explanation
Dave Angel wrote:
On 01/-10/-28163 02:59 PM, Jim Byrnes wrote:
I'm trying to teach myself OOP in python (again). The following code
from Dawson's book runs fine, unaltered [1].
class Critter(object):
A virtual pet
def __init__(self, name):
print A new critter is born
self.name = name
def
Matthew Carpenter-Arevalo wrote:
Hi Everyone,
I'm a beginner python programmer, and I've been working on
the perennial 'guess my number' example.
When I run this in my module, I get an infinite loop of 'higher' or 'lower.'
Can anyone see where I'm going wrong herE?
Thanks,
MCA
# Guess my
Running Unbuntu 9.10. The Synaptic Pkg Mgr reports python-imaging -
1.1.6-3ubuntu1 - Python Imaging Library is installed.
But trying to import PhotoImage gives these results:
from ImageTk import PhotoImage
Traceback (most recent call last):
File stdin, line 1, in module
ImportError: No
Martin Walsh wrote:
Jim Byrnes wrote:
Running Unbuntu 9.10. The Synaptic Pkg Mgr reports python-imaging -
1.1.6-3ubuntu1 - Python Imaging Library is installed.
But trying to import PhotoImage gives these results:
from ImageTk import PhotoImage
Traceback (most recent call last):
File
Alex Clark wrote:
On 2010-05-07, Jim Byrnesjf_byr...@comcast.net wrote:
Running Unbuntu 9.10. The Synaptic Pkg Mgr reports python-imaging -
1.1.6-3ubuntu1 - Python Imaging Library is installed.
But trying to import PhotoImage gives these results:
from ImageTk import PhotoImage
Traceback
Walter Prins wrote:
Hi Peter,
We're not familiar with the book, so you'll have to tell us exactly what
you're doing, what you're seeing, and what you're expecting ot see instead.
Suffice it to say, the script seems fine. When you run it (from an
operating system command prompt) it will print,
Whenever I teach myself a new language I have great difficulty
understanding the nuts and bolts of it's OO implementation. Compared to
some older procedural languages I always end up becoming confused by the
large number of built in methods. When reading through code examples I
many times get
Steve Willoughby wrote:
On Tue, Jun 01, 2010 at 03:19:17PM -0500, Jim Byrnes wrote:
def viewer(imgdir, kind=Toplevel, cols=None):
win = kind()
What is the relationship between kind=Toplevel in the first line and
win=kind() further down. Isn't kind a variable and kind() a method?
kind
Alan Gauld wrote:
Jim Byrnes jf_byr...@comcast.net wrote
Whenever I teach myself a new language I have great difficulty
understanding the nuts and bolts of it's OO implementation.
Do you understand the OO concepts OK?
Is it only the language semantics you struggle with
or the underlying OO
Steven D'Aprano wrote:
Case in point is this code snippet from a chapter on Tkinter.
def viewer(imgdir, kind=Toplevel, cols=None):
make thumb links window for an image directory:
one thumb button per image; use kind=Tk to show
in main app window, or Frame container
When reading code examples I see things like
theframe.master.title('spam) or
def __init__(self, master):
frame = Frame(master)
When I encounter these I tend to get bogged down trying to decide if
master has special meaning or is just a name the author has chosen.
For example is it similar
Alan Gauld wrote:
Jim Byrnes jf_byr...@comcast.net wrote in
When reading code examples I see things like
theframe.master.title('spam)
def __init__(self, master):
frame = Frame(master)
When I encounter these I tend to get bogged down trying to decide if
master has special meaning
ALAN GAULD wrote:
I still am having trouble understanding the use of master in
Tkinter. I think the problem is I can't find any reference that explains the
concept around master,
If you read the GUI topic in my tutorial it explains the concept
of a containment tree that is common to ost GUI
I am trying to run an example program that contains the line
os.startfile('socket-nongui.py') which is Windows only. What would be
the command to use on Linux? All files are in the same folder.
Thanks, Jim
___
Tutor maillist - Tutor@python.org
Nethirlon wrote:
On Thu, Jun 24, 2010 at 7:36 PM, Jim Byrnesjf_byr...@comcast.net wrote:
I am trying to run an example program that contains the line
os.startfile('socket-nongui.py') which is Windows only. What would be the
command to use on Linux? All files are in the same folder.
Thanks,
Jeff Johnson wrote:
On 07/02/2010 11:40 AM, Chris C. wrote: I'm writing this question
because I want, for my own satisfaction, to rewrite one of my Access dbs
(one that does our finances) into a stand-alone Python database program
using SQLite. I know I'll be learning as I go, but that'll work,
Martin Walsh wrote:
On 07/03/2010 10:25 AM, Jim Byrnes wrote:
Jeff Johnson wrote:
[snip]
http://dabodev.com/
Please check it out. And go to www.leafe.com and subscribe to the
dabo-user email list.
I would like to try out Dabo, but I don't see it in the Ubuntu
repositories and I would
How important is it to have the latest pip installed?
Initially I want to use it to install the latest pymongo driver for
mongoDB. The pip version in the Ubuntu 12.04 repositories is 1.0.1. I
see on http://www.pip-installer.org/en/latest/ the version is 1.2.1.
It certainly would be easier
On 02/09/2013 05:46 AM, Albert-Jan Roskam wrote:
- Original Message -
From: Jim Byrnes jf_byr...@comcast.net To: tutor@python.org Cc:
Sent: Saturday, February 9, 2013 3:02 AM Subject: [Tutor] Which pip
for Ubuntu 12.04
How important is it to have the latest pip installed?
Initially I
On 02/10/2013 01:10 PM, Joel Goldstick wrote:
On Sun, Feb 10, 2013 at 1:53 PM, Timo timomli...@gmail.com wrote:
Op 10-02-13 17:01, Jim Byrnes schreef:
On 02/09/2013 05:46 AM, Albert-Jan Roskam wrote:
- Original Message -
From: Jim Byrnes jf_byr...@comcast.net To: tutor
On 02/11/2013 09:31 AM, Jim Byrnes wrote:
On 02/10/2013 01:10 PM, Joel Goldstick wrote:
On Sun, Feb 10, 2013 at 1:53 PM, Timo timomli...@gmail.com wrote:
Op 10-02-13 17:01, Jim Byrnes schreef:
On 02/09/2013 05:46 AM, Albert-Jan Roskam wrote:
- Original Message -
From: Jim
I am writing a small database CRUD app using python 2.7, pythoncard,
sqlite3 on Ubuntu 12.04. So far I can retrieve data fine but I cannot
do inserts. In my first attempt I used parameter substitution. When that
did not work I thought I didn't understand it and decided to try a
simple insert.
On 02/17/2013 12:31 PM, Alan Gauld wrote:
On 17/02/13 16:50, Jim Byrnes wrote:
cur.execute(INSERT INTO pwds VALUES ('WebSites', 'xMe', 'me',
'you', 'here', 'there'))
When this code is run, done prints in the terminal, there is no error
Can you do selects properly?
Can you extract data
ubuntu 12.04 python 2.7
Does sqlite3 in this version of python support a delete with a limit?
cur.execute(delete from pwds where Account='xMe' limit 1)
Traceback (most recent call last):
File stdin, line 1, in module
sqlite3.OperationalError: near limit: syntax error
cur.execute(delete
On 02/21/2013 11:10 PM, eryksun wrote:
On Thu, Feb 21, 2013 at 8:47 PM, Jim Byrnes jf_byr...@comcast.net wrote:
cur.execute(delete from pwds where Account='xMe' limit 1)
If you need a alternate way to limit the delete, try the following,
for which the limit is on a select query
I am cleaning up my code and have a number of sqlite3 execute statements
that extend far past 80 characters.
From my reading implicit line joining with (), [] or {} seems to be the
preferred method, but
cur.execute('SELECT Account FROM pwds WHERE Category=? ORDER BY Account
COLLATE
On 02/22/2013 03:54 PM, Prasad, Ramit wrote:
Jim Byrnes wrote:
I am cleaning up my code and have a number of sqlite3 execute statements
that extend far past 80 characters.
From my reading implicit line joining with (), [] or {} seems to be the
preferred method, but
cur.execute('SELECT
On 02/22/2013 03:59 PM, Jerry Hill wrote:
On Fri, Feb 22, 2013 at 4:26 PM, Jim Byrnes jf_byr...@comcast.net wrote:
I am cleaning up my code and have a number of sqlite3 execute statements
that extend far past 80 characters.
From my reading implicit line joining with (), [] or {} seems
On 02/22/2013 05:46 PM, Steven D'Aprano wrote:
On 23/02/13 08:26, Jim Byrnes wrote:
I am cleaning up my code and have a number of sqlite3 execute
statements that extend far past 80 characters.
From my reading implicit line joining with (), [] or {} seems to be
the preferred method
On 02/28/2013 08:33 PM, Lolo Lolo wrote:
Hi all. Im working through a database tutorial in a book called Core
Python Applications. On page 290 it asks of me to install something
though its not clear what it is. I think it has to do with
SQLAlchemy. It says if you use Python 3 you'll need to get
On 03/01/2013 05:19 PM, Lolo Lolo wrote:
He is showing you what to expect. Where ever you see a line
starting with C:\ that is what he typed into the command line
session, and the lines that follow is the program you are
installing informing you what it is doing. (Until you get to the
next C:\
On 03/06/2013 03:47 PM, Joel Goldstick wrote:
On Wed, Mar 6, 2013 at 1:50 PM, Lolo Lolo losermelo...@yahoo.com wrote:
im working through alan's sql tutorial. i have a few questions from there
but 1st i wanted to try out an example in Core python's sql example.
import sqlite3
cxn =
I am trying to script Calligra Sheets (formerly KSpread) with python. I
have gotten some of the included example scripts to run so I know python
scripting is running.
I found the following snippet on their website:
import KSpread
sheet = KSpread.view().sheet()
# swap text of B5 and C6
t1 =
On 03/18/2013 07:54 PM, Dave Angel wrote:
On 03/18/2013 12:18 PM, Jim Byrnes wrote:
I am trying to script Calligra Sheets (formerly KSpread) with python. I
have gotten some of the included example scripts to run so I know python
scripting is running.
I found the following snippet
On 03/18/2013 11:25 PM, Dave Angel wrote:
On 03/18/2013 09:56 PM, Jim Byrnes wrote:
On 03/18/2013 07:54 PM, Dave Angel wrote:
On 03/18/2013 12:18 PM, Jim Byrnes wrote:
I am trying to script Calligra Sheets (formerly KSpread) with
python. I
have gotten some of the included example scripts
On 03/19/2013 09:16 PM, Jim Byrnes wrote:
On 03/18/2013 11:25 PM, Dave Angel wrote:
On 03/18/2013 09:56 PM, Jim Byrnes wrote:
On 03/18/2013 07:54 PM, Dave Angel wrote:
On 03/18/2013 12:18 PM, Jim Byrnes wrote:
I am trying to script Calligra Sheets (formerly KSpread) with
python. I
have
I need to convert a series of digits like 060713 to a string so I can
make it look like a date 06-07-13.
a = 060713
a[:2]
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: 'int' object has no attribute '__getitem__'
b = str(a)
b[:2]
'25'
b
'25035'
I was
On 06/22/2013 05:10 PM, David Rock wrote:
* Jim Byrnes jf_byr...@comcast.net [2013-06-22 16:01]:
I need to convert a series of digits like 060713 to a string so I can
make it look like a date 06-07-13.
a = 060713
a[:2]
Traceback (most recent call last):
File stdin, line 1, in module
On 06/22/2013 06:24 PM, Dave Angel wrote:
On 06/22/2013 07:03 PM, Jim Byrnes wrote:
On 06/22/2013 05:10 PM, David Rock wrote:
* Jim Byrnes jf_byr...@comcast.net [2013-06-22 16:01]:
I need to convert a series of digits like 060713 to a string so I can
make it look like a date 06-07-13
On 06/23/2013 06:50 PM, Dave Angel wrote:
On 06/23/2013 12:43 PM, Jim Byrnes wrote:
On 06/22/2013 06:24 PM, Dave Angel wrote:
On 06/22/2013 07:03 PM, Jim Byrnes wrote:
On 06/22/2013 05:10 PM, David Rock wrote:
* Jim Byrnes jf_byr...@comcast.net [2013-06-22 16:01]:
I need to convert a series
I am reading Practical Programming - An Introduction to Computer Science
Using Python 3. They give this example:
abs(-3)
3
-3 .__abs__()
3
When I try it in idle or a terminal I get different results.
Python 3.3.5 (default, Mar 12 2014, 02:09:17)
[GCC 4.6.3] on linux
abs(-3)
3
-3
On 03/23/2014 11:36 PM, Ben Finney wrote:
Jim Byrnes jf_byr...@comcast.net writes:
I am reading Practical Programming - An Introduction to Computer
Science Using Python 3. They give this example:
abs(-3)
3
-3 .__abs__()
3
That's a poor example, in my opinion. It's not good
On 03/25/2014 02:21 PM, Saad Bashir wrote:
Hi everyone!
I am a novice programmer and actually learning to program in Python. I have
two issues that I am embarrassed to present as they seem to be extremely
basic.
1. But encouraged by the site to ask event the most basic questions on
this
On 03/26/2014 07:13 AM, spir wrote:
On 03/26/2014 02:32 AM, Jim Byrnes wrote:
2. Another problem is that the Python shell is allowing me to copy/paste
any code at all. Is there something I am not doing right?
I was able to copy from idle using Ctrl-C and paste to my newreader
using Ctrl-V
Ubuntu 12.04 python 3.3
I was working through an exercise about sets. I needed to find the
duplicates in a list and put them in a set. I figured the solution had
to do with sets not supporting duplicates. I finally figured it out but
along the way I was experimenting in idle and got some
On 04/05/2014 01:15 PM, Steven D'Aprano wrote:
On Sat, Apr 05, 2014 at 12:46:19PM -0500, Jim Byrnes wrote:
Ubuntu 12.04 python 3.3
I was working through an exercise about sets. I needed to find the
duplicates in a list and put them in a set. I figured the solution had
to do with sets
On 05/14/2014 02:08 PM, Charles Agriesti wrote:
Practical programming, 2nd Edition, Paul Gries, Jennifer Campbell, Jason
Montojo
(Python 3)
P 184, the last half of chapter 10 requires the time_series module,
which is no longer available, apparently replaced by Pandas.
Read the first paragraph
On 06/01/2014 07:01 AM, Adam Gold wrote:
Hi there. I'm trying to do the following using python 3: create a list
from all files in a particular directory, then loop over that list
symmetrically encrypting each file using the gnupg module (note, for the
moment I'm embedding the passphrase in the
I am working with some demo programs in a breezypythongui book. One
program contains these two lines:
filetypes = [ (Python files, *.py), (Text files, *.txt)]
fileName = tkinter.filedialog.askopenfilename(parent = self,
filetypes = filetypes)
According to the book this
On 06/25/2014 02:36 AM, Alan Gauld wrote:
On 25/06/14 02:37, Jim Byrnes wrote:
import tkinter.filedialog
filetypes = [(Python files, *.py), (Text files, *.txt)]
fileName = tkinter.filedialog.askopenfilename(filetypes = filetypes)
It pops up a file dialog but again only .py files
I would like to automate running virtualenv with a python script by:
opening gnome-terminal
cd to proper directory
run source /bin/activate
I found some examples of using os.system() to get gnome-terminal to open
but I can't figure out how then cd to the proper directory in the new
terminal.
On 07/09/2014 04:27 AM, Walter Prins wrote:
Hi Jim,
On 8 July 2014 21:45, Jim Byrnes jf_byr...@comcast.net wrote:
I would like to automate running virtualenv with a python script by:
opening gnome-terminal
cd to proper directory
run source /bin/activate
I found some examples of using
On 07/08/2014 06:39 PM, Alan Gauld wrote:
On 08/07/14 21:45, Jim Byrnes wrote:
I would like to automate running virtualenv with a python script by:
opening gnome-terminal
cd to proper directory
run source /bin/activate
Thats almost certainly the wrong approach.
Instead of trying to automate
On 07/09/2014 05:40 PM, Cameron Simpson wrote:
On 09Jul2014 09:00, Jim Byrnes jf_byr...@comcast.net wrote:
My mistake. I went to the Docs page and clicked on modules and then
os. For some reason as I was scrolling down the page I thought the
subject had changed and stopped reading. Now I see
On 07/09/2014 04:16 PM, Walter Prins wrote:
Hi Jim,
On 9 July 2014 14:43, Jim Byrnes jf_byr...@comcast.net wrote:
On 07/09/2014 04:27 AM, Walter Prins wrote:
I forgot to mention I am using Linux (Ubuntu 12.04).
I am working my way through a book about breezypythongui which uses Python
3
On 07/10/2014 11:59 AM, Alan Gauld wrote:
I just tried accessing gmane and the web site(*) seems to be down.
The news server is working OK but the web site is not responding.
(*)
www.gmane.org
Is it a problem at my end? or are others experiencing the same?
I just tried it and it timed out
On 07/10/2014 09:23 AM, Jim Byrnes wrote:
On 07/09/2014 04:16 PM, Walter Prins wrote:
Hi Jim,
On 9 July 2014 14:43, Jim Byrnes jf_byr...@comcast.net wrote:
On 07/09/2014 04:27 AM, Walter Prins wrote:
I forgot to mention I am using Linux (Ubuntu 12.04).
I am working my way through a book
On 07/11/2014 10:50 PM, Cameron Simpson wrote:
On 11Jul2014 20:29, Jim Byrnes jf_byr...@comcast.net wrote:
I've worked on this a little more. If I create a file like:
#!/usr/bin/python
import os, subprocess
subprocess.Popen(args=[gnome-terminal,
--working-directory=/home/jfb/Documents/Prog
On 07/12/2014 03:02 AM, Alan Gauld wrote:
On 12/07/14 02:29, Jim Byrnes wrote:
I've worked on this a little more. If I create a file like:
#!/usr/bin/python
import os, subprocess
subprocess.Popen(args=[gnome-terminal,
--working-directory=/home/jfb/Documents/Prog/Python/breezygui
On 07/12/2014 01:36 PM, Alan Gauld wrote:
On 12/07/14 16:34, Jim Byrnes wrote:
I guess because I don't have the depth of knowledge to know any better.
I wanted to automate a tedious process using Python. I was working with
a Python3 version of breezypythongui on a Python2.7 system. So I would
On 12/24/2015 04:03 PM, Ben Finney wrote:
Jim Byrnes <jf_byr...@comcast.net> writes:
Thanks for all the info guys. I got myself confused because I thought
that python 3 was the default for Ubuntu 14.04, but it is just
installed by default.
Even if that were true, the ‘python’ c
On 12/24/2015 08:54 AM, boB Stepp wrote:
My Google-fu is weak on this question. I keep getting lots of hits on
web scraping, but my interest is actually as follows:
I find myself doing the same boring, repetitive tasks by hand, which
amounts to copying certain information from one program and
I am in the process of moving from unbutu 12.04 to 14.04. I was doing
some testing and got this:
jfb@Jims-1404:~$ cd MyProgs
jfb@Jims-1404:~/MyProgs$ cd passwords
jfb@Jims-1404:~/MyProgs/passwords$ python3 passwords.py
Traceback (most recent call last):
File "passwords.py", line 8, in
OOP has always driven me crazy. I read the material and follow the
examples until I feel I understand them, but when I try to implement it
I end up with an error filled mess.
So I decided to give it another try. When I got to the chapter on
tkinter I decided to solve all the exercises using
On 07/26/2016 11:38 PM, Ben Finney wrote:
Jim Byrnes <jf_byr...@comcast.net> writes:
So I decided to give it another try. When I got to the chapter on
tkinter I decided to solve all the exercises using OOP even though the
book solutions did not use OOP.
Hmm, that sounds ill advised
On 07/27/2016 03:12 AM, Peter Otten wrote:
Jim Byrnes wrote:
OOP has always driven me crazy. I read the material and follow the
examples until I feel I understand them, but when I try to implement it
I end up with an error filled mess.
So I decided to give it another try. When I got
On 07/27/2016 04:04 AM, Alan Gauld via Tutor wrote:
On 27/07/16 04:44, Jim Byrnes wrote:
OOP has always driven me crazy. I read the material and follow the
examples until I feel I understand them, but when I try to implement it
I end up with an error filled mess.
That suggests that its
On 07/24/2016 02:08 PM, Alan Gauld via Tutor wrote:
On 23/07/16 16:38, Jim Byrnes wrote:
# the views
frame = tkinter.Frame(window)
frame.pack()
button = tkinter.Button(frame, text='Up', command=click_up)
button.pack()
button = tkinter.Button(frame, text='Down', command=click_down)
button.pack
I am reading Automate The Boring Stuff With Python. In the chapter on
Regular Expressions he talks about the python escape character being a
'\' and regex using alot of backslashes. Then he says, However,
by putting an r before the first quote of the string value, you can
mark the string as
On 08/04/2016 03:27 AM, Alan Gauld via Tutor wrote:
On 04/08/16 02:54, Jim Byrnes wrote:
Is the second example a special case?
phoneNumRegex = re.compile(r'(\(\d\d\d\)) (\d\d\d-\d\d\d\d)')
I ask because it produces the same results with or without the ' r '.
That's because in this specific
I have been working my way through a Python 3 book and got to the
chapter on tkinter. The following is a segment of a example program that
works:
# the views
frame = tkinter.Frame(window)
frame.pack()
button = tkinter.Button(frame, text='Up', command=click_up)
button.pack()
button =
On 09/12/2016 07:59 PM, Jim Byrnes wrote:
On 09/12/2016 06:06 PM, boB Stepp wrote:
On Sep 10, 2016 7:20 PM, "Jim Byrnes" <jf_byr...@comcast.net> wrote:
I am using python3 could that be the problem? I looked but couldn't
find
any info on what version of python is n
I am working on an exercise that needs PyMedia. pypi seems to have the
package but will not download it.
jfb@Jims-1404:~$ pip3 search PyMedia
pymediafire - A python package for MediaFire API
ffmpymedia- Wrapper around the FFMPEG utility
PyMedia -
On 09/13/2016 04:01 PM, boB Stepp wrote:
On Tue, Sep 13, 2016 at 2:17 PM, Jim Byrnes <jf_byr...@comcast.net> wrote:
On 09/12/2016 07:59 PM, Jim Byrnes wrote:
On 09/12/2016 06:06 PM, boB Stepp wrote:
On Sep 10, 2016 7:20 PM, "Jim Byrnes" <jf_byr...@comcast.net> wrote:
On 09/12/2016 06:06 PM, boB Stepp wrote:
On Sep 10, 2016 7:20 PM, "Jim Byrnes" <jf_byr...@comcast.net> wrote:
I am using python3 could that be the problem? I looked but couldn't find
any info on what version of python is needed.
I went to pymedia.org. The copyrig
I realize that my question is not about the standard library. The only
reason I am asking here is, if I remember correctly, a regular
contributor, Danny Yoo, works at Yahoo. I am hoping he, or someone else
here can help me understand what is happening.
I am writing a program using the
On 08/26/2016 02:03 AM, Peter Otten wrote:
Jim Byrnes wrote:
I am working with Python 3.4.3 on Ubuntu 14.04.
I am learning tkinter so I decided to rewrite a program I had written in
pythoncard in tkinter. I found that a sqlite3 SELECT statement that
works in pythoncard throws an error
On 08/26/2016 04:22 AM, Alan Gauld via Tutor wrote:
On 26/08/16 02:34, Jim Byrnes wrote:
Exception in Tkinter callback
Traceback (most recent call last):
...
File "tk_pwds.py", line 56, in fill_accounts_lb
cur.execute('''SELECT Account FROM pwds WHERE Category=? ORDER
I am working with Python 3.4.3 on Ubuntu 14.04.
I am learning tkinter so I decided to rewrite a program I had written in
pythoncard in tkinter. I found that a sqlite3 SELECT statement that
works in pythoncard throws an error in tkinter and am wondering why?
# Fill the accounts listbox from
Is comp.lang.python available on gmane?
I've googled and found references to it being on gmane but I can't find
it there. I'd like to use gmane because Comcast doesn't do usenet anymore.
Thanks, Jim
___
Tutor maillist - Tutor@python.org
To
On 10/27/2016 08:09 PM, Danny Yoo wrote:
On Thu, Oct 27, 2016 at 5:40 PM, Jim Byrnes <jf_byr...@comcast.net> wrote:
Is comp.lang.python available on gmane?
I've googled and found references to it being on gmane but I can't find it
there. I'd like to use gmane because Comcast doesn't do
On 10/27/2016 09:54 PM, Random832 wrote:
On Thu, Oct 27, 2016, at 20:40, Jim Byrnes wrote:
Is comp.lang.python available on gmane?
I've googled and found references to it being on gmane but I can't find
it there. I'd like to use gmane because Comcast doesn't do usenet
anymore.
I don't know
subprocess.call(['libreoffice', '/home/jfb/test.ods'])
k.tap_key(k.enter_key)
k.tap_key(k.enter_key)
If I run the above code, libreoffice opens the test.ods spreadsheet then
just sits there. When I close libreoffice the two enter_keys are
executed in the terminal that originated the script.
On 12/24/2016 05:10 PM, Danny Yoo wrote:
On Sat, Dec 24, 2016 at 2:40 PM, Jim Byrnes <jf_byr...@comcast.net> wrote:
subprocess.call(['libreoffice', '/home/jfb/test.ods'])
k.tap_key(k.enter_key)
k.tap_key(k.enter_key)
If I run the above code, libreoffice opens the test.ods spreadsheet the
On 12/24/2016 07:43 PM, Alan Gauld via Tutor wrote:
On 25/12/16 01:21, Jim Byrnes wrote:
I am not trying to automate libreoffice using subprocess.
No, but you are trying to automate LO from within Python
by sending it keystrokes and that's not easy. That's why I
previously asked whether you
Python 3.4 on Ubuntu
If I was going to open a libreoffice calc file from the terminal I would
go: libreoffice --calc /home/path/to/myfile.ods.
How would I do this from Python?
Thanks, Jim
___
Tutor maillist - Tutor@python.org
To unsubscribe or
On 12/22/2016 03:54 AM, Alan Gauld via Tutor wrote:
On 22/12/16 03:37, Jim Byrnes wrote:
Python 3.4 on Ubuntu
If I was going to open a libreoffice calc file from the terminal I would
go: libreoffice --calc /home/path/to/myfile.ods.
How would I do this from Python?
Others have advised how
95 matches
Mail list logo