summaryrefslogtreecommitdiffstats
path: root/Doc/libmacui.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-08-18 15:14:26 (GMT)
committerGuido van Rossum <guido@python.org>1997-08-18 15:14:26 (GMT)
commite229d8636dd42e3979afe1d5fc59890a32b9ad42 (patch)
tree9f972f31d6df57ac89c417391ea55d4d55e8da5f /Doc/libmacui.tex
parent9918e0c750d7a78dd913ba6b3224041176c4e015 (diff)
downloadcpython-e229d8636dd42e3979afe1d5fc59890a32b9ad42.zip
cpython-e229d8636dd42e3979afe1d5fc59890a32b9ad42.tar.gz
cpython-e229d8636dd42e3979afe1d5fc59890a32b9ad42.tar.bz2
Misc Mac mods by Jack. Added libmacic.tex, and these patches:
libmacfs.tex Document NewAliasMinimalFromFullPath libmacos.tex Document SetEventHandler and SchedParams libmacui.tex Document asynchronous event handling libmailbox.tex Removed mime-turds that somehow got in here
Diffstat (limited to 'Doc/libmacui.tex')
-rw-r--r--Doc/libmacui.tex27
1 files changed, 26 insertions, 1 deletions
diff --git a/Doc/libmacui.tex b/Doc/libmacui.tex
index d519bf5..8e42e6a 100644
--- a/Doc/libmacui.tex
+++ b/Doc/libmacui.tex
@@ -4,7 +4,9 @@
The \code{EasyDialogs} module contains some simple dialogs for
the Macintosh, modelled after the \code{stdwin} dialogs with similar
-names.
+names. All routines have an optional parameter \var{id} with which you
+can override the DLOG resource used for the dialog, as long as the
+item numbers correspond. See the source for details.
The \code{EasyDialogs} module defines the following functions:
@@ -170,6 +172,29 @@ The event loop is split into many small parts, each of which can be
overridden. The default methods take care of dispatching events to
windows and dialogs, handling drags and resizes, Apple Events, events
for non-FrameWork windows, etc.
+
+In general, all event handlers should return 1 if the event is fully
+handled and 0 otherwise (because the front window was not a FrameWork
+window, for instance). This is needed so that update events and such
+can be passed on to other windows like the Sioux console window.
+Calling \code{MacOS.HandleEvent} is not allowed within \var{our_dispatch}
+or its callees, since this may result in an infinite loop if the
+code is called through the python inner-loop event handler.
+\end{funcdesc}
+
+\begin{funcdesc}{asyncevents}{onoff}
+Call this method with a nonzero parameter to enable
+asynchronous event handling. This will tell the inner interpreter loop
+to call the application event handler \var{async_dispatch} whenever events
+are available. This will cause FrameWork window updates and the user
+interface to remain working during long computations, but will slow the
+interpreter down and may cause surprising results in non-reentrant code
+(such as FrameWork itself). By default \var{async_dispatch} will immedeately
+call \var{our_dispatch} but you may override this to handle only certain
+events asynchronously. Events you do not handle will be passed to Sioux
+and such.
+
+The old on/off value is returned.
\end{funcdesc}
\begin{funcdesc}{_quit}{}