[pygtk] Need help with gtk.Notebook
Kunal Sarkhel
theninja at bluedevs.net
Mon Mar 30 01:25:54 WST 2009
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ced.py
Type: text/x-python
Size: 4220 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20090329/30695a26/attachment.py
More information about the pygtk
mailing list