예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
 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)
예제 #5
0
 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)
예제 #6
0
 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)
예제 #7
0
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
예제 #8
0
 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__()
예제 #9
0
파일: trees.py 프로젝트: solubrew/nchantrs
 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)
예제 #10
0
 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)
예제 #11
0
	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 = {}
예제 #12
0
 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__()
예제 #13
0
 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()
예제 #14
0
파일: models.py 프로젝트: solubrew/nchantrs
 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)
예제 #15
0
 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)
예제 #16
0
	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')#					||
예제 #17
0
	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)
예제 #18
0
 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)
예제 #19
0
 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)
예제 #20
0
 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)
예제 #21
0
	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)
예제 #22
0
	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)
예제 #23
0
 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'
예제 #24
0
	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)
예제 #25
0
 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__()
예제 #26
0
 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)
예제 #27
0
 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__()
예제 #28
0
	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()
예제 #29
0
 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()
예제 #30
0
 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()