I'm writing a Python app that is tab-based, and I don't want it to have any additional pop-up dialogs.
I'd like to use the Gtk.AboutDialog
functionality, but I don't want it to appear as a separate window. Rather, I'd like it to be embedded in one of the tabs of my Gtk.Notebook
(which I've created with Glade).
I could not find any obvious way to do this. Does anyone have any pointers?
You can move content area (
GtkVBox
) fromGtkDialog
to anotherGtkContainer
, and then append toGtkNotebook
- using gtk.Widget.reparent() method.With interface created in Glade, You must do simple trick for this solution. Create "About" tab in notebook with appended
GtkBox
(with id for example "about_box"). Then you can do something like this:In some reasons Glade's
GtkAboutDialog
content area contains alsoGtkButtonBox
. If You don't need this buttons simply destroy them:If You want only 'Credits' button, without 'Close' button, do something like this: