[pygtk] menu and notebook not staying on a same window.

krishnakant Mane krmane at gmail.com
Tue Mar 4 02:26:02 WST 2008


hello,
I am creating an application where there is a menu bar and I also need
to have a notebook on that same window.
when any menu item is clicked the notebook will be loaded with the
respective page.
but when I add the menu and notebook I get the following.
GtkWarning: Attempting to add a widget with type GtkNotebook to a
GtkWindow, but as a GtkBin subclass a GtkWindow can only contain one
widget at a time; it already contains a widget of type GtkMenuBar
  self.win.add(self.notebook)

can any one tell me how to get around this?
regards.
Krishnakant.


More information about the pygtk mailing list