Subversion Repositories basico

Compare Revisions

Ignore whitespace Rev 386 → Rev 387

/branches/BR-0.4/basico/basico.py
180,9 → 180,8
"""
Start Basico
"""
self.srvdrv = self.get_service('Driver')
self.srvgui = self.get_service('GUI')
self.srvgui.run()
GUI = self.get_service('GUI')
GUI.run()
 
 
def main():
/branches/BR-0.4/basico/services/srv_gui.py
46,11 → 46,6
self.my_app_settings = "Primary application instance."
self.window = self.srvgui.add_widget('gtk_app_window_main', GtkAppWindow(self))
self.window.connect("delete-event", self.srvgui.quit)
# ~ db = self.app.get_service('DB')
# ~ gui = self.app.get_service('GUI')
# ~ db.load_notes()
# ~ visor_sapnotes = gui.get_widget('visor_sapnotes')
# ~ visor_sapnotes.populate()
self.log.debug("New Basico instance created")
self.srvuif.statusbar_msg("Welcome to Basico", True)
else:
58,6 → 53,7
splash = self.app.get_splash()
splash.hide()
 
 
def get_services(self):
"""
Missing method docstring (missing-docstring)
106,9 → 102,9
GObject.threads_init()
self.uiapp = UIApp(self.app)
self.log.debug("Setting up GUI")
window = self.get_window()
splash = self.app.get_splash()
splash.show()
# ~ window = self.get_window()
# ~ splash = self.app.get_splash()
# ~ splash.show()
self.uiapp.run()
 
 
/branches/BR-0.4/basico/widgets/wdg_splash.py
79,7 → 79,7
# Without this ugly one-liner, the window won't show
while Gtk.events_pending():
Gtk.main_iteration()
self.log.debug("Show the splash screen")
# ~ self.log.debug("Show the splash screen")
 
 
def prep_hex_color(self, hex_color):
113,10 → 113,10
 
def hide(self):
self.window.hide()
self.log.debug("Hide the splash screen")
# ~ self.log.debug("Hide the splash screen")
 
 
def destroy(self):
while Gtk.events_pending(): Gtk.main_iteration()
self.window.destroy()
self.log.debug("Hide the splash screen")
# ~ self.log.debug("Hide the splash screen")