Ejemplo n.º 1
0
	def run(self):
		''' '''
		try:
			event = "BrowserEventLoad"
			helper = CQBHelper.instance(time.clock(), self.con_params)
			data = helper.db_table_tree()
		except Exception, exc:
			event = "BrowserEventError"
			data = exc
Ejemplo n.º 2
0
	def __init__ (self, parent, id, title='', con_params={}, *args, **kwargs):
		''' '''

		if con_params == None or len(con_params) <= 0:
			con_params = CQB.loadProfile()
			if con_params == False:
				self.Close()
				return

		super(CQBFrame, self).__init__(parent, id, title=con_params['name'], name=con_params['name'], size=(800, 600), *args, **kwargs)
		self.helper = CQBHelper.instance(con_params['id'], con_params)
		
		self.buildWindow()
		
		self.menu = view.CQBMenu(frame=self)
		self.toolbar = view.CQBToolbar().load(self)

		self.statusbar = self.CreateStatusBar()

		self.Show(True)