PyGTK "assertion GTK_IS_WINDOW failed
Posted
by
iAndr0idOs
on Stack Overflow
See other posts from Stack Overflow
or by iAndr0idOs
Published on 2011-06-22T23:46:04Z
Indexed on
2011/06/23
0:23 UTC
Read the original article
Hit count: 201
I'm trying to build a web browser using PyGTK and PyWebKit
However, I'm pretty sure my question only concerns PyGTK
I have a custom gtk.Notebook class, with an "add tab" button as the last tab. When I click it, it gives me the error
/home/ruiqimao/workspace/PyBrowser/src/browser/__init__.py:161: GtkWarning: IA__gdk_window_get_cursor: assertion `GDK_IS_WINDOW (window)' failed gtk.main()
twice.
And then, my new tab won't show up.
I have no idea what is going on, so here is my whole code
If any of you could help me, that would be great!
Thanks!
[EDIT]: Just found out that the problem lies in the w.show_all() line What could this mean?
© Stack Overflow or respective owner