forked from Wobbl/Bread_Editor
File opening working.
(Only the popup that sets the variable.)
This commit is contained in:
commit
2797c3ca44
5 changed files with 129 additions and 0 deletions
18
gui/raw_ui/ui_to_py.py
Normal file
18
gui/raw_ui/ui_to_py.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import os
|
||||
|
||||
input_debug = input("Do you want to debug the gui scripts? (Make gui scripts executable.) (y/n): ")
|
||||
|
||||
debug = input_debug == "y"
|
||||
|
||||
params = "-o"
|
||||
if debug:
|
||||
params = "-xo"
|
||||
|
||||
paths = {
|
||||
"main_window.ui": "main_window.py"
|
||||
}
|
||||
|
||||
for ui_file, script_out in paths.items():
|
||||
os.system(f"pyuic6 {ui_file} {params} ../{script_out}")
|
Loading…
Add table
Add a link
Reference in a new issue