11 class HildonMeabook(Meabook):
12 def __init__(self, basedir):
13 self.window = hildon.StackableWindow()
14 self.window.set_title(_('Meabook'))
15 self.window.connect('destroy', self.exit)
17 menu = hildon.AppMenu()
18 self.window.set_app_menu(menu)
19 settings_button = hildon.Button(gtk.HILDON_SIZE_AUTO, \
20 hildon.BUTTON_ARRANGEMENT_HORIZONTAL, _('Settings'))
21 settings_button.connect('clicked', self.show_settings_dialog)
22 about_button = hildon.Button(gtk.HILDON_SIZE_AUTO, \
23 hildon.BUTTON_ARRANGEMENT_HORIZONTAL, _('About'))
24 about_button.connect('clicked', self.show_about_dialog)
25 menu.append(settings_button)
26 menu.append(about_button)
28 self.parea = hildon.PannableArea()
29 self.window.add(self.parea)
30 self.window.show_all()
35 def exit(self, event):
36 # add here DB disconnect
39 def show_settings_dialog(self, widget):
42 def show_about_dialog(self, widget):