PySimpleGUI designer, that uses transpiler to produce code from Qt Designer xml file.
Project description
PySimpleGUI Designer
Install:
# Requirements: pyside2
# pip install PySide2
pip install PySimpleGUIDesigner
Usage
Run GUI:
PySimpleGUIDesigner
Use options(cli-verison):
PySimpleGUIDesigner --xmlfile="~/folder1/test.ui" --objname="somegroupBox"
Help:
PySimpleGUIDesigner --help
Output:
Usage: main.py [OPTIONS]
Options:
-v, --verbose Verbose mode
-x, --run just run gui example
-xmlfile PATH abs or rel path to ui_file
-tc, --tabchar TEXT tab character. Default is "\t"
-ta, --tabchar_amount INTEGER indent tab amount
-objname TEXT object name of target container
-nobadwidgets forget about bad widgets. Default - True
-o, --outputfile PATH file to output compiled PySimpleGUI ui
-pp_mouse compile++ option - do the mouse clicks events
-pp_keys compile++ option - do the keys events
--help Show this message and exit.
Usage (source code)
Download this repo, cd into directory.
Run gui:
python3 main.py
Compile by using options:
python3 main.py --xmlfile="~/folder1/test.ui" --objname="somegroupBox"
Examples:
# # # give different path for xmlfile
### Abs path
python3 main.py -xmlfile "/tmp/examples_of_ui/untitled.ui" -objname="text1"
### Relative path
python3 main.py -xmlfile "examples_of_ui/untitled.ui" -objname="vv1"
python3 main.py -xmlfile "untitled.ui" -objname="text1"
### tab character
### tc = tab character, ta = tab amount
python3 main.py -xmlfile "untitled.ui" -objname="text1" -tc " "
python3 main.py -xmlfile "untitled.ui" -objname="text1" -tc " " -ta 1 # the same effect, as command above
python3 main.py -xmlfile "untitled.ui" -objname="text1" -tc " " -ta 2
### add boilerplate to output file
python3 main.py -xmlfile "untitled.ui" -objname="text1" -pp_mouse -tc " " -ta 2
python3 main.py -xmlfile "untitled.ui" -objname="text1" -pp_keys
python3 main.py -xmlfile "untitled.ui" -objname="text1" -tc " " -ta 2 -pp_keys
Todo
Possible:
- improve
psg_ui_maker.py
- somewhere in__init__
method, maybe; - add some
picking templates
for user - add some
boilerplate
's in output generated code - maybe some unit tests, idk.
pytest
?
FAQ
How do I use PySimpleGUIDesigner WITH Qt Designer? Watch this video (by me):
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PySimpleGUIDesigner-0.1.1.tar.gz
(24.0 kB
view hashes)
Built Distribution
Close
Hashes for PySimpleGUIDesigner-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cabd5afb33cb6eae402e9bc10d2e7c7a3b93598696be4245cee16ba45d6e9474 |
|
MD5 | 7239a07a4ffb96cda365f5b48a7f263b |
|
BLAKE2b-256 | 53bb46dd876d400ebeb14f5824c62b9de8f41db559a2d49922ca106433e16c1b |
Close
Hashes for PySimpleGUIDesigner-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0abf0b38328450bafd41cff10db532e726af64aeecb484c1c1c86410c235b42a |
|
MD5 | bd89ff548f29870c934c44f0fd18db9f |
|
BLAKE2b-256 | b8aa2f9e9794e6e25b0ea8e7ee5d1d1a63c4f8a5a3433af6f8c10fe3a7f3b04a |