[pygtk] Need help with gtk.Notebook
Gabriele Lanaro
gabriele.lanaro at gmail.com
Mon Mar 30 02:48:38 WST 2009
I think that you need to show the notebook with the method after each call, for example with a
self.window.show_all() or similar at the end of the callback.
On Sun, 29 Mar 2009 13:25:54 -0400
Kunal Sarkhel <theninja a bluedevs.net> wrote:
> I'm just writing a simple text editor. My code is attached.
>
> I have a function called openPage() that can take a filename or None. It
> then appends a gtk.SourceView to the gtk.Notebook. This works perfectly
> if I am calling openPage() from some place within my code, it works
> fine. However, when I connect it to a widget as a callback (like from
> the activate signal on a menuitem), it executes the code, but no page is
> appended to the notebook. This is pretty weird, considering the
> gtk.Notebook.append() function does get executed.
>
> If anyone could help me, that would be really awesome. I've been trying
> to fix this for a few hours.
>
> If for any reason, the attachment gets scrubbed or something, the code
> is also up at http://pastie.org/430613
>
> NOTE: I'm new to this mailing list, so don't kill me if I have broken
> any unwritten/written rules. Just send me a private email and point out
> any mistakes.
>
--
Gabriele Lanaro <gabriele.lanaro a gmail.com>
More information about the pygtk
mailing list