You're not saying what GUI system your using -
but I assume windows.

option 1:
The preferrable way would be to let the OS do the work
and show an AppModal or SysModal dialog box - will
will take care of locking out other windows in your application,
or other apps, respectively.

option 2:
Use the old SetCapture/ReleaseCapture calls

option 3:
Use a global message hook fn. (Requires a C extension.)


mike

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Oisin
Mulvihill
Sent: Wednesday, August 08, 2001 10:58 AM
To: '[EMAIL PROTECTED]'
Subject: trapping all key and mouse events


Hi,

Does anyone know how I could get one window
with a button on it, to handle all mouse and 
keyboard events. Thus preventing a user from 
doing anything else but clicking on the button?
Any suggestions/comments on how I could go
about doing this would be greatly welcomed, 
thanks,

om
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to