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()
...
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 Tue, 13 Jun 2000 [EMAIL PROTECTED] wrote:
> Hi Philip,
>
> You have 3 different types of windows which are identified by :
> WINDOW_TOP_LEVEL = 0
> WINDOW_DIALOG = 1
> WINDOW_POPUP = 2
>
> So 2 means that you requested a pop-up window.
>
>
> _____________________________________________________________
>
> LaBoufarikoise
>
>
> On Tue, 13 Jun 2000, Phillip Ezolt wrote:
>
> > Hi,
> > With pygtk-0.6.6 & gtk+-1.2.7, I can't seem to create a dialog box.
> >
> > The following piece of code:
> >
> > #!/usr/bin/env python
> > from gtk import *
> > AboutPhoenix=GtkDialog(WINDOW_POPUP)
> > print AboutPhoenix.__dict__
> > AboutPhoenix.set_title("About Phoenix")
> >
> > Yields the following error:
> > [ezolt@pulitzer phoenix2]$ ./hello2.py
> > {'_o': 2}
> > Traceback (innermost last):
> > File "./hello2.py", line 7, in ?
> > AboutPhoenix.set_title("About Phoenix")
> > File "/usr/lib/python1.5/site-packages/gtk.py", line 843, in set_title
> > _gtk.gtk_window_set_title(self._o, title)
> > TypeError: gtk_window_set_title, argument 1: expected GtkObject, int found
> >
> >
> > I've done some digging, and it appears that _gtk.gtk_dialog_new() is
> > returning '2'.
> >
> > What does '2' mean?
> >
> > 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 -----------------------
> >
> >
> > _______________________________________________
> > 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
>
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk