# > 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?
# First, there are modal and unmodal -dialogs. A modal
# dialog locks the GUI-thread and prevent that the user
# can swtich to an other window of the _same_ application.
# modal-dialog for win32
from win32com.client import Dispatch
shell = Dispatch("WScript.Shell")
# intButton = object.Popup(strText, [natSecondsToWait], [strTitle], [natType])
# http://msdn.microsoft.com/scripting/windowshost/wshdoc.exe
shell.Popup("Where do you want to go today?")
# If your code is absolutly hot ( atomic reactors ?? :) ) then
# You can set the "top-most" -flag for your dialog. This
# locks then really all other windows.
If You are familiar with the TCL-GUI-Classes:
then use the Tkinter - module.
If You are not familiar with any GUI:
then use the wxPython - module.
# According to my expiernce, it is one of the best ways.
If You using Windows and You are familiar with the Win-GUI-API:
then use the win32gui - module.
If You using Windows and You are familiar with the MFC-Classes:
then use the win32ui - module.
If You using Windows and You are familiar with DHTML + IE5:
then use the IE as GUI, it's very nice...
# Markus, and sorry for my "denglish" (deutsch+english)
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython