[bugfix] do not show file menu when embedded, stretch changed (still problems on ludgers machine)

This commit is contained in:
Marcel Paffrath 2017-06-30 15:06:17 +02:00
parent 8e12bb1bc6
commit 74393432da

View File

@ -809,14 +809,14 @@ class PickDlg(QDialog):
def setupUi(self): def setupUi(self):
menuBar = QtGui.QMenuBar(self) menuBar = QtGui.QMenuBar(self)
if not self._embedded:
exitMenu = menuBar.addMenu('File') exitMenu = menuBar.addMenu('File')
self.addPickPhases(menuBar)
exitAction = QtGui.QAction('Close', self) exitAction = QtGui.QAction('Close', self)
exitAction.triggered.connect(self.close) exitAction.triggered.connect(self.close)
exitMenu.addAction(exitAction) exitMenu.addAction(exitAction)
self.addPickPhases(menuBar)
# create matplotlib toolbar to inherit functionality # create matplotlib toolbar to inherit functionality
self.figToolBar = NavigationToolbar2QT(self.getPlotWidget(), self) self.figToolBar = NavigationToolbar2QT(self.getPlotWidget(), self)
self.figToolBar.hide() self.figToolBar.hide()
@ -906,8 +906,8 @@ class PickDlg(QDialog):
_outerlayout.addWidget(_dialtoolbar) _outerlayout.addWidget(_dialtoolbar)
_outerlayout.addLayout(_innerlayout) _outerlayout.addLayout(_innerlayout)
_outerlayout.setStretch(0, 0) _outerlayout.setStretch(0, 0)
_outerlayout.setStretch(1, 1) _outerlayout.setStretch(1, 0)
_outerlayout.setStretch(2, 100) _outerlayout.setStretch(2, 1)
# connect widget element signals with slots (methods to the dialog # connect widget element signals with slots (methods to the dialog
# object # object