Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #65255

Re: Tkinter widgets into classes.

From Christian Gollwitzer <auriocus@gmx.de>
Newsgroups comp.lang.python
Subject Re: Tkinter widgets into classes.
Date 2014-02-02 11:22 +0100
Organization A noiseless patient Spider
Message-ID <lcl689$sb2$1@dont-email.me> (permalink)
References (1 earlier) <04a9d0b0-c968-42c2-94d2-93438558e227@googlegroups.com> <mailman.6289.1391291392.18130.python-list@python.org> <2377621f-a208-4a12-b66c-bb678df6efcf@googlegroups.com> <mailman.6292.1391293398.18130.python-list@python.org> <fab76f9e-7369-4bbc-9da8-06994b731dde@googlegroups.com>

Show all headers | View raw


Am 02.02.14 00:07, schrieb Lewis Wood:
> It does, this is the whole code:
>
> from tkinter import *
>
> root=Tk()
> root.title("Second Root Testing")
>
> def secondwindow():
>      root2=Tk()
>      root2.mainloop()
>
>
> button1=Button(root,text="Root2",command=secondwindow).grid(row=0,column=0)
>
> root.mainloop()

I don't know how this works, but it is definitely wrong. If you need 
more than one window, use Toplevel() to create it.

	Christian

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Tkinter widgets into classes. Lewis Wood <fluttershy363@gmail.com> - 2014-02-01 11:43 -0800
  Re: Tkinter widgets into classes. archie65@live.co.uk - 2014-02-01 12:03 -0800
  Re: Tkinter widgets into classes. archie65@live.co.uk - 2014-02-01 12:04 -0800
  Re: Tkinter widgets into classes. Lewis Wood <fluttershy363@gmail.com> - 2014-02-01 12:12 -0800
    Re: Tkinter widgets into classes. Dave Angel <davea@davea.name> - 2014-02-01 16:52 -0500
      Re: Tkinter widgets into classes. Lewis Wood <fluttershy363@gmail.com> - 2014-02-01 14:12 -0800
        Re: Tkinter widgets into classes. Dave Angel <davea@davea.name> - 2014-02-01 17:26 -0500
          Re: Tkinter widgets into classes. Lewis Wood <fluttershy363@gmail.com> - 2014-02-01 15:07 -0800
            Re: Tkinter widgets into classes. "albert visser" <albert.visser@gmail.com> - 2014-02-02 01:46 +0100
            Re: Tkinter widgets into classes. Terry Reedy <tjreedy@udel.edu> - 2014-02-01 20:26 -0500
            Re: Tkinter widgets into classes. Christian Gollwitzer <auriocus@gmx.de> - 2014-02-02 11:22 +0100
              Re: Tkinter widgets into classes. Lewis Wood <fluttershy363@gmail.com> - 2014-02-02 12:38 -0800
                Re: Tkinter widgets into classes. David Hutto <dwightdhutto@gmail.com> - 2014-02-02 22:21 -0500
  Re: Tkinter widgets into classes. Christian Gollwitzer <auriocus@gmx.de> - 2014-02-02 11:15 +0100

csiph-web