Re: GUI Program Error

2006-06-08 Thread Scott David Daniels
John Salerno wrote: > >> >>> It may be a platform-specific issue: On Unix/Linux, a window *does* >>> appear when you instantiate Tk, at least with tcl/tk 8.3 and 8.4 >>> (which is the latest stable version AFAIK). Here you should have chimed in with your OS and Python versions. >> same on

Re: GUI Program Error

2006-06-08 Thread John Salerno
Fredrik Lundh wrote: > Eric Brunel wrote: > >> It may be a platform-specific issue: On Unix/Linux, a window *does* >> appear when you instantiate Tk, at least with tcl/tk 8.3 and 8.4 >> (which is the latest stable version AFAIK). > > same on Windows, but it often appears *beneath* the window

Re: GUI Program Error

2006-06-08 Thread Fredrik Lundh
Eric Brunel wrote: > It may be a platform-specific issue: On Unix/Linux, a window *does* appear > when you instantiate Tk, at least with tcl/tk 8.3 and 8.4 (which is the > latest stable version AFAIK). same on Windows, but it often appears *beneath* the window you're typing into, so you have

Re: GUI Program Error

2006-06-08 Thread Eric Brunel
On Wed, 07 Jun 2006 17:38:39 GMT, John Salerno <[EMAIL PROTECTED]> wrote: [snip] > But I will agree with you that it is confusing when it says, following > the top = Tk() line, "Notice that a new blank window has appeared", > because as you noticed, nothing appears yet. My only guess is that

Re: GUI Program Error

2006-06-07 Thread jmdeschamps
Byte wrote: > Thanks, this works. Now, since the tutorial I was using is clearly > rubbish, any better ones? For a (relative) newbie please. Also, how do > I code a GUI Hello World program? > > -- /usr/bin/byte How does John Salerno previous code NOT fit the bill? >> John Salerno wrote: >> ...

Re: GUI Program Error

2006-06-07 Thread John Salerno
Byte wrote: > Also, how do > I code a GUI Hello World program? P.S. The link I supplied begins with two versions of a Hello World app. -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI Program Error

2006-06-07 Thread John Salerno
Byte wrote: > Thanks, this works. Now, since the tutorial I was using is clearly > rubbish, any better ones? For a (relative) newbie please. Also, how do > I code a GUI Hello World program? > > -- /usr/bin/byte > Actually, that site is generally considered to be a pretty good place to start fo

Re: GUI Program Error

2006-06-07 Thread Byte
Thanks, this works. Now, since the tutorial I was using is clearly rubbish, any better ones? For a (relative) newbie please. Also, how do I code a GUI Hello World program? -- /usr/bin/byte -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI Program Error

2006-06-05 Thread John Salerno
Bernard Lebel wrote: > Unless you were being sarcastic? ;-) Just temporarily dense. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI Program Error

2006-06-05 Thread Bernard Lebel
On 6/5/06, John Salerno <[EMAIL PROTECTED]> wrote: > What is dir(), btw? Is it a class for creating the application? [Bernard] In your Python documentation, dir() is described in the built-in functions (section 2.1) as well as the tutorial, in the "Modules" section (chapter 6). Unless you were be

Re: GUI Program Error

2006-06-05 Thread John Salerno
John Salerno wrote: > What is dir(), btw? Is it a > class for creating the application? Heh heh, how quickly I forget about built-ins. :) Try something like this: import Tkinter as tk root = tk.Tk() label = tk.Label(root, text='Hello world!') label.pack() root.mainloop() -- http://mail.python

Re: GUI Program Error

2006-06-05 Thread John Salerno
Byte wrote: > Hi, I'm using the "Learning to Program" GUI tutorial on > http://www.freenetpages.co.uk/hp/alan.gauld/ > and am trying to write my first GUI. However, the code the tutorial > gives for starting by making a window: > > > import Tkinter > > top = Tkinter.Tk() > > dir(top) > > Does

GUI Program Error

2006-06-05 Thread Byte
Hi, I'm using the "Learning to Program" GUI tutorial on http://www.freenetpages.co.uk/hp/alan.gauld/ and am trying to write my first GUI. However, the code the tutorial gives for starting by making a window: import Tkinter top = Tkinter.Tk() dir(top) Does not work. The Python interpreter does