What is the best Python GUI for creating a multi-screen project in one window?

I'm not quite sure to describe it, so here is a basic storyboard of what I would like to do using Python: http://i.stack.imgur.com/dciMH.jpg

I'm new to GUI programming, so I'm not sure which Python module is best for this. I glanced a little at Tkinter. How can I make the screen go to the second image after clicking the next button without opening a new window in Tkinter?

Secondly, what other Python GUI modules would you recommend for such a project that I am doing?

+4
source share
3 answers

Tkinter is a great lead tool, like other tools. The advantage of tkinter is that you probably already installed it. In addition, it is very easy to use and very powerful.

To answer the question of how to change the screen: tkinter uses geometry with the names pack and grid (and to a much lesser extent, place ) to place your widgets in the window. These geometry managers have a function that you can ask to remove a window, making it invisible.

You can, for example, create each "page" as Frame with other widgets inside. To switch pages, call pack_ forget or grid_forget to hide the current page, then pack or grid to display the new page. This is a very common and useful method. grid_remove has an added function in that it remembers the parameters that were used to initially display the window, which simplifies its switching between visible and hidden.

+1
source

http://www.wxpython.org/

I recommend wxpython.

if it's simple, do it inside wxpython.

0
source

I did this in pygtk using a tabbed widget with hidden tabs. You can design it in a clearing and then automate the switching between tabs in your code.

Currently, I will probably go with QT for a new project, although I don't know yet.

0
source

Source: https://habr.com/ru/post/1394993/


All Articles