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) -- Method on Widget object
Returns None. This function corresponds with XtAddCallback.
AddEventHandler (event_mask, nonmaskable, proc, client_data) -- Method on Widget object
Returns None. This function corresponds with XtAddEventHandler.
AddGrab (exclusive, spring_loaded) -- Method on Widget object
Returns None. This function corresponds with XtAddGrab.
AddRawEventHandler (event_mask, nonmaskable, proc, client_data) -- Method on Widget object
Returns None. This function corresponds with XtAddRawEventHandler.
BuildEventMask () -- Method on Widget object
Returns event_mask. This function corresponds with XtBuildEventMask.
CallCallbacks (callback_name, call_data) -- Method on Widget object
Returns None. This function corresponds with XtCallCallbacks.
ChangeWindowAttributes (window_attribute_dict) -- Method on Widget object
Returns None. This function corresponds with XChangeWindowAttributes.
Class () -- Method on Widget object
Returns widget_class. This function corresponds with XtClass.
Convert (from_value, to_type) -- Method on Widget object
Returns to_value. This function corresponds with XtConvertAndStore or XtConvert.
CreateColormap (vi_object, alloc) -- Method on Widget object
Returns cm_object. This function corresponds with XCreateColormap.
CreateGC (gc_dict) -- Method on Widget object
Returns gc_object. This function corresponds with XCreateGC.
CreateManagedWidget (name, widget_class, argdict) -- Method on Widget object
Returns widget. This function corresponds with XtCreateManagedWidget.
CreatePixmap ([width, height[, depth]]) -- Method on Widget object
Returns pixmap_object. This function corresponds with XCreatePixmap.
CreatePopupShell (name, widget_class, argdict) -- Method on Widget object
Returns widget. This function corresponds with XtCreatePopupShell.
CreateWidget (name, widget_class, argdict) -- Method on Widget object
Returns widget. This function corresponds with XtCreateWidget.
DefaultColormap () -- Method on Widget object
Returns cm_object. This function corresponds with DefaultColormapOfScreen.
DefaultColormapOfScreen () -- Method on Widget object
Returns cm_object. This function corresponds with DefaultColormapOfScreen.
DefaultVisual () -- Method on Widget object
Returns vi_object. This function corresponds with DefaultVisualOfScreen.
DefaultVisualOfScreen () -- Method on Widget object
Returns vi_object. This function corresponds with DefaultVisualOfScreen.
DefineCursor (cursor) -- Method on Widget object
Returns None. This function corresponds with XDefineCursor.
DestroyWidget () -- Method on Widget object
Returns None. This function corresponds with XtDestroyWidget.
Display () -- Method on Widget object
Returns display_object. This function corresponds with XtDisplay.
GetGC (gc_dict) -- Method on Widget object
Returns gc_object. This function corresponds with XtGetGC.
GetGeometry () -- Method on Widget object
Returns (root, x, y, width, height, border_width, depth). This function corresponds with XGetGeometry.
GetValues (name_list) -- Method on Widget object
Returns argdict. This function corresponds with XtGetValues.
GetVisualInfo (template_dict) -- Method on Widget object
Returns vi_object_list. This function corresponds with XGetVisualInfo.
GetWMNormalHints () -- Method on Widget object
Returns hintdict. This function corresponds with XGetWMNormalHints.
GrabButton (button, modifiers, owner_events, event_mask, pointer_mode, keyboard_mode, confine_to_widget, cursor) -- Method on Widget object
Returns None. This function corresponds with XGrabButton.
HasCallbacks (callback_name) -- Method on Widget object
Returns callback_status. This function corresponds with XtHasCallbacks.
HeightMMOfScreen () -- Method on Widget object
Returns height_mm. This function corresponds with HeightMMOfScreen.
HeightOfScreen () -- Method on Widget object
Returns height. This function corresponds with HeightOfScreen.
InstallAccelerators (source) -- Method on Widget object
Returns None. This function corresponds with XtInstallAccelerators.
InstallAllAccelerators (source) -- Method on Widget object
Returns None. This function corresponds with XtInstallAllAccelerators.
IsComposite () -- Method on Widget object
Returns success. This function corresponds with XtIsComposite.
IsManaged () -- Method on Widget object
Returns success. This function corresponds with XtIsManaged.
IsRealized () -- Method on Widget object
Returns success. This function corresponds with XtIsRealized.
IsSensitive () -- Method on Widget object
Returns success. This function corresponds with XtIsSensitive.
IsSubclass (widget_class) -- Method on Widget object
Returns success. This function corresponds with XtIsSubclass.
ListFonts (pattern) -- Method on Widget object
Returns font_list. This function corresponds with XListFonts.
LoadQueryFont (name) -- Method on Widget object
Returns font_object. This function corresponds with XLoadQueryFont.
LowerWindow () -- Method on Widget object
Returns None. This function corresponds with XLowerWindow.
ManageChild () -- Method on Widget object
Returns None. This function corresponds with XtManageChild.
MapWidget () -- Method on Widget object
Returns None. This function corresponds with XtMapWidget.
Name () -- Method on Widget object
Returns None. This function corresponds with XtName.
NameToWidget (name) -- Method on Widget object
Returns widget. This function corresponds with XtNameToWidget.
Parent () -- Method on Widget object
Returns parent_widget. This function corresponds with XtParent.
Popdown () -- Method on Widget object
Returns None. This function corresponds with XtPopdown.
Popup (grab_kind) -- Method on Widget object
Returns None. This function corresponds with XtPopup.
QueryPointer () -- Method on Widget object
Returns (root, child, root_x, root_y, win_x, win_y, mask). This function corresponds with XQueryPointer.
RaiseWindow () -- Method on Widget object
Returns None. This function corresponds with XRaiseWindow.
ReadBitmapFile (file) -- Method on Widget object
Returns (width, height, pixmap_object, hotspot_x, hotspot_y). This function corresponds with XReadBitmapFile.
RealizeWidget () -- Method on Widget object
Returns None. This function corresponds with XtRealizeWidget.
RemoveAllCallbacks (callback_name) -- Method on Widget object
Returns None. This function corresponds with XtRemoveAllCallbacks.
RemoveCallback (callback_name, callback, client_data) -- Method on Widget object
Returns None. This function corresponds with XtRemoveAllCallbacks.
RemoveEventHandler (event_mask, nonmaskable, proc, client_data) -- Method on Widget object
Returns None. This function corresponds with XtRemoveEventHandler.
RemoveGrab () -- Method on Widget object
Returns None. This function corresponds with XtRemoveGrab.
RemoveRawEventHandler (event_mask, nonmaskable, proc, client_data) -- Method on Widget object
Returns None. This function corresponds with XtRemoveRawEventHandler.
SetMappedWhenManaged (map_when_managed) -- Method on Widget object
Returns None. This function corresponds with XtSetMappedWhenManaged.
SetSensitive (sensitive) -- Method on Widget object
Returns None. This function corresponds with XtSetSensitive.
SetValues (argdict) -- Method on Widget object
Returns None. This function corresponds with XtSetValues.
SetWMNormalHints (hintdict) -- Method on Widget object
Returns None. This function corresponds with XSetWMNormalHints.
SetWindowColormap (cm_object) -- Method on Widget object
Returns None. This function corresponds with XSetWindowColormap.
Superclass () -- Method on Widget object
Returns widget_class. This function corresponds with XtSuperclass.
TranslateCoords (x, y) -- Method on Widget object
Returns (rootx, rooty). This function corresponds with XtTranslateCoords.
UndefineCursor () -- Method on Widget object
Returns None. This function corresponds with XUndefineCursor.
UngrabButton (button, modifiers) -- Method on Widget object
Returns None. This function corresponds with XUngrabButton.
UnmanageChild () -- Method on Widget object
Returns None. This function corresponds with XtUnmanageChild.
UnmapWidget () -- Method on Widget object
Returns None. This function corresponds with XtUnmapWidget.
UnrealizeWidget () -- Method on Widget object
Returns None. This function corresponds with XtUnrealizeWidget.
WidthMMOfScreen () -- Method on Widget object
Returns width_mm. This function corresponds with WidthMMOfScreen.
WidthOfScreen () -- Method on Widget object
Returns width. This function corresponds with WidthOfScreen.
Window () -- Method on Widget object
Returns window. This function corresponds with XtWindow.

Menu

Composite widget methods