Python GUI AboutBox Dialog in wxPython

In this Python GUI article i want to show you creating of AboutBox Dialog in wxPython.

so for this including wx we need another class that we should import that is called wx.adv.

this class contains the general information about the program, such as its name, version, copyright and so on,

as well as lists of the program developers, documentation writers, artists and translators.

 

 

 

 

So now this is the complete code for Python GUI AboutBox Dialog in wxPython

 

 

 

 

At the first we have our Frame class that inherits from wx.Frame and it is our top level window that we create our MyPanel object in this class.

 

 

 

 

 

After that we create our MyPanel class, this class is a container class for our widgets like buttons, menus, checkbutton and etc. and you can see that we have created a button in this class also we have done binding for our button.

 

 

 

 

And this is the method for our AboutBox

 

 

 

 

 

So the last class is MyApp class that inherits from wx.App. the OnInit() method is where you will most often create frame subclass objects.

and start our main loop.That’s it. Once the application’s main event loop processing takes over, control
passes to wxPython. Unlike procedural programs, a wxPython GUI program primarily responds to the events taking place around it, mostly determined by a human user clicking with a mouse and typing at the keyboard. When all the
frames in an application have been closed, the app.MainLoop() method will return and the program will exit.

 

 

 

 

 

So run the code and this will be the result

Python GUI AboutBox Dialog in wxPython
Python GUI AboutBox Dialog in wxPython

 

 

 

 

 

 

Also you can watch the complete video tutorial for this article

Subscribe and Get Free Video Courses & Articles in your Email

 

Codeloop
Share via
Copy link
Powered by Social Snap
×