Rev 376 | Rev 390 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 376 | Rev 387 | ||
---|---|---|---|
Line 44... | Line 44... | ||
44 | if not hasattr(self, "my_app_settings"): |
44 | if not hasattr(self, "my_app_settings"): |
45 | self.hold() |
45 | self.hold() |
46 | self.my_app_settings = "Primary application instance." |
46 | self.my_app_settings = "Primary application instance." |
47 | self.window = self.srvgui.add_widget('gtk_app_window_main', GtkAppWindow(self)) |
47 | self.window = self.srvgui.add_widget('gtk_app_window_main', GtkAppWindow(self)) |
48 | self.window.connect("delete-event", self.srvgui.quit) |
48 | self.window.connect("delete-event", self.srvgui.quit) |
49 | # ~ db = self.app.get_service('DB')
|
- | |
50 | # ~ gui = self.app.get_service('GUI')
|
- | |
51 | # ~ db.load_notes()
|
- | |
52 | # ~ visor_sapnotes = gui.get_widget('visor_sapnotes')
|
- | |
53 | # ~ visor_sapnotes.populate()
|
- | |
54 | self.log.debug("New Basico instance created") |
49 | self.log.debug("New Basico instance created") |
55 | self.srvuif.statusbar_msg("Welcome to Basico", True) |
50 | self.srvuif.statusbar_msg("Welcome to Basico", True) |
56 | else:
|
51 | else:
|
57 | self.log.debug("Basico is already running!") |
52 | self.log.debug("Basico is already running!") |
58 | splash = self.app.get_splash() |
53 | splash = self.app.get_splash() |
59 | splash.hide() |
54 | splash.hide() |
- | 55 | ||
60 | 56 | ||
61 | def get_services(self): |
57 | def get_services(self): |
62 | """
|
58 | """
|
63 | Missing method docstring (missing-docstring)
|
59 | Missing method docstring (missing-docstring)
|
64 | """
|
60 | """
|
Line 104... | Line 100... | ||
104 | Let GUI service start
|
100 | Let GUI service start
|
105 | """
|
101 | """
|
106 | GObject.threads_init() |
102 | GObject.threads_init() |
107 | self.uiapp = UIApp(self.app) |
103 | self.uiapp = UIApp(self.app) |
108 | self.log.debug("Setting up GUI") |
104 | self.log.debug("Setting up GUI") |
109 | window = self.get_window() |
- | |
110 | splash = self.app.get_splash() |
- | |
111 | splash.show() |
- | |
- | 105 | # ~ window = self.get_window()
|
|
- | 106 | # ~ splash = self.app.get_splash()
|
|
- | 107 | # ~ splash.show()
|
|
112 | self.uiapp.run() |
108 | self.uiapp.run() |
113 | 109 | ||
114 | 110 | ||
115 | def quit(self, window, event): |
111 | def quit(self, window, event): |
116 | """
|
112 | """
|