Widget object -- X Python Reference Manual

Next: Visual Info object Prev: Widget Class object Up: Xt Top: Top

# 3.3. Widget object

Widget objects have the following methods:

AddCallback (callback_name, callback, client_data)
  Returns `None`. This function corresponds with `XtAddCallback`.

AddEventHandler (event_mask, nonmaskable, proc, client_data)
  Returns `None`. This function corresponds with `XtAddEventHandler`.

AddGrab (exclusive, spring_loaded)
  Returns `None`. This function corresponds with `XtAddGrab`.

AddRawEventHandler (event_mask, nonmaskable, proc, client_data)
  Returns `None`. This function corresponds with `XtAddRawEventHandler`.

AugmentTranslations (translation_object)
  Returns `None`. This function corresponds with `XtAugmentTranslations`.

BuildEventMask ()
  Returns `event_mask`. This function corresponds with `XtBuildEventMask`.

CallCallbacks (callback_name, call_data)
  Returns `None`. This function corresponds with `XtCallCallbacks`.

CancelSelectionRequest (selection)
  Returns `None`. This function corresponds with `XtCancelSelectionRequest`.

ChangeWindowAttributes (window_attribute_dict)
  Returns `None`. This function corresponds with `XChangeWindowAttributes`.

Class ()
  Returns `widget_class`. This function corresponds with `XtClass`.

Convert (from_value, to_type)
  Returns `to_value`. This function corresponds with `XtConvertAndStore or XtConvert`.

CreateColormap (vi_object, alloc)
  Returns `cm_object`. This function corresponds with `XCreateColormap`.

CreateGC (gc_dict)
  Returns `gc_object`. This function corresponds with `XCreateGC`.

CreateManagedWidget (name, widget_class, argdict)
  Returns `widget`. This function corresponds with `XtCreateManagedWidget`.

CreatePixmap ([width, height[, depth]])
  Returns `pixmap_object`. This function corresponds with `XCreatePixmap`.

CreatePopupShell (name, widget_class, argdict)
  Returns `widget`. This function corresponds with `XtCreatePopupShell`.

CreateSelectionRequest (selection)
  Returns `None`. This function corresponds with `XtCreateSelectionRequest`.

CreateWidget (name, widget_class, argdict)
  Returns `widget`. This function corresponds with `XtCreateWidget`.

DefaultColormap ()
  Returns `cm_object`. This function corresponds with `DefaultColormapOfScreen`.

DefaultColormapOfScreen ()
  Returns `cm_object`. This function corresponds with `DefaultColormapOfScreen`.

DefaultVisual ()
  Returns `vi_object`. This function corresponds with `DefaultVisualOfScreen`.

DefaultVisualOfScreen ()
  Returns `vi_object`. This function corresponds with `DefaultVisualOfScreen`.

DefineCursor (cursor)
  Returns `None`. This function corresponds with `XDefineCursor`.

DestroyWidget ()
  Returns `None`. This function corresponds with `XtDestroyWidget`.

DisownSelection (selection, time)
  Returns `None`. This function corresponds with `XtDisownSelection`.

Display ()
  Returns `display_object`. This function corresponds with `XtDisplay`.

GetGC (gc_dict)
  Returns `gc_object`. This function corresponds with `XtGetGC`.

GetGeometry ()
  Returns `(root, x, y, width, height, border_width, depth)`. This function corresponds with `XGetGeometry`.

GetSelectionParameters (selection, request_id)
  Returns `(type, value, length, format)` or `None`. This function corresponds with `XtGetSelectionParameters`.

GetSelectionRequest (selection, request_id)
  Returns `event`. This function corresponds with `XtGetSelectionRequest`.

GetSelectionValue (selection, target, callback, client_data, time)
  Returns `None`. This function corresponds with `XtGetSelectionValue`.

GetSelectionValueIncremental (selection, target, callback, client_data, time)
  Returns `None`. This function corresponds with `XtGetSelectionValueIncremental`.

GetSelectionValues (selection, target[], callback, client_data[], time)
  Returns `None`. This function corresponds with `XtGetSelectionValues`.

GetSelectionValuesIncremental (selection, target[], callback, client_data[], time)
  Returns `None`. This function corresponds with `XtGetSelectionValuesIncremental`.

GetValues (name_list)
  Returns `argdict`. This function corresponds with `XtGetValues`.

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

GetWMNormalHints ()
  Returns `hintdict`. This function corresponds with `XGetWMNormalHints`.

GrabButton (button, modifiers, owner_events, event_mask, pointer_mode, keyboard_mode, confine_to_widget, cursor)
  Returns `None`. This function corresponds with `XGrabButton`.

HasCallbacks (callback_name)
  Returns `callback_status`. This function corresponds with `XtHasCallbacks`.

HeightMMOfScreen ()
  Returns `height_mm`. This function corresponds with `HeightMMOfScreen`.

HeightOfScreen ()
  Returns `height`. This function corresponds with `HeightOfScreen`.

