Esempio n. 1
0
class View(object):
    def __init__(self, root, controller):
        self.root = root
        self.controller = controller

        self.window_main = WindowMain(root, self, controller)
        self.window_about = WindowAbout()

        program = hildon.Program.get_instance()

        program.add_window(self.window_main.window)
        self.window_main.window.show_all()

        # program.set_common_toolbar(common_toolbar)
        # program.set_common_app_menu(common_menu)

        program.set_can_hibernate(True)

    def start(self):
        log.debug("started")
        self.window_main.reload()
        # self.window_main.text_entry.grab_focus()
        gtk.main()
Esempio n. 2
0
    def __init__(self, root, controller):
        self.root = root
        self.controller = controller

        self.window_main = WindowMain(root, self, controller)
        self.window_about = WindowAbout()

        program = hildon.Program.get_instance()

        program.add_window(self.window_main.window)
        self.window_main.window.show_all()

        # program.set_common_toolbar(common_toolbar)
        # program.set_common_app_menu(common_menu)

        program.set_can_hibernate(True)