-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Separator in Modes menu.
- Loading branch information
Showing
6 changed files
with
51 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,13 +31,8 @@ def run(DirIn=None, filename=None, field=None): | |
from ._common import startMainMenu | ||
from .. import view | ||
|
||
app = QtGui.QApplication(sys.argv) | ||
if view.checkifmac(): | ||
app.setAttribute(QtCore.Qt.AA_MacPluginApplication, True) | ||
|
||
# start Menu and initiate Vradar | ||
MainMenu = startMainMenu(DirIn, filename) | ||
Vradar = MainMenu.Vradar | ||
view.start(DirIn, filename) | ||
Vradar = view.MainMenu.Vradar | ||
|
||
# handle input | ||
if field is None: | ||
|
@@ -50,17 +45,17 @@ def run(DirIn=None, filename=None, field=None): | |
# start Displays | ||
Vtilt = Variable(0) | ||
plot1 = RadarDisplay(Vradar, Variable(field), Vtilt, name="Display1", | ||
parent=MainMenu) | ||
parent=view.MainMenu) | ||
plot2 = RadarDisplay(Vradar, Variable(field), Vtilt, name="Display2", | ||
parent=MainMenu) | ||
parent=view.MainMenu) | ||
|
||
# start ComponentsControl | ||
control = LinkSharedVariables() | ||
control.setComponent0(plot1.name) | ||
control.setComponent1(plot2.name) | ||
|
||
# add control to Menu | ||
MainMenu.addLayoutWidget(control) | ||
view.MainMenu.addLayoutWidget(control) | ||
|
||
# Replace in Screen | ||
desktop_rect = QtGui.QDesktopWidget().screenGeometry() | ||
|
@@ -71,13 +66,13 @@ def run(DirIn=None, filename=None, field=None): | |
menu_width = 500 | ||
menu_height = 180 | ||
|
||
MainMenu.setGeometry(0, 0, menu_width, menu_height) | ||
view.MainMenu.setGeometry(0, 0, menu_width, menu_height) | ||
|
||
plot_size = min(height-60-menu_height, width/2) - 50 | ||
plot1.setGeometry(0, height-plot_size, plot_size, plot_size) | ||
plot2.setGeometry(width/2, height-plot_size, plot_size, plot_size) | ||
|
||
# start program | ||
app.exec_() | ||
view.execute() | ||
print("You used ARTView. What you think and what you need of ARTView? " | ||
"Send your comment to [email protected]") |
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