Module Expr Str Import alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Str body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpMult Num AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpMult Num AttributeLoad NameLoad attr Assign NameStore BinOpAdd AttributeLoad NameLoad attr BinOpDiv BinOpSub AttributeLoad NameLoad attr NameLoad Num Assign NameStore BinOpAdd AttributeLoad NameLoad attr BinOpDiv BinOpSub AttributeLoad NameLoad attr NameLoad Num Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr NameLoad NameLoad body Return AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assert Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Assign NameStore BinOpBitOr BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore Num orelse Assign NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd AttributeLoad NameLoad attr BinOpDiv BinOpSub AttributeLoad NameLoad attr NameLoad Num Assign NameStore BinOpAdd AttributeLoad NameLoad attr BinOpDiv BinOpSub AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad finalbody Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BoolOpAnd CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A CornerButtonMixin.py - a mixin for wx.grid.Grid that manages a button in the corner
 N/A wx N/A wx.lib.mixins.gridlabelrenderer CornerButtonMixin N/A object N/A N/A A mixin class for wx.grid.Grid that adds a button in the corner

    This should be added as a mixin to a class derived from wx.grid.Grid.
    It takes control of the grid's GridCornerLabelWindow, managing mouseclicks
    and painting to make it appear as if there is a button there
     __init__ N/A N/A self fn_clicked label tooltip N/A Update Update this table N/A N/A Initialize the mixin - call after wx.grid.Grid.__init__

        fn_clicked - function to call upon button press

        label - the button's label
         N/A N/A self fn_clicked fn_clicked N/A N/A self label label N/A N/A self tooltip tooltip N/A corner N/A self GridCornerLabelWindow N/A N/A N/A corner SetDoubleBuffered True N/A N/A N/A corner Bind N/A wx EVT_PAINT N/A self on_paint_corner N/A N/A N/A corner Bind N/A wx EVT_LEFT_DOWN N/A self on_corner_left_mouse_down N/A N/A N/A corner Bind N/A wx EVT_LEFT_UP N/A self on_corner_left_mouse_up N/A N/A N/A corner Bind N/A wx EVT_MOTION N/A self on_corner_motion N/A N/A N/A corner Bind N/A wx EVT_MOUSE_CAPTURE_LOST N/A self on_corner_capture_lost N/A N/A self corner_hitcode N/A self CORNER_HIT_NONE N/A N/A self corner_button_pressed False N/A N/A CORNER_HIT_NONE None N/A CORNER_HIT_UPDATE 0 N/A BUTTON_PADDING 4 N/A CORNER_ICON_PADDING 2 N/A CORNER_ICON_SIZE 16 get_corner_update_button_rect N/A N/A self N/A N/A N/A crect N/A N/A N/A self GridCornerLabelWindow GetRect N/A N/A w h N/A N/A N/A self GridCornerLabelWindow GetTextExtent N/A self label N/A w N/A 2 N/A self BUTTON_PADDING N/A h N/A 2 N/A self BUTTON_PADDING N/A x N/A N/A crect X N/A N/A N/A crect width w 2 N/A y N/A N/A crect Y N/A N/A N/A crect height h 2 N/A N/A N/A wx Rect x y w h N/A corner_hit_test N/A N/A self x y N/A N/A N/A N/A N/A self fn_clicked None N/A N/A N/A self CORNER_HIT_NONE N/A r N/A N/A self get_corner_update_button_rect N/A N/A N/A r ContainsXY x y N/A N/A N/A self CORNER_HIT_UPDATE N/A N/A self CORNER_HIT_NONE N/A on_paint_corner N/A N/A self event N/A N/A N/A corner N/A self GridCornerLabelWindow N/A dc N/A N/A wx BufferedPaintDC corner N/A N/A N/A dc SetFont N/A N/A self GridCornerLabelWindow Font N/A old_brush N/A dc Background N/A new_brush N/A N/A wx Brush N/A N/A self GridCornerLabelWindow BackgroundColour N/A N/A dc Background new_brush N/A N/A N/A N/A N/A dc Clear N/A N/A dc BackgroundMode N/A wx TRANSPARENT N/A rn N/A N/A N/A wx RendererNative Get N/A N/A isinstance rn N/A wx RendererNative N/A cr N/A N/A N/A N/A N/A wx lib mixins gridlabelrenderer GridDefaultCornerLabelRenderer N/A N/A N/A cr DrawBorder self dc N/A N/A corner GetRect N/A N/A N/A self fn_clicked None N/A N/A r N/A N/A self get_corner_update_button_rect N/A N/A N/A self corner_hitcode N/A self CORNER_HIT_UPDATE N/A N/A N/A self corner_button_pressed N/A N/A flags N/A N/A N/A N/A wx CONTROL_PRESSED N/A wx CONTROL_CURRENT N/A wx CONTROL_FOCUSED N/A wx CONTROL_SELECTED N/A N/A flags 0 N/A N/A flags 0 N/A N/A N/A rn DrawPushButton corner dc r flags N/A N/A w h N/A N/A N/A self GridCornerLabelWindow GetTextExtent N/A self label N/A x N/A N/A r X N/A N/A N/A r width w 2 N/A y N/A N/A r Y N/A N/A N/A r height h 2 N/A N/A N/A dc DrawText N/A self label x y N/A N/A N/A dc Background old_brush N/A N/A N/A new_brush Destroy N/A on_corner_left_mouse_down N/A N/A self event N/A N/A N/A corner N/A self GridCornerLabelWindow N/A hit_code N/A N/A self corner_hit_test N/A event X N/A event Y N/A N/A hit_code N/A self CORNER_HIT_NONE N/A N/A N/A self corner_hitcode hit_code N/A N/A self corner_button_pressed True N/A N/A N/A corner CaptureMouse N/A N/A N/A corner Refresh eraseBackground False N/A on_corner_left_mouse_up N/A N/A self event N/A N/A N/A corner N/A self GridCornerLabelWindow N/A N/A N/A self corner_hitcode N/A self CORNER_HIT_NONE N/A N/A hit_code N/A N/A self corner_hit_test N/A event X N/A event Y N/A N/A hit_code N/A self corner_hitcode N/A N/A N/A hit_code N/A self CORNER_HIT_UPDATE N/A N/A N/A N/A self fn_clicked N/A N/A self corner_hitcode N/A self CORNER_HIT_NONE N/A N/A N/A corner ReleaseMouse N/A N/A N/A corner Refresh eraseBackground False N/A on_corner_motion N/A N/A self event N/A N/A N/A corner N/A self GridCornerLabelWindow N/A hit_code N/A N/A self corner_hit_test N/A event X N/A event Y N/A N/A N/A self corner_hitcode N/A self CORNER_HIT_NONE N/A N/A N/A hit_code N/A self CORNER_HIT_NONE N/A N/A N/A N/A corner SetToolTipString N/A N/A N/A hit_code N/A self CORNER_HIT_UPDATE N/A N/A N/A N/A corner SetToolTipString N/A self tooltip N/A N/A was_pressed N/A self corner_button_pressed N/A N/A self corner_button_pressed N/A N/A N/A self corner_hitcode N/A self CORNER_HIT_NONE N/A N/A self corner_hitcode hit_code N/A N/A was_pressed N/A self corner_button_pressed N/A N/A N/A N/A corner RefreshRect N/A N/A self get_corner_update_button_rect eraseBackground False N/A on_corner_capture_lost N/A N/A self event N/A N/A N/A N/A self corner_hitcode N/A self CORNER_HIT_NONE N/A N/A