The Python X Library: 6.6 Window
Window objects have additional objects, see Resource and Drawable.
- Method on Window: create_window ( x, y, width, height, border_width, depth, window_class = X.CopyFromParent, visual = X.CopyFromParent, **keys )
Returns Window
- Method on 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 on Window: query_tree ( )
Returns Window(’root’), Window(’parent’, (X.NONE, )), List(’children’, WindowObj),
- Method on Window: change_property ( property, type, format, data, mode = X.PropModeReplace, onerror = None )
- Method on Window: get_property ( property, type, offset, length, delete = 0 )
Returns None or Card32(’property_type’), Card8(’format’), PropertyData(’value’), Card32(’bytes_after’),
- Method on Window: get_full_property ( property, type, sizehint = 10 )
Returns None or Card32(’property_type’), Card8(’format’), PropertyData(’value’), Card32(’bytes_after’),
- Method on Window: grab_pointer ( owner_events, event_mask, pointer_mode, keyboard_mode, confine_to, cursor, time )
Returns Card8(’status’),
- Method on Window: grab_button ( button, modifiers, owner_events, event_mask, pointer_mode, keyboard_mode, confine_to, cursor, onerror = None )
- Method on Window: grab_keyboard ( owner_events, pointer_mode, keyboard_mode, time )
Returns Card8(’status’),
- Method on Window: grab_key ( key, modifiers, owner_events, pointer_mode, keyboard_mode, onerror = None )
- Method on 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 on Window: translate_coords ( src_window, src_x, src_y )
Returns Window(’child’, (X.NONE, )), Int16(’x’), Int16(’y’),
- Method on Window: warp_pointer ( x, y, src_window = 0, src_x = 0, src_y = 0, src_width = 0, src_height = 0, onerror = None )
- Method on 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 on 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 on Window: get_wm_state ( )
Returns Set(’state’, 4, ( Xutil.WithdrawnState, Xutil.NormalState, Xutil.IconicState )), Window(’icon’, ( X.NONE, )),
- Method on Window: get_wm_icon_size ( )
Returns Card32(’min_width’), Card32(’min_height’), Card32(’max_width’), Card32(’max_height’), Card32(’width_inc’), Card32(’height_inc’),
This document was generated on September 16, 2020 using texi2html 5.0.