Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

1 Basic UI Development Method

michelleannesimon edited this page May 15, 2020 · 1 revision

Forms for the EPANET and SWMM UIs can be implemented using the following sequence:

  1. Using Qt Creator, start a new form by working from an existing similar UI file.
  2. Lay out the controls/widgets on the form as desired, using containers to group objects.
  3. For each container, set a layout such as horizontal, vertical, grid, etc.
  4. Set a layout for the entire form.
  5. Save the UI file with the name ending in 'Designer.ui'.
  6. From the Anaconda prompt, type "pyuic input file -o output file". This creates the .py file corresponding to the UI file.
  7. Copy an existing form's py file (without designer in the name) to begin to implement the event handling such as OK, Cancel, etc.
  8. Use PyCharm to open the project, edit the py files, test, debug, etc.