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

Reply via email to