Re: how to trigger an event when window is clicked?

Neil Hughes <[email protected]> Tue, 05 Jan 2010 10:02:04 +0000
Newsgroups gmane.comp.python.pythoncard
Organization Support4Omega Ltd.
Message-ID <[email protected]>
On 5/1/10 03:42, Alec Bennett wrote:
> I need to trigger an event when the user clicks anywhere on my 
> PythonCard window, as opposed to on a specific object. I'm wondering if 
> anyone can think of any clever ways to do this?
> 
> Ideally I need the coordinates of that click as well, but I think I can 
> find that myself.

Hmmm...I'm not near my PythonCard machine today (don't use it much 
nowadays, unfortunately), but am I right in thinking that on_mouseUp 
only gets called from components and not the background window?

I don't think PythonCard offers the equivalant of a wx.Frame - could you 
create a blank Image component and make it the full size of the window, 
so it would catch mouse events not picked up by you other components?

--
Neil Hughes


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev