rename app ; add new,open,save actions
This commit is contained in:
parent
ee7a266e9d
commit
4d56a90790
37 changed files with 271 additions and 127 deletions
6
Makefile
6
Makefile
|
|
@ -1,5 +1,5 @@
|
|||
ress:
|
||||
pyrcc5 .\src\wargame_campaign\view\resources\ui_ressources.qrc -o .\src\wargame_campaign\view\resources\ui_ressources_rc.py
|
||||
pyrcc5 .\src\warchron\view\resources\ui_ressources.qrc -o .\src\warchron\view\resources\ui_ressources_rc.py
|
||||
|
||||
installer :
|
||||
python -m PyInstaller .\main.spec
|
||||
|
|
@ -14,11 +14,11 @@ ui: $(PY_FILES)
|
|||
|
||||
# Pattern rule: .ui -> .py using pyuic5
|
||||
$(UI_DIR)/%.py: $(UI_DIR)/%.ui
|
||||
pyuic5 -x $< -o $@ --import-from wargame_campaign.view.resources
|
||||
pyuic5 -x $< -o $@ --import-from warchron.view.resources
|
||||
|
||||
# Function to generate UI file from given name
|
||||
_ui_generate:
|
||||
pyuic6 -x .\src\wargame_campaign\view\ui\$(UI_NAME).ui -o .\src\wargame_campaign\view\ui\$(UI_NAME).py --import-from wargame_campaign.view.resources
|
||||
pyuic6 -x .\src\warchron\view\ui\$(UI_NAME).ui -o .\src\warchron\view\ui\$(UI_NAME).py --import-from warchron.view.resources
|
||||
|
||||
# Set default UI_NAME if not provided
|
||||
UI_NAME ?= ui_main_window
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue