Re: [newbie] problem with geometry setting in Tkinter

2016-02-08 Thread Christian Gollwitzer
Am 08.02.16 um 15:34 schrieb jenswaelk...@gmail.com: Op maandag 8 februari 2016 13:26:56 UTC+1 schreef Peter Otten: jenswaelk...@gmail.com wrote: I'm trying to set the geometry of my top window, but the size is unaffected. This is the code: top.geometry('900x460') thanks a lot for helpi

Re: [newbie] problem with geometry setting in Tkinter

2016-02-08 Thread jenswaelkens
Op maandag 8 februari 2016 13:26:56 UTC+1 schreef Peter Otten: > jenswaelk...@gmail.com wrote: > > > I'm trying to set the geometry of my top window, but the size is > > unaffected. > > This is the code: > > > > #!/usr/bin/env python > > import Tkinter > > top=Tkinter.Tk() > > top.geometry=('900x

Re: [newbie] problem with geometry setting in Tkinter

2016-02-08 Thread Peter Otten
jenswaelk...@gmail.com wrote: > I'm trying to set the geometry of my top window, but the size is > unaffected. > This is the code: > > #!/usr/bin/env python > import Tkinter > top=Tkinter.Tk() > top.geometry=('900x460') That's an assignment, but geometry() is a method that you have to invoke: t

[newbie] problem with geometry setting in Tkinter

2016-02-08 Thread jenswaelkens
I'm trying to set the geometry of my top window, but the size is unaffected. This is the code: #!/usr/bin/env python import Tkinter top=Tkinter.Tk() top.geometry=('900x460') top.update_idletasks() print (top.winfo_width()) print (top.winfo_height()) print (top.winfo_geometry()) top.mainloop() and