Display object -- X Python Reference Manual

Next: Region object Prev: Xlib functions and variables Up: Xlib Top: Top

# 2.2. Display object

A display object can only be acquired by using the widget method `Display` or by the `Xt` function `OpenDisplay`.

Display objects (display_objects) have the following methods:

Bell (percent)
  Returns `None`. This function corresponds with `XBell`.

CheckMaskEvent (event_mask)
  Returns `None`. This function corresponds with `XCheckMaskEvent`.

ConnectionNumber ()
  Returns `connection_number`. This function corresponds with `ConnectionNumber`.

CreateFontCursor (shape)
  Returns `cursor`. This function corresponds with `XCreateFontCursor`.

Flush ()
  Returns `None`. This function corresponds with `XFlush`.

GetAtomName (atom)
  Returns `atom_name`. This function corresponds with `XGetAtomName`.

GetVisualInfo (template_dict)
  Returns `vi_object_list`. This function corresponds with `XGetVisualInfo`.

InternAtom (atom_name, only_if_exists)
  Returns `atom`. This function corresponds with `XInternAtom`.

LockDisplay ()
  Returns `None`. This function corresponds with `XLockDisplay`.

NextEvent ()
  Returns `event`. This function corresponds with `XNextEvent`.

PeekEvent ()
  Returns `event`. This function corresponds with `XPeekEvent`.

PutBackEvent (event)
  Returns `None`. This function corresponds with `XPutBackEvent`.

SendEvent (window, propagate, event_mask, event)
  Returns `success`. This function corresponds with `XSendEvent`.

Synchronize (onoff)
  Returns `None`. This function corresponds with `XSynchronize`.

UnlockDisplay ()
  Returns `None`. This function corresponds with `XUnlockDisplay`.

Next: Region object Prev: Xlib functions and variables Up: Xlib Top: Top