Re: [Tutor] cmd module

2008-09-03 Thread Alan Gauld
Tony Cappellini wrote: Scroll down to Auto-Completion. Does the tab key work for anyone running Windows ? Is this an OS specific feature? I've not read the article but I suspect it requires a GNU library to be included which seems to be standaard on *nix but not on XP. I'm running Windows

[Tutor] cmd module

2008-09-03 Thread Tony Cappellini
I was just reading the PYMOTW article on the cmd module, and trying the examples. http://www.doughellmann.com/PyMOTW/cmd/cmd.html Scroll down to Auto-Completion. Does the tab key work for anyone running Windows ? Is this an OS specific feature? I see the bash prompts in the article, tab does so

Re: [Tutor] TypeError: unsubscriptable object

2008-09-03 Thread Alan Gauld
Rilindo Foster wrote: The list in question comes in this pair: TotalStoreSales = Revenues + "," + Orders TotalStoreSales = TotalStoreSales.split(",") i Rilindo :-) Why not just TotalStoreSales = [Revenues, Orders] At this point, it has two values, both strings. Did you try a print state

Re: [Tutor] TypeError: unsubscriptable object

2008-09-03 Thread Rilindo Foster
As it turns out, I messed up. TotalStoreSales was returning as a integer, not a list. Which lead me to other issues with the script in question. Doh! Sorry about that and thanks! On Sep 3, 2008, at 4:37 PM, Kent Johnson wrote: On Wed, Sep 3, 2008 at 3:44 PM, Rilindo Foster <[EMAIL PROTE

Re: [Tutor] TypeError: unsubscriptable object

2008-09-03 Thread Kent Johnson
On Wed, Sep 3, 2008 at 3:44 PM, Rilindo Foster <[EMAIL PROTECTED]> wrote: > Hi! Long time reader, first time poster (I think). > > I am trying to do a comparison on a particular list item. The list in > question comes in this pair: > > TotalStoreSales = Revenues + "," + Orders > TotalStoreSales = T

[Tutor] TypeError: unsubscriptable object

2008-09-03 Thread Rilindo Foster
Hi! Long time reader, first time poster (I think). I am trying to do a comparison on a particular list item. The list in question comes in this pair: TotalStoreSales = Revenues + "," + Orders TotalStoreSales = TotalStoreSales.split(",") At this point, it has two values, both strings. Then I

[Tutor] Beginner issue with Tkinter Listbox

2008-09-03 Thread David Johnson
I have just started learning Python and have moved on to learning about Tkinter. This is likely to be a very easy question but I have no idea what is happening here. I am trying to set up a GUI, separated into several frames. In a lower frame I have added a Listbox. I want the first item

[Tutor] pyArkansas on October 4th

2008-09-03 Thread Greg Lindstrom
We are pleased to announce that pyArkansas will be held on the campus of University of Central Arkansas (www.uca.edu) on October 4th. Scheduled classes in the morning include Python 101 taught by Dr. Bernard Chen (incoming faculty at UCA but having taught the course at Georgia State University),