-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move designer files to their own directory
Clean up the repo structure by keeping designer files (.ui and generated .py) separate from the interface window class definitions
- Loading branch information
Simon Ho
committed
Sep 25, 2016
1 parent
86ad8a7
commit 7ff45de
Showing
14 changed files
with
42 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#Designer Files | ||
|
||
The `/ui` directory contains `.ui` files used by QT Designer to create | ||
the various windows and dialogs of the application. Edit those in QT Designer | ||
if you want to make changes to the user interface. | ||
|
||
After making changes in QT Designer, you'll need to convert the `.ui` files to | ||
Python modules. `/ui/convertUI.bat` is a Windows batch script for converting | ||
(using `pyuic`) the QT Designer UI files to Python modules that can be | ||
imported by the main script. | ||
|
||
The Python `.py` files in this directory are the modules generated by the | ||
batch script above. These are used to set up the UI elements and window logic | ||
elsewhere (see `../interface/`) | ||
|
||
**Note**: Do not manually edit the `.py` files in this directory. While it | ||
might be tempting to add/change UI elements directly in the Python file, | ||
any changes you make will be overwritten by the `.ui -> .py` conversion | ||
process. |
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
#Designer Files | ||
#Interface Files | ||
|
||
The `/designer` directory contains `.ui` files used by QT Designer to create | ||
the various windows and dialogs of the application. Edit those in QT Designer | ||
if you want to make changes to the user interface. | ||
This directory contains class definitions for the different windows and dialog | ||
boxes. These are imported by the main script as modules and used to | ||
create/display the different application windows. | ||
|
||
After making changes in QT Designer, you'll need to convert the `.ui` files to | ||
Python modules. `convertUI.bat` is a Windows batch script for converting | ||
(using `pyuic`) the QT Designer UI files into Python modules that can be | ||
imported by the main script. | ||
Each module here uses the generated Python files (`../designer/*.py`) to | ||
determine the layout for each window | ||
|
||
The Python `.py` files in this directory are the modules generated by the | ||
batch script above. These are used by the main script to setup the UI elements. | ||
The process as a whole: | ||
|
||
**Note**: Do not manually edit the `.py` files in this directory. While it | ||
might be tempting to add/change UI elements directly in the Python file, | ||
any changes you make will be overwritten by the `.ui -> .py` conversion | ||
process. | ||
1. `.ui` files are created for each window using QT Designer. These can be | ||
found in `../designer/ui/` | ||
2. `.ui` files are converted to `.py` using `../designer/ui/convertUI.bat`. | ||
These are just Python versions of the `.ui` files and contain the layout and | ||
structure of all window elements. They can be found in `../designer/` | ||
3. The Python modules in this directory define classes for each application | ||
window, using the layout from files generated in Step #2 and adding the | ||
logic for each window | ||
4. Finally, these classes are instantiated in the main script to create and | ||
display the windows when needed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters