Re: [Tutor] EXE Problem

2013-06-19 Thread Dave Angel
On 06/19/2013 02:50 AM, Jack Little wrote: I compiled a program in python, but the second I open it, there is a flash of the error, but then the cmd window closes. It compiles when you run it, so it's not clear what extra step you're describing here. Quite a bit of missing information here

[Tutor] jessica peters

2013-06-19 Thread jessica peters
http://piranhadvertising.com/yi/eem/lbabm/kfghr/skhnig/uaozl.html jessica peters dtf/div>___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] EXE Problem

2013-06-19 Thread Jim Mooney
On 18 June 2013 23:50, Jack Little wrote: > I compiled a program in python, but the second I open it, there is a flash > of the error, but then the cmd window closes. > I suspicion someone as new to Python, since I am, who is using Windows and getting the annoying Windows Flash ;') So in Detail:

Re: [Tutor] jessica peters

2013-06-19 Thread Jim Mooney
Just remember - the first three letters in Diet is DIE I'll stick with my cheeseburgers ;') Jim On 19 June 2013 05:17, jessica peters wrote: > http://piranhadvertising.com/yi/eem/lbabm/kfghr/skhnig/uaozl.html > > jessica peters > dtf > /div> ___ Tutor

[Tutor] Opinion - help could use more examples

2013-06-19 Thread Jim Mooney
Here's a peeve of mine about Python help - it often has zero examples. I printed help(zip) to see what it does and got this: Return a zip object whose .__next__() method returns a tuple where | the i-th element comes from the i-th iterable argument. The .__next__() | method continues until

Re: [Tutor] Opinion - help could use more examples

2013-06-19 Thread Chris “Kwpolska” Warrick
On Wed, Jun 19, 2013 at 7:43 PM, Jim Mooney wrote: > Here's a peeve of mine about Python help - it often has zero examples. > I printed help(zip) to see what it does and got this: > > Return a zip object whose .__next__() method returns a tuple where > | the i-th element comes from the i-th it

Re: [Tutor] Opinion - help could use more examples

2013-06-19 Thread Jim Mooney
On 19 June 2013 11:02, Chris “Kwpolska” Warrick wrote: > But anyways, instead of using the built-in docs, refer to the > human-friendly documentation available on the web: > http://docs.python.org/3/library/functions.html?highlight=zip#zip True, but usually built-in is quicker, although I wish I

Re: [Tutor] Need help appending data to a logfile

2013-06-19 Thread Prasad, Ramit
Peter Otten wrote: > Matt D wrote: > > > Hey, > > I wrote some simple code to write data to a logfile and it works pretty > > well (thanks guys). Now my problem is that every time i run the program > > the old logfile.txt is overwritten. > > The help() function in the interactive interpreter is

Re: [Tutor] Need Help Modifying a wxPython GUI (scrolling display and logging)

