def __init__(self, managers = None): QtGui.QMainWindow.__init__(self) loadUI(self, 'mainwindow.ui') centerOnScreen(self) self.setWindowTitle("Simple Struct - Example Plasta App") self.managers = managers
def __init__(self, views, managers = None): QtGui.QMainWindow.__init__(self) loadUI(self, '/gui/mainwindow.ui') centerOnScreen(self) self.setWindowTitle(config.MAIN_TITLE) self.views = views self.managers = managers
def __init__(self, managers = None): QtGui.QMainWindow.__init__(self) loadUI(self, '/GUI/mainwindow.ui') centerOnScreen(self) self.setWindowTitle("Gestor de movimientos") QtGui.QShortcut(QtGui.QKeySequence(QtCore.Qt.Key_Escape), self, self.close) self.managers = managers
def loadUI(self, pathToFile = None): from plasta.utils.qt import loadUI loadUI(self, pathToFile)
def loadUI(self, pathToFile = None): if pathToFile is None: pathToFile = self.FILENAME loadUI(self, pathToFile)