How it works...

We have created our own GUI in this recipe using the mature wxPython GUI toolkit. In only a few lines of Python code, we were able to create a fully functional GUI that comes with Minimize, Maximize, and Exit buttons. We added a menu bar, a multiline text control, and a button. We also created a status bar that displays text when we select a menu item. We placed all these widgets into a Panel container widget.

We hooked up the button to print to the text control.

When hovering over a menu item, some text gets displayed in the status bar.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.21.246.223