2013-06-19 Thread Prasad, Ramit
Matt D wrote: > > > > > > Also note, that unless you do self.logfile.close() it is not guaranteed > > that the data is being written to file. I prefer to use the following > > idiom for Python 2.6+ (might be in 2.5, but not sure offhand when it was > > added). > > > > with open('filename.txt', 'a'

Re: [Tutor] Opinion - help could use more examples

2013-06-19 Thread Chris “Kwpolska” Warrick
On Wed, Jun 19, 2013 at 8:11 PM, Jim Mooney wrote: > As for downloadable help, I have a chm file, and the Search is terrible. Get the sane html format, where the search is more useful. -- Kwpolska | GPG KEY: 5EAAEA16 stop html mail| always bottom-post http://

Re: [Tutor] How to redirect console output to a TextEdit box on a QT Python Gui ?

2013-06-19 Thread SM
Hello Chris, Thanks for your response. I have a follow-up question, if you don't mind, to understand your answer better. I am running a python3 script. So first part of your answer applies here: *"If the application you run is a Python script, import it, execute the functions and have the data re

Re: [Tutor] How to redirect console output to a TextEdit box on a QT Python Gui ?

2013-06-19 Thread Prasad, Ramit
SM wrote: > Hello Chris, Thanks for your response. I have a follow-up question, if you > don't mind, to understand > your answer better. > I am running a python3 script. So  first part of your answer applies here: > > "If the application you run is a Python script, import it, execute the > functi

Re: [Tutor] Opinion - help could use more examples

2013-06-19 Thread Jim Mooney
On 19 June 2013 11:36, Chris “Kwpolska” Warrick wrote: > > Get the sane html format, where the search is more useful. That was actually "help"ful ;') A lot better organized and you can see things better than the tiny chm left-window font. Msoft sure fell down on chm help. No wonder Google is ki

Re: [Tutor] EXE Problem

2013-06-19 Thread Alan Gauld
On 19/06/13 17:41, Jim Mooney wrote: you should use forward slashes. I have no idea why Bill Gates thought backslashes were kewl Because MS DOS was copying CP/M which didn't have directory paths (it was used with 180K floppy disks that stored everything at the top level) but did have command o

Re: [Tutor] Opinion - help could use more examples

2013-06-19 Thread Alan Gauld
On 19/06/13 18:43, Jim Mooney wrote: Here's a peeve of mine about Python help - it often has zero examples. Remember the help text is being generated from the inline doc strings in the code so it depends on what people include in their docstrings. Also it is intended to be concise because you

Re: [Tutor] Opinion - help could use more examples

2013-06-19 Thread Alan Gauld
On 19/06/13 22:01, Jim Mooney wrote: endless websites that have gone with the new black-is-back style of spidery gray text on a medium gray background that only Superman could see. I second that, I find an increasing number of web sites unreadable with my ageing eyes because they use shades of

Re: [Tutor] Opinion - help could use more examples

2013-06-19 Thread Devin Jeanpierre
On Wed, Jun 19, 2013 at 1:43 PM, Jim Mooney wrote: > Here's a peeve of mine about Python help - it often has zero examples. > I printed help(zip) to see what it does and got this: > --snip-- > > Not understandable right off, IMHO, unless you're already hardcore. help() is outright harmful to peop

Re: [Tutor] Opinion - help could use more examples

2013-06-19 Thread Jim Mooney
On 19 June 2013 16:12, Alan Gauld wrote: > > I second that, I find an increasing number of web sites unreadable > with my ageing eyes because they use shades of the same colour. > The contrast is simply too low. The strange thing is, every good, recent webmastering book has this big push for Usa

Re: [Tutor] Opinion - help could use more examples

2013-06-19 Thread Jim Mooney
On 19 June 2013 16:08, Alan Gauld wrote: > Remember the help text is being generated from the inline doc strings in the > code so it depends on what people include in their docstrings. > Also it is intended to be concise because you should only be using it at the prompt where you can easily

Re: [Tutor] EXE Problem

2013-06-19 Thread Dave Angel
On 06/19/2013 06:58 PM, Alan Gauld wrote: On 19/06/13 17:41, Jim Mooney wrote: you should use forward slashes. I have no idea why Bill Gates thought backslashes were kewl Because MS DOS was copying CP/M which didn't have directory paths (it was used with 180K floppy disks that stored everythi

Re: [Tutor] EXE Problem

2013-06-19 Thread Dave Angel
On 06/19/2013 06:58 PM, Alan Gauld wrote: On 19/06/13 17:41, Jim Mooney wrote: you should use forward slashes. I have no idea why Bill Gates thought backslashes were kewl Because MS DOS was copying CP/M which didn't have directory paths (it was used with 180K floppy disks that stored everythi

Re: [Tutor] sound implementation problems

2013-06-19 Thread Steven D'Aprano
Hi Jessica, On 17/06/13 20:00, jessica peters wrote: [snip a bunch of stuff] Traceback (most recent call last): File "Horsemen_soundtest.py", line 5, in (module) snd = pygame.mixer.Sound("bach-cello-suite-1.wav") pygame.error: Unknown WAVE data format: 0x4x C:\Documents and settings\j

Re: [Tutor] Opinion - help could use more examples

2013-06-19 Thread Steven D'Aprano
On 20/06/13 10:21, Devin Jeanpierre wrote: On Wed, Jun 19, 2013 at 1:43 PM, Jim Mooney wrote: Here's a peeve of mine about Python help - it often has zero examples. I printed help(zip) to see what it does and got this: --snip-- Not understandable right off, IMHO, unless you're already hardc

Re: [Tutor] Need Help Modifying a wxPython GUI (scrolling display and logging)

2013-06-19 Thread Matt D
> A common way to trigger UI actions is a button whose callback calls that. > Or you can bind in an event hook for closing the window. > > in __init__ add this line - > self.Bind(wx.EVT_CLOSE, self.onExit) > > > def onExit(self, event): >'''Run when closing''' >self.logfile.close() >