Johann,
        Ok, thanks. 

> 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.

Glade v0.55 lets me specify the window type of the dialog box.  This
must be wrong then. 

I'll either fix glade or my highly-hacked version of glc.py. 

Thanks,
--Phil

Compaq:  High Performance Server Division/Benchmark Performance Engineering 
---------------- Alpha, The Fastest Processor on Earth --------------------
[EMAIL PROTECTED]        |C|O|M|P|A|Q|        [EMAIL PROTECTED]
------------------- See the results at www.spec.org -----------------------

On 13 Jun 2000, Johann Hibschman wrote:

> 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: slf._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
> 


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to