Re: [Tutor] SetTopWindow

2010-05-19 Thread Alan Gauld
"Gary Koskenmaki" wrote I have what is a noob's confusion about this that will lead to bigger problems for me later on if I don't clear it up. Don't worry, this kind of confusion abounds in GUI toolkits of all kinds not just wxPython. In wxPython what a user normally refers to as a "window" i

[Tutor] SetTopWindow

2010-05-19 Thread Gary Koskenmaki
I have what is a noob's confusion about this that will lead to bigger problems for me later on if I don't clear it up. In wxPython what a user normally refers to as a "window" is known as a frame. And what is known in wxPython as a window is an object such as a TextCtrl object. At least that is

[Tutor] How to convert short name to fqdn

2010-05-19 Thread Sterba_Robert
I have a likely simple question, that for some reason is not working as expected. I need to take a servers shortname and convert it to fully qualified. These servers reside in various subdomains, so simply appending a suffix will not work. my hope was that socket.getfqdn('servername') would

Re: [Tutor] Fwd: Learning python using Michael Dawson's book

2010-05-19 Thread Alan Gauld
I thought I had posted a reply on this but I don't see it in the archive... You should make sure your font is set to a mono-spaced variety for this kind of thing otherwise it gets very difficult to align everything... -- Alan Gauld Author of the Learn to Program web site http://www.alan-g.m

Re: [Tutor] Unit testing command-line options from argparse or optparse

2010-05-19 Thread Serdar Tumgoren
Ah, okay -- both of those options make sense. I'll try my hand at Jan's first and will report back if I have any problems. Many thanks as always! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.or

Re: [Tutor] Fwd: Learning python using Michael Dawson's book

2010-05-19 Thread Peter
Thank you for the responses to my question. This was my first posting and future questions will be made "clearer" to the group. Joseph, I have a feeling you are correct about the spacing. I will try that. Its easy to just load the code file and see the result, but I will learn more if I type o

Re: [Tutor] Fwd: Learning python using Michael Dawson's book

2010-05-19 Thread Joseph Gulizia
I posted this two days ago (I thought to the list...but apparently not). I'm hopeful it helps in some way. I have the same book. Using a text editor and the underscore and dash keys and a few others...the program example is creating an ASCII art version on the words "Game Over". Type it manual

Re: [Tutor] Unit testing command-line options from argparse or optparse

2010-05-19 Thread Dave Angel
Serdar Tumgoren wrote: Hello all, Does anyone have advice for writing unit tests against variables set by command-line options? I have a program I'd like to run in either "debug" or "live" mode, with various settings associated with each. Below is some pseudo-code that shows what I'd like to do

Re: [Tutor] PYTHON 3.1

2010-05-19 Thread Dipo Elegbede
Hi Alan. I was looking through your page "http://www.alan-g.me.uk/l2p/index.htm"; Covering the topic: Looping - Or the art of repeating oneself! Under for loop, Note 3: ...*You can prove that by typing print( list( range(1,13) )*.. The print statement above seem to be incomplete, I think

Re: [Tutor] PYTHON 3.1

2010-05-19 Thread Dipo Elegbede
Thanks Alan, I'm on it. Regards. On 5/18/10, Alan Gauld wrote: > > "Dipo Elegbede" wrote > >> please confirm this is a new syntax for print. >> thank you. >> >> i will put up morte concerns as they arrive. > > Please read the Whats New in Python v3 documents first. > Version 3 of Python is a maj

Re: [Tutor] Fwd: Learning python using Michael Dawson's book

2010-05-19 Thread Andre Engels
On Tue, May 18, 2010 at 5:14 AM, Luke Paireepinart wrote: > Forwarding. Peter use reply-all don't reply offlist please. > > -- Forwarded message -- > From: Peter > Date: Mon, 17 May 2010 10:08:47 -0400 > Subject: Re: [Tutor] Learning python using Michael Dawson's book > To: Luke P