diff --git a/etg/_stc.py b/etg/_stc.py index bd1f15d6..3b05f38b 100644 --- a/etg/_stc.py +++ b/etg/_stc.py @@ -170,7 +170,7 @@ def run(): c = module.find('wxStyledTextEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_STC_CHANGE = wx.PyEventBinder( wxEVT_STC_CHANGE, 1 ) EVT_STC_STYLENEEDED = wx.PyEventBinder( wxEVT_STC_STYLENEEDED, 1 ) EVT_STC_CHARADDED = wx.PyEventBinder( wxEVT_STC_CHARADDED, 1 ) diff --git a/etg/auibar.py b/etg/auibar.py index f1f9f46d..e800a150 100644 --- a/etg/auibar.py +++ b/etg/auibar.py @@ -43,7 +43,7 @@ def run(): c = module.find('wxAuiToolBarEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_AUITOOLBAR_TOOL_DROPDOWN = wx.PyEventBinder( wxEVT_AUITOOLBAR_TOOL_DROPDOWN, 1 ) EVT_AUITOOLBAR_OVERFLOW_CLICK = wx.PyEventBinder( wxEVT_AUITOOLBAR_OVERFLOW_CLICK, 1 ) EVT_AUITOOLBAR_RIGHT_CLICK = wx.PyEventBinder( wxEVT_AUITOOLBAR_RIGHT_CLICK, 1 ) diff --git a/etg/auibook.py b/etg/auibook.py index a68237fa..26f58ebb 100644 --- a/etg/auibook.py +++ b/etg/auibook.py @@ -58,7 +58,7 @@ def run(): c = module.find('wxAuiNotebookEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_AUINOTEBOOK_PAGE_CLOSE = wx.PyEventBinder( wxEVT_AUINOTEBOOK_PAGE_CLOSE, 1 ) EVT_AUINOTEBOOK_PAGE_CLOSED = wx.PyEventBinder( wxEVT_AUINOTEBOOK_PAGE_CLOSED, 1 ) EVT_AUINOTEBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_AUINOTEBOOK_PAGE_CHANGED, 1 ) diff --git a/etg/auiframemanager.py b/etg/auiframemanager.py index f38fbaad..88ce361f 100644 --- a/etg/auiframemanager.py +++ b/etg/auiframemanager.py @@ -50,7 +50,7 @@ def run(): c = module.find('wxAuiManagerEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_AUI_PANE_BUTTON = wx.PyEventBinder( wxEVT_AUI_PANE_BUTTON ) EVT_AUI_PANE_CLOSE = wx.PyEventBinder( wxEVT_AUI_PANE_CLOSE ) EVT_AUI_PANE_MAXIMIZE = wx.PyEventBinder( wxEVT_AUI_PANE_MAXIMIZE ) diff --git a/etg/calctrl.py b/etg/calctrl.py index ab74511e..29b96e3e 100644 --- a/etg/calctrl.py +++ b/etg/calctrl.py @@ -38,7 +38,7 @@ def run(): assert isinstance(c, etgtools.ClassDef) tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_CALENDAR = wx.PyEventBinder( wxEVT_CALENDAR_DOUBLECLICKED, 1) EVT_CALENDAR_SEL_CHANGED = wx.PyEventBinder( wxEVT_CALENDAR_SEL_CHANGED, 1) EVT_CALENDAR_WEEKDAY_CLICKED = wx.PyEventBinder( wxEVT_CALENDAR_WEEKDAY_CLICKED, 1) @@ -46,7 +46,7 @@ def run(): """) # These are deprecated, get rid of them later... - c.addPyCode("""\ + module.addPyCode("""\ EVT_CALENDAR_DAY = wx.PyEventBinder( wxEVT_CALENDAR_DAY_CHANGED, 1) EVT_CALENDAR_MONTH = wx.PyEventBinder( wxEVT_CALENDAR_MONTH_CHANGED, 1) EVT_CALENDAR_YEAR = wx.PyEventBinder( wxEVT_CALENDAR_YEAR_CHANGED, 1) diff --git a/etg/dateevt.py b/etg/dateevt.py index 344c7139..88925cdb 100644 --- a/etg/dateevt.py +++ b/etg/dateevt.py @@ -37,7 +37,7 @@ def run(): assert isinstance(c, etgtools.ClassDef) tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_DATE_CHANGED = wx.PyEventBinder( wxEVT_DATE_CHANGED, 1 ) EVT_TIME_CHANGED = wx.PyEventBinder( wxEVT_TIME_CHANGED, 1 ) """) diff --git a/etg/dirctrl.py b/etg/dirctrl.py index 9bf512f7..7019d43c 100644 --- a/etg/dirctrl.py +++ b/etg/dirctrl.py @@ -38,7 +38,7 @@ def run(): assert isinstance(c, etgtools.ClassDef) tools.fixTopLevelWindowClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_DIRCTRL_SELECTIONCHANGED = wx.PyEventBinder( wxEVT_DIRCTRL_SELECTIONCHANGED, 1 ) EVT_DIRCTRL_FILEACTIVATED = wx.PyEventBinder( wxEVT_DIRCTRL_FILEACTIVATED, 1 ) """) diff --git a/etg/fdrepdlg.py b/etg/fdrepdlg.py index 46da52c6..455f4e5e 100644 --- a/etg/fdrepdlg.py +++ b/etg/fdrepdlg.py @@ -37,7 +37,7 @@ def run(): assert isinstance(c, etgtools.ClassDef) tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_FIND = wx.PyEventBinder( wxEVT_FIND, 1 ) EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_FIND_NEXT, 1 ) EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_FIND_REPLACE, 1 ) diff --git a/etg/filectrl.py b/etg/filectrl.py index 76609190..04c0374c 100644 --- a/etg/filectrl.py +++ b/etg/filectrl.py @@ -67,7 +67,7 @@ def run(): c = module.find('wxFileCtrlEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_FILECTRL_SELECTIONCHANGED = wx.PyEventBinder( wxEVT_FILECTRL_SELECTIONCHANGED, 1) EVT_FILECTRL_FILEACTIVATED = wx.PyEventBinder( wxEVT_FILECTRL_FILEACTIVATED, 1) EVT_FILECTRL_FOLDERCHANGED = wx.PyEventBinder( wxEVT_FILECTRL_FOLDERCHANGED, 1) diff --git a/etg/fswatcher.py b/etg/fswatcher.py index c44fbf60..0675bce7 100644 --- a/etg/fswatcher.py +++ b/etg/fswatcher.py @@ -46,7 +46,7 @@ def run(): c = module.find('wxFileSystemWatcherEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_FSWATCHER = wx.PyEventBinder(wxEVT_FSWATCHER) """) diff --git a/etg/grid.py b/etg/grid.py index c1fa1c08..c4e19109 100644 --- a/etg/grid.py +++ b/etg/grid.py @@ -494,7 +494,7 @@ def run(): tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_GRID_CELL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK ) EVT_GRID_CELL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK ) EVT_GRID_CELL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK ) diff --git a/etg/hyperlink.py b/etg/hyperlink.py index e4f37aca..50ddd677 100644 --- a/etg/hyperlink.py +++ b/etg/hyperlink.py @@ -37,7 +37,7 @@ def run(): c = module.find('wxHyperlinkEvent') assert isinstance(c, etgtools.ClassDef) tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_HYPERLINK = wx.PyEventBinder( wxEVT_HYPERLINK, 1 ) # deprecated wxEVT alias diff --git a/etg/listctrl.py b/etg/listctrl.py index 4721456b..4e80deec 100644 --- a/etg/listctrl.py +++ b/etg/listctrl.py @@ -336,7 +336,7 @@ def run(): c = module.find('wxListEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_LIST_BEGIN_DRAG = PyEventBinder(wxEVT_LIST_BEGIN_DRAG , 1) EVT_LIST_BEGIN_RDRAG = PyEventBinder(wxEVT_LIST_BEGIN_RDRAG , 1) EVT_LIST_BEGIN_LABEL_EDIT = PyEventBinder(wxEVT_LIST_BEGIN_LABEL_EDIT , 1) diff --git a/etg/mediactrl.py b/etg/mediactrl.py index f00e1c15..59b94c8e 100644 --- a/etg/mediactrl.py +++ b/etg/mediactrl.py @@ -62,7 +62,7 @@ def run(): c = module.find('wxMediaEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_MEDIA_LOADED = wx.PyEventBinder( wxEVT_MEDIA_LOADED ) EVT_MEDIA_STOP = wx.PyEventBinder( wxEVT_MEDIA_STOP ) EVT_MEDIA_FINISHED = wx.PyEventBinder( wxEVT_MEDIA_FINISHED ) diff --git a/etg/pickers.py b/etg/pickers.py index 0ea166b6..54dfc74a 100644 --- a/etg/pickers.py +++ b/etg/pickers.py @@ -62,7 +62,7 @@ def run(): c = module.find('wxColourPickerEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_COLOURPICKER_CHANGED = wx.PyEventBinder( wxEVT_COLOURPICKER_CHANGED, 1 ) # deprecated wxEVT alias @@ -110,7 +110,7 @@ def run(): c = module.find('wxFileDirPickerEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_FILEPICKER_CHANGED = wx.PyEventBinder( wxEVT_FILEPICKER_CHANGED, 1 ) EVT_DIRPICKER_CHANGED = wx.PyEventBinder( wxEVT_DIRPICKER_CHANGED, 1 ) @@ -136,7 +136,7 @@ def run(): c = module.find('wxFontPickerEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_FONTPICKER_CHANGED = wx.PyEventBinder( wxEVT_FONTPICKER_CHANGED, 1 ) # deprecated wxEVT alias diff --git a/etg/power.py b/etg/power.py index 2915b529..3b15eea1 100644 --- a/etg/power.py +++ b/etg/power.py @@ -61,7 +61,7 @@ def run(): assert isinstance(c, etgtools.ClassDef) tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_POWER_SUSPENDING = wx.PyEventBinder( wxEVT_POWER_SUSPENDING , 1 ) EVT_POWER_SUSPENDED = wx.PyEventBinder( wxEVT_POWER_SUSPENDED , 1 ) EVT_POWER_SUSPEND_CANCEL = wx.PyEventBinder( wxEVT_POWER_SUSPEND_CANCEL , 1 ) diff --git a/etg/propgrid.py b/etg/propgrid.py index d1094cff..80710418 100644 --- a/etg/propgrid.py +++ b/etg/propgrid.py @@ -84,7 +84,7 @@ def run(): c = module.find('wxPropertyGridEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_PG_CHANGED = wx.PyEventBinder( wxEVT_PG_CHANGED, 1 ) EVT_PG_CHANGING = wx.PyEventBinder( wxEVT_PG_CHANGING, 1 ) EVT_PG_SELECTED = wx.PyEventBinder( wxEVT_PG_SELECTED, 1 ) diff --git a/etg/ribbon_bar.py b/etg/ribbon_bar.py index d066d615..29993092 100644 --- a/etg/ribbon_bar.py +++ b/etg/ribbon_bar.py @@ -44,7 +44,7 @@ def run(): c = module.find('wxRibbonBarEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_RIBBONBAR_PAGE_CHANGED = wx.PyEventBinder(wxEVT_RIBBONBAR_PAGE_CHANGED, 1) EVT_RIBBONBAR_PAGE_CHANGING = wx.PyEventBinder(wxEVT_RIBBONBAR_PAGE_CHANGING,1) EVT_RIBBONBAR_TAB_MIDDLE_DOWN = wx.PyEventBinder(wxEVT_RIBBONBAR_TAB_MIDDLE_DOWN, 1) diff --git a/etg/ribbon_buttonbar.py b/etg/ribbon_buttonbar.py index 1f34f8aa..b508c046 100644 --- a/etg/ribbon_buttonbar.py +++ b/etg/ribbon_buttonbar.py @@ -59,7 +59,7 @@ def run(): c = module.find('wxRibbonButtonBarEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_RIBBONBUTTONBAR_CLICKED = wx.PyEventBinder( wxEVT_RIBBONBUTTONBAR_CLICKED, 1 ) EVT_RIBBONBUTTONBAR_DROPDOWN_CLICKED = wx.PyEventBinder( wxEVT_RIBBONBUTTONBAR_DROPDOWN_CLICKED, 1 ) """) diff --git a/etg/ribbon_gallery.py b/etg/ribbon_gallery.py index 4af54813..fb24b11f 100644 --- a/etg/ribbon_gallery.py +++ b/etg/ribbon_gallery.py @@ -61,7 +61,7 @@ def run(): c = module.find('wxRibbonGalleryEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_RIBBONGALLERY_HOVER_CHANGED = wx.PyEventBinder( wxEVT_RIBBONGALLERY_HOVER_CHANGED, 1 ) EVT_RIBBONGALLERY_SELECTED = wx.PyEventBinder( wxEVT_RIBBONGALLERY_SELECTED, 1 ) EVT_RIBBONGALLERY_CLICKED = wx.PyEventBinder( wxEVT_RIBBONGALLERY_CLICKED, 1 ) diff --git a/etg/ribbon_panel.py b/etg/ribbon_panel.py index 50acb35e..d8b17e2d 100644 --- a/etg/ribbon_panel.py +++ b/etg/ribbon_panel.py @@ -44,7 +44,7 @@ def run(): c = module.find('wxRibbonPanelEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_RIBBONPANEL_EXTBUTTON_ACTIVATED = wx.PyEventBinder(wxEVT_RIBBONPANEL_EXTBUTTON_ACTIVATED, 1) """) diff --git a/etg/ribbon_toolbar.py b/etg/ribbon_toolbar.py index 9416db3e..6c1e9936 100644 --- a/etg/ribbon_toolbar.py +++ b/etg/ribbon_toolbar.py @@ -58,7 +58,7 @@ def run(): c = module.find('wxRibbonToolBarEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_RIBBONTOOLBAR_CLICKED = wx.PyEventBinder( wxEVT_RIBBONTOOLBAR_CLICKED, 1 ) EVT_RIBBONTOOLBAR_DROPDOWN_CLICKED = wx.PyEventBinder( wxEVT_RIBBONTOOLBAR_DROPDOWN_CLICKED, 1 ) """) diff --git a/etg/spinbutt.py b/etg/spinbutt.py index 7976422e..5e835e50 100644 --- a/etg/spinbutt.py +++ b/etg/spinbutt.py @@ -38,7 +38,7 @@ def run(): c.addPyMethod('GetRange', '(self)', 'return (self.GetMin(), self.GetMax())') c.addPyMethod('SetMin', '(self, minVal)', 'self.SetRange(minVal, self.GetMax())') c.addPyMethod('SetMax', '(self, maxVal)', 'self.SetRange(self.GetMin(), maxVal)') - c.addPyCode("""\ + module.addPyCode("""\ EVT_SPIN_UP = wx.PyEventBinder( wxEVT_SPIN_UP, 1) EVT_SPIN_DOWN = wx.PyEventBinder( wxEVT_SPIN_DOWN, 1) EVT_SPIN = wx.PyEventBinder( wxEVT_SPIN, 1) diff --git a/etg/splash.py b/etg/splash.py index 3de05abc..d044c199 100644 --- a/etg/splash.py +++ b/etg/splash.py @@ -52,7 +52,7 @@ def run(): self->GetSplashWindow()->SetBitmap(*bitmap); """) - c.addPyCode("""\ + module.addPyCode("""\ SPLASH_CENTER_ON_PARENT = SPLASH_CENTRE_ON_PARENT SPLASH_CENTER_ON_SCREEN = SPLASH_CENTRE_ON_SCREEN SPLASH_NO_CENTER = SPLASH_NO_CENTRE diff --git a/etg/splitter.py b/etg/splitter.py index 112fbc38..48ea1c0b 100644 --- a/etg/splitter.py +++ b/etg/splitter.py @@ -53,7 +53,7 @@ def run(): c = module.find('wxSplitterEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_SPLITTER_SASH_POS_CHANGED = wx.PyEventBinder( wxEVT_SPLITTER_SASH_POS_CHANGED, 1 ) EVT_SPLITTER_SASH_POS_CHANGING = wx.PyEventBinder( wxEVT_SPLITTER_SASH_POS_CHANGING, 1 ) EVT_SPLITTER_DOUBLECLICKED = wx.PyEventBinder( wxEVT_SPLITTER_DOUBLECLICKED, 1 ) diff --git a/etg/taskbar.py b/etg/taskbar.py index 823b2799..4d4460ad 100644 --- a/etg/taskbar.py +++ b/etg/taskbar.py @@ -38,7 +38,7 @@ def run(): assert isinstance(c, etgtools.ClassDef) tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE ) EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN ) EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP ) diff --git a/etg/treectrl.py b/etg/treectrl.py index c8fda157..5c1e5f57 100644 --- a/etg/treectrl.py +++ b/etg/treectrl.py @@ -162,7 +162,7 @@ def run(): c = module.find('wxTreeEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_TREE_BEGIN_DRAG = PyEventBinder(wxEVT_TREE_BEGIN_DRAG , 1) EVT_TREE_BEGIN_RDRAG = PyEventBinder(wxEVT_TREE_BEGIN_RDRAG , 1) EVT_TREE_BEGIN_LABEL_EDIT = PyEventBinder(wxEVT_TREE_BEGIN_LABEL_EDIT , 1) diff --git a/etg/treelist.py b/etg/treelist.py index ea6cc859..7d603586 100644 --- a/etg/treelist.py +++ b/etg/treelist.py @@ -115,7 +115,7 @@ def run(): c = module.find('wxTreeListEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_TREELIST_SELECTION_CHANGED = wx.PyEventBinder( wxEVT_TREELIST_SELECTION_CHANGED ) EVT_TREELIST_ITEM_EXPANDING = wx.PyEventBinder( wxEVT_TREELIST_ITEM_EXPANDING ) EVT_TREELIST_ITEM_EXPANDED = wx.PyEventBinder( wxEVT_TREELIST_ITEM_EXPANDED ) diff --git a/etg/wizard.py b/etg/wizard.py index 34d719d5..74b3d82e 100644 --- a/etg/wizard.py +++ b/etg/wizard.py @@ -72,7 +72,7 @@ def run(): c = module.find('wxWizardEvent') tools.fixEventClass(c) - c.addPyCode("""\ + module.addPyCode("""\ EVT_WIZARD_BEFORE_PAGE_CHANGED = wx.PyEventBinder( wxEVT_WIZARD_BEFORE_PAGE_CHANGED, 1) EVT_WIZARD_PAGE_CHANGED = wx.PyEventBinder( wxEVT_WIZARD_PAGE_CHANGED, 1) EVT_WIZARD_PAGE_CHANGING = wx.PyEventBinder( wxEVT_WIZARD_PAGE_CHANGING, 1)