[pygtk] Unable to Create a dialog box

Phillip Ezolt ezolt@perf.zko.dec.com
Tue, 13 Jun 2000 13:55:15 -0400 (EDT)

	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 *
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? 


Compaq:  High Performance Server Division/Benchmark Performance Engineering 
---------------- Alpha, The Fastest Processor on Earth --------------------
Phillip.Ezolt@compaq.com        |C|O|M|P|A|Q|        ezolt@perf.zko.dec.com
------------------- See the results at www.spec.org -----------------------