The Python X Library - Window

Go to the first, previous, next, last section, table of contents.

## Window

`Window` objects have additional objects, see section Resource and section Drawable.

Method: Window create_window ( x, y, width, height, border_width, depth, window_class = X.CopyFromParent, visual = X.CopyFromParent, **keys )
  Returns Window

Method: Window change_attributes ( onerror = None, **keys )

Method: Window get_attributes ( )
  Returns Card8('backing_store'), Card32('visual'), Card16('class'), Card8('bit_gravity'), Card8('win_gravity'), Card32('backing_bit_planes'), Card32('backing_pixel'), Card8('save_under'), Card8('map_is_installed'), Card8('map_state'), Card8('override_redirect'), Colormap('colormap', (X.NONE, )), Card32('all_event_masks'), Card32('your_event_mask'), Card16('do_not_propagate_mask'),

Method: Window destroy ( onerror = None )

Method: Window destroy_sub_windows ( onerror = None )

Method: Window change_save_set ( mode, onerror = None )

Method: Window reparent ( parent, x, y, onerror = None )

Method: Window map ( onerror = None )

Method: Window map_sub_windows ( onerror = None )

Method: Window unmap ( onerror = None )

Method: Window unmap_sub_windows ( onerror = None )

Method: Window configure ( onerror = None, **keys )

Method: Window circulate ( direction, onerror = None )

Method: Window query_tree ( )
  Returns Window('root'), Window('parent', (X.NONE, )), List('children', WindowObj),

Method: Window change_property ( property, type, format, data, mode = X.PropModeReplace, onerror = None )

Method: Window delete_property ( property, onerror = None )

Method: Window get_property ( property, type, offset, length, delete = 0 )
  Returns None or Card32('property_type'), Card8('format'), PropertyData('value'), Card32('bytes_after'),

Method: Window get_full_property ( property, type, sizehint = 10 )
  Returns None or Card32('property_type'), Card8('format'), PropertyData('value'), Card32('bytes_after'),

Method: Window list_properties ( )
  Returns List('atoms', Card32Obj),

Method: Window set_selection_owner ( selection, time, onerror = None )

Method: Window convert_selection ( selection, target, property, time, onerror = None )

Method: Window send_event ( event, event_mask = 0, propagate = 0, onerror = None )

Method: Window grab_pointer ( owner_events, event_mask, pointer_mode, keyboard_mode, confine_to, cursor, time )
  Returns Card8('status'),

Method: Window grab_button ( button, modifiers, owner_events, event_mask, pointer_mode, keyboard_mode, confine_to, cursor, onerror = None )

Method: Window ungrab_button ( button, modifiers, onerror = None )

Method: Window grab_keyboard ( owner_events, pointer_mode, keyboard_mode, time )
  Returns Card8('status'),

Method: Window grab_key ( key, modifiers, owner_events, pointer_mode, keyboard_mode, onerror = None )

Method: Window ungrab_key ( key, modifiers, onerror = None )

Method: Window query_pointer ( )
  Returns Card8('same_screen'), Window('root'), Window('child', (X.NONE, )), Int16('root_x'), Int16('root_y'), Int16('win_x'), Int16('win_y'), Card16('mask'),

Method: Window get_motion_events ( start, stop )
  Returns List('events', structs.TimeCoord),

Method: Window translate_coords ( src_window, src_x, src_y )
  Returns Window('child', (X.NONE, )), Int16('x'), Int16('y'),

Method: Window warp_pointer ( x, y, src_window = 0, src_x = 0, src_y = 0, src_width = 0, src_height = 0, onerror = None )

Method: Window set_input_focus ( revert_to, time, onerror = None )

Method: Window clear_area ( x = 0, y = 0, width = 0, height = 0, exposures = 0, onerror = None )

Method: Window create_colormap ( visual, alloc )
  Returns Colormap.

Method: Window list_installed_colormaps ( )
  Returns List('cmaps', ColormapObj),

Method: Window rotate_properties ( properties, delta, onerror = None )

Method: Window set_wm_name ( name, onerror = None )

Method: Window get_wm_name ( )
  Returns None or string.

Method: Window set_wm_icon_name ( name, onerror = None )

Method: Window get_wm_icon_name ( )
  Returns None or string.

Method: Window set_wm_class ( inst, cls, onerror = None )

Method: Window get_wm_class ( )
  Returns None or (isntance, class)

Method: Window set_wm_transient_for ( window, onerror = None )

Method: Window get_wm_transient_for ( )
  Returns None or Window.

Method: Window set_wm_protocols ( protocols, onerror = None )

Method: Window get_wm_protocols ( )
  Returns list of atoms.

Method: Window set_wm_colormap_windows ( windows, onerror = None )

Method: Window get_wm_colormap_windows ( )
  Returns list of Windows.

Method: Window set_wm_client_machine ( name, onerror = None )

Method: Window get_wm_client_machine ( )
  Returns None or string.

Method: Window set_wm_normal_hints ( hints = {}, onerror = None, **keys )

Method: Window get_wm_normal_hints ( )
  Returns Card32('flags'), Int32('min_width', default = 0), Int32('min_height', default = 0), Int32('max_width', default = 0), Int32('max_height', default = 0), Int32('width_inc', default = 0), Int32('height_inc', default = 0), Object('min_aspect', Aspect, default = (0, 0)), Object('max_aspect', Aspect, default = (0, 0)), Int32('base_width', default = 0), Int32('base_height', default = 0), Int32('win_gravity', default = 0),

Method: Window set_wm_hints ( hints = {}, onerror = None, **keys )

Method: Window get_wm_hints ( )
  Returns Card32('flags'), Card32('input', default = 0), Set('initial_state', 4, ( Xutil.NormalState, Xutil.IconicState ), default = Xutil.NormalState), Pixmap('icon_pixmap', default = 0), Window('icon_window', default = 0), Int32('icon_x', default = 0), Int32('icon_y', default = 0), Pixmap('icon_mask', default = 0), Window('window_group', default = 0),

Method: Window set_wm_state ( hints = {}, onerror = None, **keys )

Method: Window get_wm_state ( )
  Returns Set('state', 4, ( Xutil.WithdrawnState, Xutil.NormalState, Xutil.IconicState )), Window('icon', ( X.NONE, )),

Method: Window set_wm_icon_size ( hints = {}, onerror = None, **keys )

Method: Window get_wm_icon_size ( )
  Returns Card32('min_width'), Card32('min_height'), Card32('max_width'), Card32('max_height'), Card32('width_inc'), Card32('height_inc'),

Go to the first, previous, next, last section, table of contents.