[maemo-developers] Python and Hildon: Toolbar and window title remain hidden
From: Matti Räty matti.raty at gmail.comDate: Sat Mar 22 19:38:20 EET 2008
- Previous message: Runtime exception in Multithreading N800
- Next message: Python and Hildon: Toolbar and window title remain hidden
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all, My question is about Python and Hildon UI. It might be pretty basic one but I haven't been able to find a solution. So, my problem is this. I am creating application with Python for Maemo but for some reason window title and toolbar remain hidden. I can add widgets to window and they work fine. So most likely I am missing just some minor thing. I am hoping someone could push me to the right direction :) Here is code snipset that I have : class MyApp(hildon.Program): def __init__(self): hildon.Program.__init__(self) self.window = hildon.Window() self.window.set_title("Title, not seen.") self.window.connect("destroy", gtk.main_quit) label = gtk.Label("Hello") self.window.add(label) self._create_toolbar() self.add_window(self.window) def _create_toolbar(self): toolbar = gtk.Toolbar() toolbar.set_border_width (3) toolbar.set_orientation ('horizontal') toolbar.set_style ('both-horiz') button = gtk.ToolButton (None, "TB Button") toolbar.insert (button, -1) button.show() toolbar.show() self.window.add_toolbar(toolbar) def run(self): self.window.show_all() gtk.main() run() is called when program is launched. So there it is. All pointers are very much welcome. Thanks in advance, -- -Matti <maemo-developers at maemo.org> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20080322/149517b3/attachment.htm
- Previous message: Runtime exception in Multithreading N800
- Next message: Python and Hildon: Toolbar and window title remain hidden
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]