Setting Window Size using Pack Under Tkinter

duikboot arjen.dijkstraNoSpam at hccnet.nl
Fri Jan 16 13:50:05 CET 2004


from Tkinter import *
gui=Tk()

####code####
gui.geometry("+%d+%d" %(300, 100))
gui.resizable(0,0)

if __name__=='__main__':
    gui.mainloop()




"Fuzzyman" <michael at foord.net> schreef in bericht
news:8089854e.0401160134.5674a86c at posting.google.com...
> I'm having trouble implementing my GUI using Tkinter......
> I've been working through the Tkinter tutorials from 'Programming
> Python' and am generally happy enough with the functionality and feel
> of the results *but* - I can't see how to set the size of the root
> window (or any top level window) and to stop it being resized........
>
> Thanks for any help.
>
> Fuzzyman
>
>
> --
>
> YAPLP
> Yet Another Python Links Page
> http://www.voidspace.org.uk/coollinks/python_links.shtml
>
> Python Utils
> http://www.voidspace.org.uk/atlantibots/pythonutils.html
>
> --
>
> http://www.Voidspace.org.uk
> The Place where headspace meets cyberspace. Online resource site -
> covering science, technology, computing, cyberpunk, psychology,
> spirituality, fiction and more.
>
> ---
> http://www.atlantibots.org.uk
> http://groups.yahoo.com/group/atlantis_talk/
> Atlantibots - stomping across the worlds of Atlantis.
> ---
> http://www.fuchsiashockz.co.uk
> http://groups.yahoo.com/group/void-shockz
> ---
>
> Everyone has talent. What is rare is the courage to follow talent
> to the dark place where it leads. -Erica Jong
> Ambition is a poor excuse for not having sense enough to be lazy.
>          -Milan Kundera





More information about the Python-list mailing list