def __init__(self): QtGui.QMainWindow.__init__(self) self.ui = LuminosoUI(self) self.toolbar = self.addToolBar("Toolbar") self.toolbar.setToolButtonStyle(Qt.ToolButtonTextUnderIcon) #self.toolbar.setIconSize(QtCore.QSize(24, 24)) self.setUnifiedTitleAndToolBarOnMac(True) self.setCentralWidget(self.ui) self.study = None self.results = None self.already_closed = False self.menus = {} self.actions = {} # A silly trick to make instance methods available from the console. # "The biggest self of self is self." -- Gov. Mark Sanford self.self = self self.setWindowTitle("Luminoso %s" % VERSION)