https://github.com/jacksonwuxs/flash-background-by-wxpython
My sollution on flashing background in wxPython
https://github.com/jacksonwuxs/flash-background-by-wxpython
python27
Last synced: 12 months ago
JSON representation
My sollution on flashing background in wxPython
- Host: GitHub
- URL: https://github.com/jacksonwuxs/flash-background-by-wxpython
- Owner: JacksonWuxs
- Created: 2018-01-10T05:17:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-08T06:20:07.000Z (over 8 years ago)
- Last Synced: 2025-04-04T17:32:20.493Z (about 1 year ago)
- Topics: python27
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flash-Background-by-wxPython
As we all know about wxPython, it's a simple lab for python GUI. But in recent years, clients (of course including bosses) order more and more beautiful GUI for their applications. I got a same situations like just mentioned, so I represented some individual solutions on beautify my application by wxPython.
This solution was enlightened by another idea for showing a picture on the background of a wxPython Frame. I would like to have a automatic flashing background with several pictures. I used the priciple of flash or movies to show up a flashing background. That means I will flash my background in a short time so that the client will think that is moving.
That is a simple way to improve the feeling of your application while some performance losses are caused. This solution on my computer (i7-6560U) will generate 5% CPU utilization which only be flashed every 0.083 seconds (12 photoes every second). Because of the performance losses, I have to transform the flashing background to a frozen background while the other threadings startuped. And my application set a self-adapting background depends on your CPU.
Here is the enviroument of my computer:
1. Python 2.7.13
2. wxPython 3.0
3. wmi (Unneccesary)
Relationship amount every files:
"Code" is the Desktop window to show up the example to you which needs wxPython and global_variables.
"global_variables" is the model to setting the variables. It can set self-adapting background between frozen or flashing. It depends on the model of global_functions.
"global_functions" will give the "global_variales" a type of CPU.