InstallAccelerators (source)
  Returns `None`. This function corresponds with `XtInstallAccelerators`.

InstallAllAccelerators (source)
  Returns `None`. This function corresponds with `XtInstallAllAccelerators`.

IsComposite ()
  Returns `success`. This function corresponds with `XtIsComposite`.

IsManaged ()
  Returns `success`. This function corresponds with `XtIsManaged`.

IsRealized ()
  Returns `success`. This function corresponds with `XtIsRealized`.

IsSensitive ()
  Returns `success`. This function corresponds with `XtIsSensitive`.

IsSubclass (widget_class)
  Returns `success`. This function corresponds with `XtIsSubclass`.

ListFonts (pattern)
  Returns `font_list`. This function corresponds with `XListFonts`.

LoadQueryFont (name)
  Returns `font_object`. This function corresponds with `XLoadQueryFont`.

LowerWindow ()
  Returns `None`. This function corresponds with `XLowerWindow`.

ManageChild ()
  Returns `None`. This function corresponds with `XtManageChild`.

MapWidget ()
  Returns `None`. This function corresponds with `XtMapWidget`.

Name ()
  Returns `None`. This function corresponds with `XtName`.

NameToWidget (name)
  Returns `widget`. This function corresponds with `XtNameToWidget`.

OverrideTranslations (translation_object)
  Returns `None`. This function corresponds with `XtOverrideTranslations`.

OwnSelection (selection, time, convert_proc, lose_selection, done_proc)
  Returns `success`. This function corresponds with `XtOwnSelection`.

Parent ()
  Returns `parent_widget`. This function corresponds with `XtParent`.

Popdown ()
  Returns `None`. This function corresponds with `XtPopdown`.

Popup (grab_kind)
  Returns `None`. This function corresponds with `XtPopup`.

QueryPointer ()
  Returns `(root, child, root_x, root_y, win_x, win_y, mask)`. This function corresponds with `XQueryPointer`.

RaiseWindow ()
  Returns `None`. This function corresponds with `XRaiseWindow`.

ReadBitmapFile (file)
  Returns `(width, height, pixmap_object, hotspot_x, hotspot_y)`. This function corresponds with `XReadBitmapFile`.

RealizeWidget ()
  Returns `None`. This function corresponds with `XtRealizeWidget`.

RemoveAllCallbacks (callback_name)
  Returns `None`. This function corresponds with `XtRemoveAllCallbacks`.

RemoveCallback (callback_name, callback, client_data)
  Returns `None`. This function corresponds with `XtRemoveAllCallbacks`.

RemoveEventHandler (event_mask, nonmaskable, proc, client_data)
  Returns `None`. This function corresponds with `XtRemoveEventHandler`.

RemoveGrab ()
  Returns `None`. This function corresponds with `XtRemoveGrab`.

RemoveRawEventHandler (event_mask, nonmaskable, proc, client_data)
  Returns `None`. This function corresponds with `XtRemoveRawEventHandler`.

SendSelectionRequest (selection, time)
  Returns `None`. This function corresponds with `XtSendSelectionRequest`.

SetMappedWhenManaged (map_when_managed)
  Returns `None`. This function corresponds with `XtSetMappedWhenManaged`.

SetSelectionParameters (selection, type, value, length, format)
  Returns `None`. This function corresponds with `XtSetSelectionParameters`.

SetSensitive (sensitive)
  Returns `None`. This function corresponds with `XtSetSensitive`.

SetValues (argdict)
  Returns `None`. This function corresponds with `XtSetValues`.

SetWMNormalHints (hintdict)
  Returns `None`. This function corresponds with `XSetWMNormalHints`.

SetWindowColormap (cm_object)
  Returns `None`. This function corresponds with `XSetWindowColormap`.

Superclass ()
  Returns `widget_class`. This function corresponds with `XtSuperclass`.

TranslateCoords (x, y)
  Returns `(rootx, rooty)`. This function corresponds with `XtTranslateCoords`.

UndefineCursor ()
  Returns `None`. This function corresponds with `XUndefineCursor`.

UngrabButton (button, modifiers)
  Returns `None`. This function corresponds with `XUngrabButton`.

UninstallTranslations ()
  Returns `None`. This function corresponds with `XtUninstallTranslations`.

UnmanageChild ()
  Returns `None`. This function corresponds with `XtUnmanageChild`.

UnmapWidget ()
  Returns `None`. This function corresponds with `XtUnmapWidget`.

UnrealizeWidget ()
  Returns `None`. This function corresponds with `XtUnrealizeWidget`.

WidthMMOfScreen ()
  Returns `width_mm`. This function corresponds with `WidthMMOfScreen`.

WidthOfScreen ()
  Returns `width`. This function corresponds with `WidthOfScreen`.

Window ()
  Returns `window`. This function corresponds with `XtWindow`.

Next: Visual Info object Prev: Widget Class object Up: Xt Top: Top