Problems with Tkinter

Kevin other at cazabon.com
Sun Jan 1 12:36:56 EST 2006


Try:

fenster.title("Demofenster")

"title" a class method, not a variable.

Kevin.


"Steffen Mutter" <steffen at gnuher.de> wrote in message
news:pan.2006.01.01.17.23.32.459553 at gnuher.de...
> Hi all and a happy new year!
>
> My first try fiddling around with GUIs ended disappointing, instead of
> showing the window title as expected 'Demofenster' ist still shows 'tk'
> instead.
> What did I do wrong?
>
>
> #!/usr/bin/env python
>
> from Tkinter import *
> fenster = Tk()
> fenster.title = 'Demofenster'
> fenster.mainloop()
>
>
>
> I actually tried this running python2.4 on an Ubuntu's breezy badger
> machine and Win2kPro running Python2.3 gives the same result.
>
> Any hints highly apprechiated.
>
> Regards,
> Steffen
>





More information about the Python-list mailing list