def run(self):
        self.show_form()

        AppBase.run(self)

        self.hide_form()
        return self.res
    def __init__(self, pCamps, gjlib):

        AppBase.__init__(self, gjlib, root="frm_cercador")
        self.camps = pCamps
        self.res = {}

        fila = 0
        self.taula = self.get_widget("taula")
        self.taula.resize(len(self.camps.obte_camps_cerca()), 2)

        for x in self.camps.obte_camps_cerca():

            etiqueta = gtk.Label(self.camps.obte_etiqueta(x))
            etiqueta.show()
            self.taula.attach(etiqueta, 0, 1, fila, fila + 1)

            entrada = gtk.Entry()
            entrada.set_name(x)
            entrada.show()
            self.taula.attach(entrada, 1, 2, fila, fila + 1)

            fila += 1
示例#3
0
	def __init__( self, gjlib ):
		
		AppBase.__init__(self, gjlib,  root="frmmecanic")
示例#4
0
	def run(self):
		self.show_form()
		
		AppBase.run( self )
		
		self.hide_form()
示例#5
0
	def __init__(self, gjlib):
		
		AppBase.__init__(self, gjlib, root="dlgError")
    def __init__(self, gjlib):

        AppBase.__init__(self, gjlib, root="frm_dl_esborra")
        self.esborra = False
示例#7
0
    def __init__(self, gjlib):

        AppBase.__init__(self, gjlib, root="frmmarca")
示例#8
0
	def __init__( self,  gjlib):
				
		AppBase.__init__(self, gjlib, root="frmgesjo")