Tkinter Base Window

Cameron Laird claird at lairds.com
Sat Jan 24 07:25:21 EST 2004


In article <401257c4$0$26116$afc38c87 at news.optusnet.com.au>,
Peter Moscatt  <pgmoscatt at optushome.com.au> wrote:
>Ok....  I am pretty new to Python (as you may have gathered from previous
>posts).  So now it time for another one of my ridiculous questions....  :-)
>
>When using 'Tkinter', what is used as the base window to work from, meaning
>what widget do I use to place all other widgets onto to create a custom
>dialog ?
			.
			.
			.
When I use Tkinter, I don't talk that way.

I think in terms of the '.' root toplevel, into which I might pack
several frames:
  import Tkinter

  root = Tkinter.Tk()
  frame1 = Tkinter.Frame(root, ...)
  frame2 = Tkinter.Frame(root, ...)
  important_button = Tkinter.Button(root, ...)
  one_label = Tkinter.Label(frame1, ...)
    ... [and so on]
Is that what you're getting at?
-- 

Cameron Laird <claird at phaseit.net>
Business:  http://www.Phaseit.net



More information about the Python-list mailing list