Problems with Tkinter

S

Steffen Mutter

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
 
C

Cousin Stanley

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()

Steffen ....

To set the Tk window title
try ....

fenster.title( 'Demofenster' )
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,274
Messages
2,571,372
Members
48,064
Latest member
alibsskemoSeAve

Latest Threads

Top