Skip to content

pydemo/wxpython-threading-template

Repository files navigation

wxPython Threading Template

This is a basic template for creating Python applications that use wxPython.

The Python code of the graphical user interface in gui.py is generated by wxFormBuilder (3.5.0 beta). The editable project file is gui.fbp. Modify this file with WxFormbuilder and select File, Generate code afterwards.

Screenshot of Wx Threading Template on Microsoft Windows 7

Upon launch the program waits for the user to push the "Start" button. Then the actual function that is run once, and the counter starts ticking. Always when the gauge hits 0 the function is run again and the counter resets. The user can stop the periodic execution of the function by closing the window or by hitting the "Stop" button. A clean exit is ensured regardless (no thread killing).

Use case: The actual function can be implemented to analyze log files, take screenshots, check for files, check the system load or disk space, ...

Sources

About

A minimal template for creating a wxPython GUI application that runs a function periodically and displays the last run time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages