Tim Evans schrieb:
> Try this code instead, it tries to make a normal window into a popup 
> rather than a popup into something more like a normal window:
> 
> self.balloon = gtk.Window()
> def configure_balloon(balloon, parent):
>       balloon.set_transient_for(parent)
>       balloon.set_destroy_with_parent(True)
>       balloon.window.set_decorations(0)
>       balloon.window.set_accept_focus(False)
> 
> self.balloon.connect_after('realize', configure_balloon,
>                             self[PropertyDialogView.top])
> 


Yes, this has the bahavior that I wanted. Thank you.
I only had to change two things. One was that moving the balloon has to 
be done *after* showing it because otherwise the window manager would 
ignore the first placement. The other was adding

balloon.set_property("skip-taskbar-hint", True)

So the balloon is not shown as a window in the task bar.

Please can you explain why you connect the handler now to the realize 
signal instead of map. I tried both signals and it *seems* to work just 
exactly the same, is there a subtle difference?
Finally I rewrote the code without the connect_after at all and it also 
seems to work:

self.balloon = gtk.Window()
parent = self[PropertyDialogView.top]
self.balloon.set_transient_for(parent)
self.balloon.set_destroy_with_parent(True)
self.balloon.set_decorated(False)
self.balloon.set_accept_focus(False)
self.balloon.set_property("skip-taskbar-hint", True)

- freddy

        
                
___________________________________________________________ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to