Phillip Ezolt writes:
> Hmmm..
> If the return code of gtk_dialog_new() is a window type (and
> not an object), pygtk is doing something wrong. It seems be expecting
> a GtkObject. Any ideas?
> from gtk.py:
> ...
> class GtkDialog(GtkWindow):
> get_type = _gtk.gtk_dialog_get_type
> def __init__(self, _obj=None):
> if _obj: self._o = _obj; return
> self._o = _gtk.gtk_dialog_new()
Well, apparently this line is not allowed
>> > AboutPhoenix=GtkDialog(WINDOW_POPUP)
since GtkDialog expects its argument, if any, to be an object. If you
have to specify the window type, you have to create your dialog window
from scratch.
AboutPhoenix=GtkDialog()
should work. What you're doing is telling it that the underlying
dialog object is, in fact, 2, which it doesn't like.
--
Johann Hibschman [EMAIL PROTECTED]
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk