sometimes we need to make little User Interface to execute some shell command as python script by example.
The goal is to make simple gui with python/wxPython using an openoffice odg file.
This is the github https://github.com/gwena56/wxpyodg
and a little How To :
- use only png image file inside odg,for background, size to the screen you use (very important)
- In openoffice (See example ./odg/carpc.odg)
- do a new odg file sized to a background image (must be the first draw in the odg file)
- Draw ui element (only rectangle and circle/ellipse at the moment).
- double-click on draw to put the name of the element as text.
- Example
- draw a rectangle
- double-cick
-
- first line put the name of the item ex STD_PUSHBT_name
-
- second line put command for the item ex RUN_python
- Example carpc.py # all in comments (french only)
- Example of Openoffice constructor file (show file carpcUImaking.odg in howto folder for comprehensive tool.
If you want to test, it as very useful for this dev, thank for replies
thx