示例#1
0
 def __init__(self):
     ReferenceDataDialog.__init__(self)
     self.table = "categories"
     self.model = CategoryTreeModel(self.table, self.TreeView)
     self.TreeView.setModel(self.model)
     self.model.configureView()
     self.setup_ui()
     super()._init_completed()
示例#2
0
 def __init__(self):
     ReferenceDataDialog.__init__(self)
     self.table = "quotes"
     self.model = QuotesListModel(self.table, self.DataView)
     self.DataView.setModel(self.model)
     self.model.configureView()
     self.setup_ui()
     super()._init_completed()
示例#3
0
    def __init__(self):
        ReferenceDataDialog.__init__(self)
        self.table = "account_types"
        self.model = AccountTypeListModel(self.table, self.DataView)
        self.DataView.setModel(self.model)
        self.model.configureView()

        self.setWindowTitle(self.tr("Account Types"))
        self.Toggle.setVisible(False)
        super()._init_completed()