Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

controlling the windows

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


varun.consit at gmail

Jul 3, 2008, 12:16 PM

Post #1 of 3 (42 views)
Permalink
controlling the windows

i am developing an application using Tkinter where 'next' button
takes to another window and removes the first one from screen and
'back' button bring me back to previous window and so on.
though i am able to move from one window to another but is unable to
remove the previous one from the screen. does anybody have a idea how
to do away with this problem.
--
http://mail.python.org/mailman/listinfo/python-list


kyosohma at gmail

Jul 3, 2008, 12:24 PM

Post #2 of 3 (39 views)
Permalink
Re: controlling the windows [In reply to]

On Jul 3, 2:16 pm, varun chadha <varun.con...@gmail.com> wrote:
> i am developing an application using Tkinter where 'next'  button
> takes to another window and removes the first one from screen and
> 'back' button bring me back to previous window and so on.
> though i am able to move from one window to another but is unable to
> remove the previous one from the screen. does anybody have a idea how
> to do away with this problem.

I've never done that with Tkinter, but this thread talks about one way
to do it:

http://forums.devshed.com/python-programming-11/writing-a-wizard-with-tkinter-353083.html

I use wxPython myself and it's fairly trivial to do it in that
toolkit. Hopefully the Tkinter gurus will jump in here.

Mike
--
http://mail.python.org/mailman/listinfo/python-list


ggpolo at gmail

Jul 3, 2008, 1:54 PM

Post #3 of 3 (40 views)
Permalink
Re: controlling the windows [In reply to]

On Thu, Jul 3, 2008 at 4:16 PM, varun chadha <varun.consit[at]gmail.com> wrote:
> i am developing an application using Tkinter where 'next' button
> takes to another window and removes the first one from screen and
> 'back' button bring me back to previous window and so on.
> though i am able to move from one window to another but is unable to
> remove the previous one from the screen. does anybody have a idea how
> to do away with this problem.

There are several solutions to this. You could just pack_forget the
another window and pack a new one in its place.
I have just prepared a simple Wizard, you can take a look at it here:
http://code.google.com/p/python-ttk/wiki/ttkWizard and you will notice
that it uses ttk. If you already use tk 8.5, and tkinter compiled
against it, then ttk is available, otherwise you have to install tile
or compile tkinter with tk 8.5 (python 2.6b1 includes tk 8.5.2 in the
windows build). To use the ttk widgets you will need a wrapper and you
will find one here: http://code.google.com/p/python-ttk/

> --
> http://mail.python.org/mailman/listinfo/python-list
>



--
-- Guilherme H. Polo Goncalves
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.