Esempio n. 1
0
 def on_tbtnNuevoProyecto_clicked(self, *args):
     modelo = self.lvwClase.get_model()   
     dlg = dlgProyecto(padre=self.wnPrincipal)
     response = dlg.dlgProyecto.run()
     if response == gtk.RESPONSE_OK:
         path = dlg.entRuta.get_text() + "/" + dlg.entNombre.get_text()
         treeIter = modelo.append(None, [dlg.entNombre.get_text(), path])
         self.nombre = dlg.entNombre.get_text()
         self.path = path
     
     DjangoGui.escribe(self.lvwClase.get_model())
     escribe_urls.escribe(path)
Esempio n. 2
0
 def on_tbtnAgregarAplicacion_clicked(self, *args):
     modelo, puntero = self.lvwClase.get_selection().get_selected()
     if modelo is None or puntero is None:
         return
 
     dlg = dlgAplicacion(padre=self.wnPrincipal)
     response = dlg.dlgAplicacion.run()
     puntero = modelo.get_iter_first() 
         
     if response == gtk.RESPONSE_OK:
         modelo.append(puntero, [dlg.entAplicacion.get_text(), "aplicacion"])
    
         crear_aplicacion(modelo.get_value(puntero, 1),
                           dlg.entAplicacion.get_text())
         DjangoGui.escribe(self.lvwClase.get_model())
         self.apps.append("%s.%s" %(self.nombre, dlg.entAplicacion.get_text()))
         self.escribe_apps()
         
     self.lvwClase.expand_all()