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