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
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
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
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
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:
>> ...
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
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
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
Bernard Lebel wrote:
> Unless you were being sarcastic? ;-)
Just temporarily dense. :)
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
13 matches
Mail list logo