On 28 May 2010 06:07, Smartboy <[email protected]> wrote: > Ok, first off, yes I'm trying to implement a ribbon-like interface, > Microsoft can sue me. :P > > Anyway, I am wondering if there is any way to put a toolbar inside a > notebook. I have tried it with my code, but the toolbars don't seem to > show, making me wonder if I am doing something wrong. Perhaps someone > could look at it and see what I did wrong, or tell me if it is > possible at all? I could find absolutely no documentation on this, > meaning its either really simple or impossible. > > Thanks to whomever helps, > Smartboy > > _______________________________________________ > pygtk mailing list [email protected] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://faq.pygtk.org/ >
You just needed to call filebar.show_all(). By default, filebar.show() will only show the Toolbar widget, not the buttons it contains. Alternatively, you can call self.window.show_all() to get GTK to display everything packed into the window. This saves you having to call .show() for every child widget.
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
