def __init__(self, parent=None): ''' ''' if parent: cfg = parent.config self.config = condor.instruct(pxcfg).select('nchantdbutton') self.config.override(cfg) super(NchantdScratchEditorModel, self).__init__(parent)
def __init__(self, name, parent=None): ''' ''' pxcfg = f'{here}_data_/forms.yaml' if parent: cfg = parent.config self.config = condor.instruct(pxcfg).select('NchantdNodeEditor') self.config.override(cfg)
def __init__(self, parent=None, cfg={}): self.parent = parent self.src = parent.model.src if parent: cfg = parent.config self.config = condor.instruct(pxcfg).override(cfg) super(NchantdWeekCalendar, self).__init__(parent, cfg)
def __init__(self, parent=None, cfg={}): ''' ''' self.config = condor.instruct(pxcfg).override(cfg) self.config.select('NchantdSubmissionButtons') if parent: self.config.override(parent.config) self.parent = parent pyqt.QWidget.__init__(self) self.layout = pyqt.QHBoxLayout() if log: print('Nchantd Submission Buttons', self.config.dikt) self.config.dikt['buttons']['new']['text'] = 'New' self.newbutton = NchantdButton(self, self.config.dikt['buttons']['new']) self.newbutton.initWidget() self.layout.addWidget(self.newbutton) self.config.dikt['buttons']['submit']['text'] = 'Submit' self.submitbutton = NchantdButton( self, self.config.dikt['buttons']['submit']) self.submitbutton.initWidget() self.layout.addWidget(self.submitbutton) self.config.dikt['buttons']['delete']['text'] = 'Delete' self.deletebutton = NchantdButton( self, self.config.dikt['buttons']['delete']) self.deletebutton.initWidget() self.layout.addWidget(self.deletebutton) self.setLayout(self.layout)
def __init__(self, parent=None, cfg={}): ''' ''' self.config = condor.instruct(pxcfg).select('NchantdTODOEntryForm') self.config.override(cfg) # || if parent: self.config.override(parent.config) super(NchantdTODOEntryForm, self).__init__(parent, cfg)
def __init__(self, parent=None, cfg={}): ''' ''' self.parent = parent self.config = condor.instruct(pxcfg).select('NchantdVolumeChart') self.config.override(cfg) if parent: self.config.override(parent.config)
def loadWidget(parent, cfg={}, pos=None): '''Load the defined widget from its parameters or from a list of registered widgets Load Source for Daynamically building the tabset for the pane''' pxconfig = condor.instruct(pxcfg).load() #*************<(HACK)>**********Work around for calcgen.tree merge error ecfg = pxconfig.override(cfg).dikt ecfg['widget'] = cfg['widget'] cfg = ecfg #*************END if 'widget' in cfg.keys(): if cfg['widget']: if log: print('Widget', cfg['widget']) widget = thingify(cfg['widget'])(parent, cfg) if pos: widget.initWidget(pos) else: widget.initWidget() else: widget = pyqt.QWidget(parent) else: registesterd_widget = lookupWidget(list(cfg.keys())[0]) widget = thingify(registered_widget)(parent, cfg) widget.initWidget(parent.newInstance) return widget
def __init__(self, parent): ''' ''' self.parent = parent if parent: cfg = parent.config self.config = condor.instruct(pxcfg).select('NchantdTreeView') self.config.override(cfg) super(NchantdTreeView, self).__init__()
def __init__(self, parent=None, cfg={}, root=None): ''' ''' self.src = parent.src self.config = condor.instruct(pxcfg).select('NchantdCustomTree') self.config.override(cfg) if parent: self.config.override(parent.config) super(NchantdCustomTree, self).__init__(parent, cfg, root)
def __init__(self, parent=None, cfg={}): ''' ''' self.parent = parent self.config = condor.instruct(pxcfg).select('NchantdTODOTree') self.config.override(cfg) if parent: self.config.override(parent.config) super(NchantdTODOCalendarTab, self).__init__(parent, self.config)
def __init__(self, parent=None, cfg=None): ''' ''' self.parent = parent self.config = condor.instruct(pxcfg) self.config.select('NchantdSigilModel').override(cfg) if parent: self.config.override(parent.config) self.listeners = {}
def __init__(self, parent=None, cfg=None): ''' ''' self.parent = parent self.config = condor.instruct(pxcfg).select('NchantdDropDown') self.config.override(cfg) if parent: self.config.override(parent.config) super(NchantdDropDown, self).__init__()
def __init__(self, parent=None, cfg=None): ''' ''' if parent: cfg = parent.config self.config = condor.instruct(pxcfg).override(cfg) self.parent = parent pyqt.QWidget.__init__(self) self.initUI()
def __init__(self, parent=None, cfg={}): ''' ''' self.parent = parent self.config = condor.instruct(pxcfg) self.config.select('NchantdFundLiabilitiesTabModel').override(cfg) if parent: self.config.override(parent.config) super(NchantdFundLiabilitiesTabModel, self).__init__(parent, cfg)
def __init__(self, parent=None, cfg={}, root=None): ''' ''' self.parent = parent self.config = condor.instruct(pxcfg) self.config.select('NchantdFundLiabilityEntryForm').override(cfg) if parent: self.config.override(parent.config) super(NchantdFundAccountsTab, self).__init__(parent, cfg)
def __init__(self, args): # '''Create new database eventually have checks in place so as not to # delete user db also have a way of backing up any nonblockchain data # so it can be selectively reimported to a new database if needed''' ucfg = f'{there}/_data_/user.yaml' self.config = condor.instruct(pxcfg).override(ucfg).addArgs(args) if log: print('CONFIG', self.config.dikt.keys()) super(NchantdAccountEntry, self).__init__('NchantdAccountEntry')# ||
def __init__(self, parent=None, value=None, cfg={}): ''' ''' self.parent = parent if parent: cfg = parent.config self.config = condor.instruct(pxcfg).select('NchantdEntryBox') self.config.override(cfg) super(NchantdEntryBox, self).__init__(value)
def __init__(self, parent=None, cfg={}): ''' ''' self.parent = parent self.config = condor.instruct(pxcfg).select('NchantdPriceHistoryChart') self.config.override(cfg) if parent: self.config.override(parent.config) super(NchantdPriceHistoryChart, self).__init__(parent)
def __init__(self, parent=None, cfg={}): ''' ''' self.parent = parent if parent: cfg = parent.config self.config = condor.instruct(pxcfg).select('NchantdScratchEditorView') self.config.override(cfg) super(NchantdScratchEditorView, self).__init__(parent)
def __init__(self, parent=None, cfg={}, root=None): ''' ''' self.parent = parent self.config = condor.instruct(pxcfg) self.config.select('NchantdFundRevenuesTab').override(cfg) if parent: self.config.override(parent.config) super(NchantdFundRevenuesTab, self).__init__(parent, cfg)
def __init__(self, parent=None, cfg={}): ''' ''' self.parent = parent self.config = condor.instruct(pxcfg).select('NchantdEntryEditor') self.config.override(cfg) if parent: self.config.override(parent.config) super(NchantdEntryEditor, self).__init__(parent)
def __init__(self, parent=None, cfg={}): ''' ''' self.parent = parent self.config = condor.instruct(pxcfg) self.config.select('NchantdSolidityContractForm').override(cfg) if parent: self.config.override(parent.config) super(NchantdSolidityContractForm, self).__init__(parent)
def __init__(self, parent=None, cfg={}): ''' ''' self.parent = parent if parent: cfg = self.parent.config self.config = condor.instruct(pxcfg).override(cfg) super(NchantdNodeModel, self).__init__() self.name = 'NodeModel'
def __init__(self): ''' ''' self.parent = parent self.config = condor.instruct(pxcfg) self.config.select('NchantdAPIEntryFormModel').override(cfg) if parent: self.config.override(parent.config) super(NchantdAPIEntryFormModel, self).__init__(parent)
def __init__(self, parent=None, cfg={}): ''' ''' self.parent = parent if parent: cfg = self.parent.config self.config = condor.instruct(pxcfg).select('NchantdTable') self.config.override(cfg) super(NchantdTableModel, self).__init__()
def __init__(self, parent=None, cfg={}): ''' ''' self.parent = parent self.config = condor.instruct(pxcfg) self.config.select('NchantdTODOFundSummaryTab').override(cfg) if parent: self.config.override(parent.config) super(NchantdTODOFundTab, self).__init__(parent, self.config)
def __init__(self, parent): ''' ''' pxcfg = f'{here}_data_/treeviews.yaml' self.parent = parent if parent: cfg = parent.config self.config = condor.instruct(pxcfg).override(cfg) super(NchantdItemView, self).__init__()
def __init__(self, args, parent=None): ''' ''' ucfg = f'{there}/_data_/user.yaml' self.config = condor.instruct(pxcfg).override(ucfg).addArgs(args) if parent: self.config.override(parent.config) super(NchantdFund, self).__init__('NchantdFund', self) self.model.initModel() self.initApp()
def __init__(self, parent=None, data=[], cfg={}): ''' ''' self.parent = parent self.config = condor.instruct(pxcfg).select('NchantdTable') self.config.override(cfg) if parent: self.config.override(parent.config) super(NchantdTable, self).__init__() self.model = tablemodels.NchantdTableModel(self).initModel()
def __init__(self, parent, data=[], cfg={}): ''' ''' self.parent = parent self.config = condor.instruct(pxcfg).select('NchantdTaskTable') self.config.override(cfg) if parent: self.config.override(parent.config) super(NchantdTable, self).__init__() self.buildPane()