Public Member Functions | |
def | __init__ |
def | closeEvent |
def | destroy |
def | fileQuit |
def | saveAs |
Public Attributes | |
main_widget | |
qApp |
main evt loop
Definition at line 16 of file lumiQTWidget.py.
def lumiQTWidget::ApplicationWindow::__init__ | ( | self, | |
fig = None |
|||
) |
Definition at line 20 of file lumiQTWidget.py.
00021 : 00022 self.qApp=QtGui.QApplication(sys.argv)#every PyQt4 application must create an application object 00023 QtGui.QMainWindow.__init__(self) 00024 self.setWindowTitle('lumi plot') 00025 self.setAttribute(QtCore.Qt.WA_DeleteOnClose) 00026 self.main_widget = QtGui.QWidget(self) 00027 l = QtGui.QVBoxLayout(self.main_widget) 00028 sc = LumiCanvas(self.main_widget,fig=fig) 00029 bn = QtGui.QPushButton("Save to File",self.main_widget) 00030 bn.clicked.connect(lambda:self.saveAs(fig)) 00031 l.addWidget(sc) 00032 l.addWidget(bn) 00033 self.main_widget.setFocus() 00034 self.setCentralWidget(self.main_widget)
def lumiQTWidget::ApplicationWindow::closeEvent | ( | self, | |
ce | |||
) |
Definition at line 41 of file lumiQTWidget.py.
def lumiQTWidget::ApplicationWindow::destroy | ( | self | ) |
Definition at line 43 of file lumiQTWidget.py.
def lumiQTWidget::ApplicationWindow::fileQuit | ( | self | ) |
Definition at line 39 of file lumiQTWidget.py.
def lumiQTWidget::ApplicationWindow::saveAs | ( | self, | |
fig | |||
) |
Definition at line 35 of file lumiQTWidget.py.
Definition at line 20 of file lumiQTWidget.py.
Definition at line 20 of file lumiQTWidget.py.