331e9795714a8526238c9eb134a45910da37418e
[theonering] / tests / dummy_hildon / hildon.py
1 import gobject
2 import gtk
3
4 class FileChooserDialog(gtk.FileChooserDialog):
5         """
6         @bug The buttons currently don't do anything
7         """
8
9         def __init__(self, *args, **kwds):
10                 super(FileChooserDialog, self).__init__(*args, **kwds)
11                 self.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL)
12                 self.add_button(gtk.STOCK_OK, gtk.RESPONSE_OK)
13
14
15 class Program(object):
16
17         def add_window(self, window):
18                 pass
19
20
21 class Window(gtk.Window, object):
22
23         def __init__(self):
24                 super(Window, self).__init__(gtk.WINDOW_TOPLEVEL)
25                 self.set_default_size(700, 500)
26
27         def set_menu(self, menu):
28                 self._hildonMenu = menu
29
30
31 gobject.type_register(Window)
32
33
34 def hildon_helper_set_thumb_scrollbar(widget, value):
35         pass