def __init__(self, parent, diff_type, name='DifferWindow'): BasePaellaWindow.__init__(self, parent, name=name) self.mainView = BaseDifferFrame(self, diff_type) self.initActions() self.initMenus() self.initToolbar() self.setCentralWidget(self.mainView) self.setCaption('%s Differ' % diff_type.capitalize())
def __init__(self, parent): BasePaellaWindow.__init__(self, parent, name='MachineMainWindow') self.initPaellaCommon() self.initActions() self.initMenus() self.initToolbar() self.mainView = None self.resize(400, 300) self.setCaption('Machine Manager') self.statusbar = self.statusBar()
def __init__(self, parent, etype): BasePaellaWindow.__init__(self, parent, name='EnvironmentWindow') self.initPaellaCommon() self.mainView = EnvironmentList(self, etype) self.initActions() self.initMenus() self.initToolbar() self.setCentralWidget(self.mainView) self.mainView.refreshListView() self.resize(600, 500) self.setCaption('%s Environment' % etype.capitalize())
def __init__(self, parent, suite, trait, name='TraitVariablesWindow'): BasePaellaWindow.__init__(self, parent, name=name) self.resize(500, 600) self.initPaellaCommon() self.mainView = QScrollView(self, 'TraitVariablesScrollView') self.tveditor = TraitVariablesEditor(self.mainView, suite, trait) self.mainView.addChild(self.tveditor) self.setCentralWidget(self.mainView) self.mainView.setResizePolicy(self.mainView.AutoOneFit) self.initActions() self.initMenus() self.initToolbar()
def __init__(self, parent): BasePaellaWindow.__init__(self, parent, name='ClientsMainWindow') self.initPaellaCommon() self.initActions() self.initMenus() self.initToolbar() self.cursor = self.conn.cursor(statement=True) self.listView = KListView(self) self.setCentralWidget(self.listView) self.refreshListView() self.resize(600, 800) self.setCaption('Paella Profiles')
def __init__(self, parent=None, name='BasePaellaMainWindow'): BasePaellaWindow.__init__(self, None, name) self.initPaellaCommon() self._suites = [] # make a cursor if self.conn is not None: self.cursor = self.conn.cursor(statement=True) # figure out what suites are available self._refresh_suites() # setup actions, menus, and toolbar self.initActions() self.initMenus() self.initToolbar() self.statusbar = self.statusBar() self.statusbar.message('Disconnected') # setup dialog pointers self._import_export_dirsel_dialog = None self._all_my_children = []
def __init__(self, parent, view, name='ViewWindow'): BasePaellaWindow.__init__(self, parent, name) self.mainView = view(self) self.mainView.setReadOnly(True) self.setCentralWidget(self.mainView) self.resize(500, 600)