<s> """<STR_LIT>""" <EOL> __author__ = "<STR_LIT>" <EOL> __date__ = "<STR_LIT>" <EOL> __version__ = "<STR_LIT>" <EOL> import wx <EOL> def _EventMaker ( ) : <EOL> evt = wx . NewEventType ( ) <EOL> return ( evt , wx . PyEventBinder ( evt ) ) <EOL> ( olv_EVT_CELL_EDIT_STARTING , EVT_CELL_EDIT_STARTING ) = _EventMaker ( ) <EOL> ( olv_EVT_CELL_EDIT_STARTED , EVT_CELL_EDIT_STARTED ) = _EventMaker ( ) <EOL> ( olv_EVT_CELL_EDIT_FINISHING , EVT_CELL_EDIT_FINISHING ) = _EventMaker ( ) <EOL> ( olv_EVT_CELL_EDIT_FINISHED , EVT_CELL_EDIT_FINISHED ) = _EventMaker ( ) <EOL> ( olv_EVT_SORT , EVT_SORT ) = _EventMaker ( ) <EOL> ( olv_EVT_GROUP_CREATING , EVT_GROUP_CREATING ) = _EventMaker ( ) <EOL> ( olv_EVT_GROUP_SORT , EVT_GROUP_SORT ) = _EventMaker ( ) <EOL> ( olv_EVT_EXPANDING , EVT_EXPANDING ) = _EventMaker ( ) <EOL> ( olv_EVT_EXPANDED , EVT_EXPANDED ) = _EventMaker ( ) <EOL> ( olv_EVT_COLLAPSING , EVT_COLLAPSING ) = _EventMaker ( ) <EOL> ( olv_EVT_COLLAPSED , EVT_COLLAPSED ) = _EventMaker ( ) <EOL> class VetoableEvent ( wx . PyCommandEvent ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , evtType ) : <EOL> wx . PyCommandEvent . __init__ ( self , evtType , - <NUM_LIT:1> ) <EOL> self . veto = False <EOL> def Veto ( self , isVetoed = True ) : <EOL> """<STR_LIT>""" <EOL> self . veto = isVetoed <EOL> def IsVetoed ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . veto <EOL> class CellEditEvent ( VetoableEvent ) : <EOL> """<STR_LIT>""" <EOL> def SetParameters ( self , objectListView , rowIndex , subItemIndex , rowModel , cellValue , editor ) : <EOL> self . objectListView = objectListView <EOL> self . rowIndex = rowIndex <EOL> self . subItemIndex = subItemIndex <EOL> self . rowModel = rowModel <EOL> self . cellValue = cellValue <EOL> self . editor = editor <EOL> class CellEditStartedEvent ( CellEditEvent ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , objectListView , rowIndex , subItemIndex , rowModel , cellValue , cellBounds , editor ) : <EOL> CellEditEvent . __init__ ( self , olv_EVT_CELL_EDIT_STARTED ) <EOL> self . SetParameters ( objectListView , rowIndex , subItemIndex , rowModel , cellValue , editor ) <EOL> self . cellBounds = cellBounds <EOL> class CellEditStartingEvent ( CellEditEvent ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , objectListView , rowIndex , subItemIndex , rowModel , cellValue , cellBounds , editor ) : <EOL> CellEditEvent . __init__ ( self , olv_EVT_CELL_EDIT_STARTING ) <EOL> self . SetParameters ( objectListView , rowIndex , subItemIndex , rowModel , cellValue , editor ) <EOL> self . cellBounds = cellBounds <EOL> self . newEditor = None <EOL> self . shouldConfigureEditor = True <EOL> def SetCellBounds ( self , rect ) : <EOL> """<STR_LIT>""" <EOL> self . cellBounds = rect <EOL> def SetNewEditor ( self , control ) : <EOL> """<STR_LIT>""" <EOL> self . newEditor = control <EOL> def DontConfigureEditor ( self ) : <EOL> """<STR_LIT>""" <EOL> self . shouldConfigureEditor = False <EOL> class CellEditFinishedEvent ( CellEditEvent ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , objectListView , rowIndex , subItemIndex , rowModel , userCancelled ) : <EOL> CellEditEvent . __init__ ( self , olv_EVT_CELL_EDIT_FINISHED ) <EOL> self . SetParameters ( objectListView , rowIndex , subItemIndex , rowModel , None , None ) <EOL> self . userCancelled = userCancelled <EOL> class CellEditFinishingEvent ( CellEditEvent ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , objectListView , rowIndex , subItemIndex , rowModel , cellValue , editor , userCancelled ) : <EOL> CellEditEvent . __init__ ( self , olv_EVT_CELL_EDIT_FINISHING ) <EOL> self . SetParameters ( objectListView , rowIndex , subItemIndex , rowModel , cellValue , editor ) <EOL> self . userCancelled = userCancelled <EOL> def SetCellValue ( self , value ) : <EOL> """<STR_LIT>""" <EOL> self . cellValue = value <EOL> class SortEvent ( VetoableEvent ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , objectListView , sortColumnIndex , sortAscending , sortModelObjects , modelObjects = None ) : <EOL> VetoableEvent . __init__ ( self , olv_EVT_SORT ) <EOL> self . objectListView = objectListView <EOL> self . sortColumnIndex = sortColumnIndex <EOL> self . sortAscending = sortAscending <EOL> self . sortModelObjects = sortModelObjects <EOL> self . modelObjects = modelObjects <EOL> self . wasHandled = False <EOL> def Handled ( self , wasHandled = True ) : <EOL> """<STR_LIT>""" <EOL> self . wasHandled = wasHandled <EOL> class GroupCreationEvent ( wx . PyCommandEvent ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , objectListView , groups ) : <EOL> wx . PyCommandEvent . __init__ ( self , olv_EVT_GROUP_CREATING , - <NUM_LIT:1> ) <EOL> self . objectListView = objectListView <EOL> self . groups = groups <EOL> class ExpandCollapseEvent ( VetoableEvent ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , eventType , objectListView , groups , isExpand ) : <EOL> VetoableEvent . __init__ ( self , eventType ) <EOL> self . objectListView = objectListView <EOL> self . groups = groups <EOL> self . isExpand = isExpand <EOL> def ExpandingCollapsingEvent ( objectListView , groups , isExpand ) : <EOL> if isExpand : <EOL> return ExpandCollapseEvent ( olv_EVT_EXPANDING , objectListView , groups , True ) <EOL> else : <EOL> return ExpandCollapseEvent ( olv_EVT_COLLAPSING , objectListView , groups , False ) <EOL> def ExpandedCollapsedEvent ( objectListView , groups , isExpand ) : <EOL> if isExpand : <EOL> return ExpandCollapseEvent ( olv_EVT_EXPANDED , objectListView , groups , True ) <EOL> else : <EOL> return ExpandCollapseEvent ( olv_EVT_COLLAPSED , objectListView , groups , False ) <EOL> class SortGroupsEvent ( wx . PyCommandEvent ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , objectListView , groups , sortColumn , sortAscending ) : <EOL> wx . PyCommandEvent . __init__ ( self , olv_EVT_GROUP_SORT , - <NUM_LIT:1> ) <EOL> self . objectListView = objectListView <EOL> self . groups = groups <EOL> self . sortColumn = sortColumn <EOL> self . sortAscending = sortAscending <EOL> self . wasHandled = False <EOL> def Handled ( self , wasHandled = True ) : <EOL> """<STR_LIT>""" <EOL> self . wasHandled = wasHandled </s>
