Da: CÃsar Leonardo Blum Silveira [mailto:[EMAIL PROTECTED] 
Inviato: lun 11/04/2005 12.23 
A: pygtk; gtk-app-devel-list 
Cc: 
Oggetto: [pygtk] Popup Menu
Hi,
Is there a way I can make my application be just a popup menu?
I mean, when the user opens it, there is no window, it automatically
pops up a menu right where the mouse pointer is. Is that possible?

----------------------------
 
"When the user opens it" and "pops up a menu right where the mouse pointer is" 
seem the weak points of this strange idea; maybe you can explain more, 
including when the popup menu should disappear.
Christian understands your requirements as processing low-level mouse events; 
I'm more scared than him at the idea and I hope you mean "launching" the 
application like a regular one and getting a menu instead of a window.
 
Showing the popup doesn't require alien technology (in principle, you can paint 
menu items on a raw window without decorations), but when the application 
starts, the location of the mouse isn't always meaningful and well defined.
Your application could start from a script, from a command prompt or as a 
subprocess of another program, and any delay allows the mouse to move between 
the perceived "launch" and the appearance of the window.
 
What's wrong with a regular application window with buttons and/or menus? It 
can be moved where the user wants, it can be closed when the user has finished, 
and it's easier and more reliable both for the programmer and the user.
 
Lorenzo Gatti
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to