-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GUI and callbacks in simulate_fmu(). Keep start values as literal…
…s. Add ScalarVariable.initial and set default values for causality, variability and initial. Add extras_require in setup.py.
- Loading branch information
Showing
50 changed files
with
3,117 additions
and
108 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
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
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,25 @@ | ||
""" This package contains the graphical user interface based on PyQt5 """ | ||
|
||
|
||
def compile_resources(): | ||
""" Compile the .ui and .qrc files if they are available and newer than the compiled .py files """ | ||
|
||
import os | ||
|
||
p = os.path.dirname(__file__) | ||
|
||
mw_ui = os.path.join(p, 'forms', 'MainWindow.ui') | ||
mw_py = os.path.join(p, 'generated', 'MainWindow.py') | ||
|
||
if os.path.isfile(mw_ui): | ||
if not os.path.isfile(mw_py) or os.path.getmtime(mw_ui) > os.path.getmtime(mw_py): | ||
print("UIC'ing %s" % mw_ui) | ||
os.system('pyuic5 %s -o %s --import-from .' % (mw_ui, mw_py)) | ||
|
||
icons_qrc = os.path.join(p, 'icons', 'icons.qrc') | ||
icons_rc_py = os.path.join(p, 'generated', 'icons_rc.py') | ||
|
||
if os.path.isfile(icons_qrc): | ||
if not os.path.isfile(icons_rc_py) or os.path.getmtime(icons_qrc) > os.path.getmtime(icons_rc_py): | ||
print("RCC'ing %s" % icons_qrc) | ||
os.system('pyrcc5 %s -o %s' % (icons_qrc, icons_rc_py)) |
Oops, something went wrong.