[bugfix] old usage of _parent
This commit is contained in:
parent
f1fdd3b17b
commit
78ba5484c6
@ -554,8 +554,8 @@ class MainWindow(QMainWindow):
|
|||||||
self.pg = pg
|
self.pg = pg
|
||||||
|
|
||||||
# init style
|
# init style
|
||||||
self.set_style('dark')
|
#self.set_style('dark')
|
||||||
#self.set_style('bright')
|
self.set_style('bright')
|
||||||
#self.set_style('default')
|
#self.set_style('default')
|
||||||
|
|
||||||
# add event combo box and ref/test buttons
|
# add event combo box and ref/test buttons
|
||||||
|
@ -729,7 +729,7 @@ class PylotCanvas(FigureCanvas):
|
|||||||
def saveFigure(self):
|
def saveFigure(self):
|
||||||
if self.figure:
|
if self.figure:
|
||||||
fd = QtGui.QFileDialog()
|
fd = QtGui.QFileDialog()
|
||||||
fname, filter = fd.getSaveFileName(self._parent, filter='Images (*.png)')
|
fname, filter = fd.getSaveFileName(self.parent(), filter='Images (*.png)')
|
||||||
if not fname:
|
if not fname:
|
||||||
return
|
return
|
||||||
if not fname.endswith('.png'):
|
if not fname.endswith('.png'):
|
||||||
|
@ -158,6 +158,11 @@ border-width:1px;
|
|||||||
padding:5px;
|
padding:5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QTabBar::tab:disabled{
|
||||||
|
background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(70, 70, 80, 255), stop:1 rgba(60, 60, 70, 255));
|
||||||
|
color: rgba(100, 100, 120, 255);
|
||||||
|
}
|
||||||
|
|
||||||
QTabWidget{
|
QTabWidget{
|
||||||
background-color:transparent;
|
background-color:transparent;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user