Example #1
0
 def __init__(self, nameserver, cfg=None):  #							||
     'Data Router'  #							||
     self.config = config.instruct(pxcfg).override(cfg)  #				||
     self.nameserver = nameserver  #									||
     self.queue = queue.Queue()  #										||
     self.go = True  #													||
     self.listen()
Example #2
0
	def appToolBar(self, QToolBar, cfg):
		'Create a Toolbar from configurations file'
		pxcfg = here+'z-data_/desktop.yaml'
		self.config = config.instruct(pxcfg).select(
								'docAddToolBar').override(cfg)#	||
		self.createToolBar()
		for button, cfg in self.config['buttons'].items():
			self.createButton(button, cfg)
Example #3
0
def spawn(cfg):
    'Spawn the Application'
    pxcfg = here + 'z-data_/launch.yaml'
    spawnCFG = config.instruct(pxcfg).load()  #override(cfg)
    app = QApplication(sys.argv)  #			||Start the App Container
    aw = gui.mainWindow()  #			||
    aw.show()
    sys.exit(app.exec_())
Example #4
0
 def __init__(self, cfg=None):
     pxcfg = here + 'z-data_/app.yaml'
     self.config = config.instruct(pxcfg).override(cfg)  #				||
     super().__init__()
     self.title = ''
     self.left = 20
     self.top = 50
     self.width = 1650
     self.height = 960
     self.initUI()
Example #5
0
 def __init__(self, cfg):
     'Spawn the Application'
     pxcfg = here + 'z-data_/launch.yaml'
     if cfg == None:
         pass
         #create new config file for the current user and what ever file is trying to be opened if any
     self.config = config.instruct(pxcfg).load()  #.override(cfg)
     self.ctrlServer()
     self.appService()
     self.mainDesktop()
     self.exit()
Example #6
0
	def __init(self, docUUID=None, data=None, cmd=None, tblMap=None, cfg=None, db=None):
		''
		pxcfg = here+'/ngynFxSQuRIL.yaml'
		self.config = config.instruct(pxcfg).override(cfg)
		if docUUID == None:
			docUUID = next(thing.what().uuid())
		self.docUUID = docUUID
		self.cmd = cmd
		if tblMap == None:
			self.refreshTableMap()
		else:
			self.tblMap = tblMap
		self.tblMap = tblMap
		if db == None:
			db = session.app('pyffice').install().db
		self.db = db
Example #7
0
	def __init__(self, cfg=None):
		pxcfg = here+'/z-data_/FxSQuRIL.yaml'
		self.config = config.instruct(pxcfg).select('inmemdb').override(cfg)
		self.name = self.config.dikt['Name']
		self.path = 'file:'+self.name+':memory:?cache=shared'
Example #8
0
	def __init__(self, gchunk=None, schunk=None, cfg=None):
		pxcfg = here+'/cfg/ngynFxSQuRIL.yaml'
		self.config = config.instruct(pxcfg).select('sectn').override(cfg)
		self.seqCodes = self.getCodes('seq')
		self.sizeCodes = self.getCodes('size')