def __init__(self, parent, table, fields, idcol, groupfields, mainview, name='PaellaRecordSelector'): #PaellaManagerWidget.__init__(self, parent, mainview, name=name) QSplitter.__init__(self, parent, name) BasePaellaWidget.initPaellaCommon(self) self.current = currentobject() self.table = table self.fields = fields self.idcol = idcol self.groupfields = groupfields self.listView = KListView(self) self.vsplit = QSplitter(self) self.vsplit.setOrientation(self.Vertical) self.mainView = mainview(self.vsplit) self.recordForm = EditableRecordFrame(self, fields) self.connect(self.listView, SIGNAL('selectionChanged()'), self.groupChanged) self.connect(self.recordForm.insButton, SIGNAL('clicked()'), self.insertRecord) self.connect(self.recordForm.updButton, SIGNAL('clicked()'), self.updateRecord) self.initlistView() self.setSource(self.handleURL)
def __init__(self, app, parent, view, name): QSplitter.__init__(self, parent, name) self.app = app self.listView = KListView(self) self.view = view(self.app, self) self.initlistView() self.connect(self.listView, SIGNAL('selectionChanged()'), self.selectionChanged) self.show()
def __init__(self, parent, mainview, listview=None, name='BaseManagerWidget'): QSplitter.__init__(self, parent, name) if listview is None: self.listView = KListView(self) else: self.listView = listView(self) self.mainView = mainview(self) self.connect(self.listView, SIGNAL('selectionChanged()'), self.selectionChanged)
def __init__(self, app, parent, suite, name='TemplateEditor'): QSplitter.__init__(self, parent, name) dbwidget(self, app) self.trait = None self.listView = TraitList(self.app, self, 'template') self.mainEdit = SimpleEdit(self.app, self) self.set_suite(suite) self.refreshListView() self.connect(self.listView, SIGNAL('selectionChanged()'), self.selectionChanged)
def __init__(self, parent, name='ProfileManagerWidget'): QSplitter.__init__(self, parent, name) self.app = get_application_pointer() #self.listView = KListView(self) self.cfgView = DosboxConfigTabWidget(self) self.dbox = self.app.make_new_dosbox_object() #self.initlistView() cfg = self.dbox.get_default_config() self.cfgView.set_config(cfg)
def __init__(self, parent, suite, name='TemplateEditor'): QSplitter.__init__(self, parent, name) self.app = get_application_pointer() self.trait = None self.listView = TraitListView(self, 'template') self.mainEdit = SimpleEdit(self) self.set_suite(suite) self.refreshListView() self.connect(self.listView, SIGNAL('selectionChanged()'), self.selectionChanged)
def __init__(self, parent, db, table, fields, idcol, groupfields, view, name='RecordSelector'): QSplitter.__init__(self, parent, name) self.current = currentobject() self.db = db self.table = table self.fields = fields self.idcol = idcol self.groupfields = groupfields self.listView = KListView(self) self.vsplit = QSplitter(self) self.vsplit.setOrientation(Qt.Vertical) self.recView = view(db, self.vsplit) frame = QFrame(self.vsplit) self.recForm = EditableRecord(frame, fields) self.connect(self.listView, SIGNAL('selectionChanged()'), self.groupChanged) self.connect(self.recForm.insButton, SIGNAL('clicked()'), self.insertRecord) self.connect(self.recForm.updButton, SIGNAL('clicked()'), self.updateRecord) self.initlistView() self.setSource(self.handleURL)
def __init__(self, parent=None): QSplitter.__init__(self, parent, 'hsplit') self.setOrientation(QSplitter.Horizontal) self.listbox = QListView(self) #self.insertWidget(self.listbox) self.notebook = QTabBar(self)
def __init__(self, parent, name='MainSplitter'): QSplitter.__init__(self, parent, name) #self.browser = TestTextBrowser(self) self.kpart = TestTextPart(self)