GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||
GeezerVison is showing python-xlib.github.io — The Python X Library: 4.2 CatchError
4.2 CatchError
Pass the
Since the X protocol is mostly asynchronous any error we’re watching for
might not have been received when we call An example of using # Resize and the foo window
# If it has been destroyed since we looked at it the last time,
# reset variable foo to None
# Create a error handler for BadWindow errors
ec = error.CatchError(error.BadWindow)
# Perform the operation
foo.configure(width = 100, height = 200, onerror = ec)
# Sync communication with server
display.sync()
# And check if there was any error
if ec.get_error():
foo = None
This document was generated on September 16, 2020 using texi2html 5.0.
| ||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |