]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/wx.py
Added missing header files
[wxWidgets.git] / wxPython / src / gtk / wx.py
CommitLineData
b8b8dda7
RD
1# This file was created automatically by SWIG.
2import wxc
3
4from misc import *
5
bb0054cd
RD
6from misc2 import *
7
b8b8dda7
RD
8from windows import *
9
10from gdi import *
11
a323d3bd
RD
12from fonts import *
13
b1462dfa
RD
14from clip_dnd import *
15
b8b8dda7
RD
16from events import *
17
c368d904
RD
18from streams import *
19
08da19d7
RD
20from utils import *
21
b8b8dda7
RD
22from mdi import *
23
24from frames import *
25
26from stattool import *
27
28from controls import *
29
30from controls2 import *
31
32from windows2 import *
33
34from cmndlgs import *
35
08127323
RD
36from windows3 import *
37
cf694132 38from image import *
bb0054cd
RD
39
40from printfw import *
2f90df85
RD
41
42from sizers import *
c368d904
RD
43
44from filesys import *
b8b8dda7
RD
45class wxPyAppPtr(wxEvtHandlerPtr):
46 def __init__(self,this):
47 self.this = this
48 self.thisown = 0
b67a9327
RD
49 def __del__(self, delfunc=wxc.delete_wxPyApp):
50 if self.thisown == 1:
51 try:
52 delfunc(self)
53 except:
54 pass
55 def _setCallbackInfo(self, *_args, **_kwargs):
1fded56b 56 val = wxc.wxPyApp__setCallbackInfo(self, *_args, **_kwargs)
b67a9327 57 return val
1d99702e 58 def GetAppName(self, *_args, **_kwargs):
1fded56b 59 val = wxc.wxPyApp_GetAppName(self, *_args, **_kwargs)
b8b8dda7 60 return val
1d99702e 61 def GetClassName(self, *_args, **_kwargs):
1fded56b 62 val = wxc.wxPyApp_GetClassName(self, *_args, **_kwargs)
b8b8dda7 63 return val
1d99702e 64 def GetExitOnFrameDelete(self, *_args, **_kwargs):
1fded56b 65 val = wxc.wxPyApp_GetExitOnFrameDelete(self, *_args, **_kwargs)
b8b8dda7 66 return val
1d99702e 67 def GetPrintMode(self, *_args, **_kwargs):
1fded56b 68 val = wxc.wxPyApp_GetPrintMode(self, *_args, **_kwargs)
b8b8dda7 69 return val
1d99702e 70 def GetTopWindow(self, *_args, **_kwargs):
1fded56b 71 val = wxc.wxPyApp_GetTopWindow(self, *_args, **_kwargs)
b8b8dda7 72 return val
1d99702e 73 def GetVendorName(self, *_args, **_kwargs):
1fded56b 74 val = wxc.wxPyApp_GetVendorName(self, *_args, **_kwargs)
b8b8dda7 75 return val
f6bcfd97 76 def GetUseBestVisual(self, *_args, **_kwargs):
1fded56b 77 val = wxc.wxPyApp_GetUseBestVisual(self, *_args, **_kwargs)
f6bcfd97 78 return val
1d99702e 79 def Dispatch(self, *_args, **_kwargs):
1fded56b 80 val = wxc.wxPyApp_Dispatch(self, *_args, **_kwargs)
b8b8dda7 81 return val
1d99702e 82 def ExitMainLoop(self, *_args, **_kwargs):
1fded56b 83 val = wxc.wxPyApp_ExitMainLoop(self, *_args, **_kwargs)
b8b8dda7 84 return val
1d99702e 85 def Initialized(self, *_args, **_kwargs):
1fded56b 86 val = wxc.wxPyApp_Initialized(self, *_args, **_kwargs)
b8b8dda7 87 return val
1d99702e 88 def MainLoop(self, *_args, **_kwargs):
1fded56b 89 val = wxc.wxPyApp_MainLoop(self, *_args, **_kwargs)
b8b8dda7 90 return val
1d99702e 91 def Pending(self, *_args, **_kwargs):
1fded56b 92 val = wxc.wxPyApp_Pending(self, *_args, **_kwargs)
b8b8dda7 93 return val
1d99702e 94 def ProcessIdle(self, *_args, **_kwargs):
1fded56b 95 val = wxc.wxPyApp_ProcessIdle(self, *_args, **_kwargs)
8bf5d46e 96 return val
4eb65923 97 def Yield(self, *_args, **_kwargs):
1fded56b 98 val = wxc.wxPyApp_Yield(self, *_args, **_kwargs)
4eb65923 99 return val
1d99702e 100 def SetAppName(self, *_args, **_kwargs):
1fded56b 101 val = wxc.wxPyApp_SetAppName(self, *_args, **_kwargs)
b8b8dda7 102 return val
1d99702e 103 def SetClassName(self, *_args, **_kwargs):
1fded56b 104 val = wxc.wxPyApp_SetClassName(self, *_args, **_kwargs)
b8b8dda7 105 return val
1d99702e 106 def SetExitOnFrameDelete(self, *_args, **_kwargs):
1fded56b 107 val = wxc.wxPyApp_SetExitOnFrameDelete(self, *_args, **_kwargs)
b8b8dda7 108 return val
1d99702e 109 def SetPrintMode(self, *_args, **_kwargs):
1fded56b 110 val = wxc.wxPyApp_SetPrintMode(self, *_args, **_kwargs)
b8b8dda7 111 return val
1d99702e 112 def SetTopWindow(self, *_args, **_kwargs):
1fded56b 113 val = wxc.wxPyApp_SetTopWindow(self, *_args, **_kwargs)
b8b8dda7 114 return val
1d99702e 115 def SetVendorName(self, *_args, **_kwargs):
1fded56b 116 val = wxc.wxPyApp_SetVendorName(self, *_args, **_kwargs)
b8b8dda7 117 return val
f6bcfd97 118 def SetUseBestVisual(self, *_args, **_kwargs):
1fded56b 119 val = wxc.wxPyApp_SetUseBestVisual(self, *_args, **_kwargs)
f6bcfd97 120 return val
b67a9327 121 def GetAssertMode(self, *_args, **_kwargs):
1fded56b 122 val = wxc.wxPyApp_GetAssertMode(self, *_args, **_kwargs)
b67a9327
RD
123 return val
124 def SetAssertMode(self, *_args, **_kwargs):
1fded56b 125 val = wxc.wxPyApp_SetAssertMode(self, *_args, **_kwargs)
b67a9327 126 return val
b8b8dda7 127 def __repr__(self):
1fded56b 128 return "<%s.%s instance; proxy of C++ wxPyApp instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
b8b8dda7 129class wxPyApp(wxPyAppPtr):
1d99702e 130 def __init__(self,*_args,**_kwargs):
1fded56b 131 self.this = wxc.new_wxPyApp(*_args,**_kwargs)
b8b8dda7 132 self.thisown = 1
b67a9327
RD
133 self._setCallbackInfo(self, wxPyApp)
134 self._setOORInfo(self)
b8b8dda7
RD
135
136
137
138
139
140
141#-------------- FUNCTION WRAPPERS ------------------
142
8bf5d46e
RD
143ptrcast = wxc.ptrcast
144
145ptrvalue = wxc.ptrvalue
146
147ptrset = wxc.ptrset
148
149ptrcreate = wxc.ptrcreate
150
151ptrfree = wxc.ptrfree
152
153ptradd = wxc.ptradd
154
155ptrmap = wxc.ptrmap
156
b8b8dda7
RD
157_wxStart = wxc._wxStart
158
159_wxSetDictionary = wxc._wxSetDictionary
160
c368d904 161def wxGetApp(*_args, **_kwargs):
1fded56b 162 val = wxc.wxGetApp(*_args,**_kwargs)
c368d904
RD
163 return val
164
b1462dfa
RD
165wxApp_CleanUp = wxc.wxApp_CleanUp
166
b67a9327
RD
167wxPyApp_GetMacDefaultEncodingIsPC = wxc.wxPyApp_GetMacDefaultEncodingIsPC
168
169wxPyApp_GetMacSupportPCMenuShortcuts = wxc.wxPyApp_GetMacSupportPCMenuShortcuts
170
171wxPyApp_GetMacAboutMenuItemId = wxc.wxPyApp_GetMacAboutMenuItemId
172
173wxPyApp_GetMacPreferencesMenuItemId = wxc.wxPyApp_GetMacPreferencesMenuItemId
174
175wxPyApp_GetMacExitMenuItemId = wxc.wxPyApp_GetMacExitMenuItemId
176
177wxPyApp_GetMacHelpMenuTitleName = wxc.wxPyApp_GetMacHelpMenuTitleName
178
179wxPyApp_SetMacDefaultEncodingIsPC = wxc.wxPyApp_SetMacDefaultEncodingIsPC
180
181wxPyApp_SetMacSupportPCMenuShortcuts = wxc.wxPyApp_SetMacSupportPCMenuShortcuts
182
183wxPyApp_SetMacAboutMenuItemId = wxc.wxPyApp_SetMacAboutMenuItemId
184
185wxPyApp_SetMacPreferencesMenuItemId = wxc.wxPyApp_SetMacPreferencesMenuItemId
186
187wxPyApp_SetMacExitMenuItemId = wxc.wxPyApp_SetMacExitMenuItemId
188
189wxPyApp_SetMacHelpMenuTitleName = wxc.wxPyApp_SetMacHelpMenuTitleName
190
b8b8dda7
RD
191
192
193#-------------- VARIABLE WRAPPERS ------------------
194
195wxMAJOR_VERSION = wxc.wxMAJOR_VERSION
196wxMINOR_VERSION = wxc.wxMINOR_VERSION
197wxRELEASE_NUMBER = wxc.wxRELEASE_NUMBER
08127323 198wxNOT_FOUND = wxc.wxNOT_FOUND
b8b8dda7
RD
199wxVSCROLL = wxc.wxVSCROLL
200wxHSCROLL = wxc.wxHSCROLL
201wxCAPTION = wxc.wxCAPTION
202wxDOUBLE_BORDER = wxc.wxDOUBLE_BORDER
203wxSUNKEN_BORDER = wxc.wxSUNKEN_BORDER
204wxRAISED_BORDER = wxc.wxRAISED_BORDER
205wxBORDER = wxc.wxBORDER
206wxSIMPLE_BORDER = wxc.wxSIMPLE_BORDER
207wxSTATIC_BORDER = wxc.wxSTATIC_BORDER
208wxTRANSPARENT_WINDOW = wxc.wxTRANSPARENT_WINDOW
209wxNO_BORDER = wxc.wxNO_BORDER
210wxUSER_COLOURS = wxc.wxUSER_COLOURS
211wxNO_3D = wxc.wxNO_3D
212wxTAB_TRAVERSAL = wxc.wxTAB_TRAVERSAL
1afc06c2 213wxWANTS_CHARS = wxc.wxWANTS_CHARS
0220cbc1 214wxPOPUP_WINDOW = wxc.wxPOPUP_WINDOW
b8b8dda7
RD
215wxHORIZONTAL = wxc.wxHORIZONTAL
216wxVERTICAL = wxc.wxVERTICAL
217wxBOTH = wxc.wxBOTH
218wxCENTER_FRAME = wxc.wxCENTER_FRAME
1afc06c2
RD
219wxCENTRE_ON_SCREEN = wxc.wxCENTRE_ON_SCREEN
220wxCENTER_ON_SCREEN = wxc.wxCENTER_ON_SCREEN
b8b8dda7
RD
221wxSTAY_ON_TOP = wxc.wxSTAY_ON_TOP
222wxICONIZE = wxc.wxICONIZE
223wxMINIMIZE = wxc.wxMINIMIZE
224wxMAXIMIZE = wxc.wxMAXIMIZE
3100de99 225wxCLOSE_BOX = wxc.wxCLOSE_BOX
b8b8dda7
RD
226wxTHICK_FRAME = wxc.wxTHICK_FRAME
227wxSYSTEM_MENU = wxc.wxSYSTEM_MENU
228wxMINIMIZE_BOX = wxc.wxMINIMIZE_BOX
229wxMAXIMIZE_BOX = wxc.wxMAXIMIZE_BOX
230wxTINY_CAPTION_HORIZ = wxc.wxTINY_CAPTION_HORIZ
231wxTINY_CAPTION_VERT = wxc.wxTINY_CAPTION_VERT
232wxRESIZE_BOX = wxc.wxRESIZE_BOX
233wxRESIZE_BORDER = wxc.wxRESIZE_BORDER
234wxDIALOG_MODAL = wxc.wxDIALOG_MODAL
235wxDIALOG_MODELESS = wxc.wxDIALOG_MODELESS
2c8a649d 236wxDIALOG_NO_PARENT = wxc.wxDIALOG_NO_PARENT
b8b8dda7
RD
237wxDEFAULT_FRAME_STYLE = wxc.wxDEFAULT_FRAME_STYLE
238wxDEFAULT_DIALOG_STYLE = wxc.wxDEFAULT_DIALOG_STYLE
239wxFRAME_TOOL_WINDOW = wxc.wxFRAME_TOOL_WINDOW
bb0054cd 240wxFRAME_FLOAT_ON_PARENT = wxc.wxFRAME_FLOAT_ON_PARENT
4c9993c3 241wxFRAME_NO_WINDOW_MENU = wxc.wxFRAME_NO_WINDOW_MENU
9c4165ad 242wxFRAME_NO_TASKBAR = wxc.wxFRAME_NO_TASKBAR
1fded56b 243wxFRAME_SHAPED = wxc.wxFRAME_SHAPED
1afc06c2
RD
244wxED_CLIENT_MARGIN = wxc.wxED_CLIENT_MARGIN
245wxED_BUTTONS_BOTTOM = wxc.wxED_BUTTONS_BOTTOM
246wxED_BUTTONS_RIGHT = wxc.wxED_BUTTONS_RIGHT
247wxED_STATIC_LINE = wxc.wxED_STATIC_LINE
248wxEXT_DIALOG_STYLE = wxc.wxEXT_DIALOG_STYLE
08127323 249wxCLIP_CHILDREN = wxc.wxCLIP_CHILDREN
2c8a649d 250wxCLIP_SIBLINGS = wxc.wxCLIP_SIBLINGS
b8b8dda7
RD
251wxRETAINED = wxc.wxRETAINED
252wxBACKINGSTORE = wxc.wxBACKINGSTORE
b8b8dda7
RD
253wxTB_HORIZONTAL = wxc.wxTB_HORIZONTAL
254wxTB_VERTICAL = wxc.wxTB_VERTICAL
be86ffe3 255wxTB_3DBUTTONS = wxc.wxTB_3DBUTTONS
b8b8dda7 256wxTB_FLAT = wxc.wxTB_FLAT
f0261a72 257wxTB_DOCKABLE = wxc.wxTB_DOCKABLE
be86ffe3
RD
258wxTB_NOICONS = wxc.wxTB_NOICONS
259wxTB_TEXT = wxc.wxTB_TEXT
87439dd8
RD
260wxTB_NODIVIDER = wxc.wxTB_NODIVIDER
261wxTB_NOALIGN = wxc.wxTB_NOALIGN
b8b8dda7
RD
262wxCOLOURED = wxc.wxCOLOURED
263wxFIXED_LENGTH = wxc.wxFIXED_LENGTH
264wxALIGN_LEFT = wxc.wxALIGN_LEFT
694759cf
RD
265wxALIGN_CENTER_HORIZONTAL = wxc.wxALIGN_CENTER_HORIZONTAL
266wxALIGN_CENTRE_HORIZONTAL = wxc.wxALIGN_CENTRE_HORIZONTAL
b8b8dda7 267wxALIGN_RIGHT = wxc.wxALIGN_RIGHT
2f90df85 268wxALIGN_BOTTOM = wxc.wxALIGN_BOTTOM
694759cf
RD
269wxALIGN_CENTER_VERTICAL = wxc.wxALIGN_CENTER_VERTICAL
270wxALIGN_CENTRE_VERTICAL = wxc.wxALIGN_CENTRE_VERTICAL
2f90df85 271wxALIGN_TOP = wxc.wxALIGN_TOP
694759cf
RD
272wxALIGN_CENTER = wxc.wxALIGN_CENTER
273wxALIGN_CENTRE = wxc.wxALIGN_CENTRE
274wxSHAPED = wxc.wxSHAPED
9c4165ad 275wxADJUST_MINSIZE = wxc.wxADJUST_MINSIZE
b8b8dda7
RD
276wxLB_NEEDED_SB = wxc.wxLB_NEEDED_SB
277wxLB_ALWAYS_SB = wxc.wxLB_ALWAYS_SB
278wxLB_SORT = wxc.wxLB_SORT
279wxLB_SINGLE = wxc.wxLB_SINGLE
280wxLB_MULTIPLE = wxc.wxLB_MULTIPLE
281wxLB_EXTENDED = wxc.wxLB_EXTENDED
282wxLB_OWNERDRAW = wxc.wxLB_OWNERDRAW
283wxLB_HSCROLL = wxc.wxLB_HSCROLL
284wxPROCESS_ENTER = wxc.wxPROCESS_ENTER
285wxPASSWORD = wxc.wxPASSWORD
b8b8dda7
RD
286wxTE_READONLY = wxc.wxTE_READONLY
287wxTE_MULTILINE = wxc.wxTE_MULTILINE
7a9b33db
RD
288wxTE_PROCESS_TAB = wxc.wxTE_PROCESS_TAB
289wxTE_RICH = wxc.wxTE_RICH
db34b2d4 290wxTE_RICH2 = wxc.wxTE_RICH2
06c0fba4 291wxTE_NO_VSCROLL = wxc.wxTE_NO_VSCROLL
7a9b33db
RD
292wxTE_AUTO_SCROLL = wxc.wxTE_AUTO_SCROLL
293wxTE_PROCESS_ENTER = wxc.wxTE_PROCESS_ENTER
294wxTE_PASSWORD = wxc.wxTE_PASSWORD
059a841c 295wxTE_AUTO_URL = wxc.wxTE_AUTO_URL
c20da257 296wxTE_NOHIDESEL = wxc.wxTE_NOHIDESEL
7a9b33db
RD
297wxTE_DONTWRAP = wxc.wxTE_DONTWRAP
298wxTE_LINEWRAP = wxc.wxTE_LINEWRAP
299wxTE_WORDWRAP = wxc.wxTE_WORDWRAP
4eb65923
RD
300wxTE_LEFT = wxc.wxTE_LEFT
301wxTE_RIGHT = wxc.wxTE_RIGHT
302wxTE_CENTER = wxc.wxTE_CENTER
303wxTE_CENTRE = wxc.wxTE_CENTRE
b8b8dda7
RD
304wxCB_SIMPLE = wxc.wxCB_SIMPLE
305wxCB_DROPDOWN = wxc.wxCB_DROPDOWN
306wxCB_SORT = wxc.wxCB_SORT
307wxCB_READONLY = wxc.wxCB_READONLY
308wxRA_HORIZONTAL = wxc.wxRA_HORIZONTAL
309wxRA_VERTICAL = wxc.wxRA_VERTICAL
62abd41e
RD
310wxRA_SPECIFY_ROWS = wxc.wxRA_SPECIFY_ROWS
311wxRA_SPECIFY_COLS = wxc.wxRA_SPECIFY_COLS
b8b8dda7 312wxRB_GROUP = wxc.wxRB_GROUP
b67a9327 313wxRB_SINGLE = wxc.wxRB_SINGLE
b8b8dda7
RD
314wxGA_PROGRESSBAR = wxc.wxGA_PROGRESSBAR
315wxGA_HORIZONTAL = wxc.wxGA_HORIZONTAL
316wxGA_VERTICAL = wxc.wxGA_VERTICAL
bb0054cd 317wxGA_SMOOTH = wxc.wxGA_SMOOTH
b8b8dda7
RD
318wxSL_HORIZONTAL = wxc.wxSL_HORIZONTAL
319wxSL_VERTICAL = wxc.wxSL_VERTICAL
320wxSL_AUTOTICKS = wxc.wxSL_AUTOTICKS
321wxSL_LABELS = wxc.wxSL_LABELS
322wxSL_LEFT = wxc.wxSL_LEFT
323wxSL_TOP = wxc.wxSL_TOP
324wxSL_RIGHT = wxc.wxSL_RIGHT
325wxSL_BOTTOM = wxc.wxSL_BOTTOM
326wxSL_BOTH = wxc.wxSL_BOTH
327wxSL_SELRANGE = wxc.wxSL_SELRANGE
328wxSB_HORIZONTAL = wxc.wxSB_HORIZONTAL
329wxSB_VERTICAL = wxc.wxSB_VERTICAL
cf694132 330wxST_SIZEGRIP = wxc.wxST_SIZEGRIP
2abc0a0f 331wxST_NO_AUTORESIZE = wxc.wxST_NO_AUTORESIZE
b8b8dda7 332wxBU_NOAUTODRAW = wxc.wxBU_NOAUTODRAW
298ae144
RD
333wxBU_AUTODRAW = wxc.wxBU_AUTODRAW
334wxBU_LEFT = wxc.wxBU_LEFT
335wxBU_TOP = wxc.wxBU_TOP
336wxBU_RIGHT = wxc.wxBU_RIGHT
337wxBU_BOTTOM = wxc.wxBU_BOTTOM
338wxBU_EXACTFIT = wxc.wxBU_EXACTFIT
b8b8dda7
RD
339wxSP_VERTICAL = wxc.wxSP_VERTICAL
340wxSP_HORIZONTAL = wxc.wxSP_HORIZONTAL
341wxSP_ARROW_KEYS = wxc.wxSP_ARROW_KEYS
342wxSP_WRAP = wxc.wxSP_WRAP
343wxSP_NOBORDER = wxc.wxSP_NOBORDER
344wxSP_3D = wxc.wxSP_3D
1b62f00d
RD
345wxSP_3DSASH = wxc.wxSP_3DSASH
346wxSP_3DBORDER = wxc.wxSP_3DBORDER
347wxSP_FULLSASH = wxc.wxSP_FULLSASH
b8b8dda7 348wxSP_BORDER = wxc.wxSP_BORDER
9d8bd15f
RD
349wxSP_LIVE_UPDATE = wxc.wxSP_LIVE_UPDATE
350wxSP_PERMIT_UNSPLIT = wxc.wxSP_PERMIT_UNSPLIT
b8b8dda7
RD
351wxFLOOD_SURFACE = wxc.wxFLOOD_SURFACE
352wxFLOOD_BORDER = wxc.wxFLOOD_BORDER
353wxODDEVEN_RULE = wxc.wxODDEVEN_RULE
354wxWINDING_RULE = wxc.wxWINDING_RULE
355wxTOOL_TOP = wxc.wxTOOL_TOP
356wxTOOL_BOTTOM = wxc.wxTOOL_BOTTOM
357wxTOOL_LEFT = wxc.wxTOOL_LEFT
358wxTOOL_RIGHT = wxc.wxTOOL_RIGHT
359wxOK = wxc.wxOK
360wxYES_NO = wxc.wxYES_NO
361wxCANCEL = wxc.wxCANCEL
362wxYES = wxc.wxYES
363wxNO = wxc.wxNO
1afc06c2
RD
364wxNO_DEFAULT = wxc.wxNO_DEFAULT
365wxYES_DEFAULT = wxc.wxYES_DEFAULT
b8b8dda7
RD
366wxICON_EXCLAMATION = wxc.wxICON_EXCLAMATION
367wxICON_HAND = wxc.wxICON_HAND
368wxICON_QUESTION = wxc.wxICON_QUESTION
369wxICON_INFORMATION = wxc.wxICON_INFORMATION
370wxICON_STOP = wxc.wxICON_STOP
371wxICON_ASTERISK = wxc.wxICON_ASTERISK
372wxICON_MASK = wxc.wxICON_MASK
1afc06c2
RD
373wxICON_WARNING = wxc.wxICON_WARNING
374wxICON_ERROR = wxc.wxICON_ERROR
375wxFORWARD = wxc.wxFORWARD
376wxBACKWARD = wxc.wxBACKWARD
377wxRESET = wxc.wxRESET
378wxHELP = wxc.wxHELP
379wxMORE = wxc.wxMORE
380wxSETUP = wxc.wxSETUP
b8b8dda7
RD
381wxCENTRE = wxc.wxCENTRE
382wxCENTER = wxc.wxCENTER
383wxSIZE_AUTO_WIDTH = wxc.wxSIZE_AUTO_WIDTH
384wxSIZE_AUTO_HEIGHT = wxc.wxSIZE_AUTO_HEIGHT
385wxSIZE_AUTO = wxc.wxSIZE_AUTO
386wxSIZE_USE_EXISTING = wxc.wxSIZE_USE_EXISTING
387wxSIZE_ALLOW_MINUS_ONE = wxc.wxSIZE_ALLOW_MINUS_ONE
b8b8dda7
RD
388wxPORTRAIT = wxc.wxPORTRAIT
389wxLANDSCAPE = wxc.wxLANDSCAPE
bb0054cd
RD
390wxPRINT_QUALITY_HIGH = wxc.wxPRINT_QUALITY_HIGH
391wxPRINT_QUALITY_MEDIUM = wxc.wxPRINT_QUALITY_MEDIUM
392wxPRINT_QUALITY_LOW = wxc.wxPRINT_QUALITY_LOW
393wxPRINT_QUALITY_DRAFT = wxc.wxPRINT_QUALITY_DRAFT
ba77f390
RD
394wxID_ANY = wxc.wxID_ANY
395wxID_SEPARATOR = wxc.wxID_SEPARATOR
b8b8dda7
RD
396wxID_OPEN = wxc.wxID_OPEN
397wxID_CLOSE = wxc.wxID_CLOSE
398wxID_NEW = wxc.wxID_NEW
399wxID_SAVE = wxc.wxID_SAVE
400wxID_SAVEAS = wxc.wxID_SAVEAS
401wxID_REVERT = wxc.wxID_REVERT
402wxID_EXIT = wxc.wxID_EXIT
403wxID_UNDO = wxc.wxID_UNDO
404wxID_REDO = wxc.wxID_REDO
405wxID_HELP = wxc.wxID_HELP
406wxID_PRINT = wxc.wxID_PRINT
407wxID_PRINT_SETUP = wxc.wxID_PRINT_SETUP
408wxID_PREVIEW = wxc.wxID_PREVIEW
409wxID_ABOUT = wxc.wxID_ABOUT
410wxID_HELP_CONTENTS = wxc.wxID_HELP_CONTENTS
411wxID_HELP_COMMANDS = wxc.wxID_HELP_COMMANDS
412wxID_HELP_PROCEDURES = wxc.wxID_HELP_PROCEDURES
413wxID_HELP_CONTEXT = wxc.wxID_HELP_CONTEXT
1893b029 414wxID_CLOSE_ALL = wxc.wxID_CLOSE_ALL
b8b8dda7
RD
415wxID_CUT = wxc.wxID_CUT
416wxID_COPY = wxc.wxID_COPY
417wxID_PASTE = wxc.wxID_PASTE
418wxID_CLEAR = wxc.wxID_CLEAR
419wxID_FIND = wxc.wxID_FIND
2c8a649d
RD
420wxID_DUPLICATE = wxc.wxID_DUPLICATE
421wxID_SELECTALL = wxc.wxID_SELECTALL
b8b8dda7
RD
422wxID_FILE1 = wxc.wxID_FILE1
423wxID_FILE2 = wxc.wxID_FILE2
424wxID_FILE3 = wxc.wxID_FILE3
425wxID_FILE4 = wxc.wxID_FILE4
426wxID_FILE5 = wxc.wxID_FILE5
427wxID_FILE6 = wxc.wxID_FILE6
428wxID_FILE7 = wxc.wxID_FILE7
429wxID_FILE8 = wxc.wxID_FILE8
430wxID_FILE9 = wxc.wxID_FILE9
431wxID_OK = wxc.wxID_OK
432wxID_CANCEL = wxc.wxID_CANCEL
433wxID_APPLY = wxc.wxID_APPLY
434wxID_YES = wxc.wxID_YES
435wxID_NO = wxc.wxID_NO
cf694132 436wxID_STATIC = wxc.wxID_STATIC
471825d7
RD
437wxID_FORWARD = wxc.wxID_FORWARD
438wxID_BACKWARD = wxc.wxID_BACKWARD
49df1f52 439wxID_DEFAULT = wxc.wxID_DEFAULT
471825d7 440wxID_MORE = wxc.wxID_MORE
49df1f52
RD
441wxID_SETUP = wxc.wxID_SETUP
442wxID_RESET = wxc.wxID_RESET
443wxID_CONTEXT_HELP = wxc.wxID_CONTEXT_HELP
444wxID_YESTOALL = wxc.wxID_YESTOALL
445wxID_NOTOALL = wxc.wxID_NOTOALL
446wxID_ABORT = wxc.wxID_ABORT
447wxID_RETRY = wxc.wxID_RETRY
448wxID_IGNORE = wxc.wxID_IGNORE
b8b8dda7
RD
449wxOPEN = wxc.wxOPEN
450wxSAVE = wxc.wxSAVE
451wxHIDE_READONLY = wxc.wxHIDE_READONLY
452wxOVERWRITE_PROMPT = wxc.wxOVERWRITE_PROMPT
2abc0a0f 453wxFILE_MUST_EXIST = wxc.wxFILE_MUST_EXIST
f6bcfd97 454wxMULTIPLE = wxc.wxMULTIPLE
9c4165ad 455wxCHANGE_DIR = wxc.wxCHANGE_DIR
b8b8dda7
RD
456wxACCEL_ALT = wxc.wxACCEL_ALT
457wxACCEL_CTRL = wxc.wxACCEL_CTRL
458wxACCEL_SHIFT = wxc.wxACCEL_SHIFT
f6bcfd97 459wxACCEL_NORMAL = wxc.wxACCEL_NORMAL
bb0054cd
RD
460wxPD_AUTO_HIDE = wxc.wxPD_AUTO_HIDE
461wxPD_APP_MODAL = wxc.wxPD_APP_MODAL
462wxPD_CAN_ABORT = wxc.wxPD_CAN_ABORT
a08cbc01
RD
463wxPD_ELAPSED_TIME = wxc.wxPD_ELAPSED_TIME
464wxPD_ESTIMATED_TIME = wxc.wxPD_ESTIMATED_TIME
465wxPD_REMAINING_TIME = wxc.wxPD_REMAINING_TIME
301dfd67 466wxDD_NEW_DIR_BUTTON = wxc.wxDD_NEW_DIR_BUTTON
ef12d2e2 467wxDD_DEFAULT_STYLE = wxc.wxDD_DEFAULT_STYLE
8bf5d46e 468wxMENU_TEAROFF = wxc.wxMENU_TEAROFF
1afc06c2 469wxMB_DOCKABLE = wxc.wxMB_DOCKABLE
8bf5d46e 470wxNO_FULL_REPAINT_ON_RESIZE = wxc.wxNO_FULL_REPAINT_ON_RESIZE
1afc06c2
RD
471wxLEFT = wxc.wxLEFT
472wxRIGHT = wxc.wxRIGHT
473wxUP = wxc.wxUP
474wxDOWN = wxc.wxDOWN
475wxALL = wxc.wxALL
476wxTOP = wxc.wxTOP
477wxBOTTOM = wxc.wxBOTTOM
478wxNORTH = wxc.wxNORTH
479wxSOUTH = wxc.wxSOUTH
480wxEAST = wxc.wxEAST
481wxWEST = wxc.wxWEST
482wxSTRETCH_NOT = wxc.wxSTRETCH_NOT
483wxSHRINK = wxc.wxSHRINK
484wxGROW = wxc.wxGROW
485wxEXPAND = wxc.wxEXPAND
486wxNB_FIXEDWIDTH = wxc.wxNB_FIXEDWIDTH
1fded56b 487wxNB_TOP = wxc.wxNB_TOP
f0261a72
RD
488wxNB_LEFT = wxc.wxNB_LEFT
489wxNB_RIGHT = wxc.wxNB_RIGHT
490wxNB_BOTTOM = wxc.wxNB_BOTTOM
2c8a649d 491wxNB_MULTILINE = wxc.wxNB_MULTILINE
1afc06c2
RD
492wxLI_HORIZONTAL = wxc.wxLI_HORIZONTAL
493wxLI_VERTICAL = wxc.wxLI_VERTICAL
2cd2fac8
RD
494wxJOYSTICK1 = wxc.wxJOYSTICK1
495wxJOYSTICK2 = wxc.wxJOYSTICK2
496wxJOY_BUTTON1 = wxc.wxJOY_BUTTON1
497wxJOY_BUTTON2 = wxc.wxJOY_BUTTON2
498wxJOY_BUTTON3 = wxc.wxJOY_BUTTON3
499wxJOY_BUTTON4 = wxc.wxJOY_BUTTON4
500wxJOY_BUTTON_ANY = wxc.wxJOY_BUTTON_ANY
7a446686 501wxWS_EX_VALIDATE_RECURSIVELY = wxc.wxWS_EX_VALIDATE_RECURSIVELY
0220cbc1 502wxWS_EX_BLOCK_EVENTS = wxc.wxWS_EX_BLOCK_EVENTS
74bcba0e 503wxWS_EX_TRANSIENT = wxc.wxWS_EX_TRANSIENT
32c988a3
RD
504wxMM_TEXT = wxc.wxMM_TEXT
505wxMM_LOMETRIC = wxc.wxMM_LOMETRIC
506wxMM_HIMETRIC = wxc.wxMM_HIMETRIC
507wxMM_LOENGLISH = wxc.wxMM_LOENGLISH
508wxMM_HIENGLISH = wxc.wxMM_HIENGLISH
509wxMM_TWIPS = wxc.wxMM_TWIPS
510wxMM_ISOTROPIC = wxc.wxMM_ISOTROPIC
511wxMM_ANISOTROPIC = wxc.wxMM_ANISOTROPIC
512wxMM_POINTS = wxc.wxMM_POINTS
513wxMM_METRIC = wxc.wxMM_METRIC
c8c000ef
RD
514wxTIMER_CONTINUOUS = wxc.wxTIMER_CONTINUOUS
515wxTIMER_ONE_SHOT = wxc.wxTIMER_ONE_SHOT
ba77f390
RD
516wxMOUSE_BTN_ANY = wxc.wxMOUSE_BTN_ANY
517wxMOUSE_BTN_NONE = wxc.wxMOUSE_BTN_NONE
518wxMOUSE_BTN_LEFT = wxc.wxMOUSE_BTN_LEFT
519wxMOUSE_BTN_MIDDLE = wxc.wxMOUSE_BTN_MIDDLE
520wxMOUSE_BTN_RIGHT = wxc.wxMOUSE_BTN_RIGHT
6e8a778a
RD
521wxBORDER_DEFAULT = wxc.wxBORDER_DEFAULT
522wxBORDER_NONE = wxc.wxBORDER_NONE
523wxBORDER_STATIC = wxc.wxBORDER_STATIC
524wxBORDER_SIMPLE = wxc.wxBORDER_SIMPLE
525wxBORDER_RAISED = wxc.wxBORDER_RAISED
526wxBORDER_SUNKEN = wxc.wxBORDER_SUNKEN
527wxBORDER_DOUBLE = wxc.wxBORDER_DOUBLE
528wxBORDER_MASK = wxc.wxBORDER_MASK
b8b8dda7
RD
529wxDEFAULT = wxc.wxDEFAULT
530wxDECORATIVE = wxc.wxDECORATIVE
531wxROMAN = wxc.wxROMAN
532wxSCRIPT = wxc.wxSCRIPT
533wxSWISS = wxc.wxSWISS
534wxMODERN = wxc.wxMODERN
535wxTELETYPE = wxc.wxTELETYPE
536wxVARIABLE = wxc.wxVARIABLE
537wxFIXED = wxc.wxFIXED
538wxNORMAL = wxc.wxNORMAL
539wxLIGHT = wxc.wxLIGHT
540wxBOLD = wxc.wxBOLD
541wxITALIC = wxc.wxITALIC
542wxSLANT = wxc.wxSLANT
543wxSOLID = wxc.wxSOLID
544wxDOT = wxc.wxDOT
545wxLONG_DASH = wxc.wxLONG_DASH
546wxSHORT_DASH = wxc.wxSHORT_DASH
547wxDOT_DASH = wxc.wxDOT_DASH
548wxUSER_DASH = wxc.wxUSER_DASH
549wxTRANSPARENT = wxc.wxTRANSPARENT
550wxSTIPPLE = wxc.wxSTIPPLE
551wxBDIAGONAL_HATCH = wxc.wxBDIAGONAL_HATCH
552wxCROSSDIAG_HATCH = wxc.wxCROSSDIAG_HATCH
553wxFDIAGONAL_HATCH = wxc.wxFDIAGONAL_HATCH
554wxCROSS_HATCH = wxc.wxCROSS_HATCH
555wxHORIZONTAL_HATCH = wxc.wxHORIZONTAL_HATCH
556wxVERTICAL_HATCH = wxc.wxVERTICAL_HATCH
557wxJOIN_BEVEL = wxc.wxJOIN_BEVEL
558wxJOIN_MITER = wxc.wxJOIN_MITER
559wxJOIN_ROUND = wxc.wxJOIN_ROUND
560wxCAP_ROUND = wxc.wxCAP_ROUND
561wxCAP_PROJECTING = wxc.wxCAP_PROJECTING
562wxCAP_BUTT = wxc.wxCAP_BUTT
563wxCLEAR = wxc.wxCLEAR
564wxXOR = wxc.wxXOR
565wxINVERT = wxc.wxINVERT
566wxOR_REVERSE = wxc.wxOR_REVERSE
567wxAND_REVERSE = wxc.wxAND_REVERSE
568wxCOPY = wxc.wxCOPY
569wxAND = wxc.wxAND
570wxAND_INVERT = wxc.wxAND_INVERT
571wxNO_OP = wxc.wxNO_OP
572wxNOR = wxc.wxNOR
573wxEQUIV = wxc.wxEQUIV
574wxSRC_INVERT = wxc.wxSRC_INVERT
575wxOR_INVERT = wxc.wxOR_INVERT
576wxNAND = wxc.wxNAND
577wxOR = wxc.wxOR
578wxSET = wxc.wxSET
b8b8dda7
RD
579WXK_BACK = wxc.WXK_BACK
580WXK_TAB = wxc.WXK_TAB
581WXK_RETURN = wxc.WXK_RETURN
582WXK_ESCAPE = wxc.WXK_ESCAPE
583WXK_SPACE = wxc.WXK_SPACE
584WXK_DELETE = wxc.WXK_DELETE
585WXK_START = wxc.WXK_START
586WXK_LBUTTON = wxc.WXK_LBUTTON
587WXK_RBUTTON = wxc.WXK_RBUTTON
588WXK_CANCEL = wxc.WXK_CANCEL
589WXK_MBUTTON = wxc.WXK_MBUTTON
590WXK_CLEAR = wxc.WXK_CLEAR
591WXK_SHIFT = wxc.WXK_SHIFT
32c988a3 592WXK_ALT = wxc.WXK_ALT
b8b8dda7
RD
593WXK_CONTROL = wxc.WXK_CONTROL
594WXK_MENU = wxc.WXK_MENU
595WXK_PAUSE = wxc.WXK_PAUSE
596WXK_CAPITAL = wxc.WXK_CAPITAL
597WXK_PRIOR = wxc.WXK_PRIOR
598WXK_NEXT = wxc.WXK_NEXT
599WXK_END = wxc.WXK_END
600WXK_HOME = wxc.WXK_HOME
601WXK_LEFT = wxc.WXK_LEFT
602WXK_UP = wxc.WXK_UP
603WXK_RIGHT = wxc.WXK_RIGHT
604WXK_DOWN = wxc.WXK_DOWN
605WXK_SELECT = wxc.WXK_SELECT
606WXK_PRINT = wxc.WXK_PRINT
607WXK_EXECUTE = wxc.WXK_EXECUTE
608WXK_SNAPSHOT = wxc.WXK_SNAPSHOT
609WXK_INSERT = wxc.WXK_INSERT
610WXK_HELP = wxc.WXK_HELP
611WXK_NUMPAD0 = wxc.WXK_NUMPAD0
612WXK_NUMPAD1 = wxc.WXK_NUMPAD1
613WXK_NUMPAD2 = wxc.WXK_NUMPAD2
614WXK_NUMPAD3 = wxc.WXK_NUMPAD3
615WXK_NUMPAD4 = wxc.WXK_NUMPAD4
616WXK_NUMPAD5 = wxc.WXK_NUMPAD5
617WXK_NUMPAD6 = wxc.WXK_NUMPAD6
618WXK_NUMPAD7 = wxc.WXK_NUMPAD7
619WXK_NUMPAD8 = wxc.WXK_NUMPAD8
620WXK_NUMPAD9 = wxc.WXK_NUMPAD9
621WXK_MULTIPLY = wxc.WXK_MULTIPLY
622WXK_ADD = wxc.WXK_ADD
623WXK_SEPARATOR = wxc.WXK_SEPARATOR
624WXK_SUBTRACT = wxc.WXK_SUBTRACT
625WXK_DECIMAL = wxc.WXK_DECIMAL
626WXK_DIVIDE = wxc.WXK_DIVIDE
627WXK_F1 = wxc.WXK_F1
628WXK_F2 = wxc.WXK_F2
629WXK_F3 = wxc.WXK_F3
630WXK_F4 = wxc.WXK_F4
631WXK_F5 = wxc.WXK_F5
632WXK_F6 = wxc.WXK_F6
633WXK_F7 = wxc.WXK_F7
634WXK_F8 = wxc.WXK_F8
635WXK_F9 = wxc.WXK_F9
636WXK_F10 = wxc.WXK_F10
637WXK_F11 = wxc.WXK_F11
638WXK_F12 = wxc.WXK_F12
639WXK_F13 = wxc.WXK_F13
640WXK_F14 = wxc.WXK_F14
641WXK_F15 = wxc.WXK_F15
642WXK_F16 = wxc.WXK_F16
643WXK_F17 = wxc.WXK_F17
644WXK_F18 = wxc.WXK_F18
645WXK_F19 = wxc.WXK_F19
646WXK_F20 = wxc.WXK_F20
647WXK_F21 = wxc.WXK_F21
648WXK_F22 = wxc.WXK_F22
649WXK_F23 = wxc.WXK_F23
650WXK_F24 = wxc.WXK_F24
651WXK_NUMLOCK = wxc.WXK_NUMLOCK
652WXK_SCROLL = wxc.WXK_SCROLL
653WXK_PAGEUP = wxc.WXK_PAGEUP
654WXK_PAGEDOWN = wxc.WXK_PAGEDOWN
32c988a3
RD
655WXK_NUMPAD_SPACE = wxc.WXK_NUMPAD_SPACE
656WXK_NUMPAD_TAB = wxc.WXK_NUMPAD_TAB
657WXK_NUMPAD_ENTER = wxc.WXK_NUMPAD_ENTER
658WXK_NUMPAD_F1 = wxc.WXK_NUMPAD_F1
659WXK_NUMPAD_F2 = wxc.WXK_NUMPAD_F2
660WXK_NUMPAD_F3 = wxc.WXK_NUMPAD_F3
661WXK_NUMPAD_F4 = wxc.WXK_NUMPAD_F4
662WXK_NUMPAD_HOME = wxc.WXK_NUMPAD_HOME
663WXK_NUMPAD_LEFT = wxc.WXK_NUMPAD_LEFT
664WXK_NUMPAD_UP = wxc.WXK_NUMPAD_UP
665WXK_NUMPAD_RIGHT = wxc.WXK_NUMPAD_RIGHT
666WXK_NUMPAD_DOWN = wxc.WXK_NUMPAD_DOWN
667WXK_NUMPAD_PRIOR = wxc.WXK_NUMPAD_PRIOR
668WXK_NUMPAD_PAGEUP = wxc.WXK_NUMPAD_PAGEUP
669WXK_NUMPAD_NEXT = wxc.WXK_NUMPAD_NEXT
670WXK_NUMPAD_PAGEDOWN = wxc.WXK_NUMPAD_PAGEDOWN
671WXK_NUMPAD_END = wxc.WXK_NUMPAD_END
672WXK_NUMPAD_BEGIN = wxc.WXK_NUMPAD_BEGIN
673WXK_NUMPAD_INSERT = wxc.WXK_NUMPAD_INSERT
674WXK_NUMPAD_DELETE = wxc.WXK_NUMPAD_DELETE
675WXK_NUMPAD_EQUAL = wxc.WXK_NUMPAD_EQUAL
676WXK_NUMPAD_MULTIPLY = wxc.WXK_NUMPAD_MULTIPLY
677WXK_NUMPAD_ADD = wxc.WXK_NUMPAD_ADD
678WXK_NUMPAD_SEPARATOR = wxc.WXK_NUMPAD_SEPARATOR
679WXK_NUMPAD_SUBTRACT = wxc.WXK_NUMPAD_SUBTRACT
680WXK_NUMPAD_DECIMAL = wxc.WXK_NUMPAD_DECIMAL
681WXK_NUMPAD_DIVIDE = wxc.WXK_NUMPAD_DIVIDE
3100de99
RD
682WXK_WINDOWS_LEFT = wxc.WXK_WINDOWS_LEFT
683WXK_WINDOWS_RIGHT = wxc.WXK_WINDOWS_RIGHT
684WXK_WINDOWS_MENU = wxc.WXK_WINDOWS_MENU
7a446686
RD
685wxBITMAP_TYPE_INVALID = wxc.wxBITMAP_TYPE_INVALID
686wxBITMAP_TYPE_BMP = wxc.wxBITMAP_TYPE_BMP
687wxBITMAP_TYPE_BMP_RESOURCE = wxc.wxBITMAP_TYPE_BMP_RESOURCE
688wxBITMAP_TYPE_RESOURCE = wxc.wxBITMAP_TYPE_RESOURCE
689wxBITMAP_TYPE_ICO = wxc.wxBITMAP_TYPE_ICO
690wxBITMAP_TYPE_ICO_RESOURCE = wxc.wxBITMAP_TYPE_ICO_RESOURCE
691wxBITMAP_TYPE_CUR = wxc.wxBITMAP_TYPE_CUR
692wxBITMAP_TYPE_CUR_RESOURCE = wxc.wxBITMAP_TYPE_CUR_RESOURCE
693wxBITMAP_TYPE_XBM = wxc.wxBITMAP_TYPE_XBM
694wxBITMAP_TYPE_XBM_DATA = wxc.wxBITMAP_TYPE_XBM_DATA
695wxBITMAP_TYPE_XPM = wxc.wxBITMAP_TYPE_XPM
696wxBITMAP_TYPE_XPM_DATA = wxc.wxBITMAP_TYPE_XPM_DATA
697wxBITMAP_TYPE_TIF = wxc.wxBITMAP_TYPE_TIF
698wxBITMAP_TYPE_TIF_RESOURCE = wxc.wxBITMAP_TYPE_TIF_RESOURCE
699wxBITMAP_TYPE_GIF = wxc.wxBITMAP_TYPE_GIF
700wxBITMAP_TYPE_GIF_RESOURCE = wxc.wxBITMAP_TYPE_GIF_RESOURCE
701wxBITMAP_TYPE_PNG = wxc.wxBITMAP_TYPE_PNG
702wxBITMAP_TYPE_PNG_RESOURCE = wxc.wxBITMAP_TYPE_PNG_RESOURCE
703wxBITMAP_TYPE_JPEG = wxc.wxBITMAP_TYPE_JPEG
704wxBITMAP_TYPE_JPEG_RESOURCE = wxc.wxBITMAP_TYPE_JPEG_RESOURCE
705wxBITMAP_TYPE_PNM = wxc.wxBITMAP_TYPE_PNM
706wxBITMAP_TYPE_PNM_RESOURCE = wxc.wxBITMAP_TYPE_PNM_RESOURCE
707wxBITMAP_TYPE_PCX = wxc.wxBITMAP_TYPE_PCX
708wxBITMAP_TYPE_PCX_RESOURCE = wxc.wxBITMAP_TYPE_PCX_RESOURCE
709wxBITMAP_TYPE_PICT = wxc.wxBITMAP_TYPE_PICT
710wxBITMAP_TYPE_PICT_RESOURCE = wxc.wxBITMAP_TYPE_PICT_RESOURCE
711wxBITMAP_TYPE_ICON = wxc.wxBITMAP_TYPE_ICON
712wxBITMAP_TYPE_ICON_RESOURCE = wxc.wxBITMAP_TYPE_ICON_RESOURCE
db34b2d4 713wxBITMAP_TYPE_ANI = wxc.wxBITMAP_TYPE_ANI
85247b36 714wxBITMAP_TYPE_IFF = wxc.wxBITMAP_TYPE_IFF
7a446686
RD
715wxBITMAP_TYPE_MACCURSOR = wxc.wxBITMAP_TYPE_MACCURSOR
716wxBITMAP_TYPE_MACCURSOR_RESOURCE = wxc.wxBITMAP_TYPE_MACCURSOR_RESOURCE
717wxBITMAP_TYPE_ANY = wxc.wxBITMAP_TYPE_ANY
b8b8dda7
RD
718wxCURSOR_NONE = wxc.wxCURSOR_NONE
719wxCURSOR_ARROW = wxc.wxCURSOR_ARROW
a884bee5 720wxCURSOR_RIGHT_ARROW = wxc.wxCURSOR_RIGHT_ARROW
b8b8dda7
RD
721wxCURSOR_BULLSEYE = wxc.wxCURSOR_BULLSEYE
722wxCURSOR_CHAR = wxc.wxCURSOR_CHAR
723wxCURSOR_CROSS = wxc.wxCURSOR_CROSS
724wxCURSOR_HAND = wxc.wxCURSOR_HAND
725wxCURSOR_IBEAM = wxc.wxCURSOR_IBEAM
726wxCURSOR_LEFT_BUTTON = wxc.wxCURSOR_LEFT_BUTTON
727wxCURSOR_MAGNIFIER = wxc.wxCURSOR_MAGNIFIER
728wxCURSOR_MIDDLE_BUTTON = wxc.wxCURSOR_MIDDLE_BUTTON
729wxCURSOR_NO_ENTRY = wxc.wxCURSOR_NO_ENTRY
730wxCURSOR_PAINT_BRUSH = wxc.wxCURSOR_PAINT_BRUSH
731wxCURSOR_PENCIL = wxc.wxCURSOR_PENCIL
732wxCURSOR_POINT_LEFT = wxc.wxCURSOR_POINT_LEFT
733wxCURSOR_POINT_RIGHT = wxc.wxCURSOR_POINT_RIGHT
734wxCURSOR_QUESTION_ARROW = wxc.wxCURSOR_QUESTION_ARROW
735wxCURSOR_RIGHT_BUTTON = wxc.wxCURSOR_RIGHT_BUTTON
736wxCURSOR_SIZENESW = wxc.wxCURSOR_SIZENESW
737wxCURSOR_SIZENS = wxc.wxCURSOR_SIZENS
738wxCURSOR_SIZENWSE = wxc.wxCURSOR_SIZENWSE
739wxCURSOR_SIZEWE = wxc.wxCURSOR_SIZEWE
740wxCURSOR_SIZING = wxc.wxCURSOR_SIZING
741wxCURSOR_SPRAYCAN = wxc.wxCURSOR_SPRAYCAN
742wxCURSOR_WAIT = wxc.wxCURSOR_WAIT
743wxCURSOR_WATCH = wxc.wxCURSOR_WATCH
744wxCURSOR_BLANK = wxc.wxCURSOR_BLANK
7a446686
RD
745wxCURSOR_DEFAULT = wxc.wxCURSOR_DEFAULT
746wxCURSOR_ARROWWAIT = wxc.wxCURSOR_ARROWWAIT
747wxCURSOR_MAX = wxc.wxCURSOR_MAX
cf694132
RD
748wxPAPER_NONE = wxc.wxPAPER_NONE
749wxPAPER_LETTER = wxc.wxPAPER_LETTER
750wxPAPER_LEGAL = wxc.wxPAPER_LEGAL
751wxPAPER_A4 = wxc.wxPAPER_A4
752wxPAPER_CSHEET = wxc.wxPAPER_CSHEET
753wxPAPER_DSHEET = wxc.wxPAPER_DSHEET
754wxPAPER_ESHEET = wxc.wxPAPER_ESHEET
755wxPAPER_LETTERSMALL = wxc.wxPAPER_LETTERSMALL
756wxPAPER_TABLOID = wxc.wxPAPER_TABLOID
757wxPAPER_LEDGER = wxc.wxPAPER_LEDGER
758wxPAPER_STATEMENT = wxc.wxPAPER_STATEMENT
759wxPAPER_EXECUTIVE = wxc.wxPAPER_EXECUTIVE
760wxPAPER_A3 = wxc.wxPAPER_A3
761wxPAPER_A4SMALL = wxc.wxPAPER_A4SMALL
762wxPAPER_A5 = wxc.wxPAPER_A5
763wxPAPER_B4 = wxc.wxPAPER_B4
764wxPAPER_B5 = wxc.wxPAPER_B5
765wxPAPER_FOLIO = wxc.wxPAPER_FOLIO
766wxPAPER_QUARTO = wxc.wxPAPER_QUARTO
767wxPAPER_10X14 = wxc.wxPAPER_10X14
768wxPAPER_11X17 = wxc.wxPAPER_11X17
769wxPAPER_NOTE = wxc.wxPAPER_NOTE
770wxPAPER_ENV_9 = wxc.wxPAPER_ENV_9
771wxPAPER_ENV_10 = wxc.wxPAPER_ENV_10
772wxPAPER_ENV_11 = wxc.wxPAPER_ENV_11
773wxPAPER_ENV_12 = wxc.wxPAPER_ENV_12
774wxPAPER_ENV_14 = wxc.wxPAPER_ENV_14
775wxPAPER_ENV_DL = wxc.wxPAPER_ENV_DL
776wxPAPER_ENV_C5 = wxc.wxPAPER_ENV_C5
777wxPAPER_ENV_C3 = wxc.wxPAPER_ENV_C3
778wxPAPER_ENV_C4 = wxc.wxPAPER_ENV_C4
779wxPAPER_ENV_C6 = wxc.wxPAPER_ENV_C6
780wxPAPER_ENV_C65 = wxc.wxPAPER_ENV_C65
781wxPAPER_ENV_B4 = wxc.wxPAPER_ENV_B4
782wxPAPER_ENV_B5 = wxc.wxPAPER_ENV_B5
783wxPAPER_ENV_B6 = wxc.wxPAPER_ENV_B6
784wxPAPER_ENV_ITALY = wxc.wxPAPER_ENV_ITALY
785wxPAPER_ENV_MONARCH = wxc.wxPAPER_ENV_MONARCH
786wxPAPER_ENV_PERSONAL = wxc.wxPAPER_ENV_PERSONAL
787wxPAPER_FANFOLD_US = wxc.wxPAPER_FANFOLD_US
788wxPAPER_FANFOLD_STD_GERMAN = wxc.wxPAPER_FANFOLD_STD_GERMAN
789wxPAPER_FANFOLD_LGL_GERMAN = wxc.wxPAPER_FANFOLD_LGL_GERMAN
790wxPAPER_ISO_B4 = wxc.wxPAPER_ISO_B4
791wxPAPER_JAPANESE_POSTCARD = wxc.wxPAPER_JAPANESE_POSTCARD
792wxPAPER_9X11 = wxc.wxPAPER_9X11
793wxPAPER_10X11 = wxc.wxPAPER_10X11
794wxPAPER_15X11 = wxc.wxPAPER_15X11
795wxPAPER_ENV_INVITE = wxc.wxPAPER_ENV_INVITE
796wxPAPER_LETTER_EXTRA = wxc.wxPAPER_LETTER_EXTRA
797wxPAPER_LEGAL_EXTRA = wxc.wxPAPER_LEGAL_EXTRA
798wxPAPER_TABLOID_EXTRA = wxc.wxPAPER_TABLOID_EXTRA
799wxPAPER_A4_EXTRA = wxc.wxPAPER_A4_EXTRA
800wxPAPER_LETTER_TRANSVERSE = wxc.wxPAPER_LETTER_TRANSVERSE
801wxPAPER_A4_TRANSVERSE = wxc.wxPAPER_A4_TRANSVERSE
802wxPAPER_LETTER_EXTRA_TRANSVERSE = wxc.wxPAPER_LETTER_EXTRA_TRANSVERSE
803wxPAPER_A_PLUS = wxc.wxPAPER_A_PLUS
804wxPAPER_B_PLUS = wxc.wxPAPER_B_PLUS
805wxPAPER_LETTER_PLUS = wxc.wxPAPER_LETTER_PLUS
806wxPAPER_A4_PLUS = wxc.wxPAPER_A4_PLUS
807wxPAPER_A5_TRANSVERSE = wxc.wxPAPER_A5_TRANSVERSE
808wxPAPER_B5_TRANSVERSE = wxc.wxPAPER_B5_TRANSVERSE
809wxPAPER_A3_EXTRA = wxc.wxPAPER_A3_EXTRA
810wxPAPER_A5_EXTRA = wxc.wxPAPER_A5_EXTRA
811wxPAPER_B5_EXTRA = wxc.wxPAPER_B5_EXTRA
812wxPAPER_A2 = wxc.wxPAPER_A2
813wxPAPER_A3_TRANSVERSE = wxc.wxPAPER_A3_TRANSVERSE
814wxPAPER_A3_EXTRA_TRANSVERSE = wxc.wxPAPER_A3_EXTRA_TRANSVERSE
bb0054cd
RD
815wxDUPLEX_SIMPLEX = wxc.wxDUPLEX_SIMPLEX
816wxDUPLEX_HORIZONTAL = wxc.wxDUPLEX_HORIZONTAL
817wxDUPLEX_VERTICAL = wxc.wxDUPLEX_VERTICAL
546bfbea
VS
818wxITEM_SEPARATOR = wxc.wxITEM_SEPARATOR
819wxITEM_NORMAL = wxc.wxITEM_NORMAL
820wxITEM_CHECK = wxc.wxITEM_CHECK
821wxITEM_RADIO = wxc.wxITEM_RADIO
822wxITEM_MAX = wxc.wxITEM_MAX
8cb49012
RD
823wxHT_NOWHERE = wxc.wxHT_NOWHERE
824wxHT_SCROLLBAR_FIRST = wxc.wxHT_SCROLLBAR_FIRST
825wxHT_SCROLLBAR_ARROW_LINE_1 = wxc.wxHT_SCROLLBAR_ARROW_LINE_1
826wxHT_SCROLLBAR_ARROW_LINE_2 = wxc.wxHT_SCROLLBAR_ARROW_LINE_2
827wxHT_SCROLLBAR_ARROW_PAGE_1 = wxc.wxHT_SCROLLBAR_ARROW_PAGE_1
828wxHT_SCROLLBAR_ARROW_PAGE_2 = wxc.wxHT_SCROLLBAR_ARROW_PAGE_2
829wxHT_SCROLLBAR_THUMB = wxc.wxHT_SCROLLBAR_THUMB
830wxHT_SCROLLBAR_BAR_1 = wxc.wxHT_SCROLLBAR_BAR_1
831wxHT_SCROLLBAR_BAR_2 = wxc.wxHT_SCROLLBAR_BAR_2
832wxHT_SCROLLBAR_LAST = wxc.wxHT_SCROLLBAR_LAST
833wxHT_WINDOW_OUTSIDE = wxc.wxHT_WINDOW_OUTSIDE
834wxHT_WINDOW_INSIDE = wxc.wxHT_WINDOW_INSIDE
835wxHT_WINDOW_VERT_SCROLLBAR = wxc.wxHT_WINDOW_VERT_SCROLLBAR
836wxHT_WINDOW_HORZ_SCROLLBAR = wxc.wxHT_WINDOW_HORZ_SCROLLBAR
837wxHT_WINDOW_CORNER = wxc.wxHT_WINDOW_CORNER
838wxHT_MAX = wxc.wxHT_MAX
b8b8dda7
RD
839wxEVT_NULL = wxc.wxEVT_NULL
840wxEVT_FIRST = wxc.wxEVT_FIRST
841wxEVT_COMMAND_BUTTON_CLICKED = wxc.wxEVT_COMMAND_BUTTON_CLICKED
842wxEVT_COMMAND_CHECKBOX_CLICKED = wxc.wxEVT_COMMAND_CHECKBOX_CLICKED
843wxEVT_COMMAND_CHOICE_SELECTED = wxc.wxEVT_COMMAND_CHOICE_SELECTED
844wxEVT_COMMAND_LISTBOX_SELECTED = wxc.wxEVT_COMMAND_LISTBOX_SELECTED
845wxEVT_COMMAND_LISTBOX_DOUBLECLICKED = wxc.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
846wxEVT_COMMAND_CHECKLISTBOX_TOGGLED = wxc.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
3af4e610 847wxEVT_COMMAND_SPINCTRL_UPDATED = wxc.wxEVT_COMMAND_SPINCTRL_UPDATED
b8b8dda7
RD
848wxEVT_COMMAND_TEXT_UPDATED = wxc.wxEVT_COMMAND_TEXT_UPDATED
849wxEVT_COMMAND_TEXT_ENTER = wxc.wxEVT_COMMAND_TEXT_ENTER
059a841c
RD
850wxEVT_COMMAND_TEXT_URL = wxc.wxEVT_COMMAND_TEXT_URL
851wxEVT_COMMAND_TEXT_MAXLEN = wxc.wxEVT_COMMAND_TEXT_MAXLEN
b8b8dda7
RD
852wxEVT_COMMAND_MENU_SELECTED = wxc.wxEVT_COMMAND_MENU_SELECTED
853wxEVT_COMMAND_SLIDER_UPDATED = wxc.wxEVT_COMMAND_SLIDER_UPDATED
854wxEVT_COMMAND_RADIOBOX_SELECTED = wxc.wxEVT_COMMAND_RADIOBOX_SELECTED
855wxEVT_COMMAND_RADIOBUTTON_SELECTED = wxc.wxEVT_COMMAND_RADIOBUTTON_SELECTED
856wxEVT_COMMAND_SCROLLBAR_UPDATED = wxc.wxEVT_COMMAND_SCROLLBAR_UPDATED
857wxEVT_COMMAND_VLBOX_SELECTED = wxc.wxEVT_COMMAND_VLBOX_SELECTED
858wxEVT_COMMAND_COMBOBOX_SELECTED = wxc.wxEVT_COMMAND_COMBOBOX_SELECTED
859wxEVT_COMMAND_TOOL_CLICKED = wxc.wxEVT_COMMAND_TOOL_CLICKED
860wxEVT_COMMAND_TOOL_RCLICKED = wxc.wxEVT_COMMAND_TOOL_RCLICKED
861wxEVT_COMMAND_TOOL_ENTER = wxc.wxEVT_COMMAND_TOOL_ENTER
862wxEVT_SET_FOCUS = wxc.wxEVT_SET_FOCUS
863wxEVT_KILL_FOCUS = wxc.wxEVT_KILL_FOCUS
3e212503 864wxEVT_CHILD_FOCUS = wxc.wxEVT_CHILD_FOCUS
7a446686 865wxEVT_MOUSEWHEEL = wxc.wxEVT_MOUSEWHEEL
b8b8dda7
RD
866wxEVT_LEFT_DOWN = wxc.wxEVT_LEFT_DOWN
867wxEVT_LEFT_UP = wxc.wxEVT_LEFT_UP
868wxEVT_MIDDLE_DOWN = wxc.wxEVT_MIDDLE_DOWN
869wxEVT_MIDDLE_UP = wxc.wxEVT_MIDDLE_UP
870wxEVT_RIGHT_DOWN = wxc.wxEVT_RIGHT_DOWN
871wxEVT_RIGHT_UP = wxc.wxEVT_RIGHT_UP
872wxEVT_MOTION = wxc.wxEVT_MOTION
873wxEVT_ENTER_WINDOW = wxc.wxEVT_ENTER_WINDOW
874wxEVT_LEAVE_WINDOW = wxc.wxEVT_LEAVE_WINDOW
875wxEVT_LEFT_DCLICK = wxc.wxEVT_LEFT_DCLICK
876wxEVT_MIDDLE_DCLICK = wxc.wxEVT_MIDDLE_DCLICK
877wxEVT_RIGHT_DCLICK = wxc.wxEVT_RIGHT_DCLICK
94c16279 878wxEVT_MOUSE_CAPTURE_CHANGED = wxc.wxEVT_MOUSE_CAPTURE_CHANGED
b8b8dda7
RD
879wxEVT_NC_LEFT_DOWN = wxc.wxEVT_NC_LEFT_DOWN
880wxEVT_NC_LEFT_UP = wxc.wxEVT_NC_LEFT_UP
881wxEVT_NC_MIDDLE_DOWN = wxc.wxEVT_NC_MIDDLE_DOWN
882wxEVT_NC_MIDDLE_UP = wxc.wxEVT_NC_MIDDLE_UP
883wxEVT_NC_RIGHT_DOWN = wxc.wxEVT_NC_RIGHT_DOWN
884wxEVT_NC_RIGHT_UP = wxc.wxEVT_NC_RIGHT_UP
885wxEVT_NC_MOTION = wxc.wxEVT_NC_MOTION
886wxEVT_NC_ENTER_WINDOW = wxc.wxEVT_NC_ENTER_WINDOW
887wxEVT_NC_LEAVE_WINDOW = wxc.wxEVT_NC_LEAVE_WINDOW
888wxEVT_NC_LEFT_DCLICK = wxc.wxEVT_NC_LEFT_DCLICK
889wxEVT_NC_MIDDLE_DCLICK = wxc.wxEVT_NC_MIDDLE_DCLICK
890wxEVT_NC_RIGHT_DCLICK = wxc.wxEVT_NC_RIGHT_DCLICK
298ae144 891wxEVT_SET_CURSOR = wxc.wxEVT_SET_CURSOR
b8b8dda7 892wxEVT_CHAR = wxc.wxEVT_CHAR
8bf5d46e
RD
893wxEVT_KEY_DOWN = wxc.wxEVT_KEY_DOWN
894wxEVT_KEY_UP = wxc.wxEVT_KEY_UP
895wxEVT_CHAR_HOOK = wxc.wxEVT_CHAR_HOOK
b8b8dda7
RD
896wxEVT_SCROLL_TOP = wxc.wxEVT_SCROLL_TOP
897wxEVT_SCROLL_BOTTOM = wxc.wxEVT_SCROLL_BOTTOM
898wxEVT_SCROLL_LINEUP = wxc.wxEVT_SCROLL_LINEUP
899wxEVT_SCROLL_LINEDOWN = wxc.wxEVT_SCROLL_LINEDOWN
900wxEVT_SCROLL_PAGEUP = wxc.wxEVT_SCROLL_PAGEUP
901wxEVT_SCROLL_PAGEDOWN = wxc.wxEVT_SCROLL_PAGEDOWN
902wxEVT_SCROLL_THUMBTRACK = wxc.wxEVT_SCROLL_THUMBTRACK
26b9cf27 903wxEVT_SCROLL_THUMBRELEASE = wxc.wxEVT_SCROLL_THUMBRELEASE
123908fc 904wxEVT_SCROLL_ENDSCROLL = wxc.wxEVT_SCROLL_ENDSCROLL
bb0054cd
RD
905wxEVT_SCROLLWIN_TOP = wxc.wxEVT_SCROLLWIN_TOP
906wxEVT_SCROLLWIN_BOTTOM = wxc.wxEVT_SCROLLWIN_BOTTOM
907wxEVT_SCROLLWIN_LINEUP = wxc.wxEVT_SCROLLWIN_LINEUP
908wxEVT_SCROLLWIN_LINEDOWN = wxc.wxEVT_SCROLLWIN_LINEDOWN
909wxEVT_SCROLLWIN_PAGEUP = wxc.wxEVT_SCROLLWIN_PAGEUP
910wxEVT_SCROLLWIN_PAGEDOWN = wxc.wxEVT_SCROLLWIN_PAGEDOWN
911wxEVT_SCROLLWIN_THUMBTRACK = wxc.wxEVT_SCROLLWIN_THUMBTRACK
26b9cf27 912wxEVT_SCROLLWIN_THUMBRELEASE = wxc.wxEVT_SCROLLWIN_THUMBRELEASE
b8b8dda7
RD
913wxEVT_SIZE = wxc.wxEVT_SIZE
914wxEVT_MOVE = wxc.wxEVT_MOVE
915wxEVT_CLOSE_WINDOW = wxc.wxEVT_CLOSE_WINDOW
916wxEVT_END_SESSION = wxc.wxEVT_END_SESSION
917wxEVT_QUERY_END_SESSION = wxc.wxEVT_QUERY_END_SESSION
918wxEVT_ACTIVATE_APP = wxc.wxEVT_ACTIVATE_APP
919wxEVT_POWER = wxc.wxEVT_POWER
b8b8dda7
RD
920wxEVT_ACTIVATE = wxc.wxEVT_ACTIVATE
921wxEVT_CREATE = wxc.wxEVT_CREATE
922wxEVT_DESTROY = wxc.wxEVT_DESTROY
923wxEVT_SHOW = wxc.wxEVT_SHOW
924wxEVT_ICONIZE = wxc.wxEVT_ICONIZE
925wxEVT_MAXIMIZE = wxc.wxEVT_MAXIMIZE
b8b8dda7
RD
926wxEVT_PAINT = wxc.wxEVT_PAINT
927wxEVT_ERASE_BACKGROUND = wxc.wxEVT_ERASE_BACKGROUND
928wxEVT_NC_PAINT = wxc.wxEVT_NC_PAINT
929wxEVT_PAINT_ICON = wxc.wxEVT_PAINT_ICON
4152e8b9
RD
930wxEVT_MENU_OPEN = wxc.wxEVT_MENU_OPEN
931wxEVT_MENU_CLOSE = wxc.wxEVT_MENU_CLOSE
b8b8dda7 932wxEVT_MENU_HIGHLIGHT = wxc.wxEVT_MENU_HIGHLIGHT
f0972d1e 933wxEVT_CONTEXT_MENU = wxc.wxEVT_CONTEXT_MENU
b8b8dda7 934wxEVT_SYS_COLOUR_CHANGED = wxc.wxEVT_SYS_COLOUR_CHANGED
ef2060fa 935wxEVT_DISPLAY_CHANGED = wxc.wxEVT_DISPLAY_CHANGED
b8b8dda7
RD
936wxEVT_SETTING_CHANGED = wxc.wxEVT_SETTING_CHANGED
937wxEVT_QUERY_NEW_PALETTE = wxc.wxEVT_QUERY_NEW_PALETTE
938wxEVT_PALETTE_CHANGED = wxc.wxEVT_PALETTE_CHANGED
939wxEVT_JOY_BUTTON_DOWN = wxc.wxEVT_JOY_BUTTON_DOWN
940wxEVT_JOY_BUTTON_UP = wxc.wxEVT_JOY_BUTTON_UP
941wxEVT_JOY_MOVE = wxc.wxEVT_JOY_MOVE
942wxEVT_JOY_ZMOVE = wxc.wxEVT_JOY_ZMOVE
943wxEVT_DROP_FILES = wxc.wxEVT_DROP_FILES
944wxEVT_DRAW_ITEM = wxc.wxEVT_DRAW_ITEM
945wxEVT_MEASURE_ITEM = wxc.wxEVT_MEASURE_ITEM
946wxEVT_COMPARE_ITEM = wxc.wxEVT_COMPARE_ITEM
947wxEVT_INIT_DIALOG = wxc.wxEVT_INIT_DIALOG
948wxEVT_IDLE = wxc.wxEVT_IDLE
949wxEVT_UPDATE_UI = wxc.wxEVT_UPDATE_UI
950wxEVT_COMMAND_LEFT_CLICK = wxc.wxEVT_COMMAND_LEFT_CLICK
951wxEVT_COMMAND_LEFT_DCLICK = wxc.wxEVT_COMMAND_LEFT_DCLICK
952wxEVT_COMMAND_RIGHT_CLICK = wxc.wxEVT_COMMAND_RIGHT_CLICK
953wxEVT_COMMAND_RIGHT_DCLICK = wxc.wxEVT_COMMAND_RIGHT_DCLICK
954wxEVT_COMMAND_SET_FOCUS = wxc.wxEVT_COMMAND_SET_FOCUS
955wxEVT_COMMAND_KILL_FOCUS = wxc.wxEVT_COMMAND_KILL_FOCUS
956wxEVT_COMMAND_ENTER = wxc.wxEVT_COMMAND_ENTER
2f90df85 957wxEVT_NAVIGATION_KEY = wxc.wxEVT_NAVIGATION_KEY
f6bcfd97 958wxEVT_TIMER = wxc.wxEVT_TIMER
b8b8dda7 959cvar = wxc.cvar
b68dc582
RD
960wxDefaultPosition = wxPointPtr(wxc.cvar.wxDefaultPosition)
961wxDefaultSize = wxSizePtr(wxc.cvar.wxDefaultSize)
b67a9327
RD
962wxPYAPP_ASSERT_SUPPRESS = wxc.wxPYAPP_ASSERT_SUPPRESS
963wxPYAPP_ASSERT_EXCEPTION = wxc.wxPYAPP_ASSERT_EXCEPTION
964wxPYAPP_ASSERT_DIALOG = wxc.wxPYAPP_ASSERT_DIALOG
965wxPYAPP_ASSERT_LOG = wxc.wxPYAPP_ASSERT_LOG
b8b8dda7
RD
966
967
968#-------------- USER INCLUDE -----------------------
969
970#----------------------------------------------------------------------------
971# Name: _extra.py
b67a9327 972# Purpose: This file is appended to the shadow class file generated
b8b8dda7
RD
973# by SWIG. We add some unSWIGable things here.
974#
975# Author: Robin Dunn
976#
977# Created: 6/30/97
b8b8dda7
RD
978# Copyright: (c) 1998 by Total Control Software
979# Licence: wxWindows license
980#----------------------------------------------------------------------------
981
982import sys
983
984#----------------------------------------------------------------------
985# This gives this module's dictionary to the C++ extension code...
986
987_wxSetDictionary(vars())
988
989
990#----------------------------------------------------------------------
991#----------------------------------------------------------------------
992# Helper function to link python methods to wxWindows virtual
993# functions by name.
994
995def _checkForCallback(obj, name, event, theID=-1):
996 try: cb = getattr(obj, name)
997 except: pass
998 else: obj.Connect(theID, -1, event, cb)
999
b8b8dda7
RD
1000
1001#----------------------------------------------------------------------
1002#----------------------------------------------------------------------
1003# functions that look and act like the C++ Macros of the same name
1004
1005
1006# Miscellaneous
1007def EVT_SIZE(win, func):
1008 win.Connect(-1, -1, wxEVT_SIZE, func)
1009
1010def EVT_MOVE(win, func):
1011 win.Connect(-1, -1, wxEVT_MOVE, func)
1012
1013def EVT_CLOSE(win, func):
1014 win.Connect(-1, -1, wxEVT_CLOSE_WINDOW, func)
1015
1016def EVT_PAINT(win, func):
1017 win.Connect(-1, -1, wxEVT_PAINT, func)
1018
1019def EVT_ERASE_BACKGROUND(win, func):
1020 win.Connect(-1, -1, wxEVT_ERASE_BACKGROUND, func)
1021
1022def EVT_CHAR(win, func):
1023 win.Connect(-1, -1, wxEVT_CHAR, func)
1024
1025def EVT_CHAR_HOOK(win, func):
1026 win.Connect(-1, -1, wxEVT_CHAR_HOOK, func)
1027
8bf5d46e
RD
1028def EVT_KEY_DOWN(win, func):
1029 win.Connect(-1, -1, wxEVT_KEY_DOWN, func)
1030
1031def EVT_KEY_UP(win, func):
1032 win.Connect(-1, -1, wxEVT_KEY_UP, func)
1033
4152e8b9
RD
1034def EVT_MENU_OPEN(win, func):
1035 win.Connect(-1, -1, wxEVT_MENU_OPEN, func)
1036
1037def EVT_MENU_CLOSE(win, func):
1038 win.Connect(-1, -1, wxEVT_MENU_CLOSE, func)
1039
b8b8dda7
RD
1040def EVT_MENU_HIGHLIGHT(win, id, func):
1041 win.Connect(id, -1, wxEVT_MENU_HIGHLIGHT, func)
1042
1043def EVT_MENU_HIGHLIGHT_ALL(win, func):
1044 win.Connect(-1, -1, wxEVT_MENU_HIGHLIGHT, func)
1045
1046def EVT_SET_FOCUS(win, func):
1047 win.Connect(-1, -1, wxEVT_SET_FOCUS, func)
1048
1049def EVT_KILL_FOCUS(win, func):
1050 win.Connect(-1, -1, wxEVT_KILL_FOCUS, func)
1051
3e212503
RD
1052def EVT_CHILD_FOCUS(win, func):
1053 win.Connect(-1, -1, wxEVT_CHILD_FOCUS, func)
1054
b8b8dda7
RD
1055def EVT_ACTIVATE(win, func):
1056 win.Connect(-1, -1, wxEVT_ACTIVATE, func)
1057
1058def EVT_ACTIVATE_APP(win, func):
1059 win.Connect(-1, -1, wxEVT_ACTIVATE_APP, func)
1060
1061def EVT_END_SESSION(win, func):
1062 win.Connect(-1, -1, wxEVT_END_SESSION, func)
1063
1064def EVT_QUERY_END_SESSION(win, func):
1065 win.Connect(-1, -1, wxEVT_QUERY_END_SESSION, func)
1066
1067def EVT_DROP_FILES(win, func):
1068 win.Connect(-1, -1, wxEVT_DROP_FILES, func)
1069
1070def EVT_INIT_DIALOG(win, func):
1071 win.Connect(-1, -1, wxEVT_INIT_DIALOG, func)
1072
1073def EVT_SYS_COLOUR_CHANGED(win, func):
1074 win.Connect(-1, -1, wxEVT_SYS_COLOUR_CHANGED, func)
1075
ef2060fa
RD
1076def EVT_DISPLAY_CHANGED(win, func):
1077 win.Connect(-1, -1, wxEVT_DISPLAY_CHANGED, func)
1078
b8b8dda7
RD
1079def EVT_SHOW(win, func):
1080 win.Connect(-1, -1, wxEVT_SHOW, func)
1081
1082def EVT_MAXIMIZE(win, func):
1083 win.Connect(-1, -1, wxEVT_MAXIMIZE, func)
1084
1085def EVT_ICONIZE(win, func):
1086 win.Connect(-1, -1, wxEVT_ICONIZE, func)
1087
1088def EVT_NAVIGATION_KEY(win, func):
1089 win.Connect(-1, -1, wxEVT_NAVIGATION_KEY, func)
1090
3af4e610
RD
1091def EVT_PALETTE_CHANGED(win, func):
1092 win.Connect(-1, -1, wxEVT_PALETTE_CHANGED, func)
1093
1094def EVT_QUERY_NEW_PALETTE(win, func):
1095 win.Connect(-1, -1, wxEVT_QUERY_NEW_PALETTE, func)
1096
1097def EVT_WINDOW_CREATE(win, func):
b7e72427 1098 win.Connect(-1, -1, wxEVT_CREATE, func)
3af4e610
RD
1099
1100def EVT_WINDOW_DESTROY(win, func):
b7e72427 1101 win.Connect(-1, -1, wxEVT_DESTROY, func)
3af4e610 1102
b67a9327
RD
1103def EVT_WINDOW_CREATE_ID(win, id, func):
1104 win.Connect(id, -1, wxEVT_CREATE, func)
1105
1106def EVT_WINDOW_DESTROY_ID(win, id, func):
1107 win.Connect(id, -1, wxEVT_DESTROY, func)
1108
298ae144
RD
1109def EVT_SET_CURSOR(win, func):
1110 win.Connect(-1, -1, wxEVT_SET_CURSOR, func)
1111
3af4e610
RD
1112
1113
cf694132
RD
1114def EVT_IDLE(win, func):
1115 win.Connect(-1, -1, wxEVT_IDLE, func)
1116
bb0054cd
RD
1117def EVT_UPDATE_UI(win, id, func):
1118 win.Connect(id, -1, wxEVT_UPDATE_UI, func)
1119
eb715945
RD
1120def EVT_UPDATE_UI_RANGE(win, id, id2, func):
1121 win.Connect(id, id2, wxEVT_UPDATE_UI, func)
1122
b8b8dda7
RD
1123
1124# Mouse Events
1125def EVT_LEFT_DOWN(win, func):
1126 win.Connect(-1, -1, wxEVT_LEFT_DOWN, func)
1127
1128def EVT_LEFT_UP(win, func):
1129 win.Connect(-1, -1, wxEVT_LEFT_UP, func)
1130
1131def EVT_MIDDLE_DOWN(win, func):
1132 win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func)
1133
1134def EVT_MIDDLE_UP(win, func):
1135 win.Connect(-1, -1, wxEVT_MIDDLE_UP, func)
1136
1137def EVT_RIGHT_DOWN(win, func):
1138 win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func)
1139
1140def EVT_RIGHT_UP(win, func):
1141 win.Connect(-1, -1, wxEVT_RIGHT_UP, func)
1142
1143def EVT_MOTION(win, func):
1144 win.Connect(-1, -1, wxEVT_MOTION, func)
1145
1146def EVT_LEFT_DCLICK(win, func):
1147 win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func)
1148
1149def EVT_MIDDLE_DCLICK(win, func):
1150 win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func)
1151
1152def EVT_RIGHT_DCLICK(win, func):
1153 win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func)
1154
1155def EVT_LEAVE_WINDOW(win, func):
1156 win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func)
1157
1158def EVT_ENTER_WINDOW(win, func):
1159 win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func)
1160
7a446686
RD
1161def EVT_MOUSEWHEEL(win, func):
1162 win.Connect(-1, -1, wxEVT_MOUSEWHEEL, func)
b8b8dda7
RD
1163
1164# all mouse events
1165def EVT_MOUSE_EVENTS(win, func):
1166 win.Connect(-1, -1, wxEVT_LEFT_DOWN, func)
1167 win.Connect(-1, -1, wxEVT_LEFT_UP, func)
1168 win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func)
1169 win.Connect(-1, -1, wxEVT_MIDDLE_UP, func)
1170 win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func)
1171 win.Connect(-1, -1, wxEVT_RIGHT_UP, func)
1172 win.Connect(-1, -1, wxEVT_MOTION, func)
1173 win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func)
1174 win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func)
1175 win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func)
1176 win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func)
1177 win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func)
1178
94c16279
RD
1179def EVT_MOUSE_CAPTURE_CHANGED(win, func):
1180 win.Connect(-1, -1, wxEVT_MOUSE_CAPTURE_CHANGED, func)
1181
b8b8dda7
RD
1182# EVT_COMMAND
1183def EVT_COMMAND(win, id, cmd, func):
1184 win.Connect(id, -1, cmd, func)
1185
1186def EVT_COMMAND_RANGE(win, id1, id2, cmd, func):
1187 win.Connect(id1, id2, cmd, func)
1188
26b9cf27 1189
b8b8dda7
RD
1190# Scrolling
1191def EVT_SCROLL(win, func):
123908fc
RD
1192 win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
1193 win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func)
1194 win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func)
1195 win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func)
1196 win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
1197 win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
1198 win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK, func)
26b9cf27 1199 win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE,func)
123908fc 1200 win.Connect(-1, -1, wxEVT_SCROLL_ENDSCROLL, func)
b8b8dda7
RD
1201
1202def EVT_SCROLL_TOP(win, func):
1203 win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
1204
1205def EVT_SCROLL_BOTTOM(win, func):
1206 win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func)
1207
1208def EVT_SCROLL_LINEUP(win, func):
1209 win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func)
1210
1211def EVT_SCROLL_LINEDOWN(win, func):
1212 win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func)
1213
1214def EVT_SCROLL_PAGEUP(win, func):
1215 win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
1216
1217def EVT_SCROLL_PAGEDOWN(win, func):
1218 win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
1219
1220def EVT_SCROLL_THUMBTRACK(win, func):
1221 win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK, func)
1222
26b9cf27
RD
1223def EVT_SCROLL_THUMBRELEASE(win, func):
1224 win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE, func)
1225
123908fc
RD
1226def EVT_SCROLL_ENDSCROLL(win, func):
1227 win.Connect(-1, -1, wxEVT_SCROLL_ENDSCROLL, func)
1228
b8b8dda7
RD
1229
1230
1231# Scrolling, with an id
1232def EVT_COMMAND_SCROLL(win, id, func):
1233 win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
1234 win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
1235 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
1236 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
1237 win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
1238 win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
1239 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
26b9cf27 1240 win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE,func)
b67a9327 1241 win.Connect(id, -1, wxEVT_SCROLL_ENDSCROLL, func)
b8b8dda7
RD
1242
1243def EVT_COMMAND_SCROLL_TOP(win, id, func):
1244 win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
1245
1246def EVT_COMMAND_SCROLL_BOTTOM(win, id, func):
1247 win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
1248
1249def EVT_COMMAND_SCROLL_LINEUP(win, id, func):
1250 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
1251
1252def EVT_COMMAND_SCROLL_LINEDOWN(win, id, func):
1253 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
1254
1255def EVT_COMMAND_SCROLL_PAGEUP(win, id, func):
1256 win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
1257
1258def EVT_COMMAND_SCROLL_PAGEDOWN(win, id, func):
1259 win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
1260
1261def EVT_COMMAND_SCROLL_THUMBTRACK(win, id, func):
1262 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK, func)
1263
26b9cf27
RD
1264def EVT_COMMAND_SCROLL_THUMBRELEASE(win, id, func):
1265 win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE, func)
1266
123908fc
RD
1267def EVT_COMMAND_SCROLL_ENDSCROLL(win, id, func):
1268 win.Connect(id, -1, wxEVT_SCROLL_ENDSCROLL, func)
1269
d426c97e
RD
1270#---
1271def EVT_SCROLLWIN(win, func):
26b9cf27
RD
1272 win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
1273 win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func)
1274 win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func)
1275 win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
1276 win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func)
1277 win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
1278 win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
1279 win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE,func)
d426c97e
RD
1280
1281def EVT_SCROLLWIN_TOP(win, func):
1282 win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
1283
1284def EVT_SCROLLWIN_BOTTOM(win, func):
1285 win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func)
1286
1287def EVT_SCROLLWIN_LINEUP(win, func):
1288 win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func)
1289
1290def EVT_SCROLLWIN_LINEDOWN(win, func):
1291 win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
1292
1293def EVT_SCROLLWIN_PAGEUP(win, func):
1294 win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func)
1295
1296def EVT_SCROLLWIN_PAGEDOWN(win, func):
1297 win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
1298
1299def EVT_SCROLLWIN_THUMBTRACK(win, func):
1300 win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
1301
26b9cf27
RD
1302def EVT_SCROLLWIN_THUMBRELEASE(win, func):
1303 win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func)
1304
d426c97e
RD
1305
1306
1307# Scrolling, with an id
1308def EVT_COMMAND_SCROLLWIN(win, id, func):
26b9cf27
RD
1309 win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
1310 win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func)
1311 win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func)
1312 win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
1313 win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func)
1314 win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
1315 win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
1316 win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE,func)
d426c97e
RD
1317
1318def EVT_COMMAND_SCROLLWIN_TOP(win, id, func):
1319 win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
1320
1321def EVT_COMMAND_SCROLLWIN_BOTTOM(win, id, func):
1322 win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func)
1323
1324def EVT_COMMAND_SCROLLWIN_LINEUP(win, id, func):
1325 win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func)
1326
1327def EVT_COMMAND_SCROLLWIN_LINEDOWN(win, id, func):
1328 win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
1329
1330def EVT_COMMAND_SCROLLWIN_PAGEUP(win, id, func):
1331 win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func)
1332
1333def EVT_COMMAND_SCROLLWIN_PAGEDOWN(win, id, func):
1334 win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
1335
1336def EVT_COMMAND_SCROLLWIN_THUMBTRACK(win, id, func):
1337 win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
b8b8dda7 1338
26b9cf27
RD
1339def EVT_COMMAND_SCROLLWIN_THUMBRELEASE(win, id, func):
1340 win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func)
1341
1342
b8b8dda7
RD
1343# Convenience commands
1344def EVT_BUTTON(win, id, func):
1345 win.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED, func)
1346
1347def EVT_CHECKBOX(win, id, func):
1348 win.Connect(id, -1, wxEVT_COMMAND_CHECKBOX_CLICKED, func)
1349
1350def EVT_CHOICE(win, id, func):
1351 win.Connect(id, -1, wxEVT_COMMAND_CHOICE_SELECTED, func)
1352
1353def EVT_LISTBOX(win, id, func):
1354 win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_SELECTED, func)
1355
1356def EVT_LISTBOX_DCLICK(win, id, func):
1357 win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, func)
1358
1359def EVT_TEXT(win, id, func):
1360 win.Connect(id, -1, wxEVT_COMMAND_TEXT_UPDATED, func)
1361
1362def EVT_TEXT_ENTER(win, id, func):
1363 win.Connect(id, -1, wxEVT_COMMAND_TEXT_ENTER, func)
1364
059a841c
RD
1365def EVT_TEXT_URL(win, id, func):
1366 win.Connect(id, -1, wxEVT_COMMAND_TEXT_URL, func)
1367
1368def EVT_TEXT_MAXLEN(win, id, func):
1369 win.Connect(id, -1, wxEVT_COMMAND_TEXT_MAXLEN, func)
1370
b8b8dda7
RD
1371def EVT_MENU(win, id, func):
1372 win.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED, func)
1373
1374def EVT_MENU_RANGE(win, id1, id2, func):
1375 win.Connect(id1, id2, wxEVT_COMMAND_MENU_SELECTED, func)
1376
1377def EVT_SLIDER(win, id, func):
1378 win.Connect(id, -1, wxEVT_COMMAND_SLIDER_UPDATED, func)
1379
1380def EVT_RADIOBOX(win, id, func):
1381 win.Connect(id, -1, wxEVT_COMMAND_RADIOBOX_SELECTED, func)
1382
1383def EVT_RADIOBUTTON(win, id, func):
1384 win.Connect(id, -1, wxEVT_COMMAND_RADIOBUTTON_SELECTED, func)
1385
1386def EVT_VLBOX(win, id, func):
1387 win.Connect(id, -1, wxEVT_COMMAND_VLBOX_SELECTED, func)
1388
1389def EVT_COMBOBOX(win, id, func):
1390 win.Connect(id, -1, wxEVT_COMMAND_COMBOBOX_SELECTED, func)
1391
1392def EVT_TOOL(win, id, func):
1393 win.Connect(id, -1, wxEVT_COMMAND_TOOL_CLICKED, func)
1394
3af4e610
RD
1395def EVT_TOOL_RANGE(win, id, id2, func):
1396 win.Connect(id, id2, wxEVT_COMMAND_TOOL_CLICKED, func)
1397
b8b8dda7
RD
1398def EVT_TOOL_RCLICKED(win, id, func):
1399 win.Connect(id, -1, wxEVT_COMMAND_TOOL_RCLICKED, func)
1400
3af4e610
RD
1401def EVT_TOOL_RCLICKED_RANGE(win, id, id2, func):
1402 win.Connect(id, id2, wxEVT_COMMAND_TOOL_RCLICKED, func)
1403
b8b8dda7
RD
1404def EVT_TOOL_ENTER(win, id, func):
1405 win.Connect(id, -1, wxEVT_COMMAND_TOOL_ENTER, func)
1406
1407def EVT_CHECKLISTBOX(win, id, func):
1408 win.Connect(id, -1, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, func)
1409
3af4e610
RD
1410def EVT_SPINCTRL(win, id, func):
1411 win.Connect(id, -1, wxEVT_COMMAND_SPINCTRL_UPDATED, func)
1412
1413
b8b8dda7
RD
1414
1415# Generic command events
1416
1417def EVT_COMMAND_LEFT_CLICK(win, id, func):
1418 win.Connect(id, -1, wxEVT_COMMAND_LEFT_CLICK, func)
1419
1420def EVT_COMMAND_LEFT_DCLICK(win, id, func):
1421 win.Connect(id, -1, wxEVT_COMMAND_LEFT_DCLICK, func)
1422
1423def EVT_COMMAND_RIGHT_CLICK(win, id, func):
1424 win.Connect(id, -1, wxEVT_COMMAND_RIGHT_CLICK, func)
1425
1426def EVT_COMMAND_RIGHT_DCLICK(win, id, func):
1427 win.Connect(id, -1, wxEVT_COMMAND_RIGHT_DCLICK, func)
1428
1429def EVT_COMMAND_SET_FOCUS(win, id, func):
1430 win.Connect(id, -1, wxEVT_COMMAND_SET_FOCUS, func)
1431
1432def EVT_COMMAND_KILL_FOCUS(win, id, func):
1433 win.Connect(id, -1, wxEVT_COMMAND_KILL_FOCUS, func)
1434
1435def EVT_COMMAND_ENTER(win, id, func):
1436 win.Connect(id, -1, wxEVT_COMMAND_ENTER, func)
1437
1438
1439# wxNotebook events
1440def EVT_NOTEBOOK_PAGE_CHANGED(win, id, func):
1441 win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, func)
1442
1443def EVT_NOTEBOOK_PAGE_CHANGING(win, id, func):
1444 win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, func)
1445
1446
b8b8dda7
RD
1447# wxSpinButton
1448def EVT_SPIN_UP(win, id, func):
1449 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
1450
1451def EVT_SPIN_DOWN(win, id, func):
f6bcfd97 1452 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
b8b8dda7
RD
1453
1454def EVT_SPIN(win, id, func):
b8b8dda7
RD
1455 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
1456
1457
b8b8dda7
RD
1458# wxTaskBarIcon
1459def EVT_TASKBAR_MOVE(win, func):
1460 win.Connect(-1, -1, wxEVT_TASKBAR_MOVE, func)
1461
1462def EVT_TASKBAR_LEFT_DOWN(win, func):
1463 win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DOWN, func)
1464
1465def EVT_TASKBAR_LEFT_UP(win, func):
1466 win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_UP, func)
1467
1468def EVT_TASKBAR_RIGHT_DOWN(win, func):
1469 win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DOWN, func)
1470
1471def EVT_TASKBAR_RIGHT_UP(win, func):
1472 win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_UP, func)
1473
1474def EVT_TASKBAR_LEFT_DCLICK(win, func):
1475 win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DCLICK, func)
1476
1477def EVT_TASKBAR_RIGHT_DCLICK(win, func):
1478 win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DCLICK, func)
1479
1480
08127323
RD
1481# wxSashWindow
1482def EVT_SASH_DRAGGED(win, id, func):
1483 win.Connect(id, -1, wxEVT_SASH_DRAGGED, func)
1484
1485def EVT_SASH_DRAGGED_RANGE(win, id1, id2, func):
1486 win.Connect(id1, id2, wxEVT_SASH_DRAGGED, func)
1487
1488def EVT_QUERY_LAYOUT_INFO(win, func):
1fded56b 1489 win.Connect(-1, -1, wxEVT_QUERY_LAYOUT_INFO, func)
08127323
RD
1490
1491def EVT_CALCULATE_LAYOUT(win, func):
1fded56b 1492 win.Connect(-1, -1, wxEVT_CALCULATE_LAYOUT, func)
08127323
RD
1493
1494
bb0054cd
RD
1495#wxSplitterWindow
1496def EVT_SPLITTER_SASH_POS_CHANGING(win, id, func):
1497 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, func)
1498
1499def EVT_SPLITTER_SASH_POS_CHANGED(win, id, func):
1500 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, func)
1501
1502def EVT_SPLITTER_UNSPLIT(win, id, func):
1503 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_UNSPLIT, func)
1504
1505def EVT_SPLITTER_DOUBLECLICKED(win, id, func):
1506 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, func)
1507
b8b8dda7 1508
f6bcfd97
BP
1509# wxTimer
1510def EVT_TIMER(win, id, func):
1511 win.Connect(id, -1, wxEVT_TIMER, func)
1512
c368d904
RD
1513# wxProcess
1514def EVT_END_PROCESS(eh, id, func):
1515 eh.Connect(id, -1, wxEVT_END_PROCESS, func)
f6bcfd97 1516
2cd2fac8
RD
1517
1518# wxJoyStick
1519def EVT_JOY_DOWN(win, func):
25d73e0f 1520 win.Connect(-1, -1, wxEVT_JOY_BUTTON_DOWN, func)
2cd2fac8
RD
1521
1522def EVT_JOY_UP(win, func):
25d73e0f 1523 win.Connect(-1, -1, wxEVT_JOY_BUTTON_UP, func)
2cd2fac8
RD
1524
1525def EVT_JOY_MOVE(win, func):
1526 win.Connect(-1, -1, wxEVT_JOY_MOVE, func)
1527
1528def EVT_JOY_ZMOVE(win, func):
1529 win.Connect(-1, -1, wxEVT_JOY_ZMOVE, func)
1530
1531def EVT_JOYSTICK_EVENTS(win, func):
25d73e0f
RD
1532 win.Connect(-1, -1, wxEVT_JOY_BUTTON_DOWN, func)
1533 win.Connect(-1, -1, wxEVT_JOY_BUTTON_UP, func)
2cd2fac8
RD
1534 win.Connect(-1, -1, wxEVT_JOY_MOVE, func)
1535 win.Connect(-1, -1, wxEVT_JOY_ZMOVE, func)
1536
7a446686
RD
1537
1538def EVT_TOGGLEBUTTON(win, id, func):
1539 win.Connect(id, -1, wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, func)
1540
1541
059a841c 1542
059a841c
RD
1543def EVT_CONTEXT_MENU(win, func):
1544 win.Connect(-1, -1, wxEVT_CONTEXT_MENU, func)
1545
1546
b8b8dda7
RD
1547#----------------------------------------------------------------------
1548
1549class wxTimer(wxPyTimer):
2cd2fac8
RD
1550 def __init__(self, evtHandler = None, id = -1):
1551 if evtHandler is None:
1552 wxPyTimer.__init__(self, self.Notify) # derived class must provide
1553 # Notify(self) method.
1554 else:
1555 wxPyTimer.__init__(self, None)
1556 self.SetOwner(evtHandler, id)
b8b8dda7 1557
b8b8dda7
RD
1558#----------------------------------------------------------------------
1559# aliases
1560
1561wxColor = wxColour
1562wxNamedColor = wxNamedColour
32c988a3 1563wxPen = wxPyPen
85247b36 1564wxScrollbar = wxScrollBar
b67a9327
RD
1565wxPoint2D = wxPoint2DDouble
1566
1567wxPyAssertionError = wxc.wxPyAssertionError
85247b36 1568
11765138 1569
9b3d3bc4 1570# backwards compatibility
b67a9327
RD
1571wxNoRefBitmap = wxBitmap
1572wxPyDefaultPosition = wxDefaultPosition
1573wxPyDefaultSize = wxDefaultSize
1574NULL = None
db34b2d4
RD
1575wxSystemSettings_GetSystemColour = wxSystemSettings_GetColour
1576wxSystemSettings_GetSystemFont = wxSystemSettings_GetFont
1577wxSystemSettings_GetSystemMetric = wxSystemSettings_GetMetric
059a841c 1578
b67a9327
RD
1579
1580# workarounds for bad wxRTTI names
1581__wxPyPtrTypeMap['wxGauge95'] = 'wxGauge'
1fded56b
RD
1582__wxPyPtrTypeMap['wxSlider95'] = 'wxSlider'
1583__wxPyPtrTypeMap['wxStatusBar95'] = 'wxStatusBar'
b67a9327
RD
1584
1585
1586
1587def NewId():
1588 import warnings
1589 warnings.warn("Use wxNewId instead", DeprecationWarning, 2)
1590 return wxNewId()
1591
1592def RegisterId(ID):
1593 import warnings
1594 warnings.warn("Use wxRegisterId instead", DeprecationWarning, 2)
1595 return wxRegisterId(ID)
1596
1597
1598
1599# Use Python's bool constants if available, make aliases if not
1600try:
1601 True
1602except NameError:
1603 True = 1==1
1604 False = 1==0
1605
1606# Backwards compaatible
1607TRUE = true = True
1608FALSE = false = False
1609
1610
059a841c
RD
1611#----------------------------------------------------------------------
1612# wxGTK sets the locale when initialized. Doing this at the Python
1613# level should set it up to match what GTK is doing at the C level.
85247b36
RD
1614if wxPlatform == "__WXGTK__":
1615 try:
1616 import locale
1617 locale.setlocale(locale.LC_ALL, "")
1618 except:
1619 pass
059a841c 1620
1fded56b
RD
1621# On MSW add the directory where the wxWindows catalogs were installed
1622# to the default catalog path.
b67a9327
RD
1623if wxPlatform == "__WXMSW__":
1624 import os
1625 localedir = os.path.join(os.path.split(__file__)[0], "locale")
1626 wxLocale_AddCatalogLookupPathPrefix(localedir)
1627 del os
059a841c
RD
1628
1629#----------------------------------------------------------------------
1fded56b
RD
1630# Load version numbers from __version__... Ensure that major and minor
1631# versions are the same for both wxPython and wxWindows.
059a841c 1632
1fded56b
RD
1633from wxPython.__version__ import *
1634__version__ = wxVERSION_STRING
059a841c 1635
1fded56b
RD
1636assert wxMAJOR_VERSION == wxc.wxMAJOR_VERSION, "wxPython/wxWindows version mismatch"
1637assert wxMINOR_VERSION == wxc.wxMINOR_VERSION, "wxPython/wxWindows version mismatch"
1638if wxRELEASE_VERSION != wxc.wxRELEASE_VERSION:
1639 import warnings
1640 warnings.warn("wxPython/wxWindows release number mismatch")
059a841c
RD
1641
1642
8bf5d46e
RD
1643#----------------------------------------------------------------------
1644# This helper function will take a wxPython object and convert it to
1645# another wxPython object type. This will not be able to create objects
f581a26d 1646# that are derived from wxPython classes by the user, only those that are
8bf5d46e
RD
1647# actually part of wxPython and directly corespond to C++ objects.
1648#
1649# This is useful in situations where some method returns a generic
1650# type such as wxWindow, but you know that it is actually some
1651# derived type such as a wxTextCtrl. You can't call wxTextCtrl specific
1652# methods on a wxWindow object, but you can use this function to
1653# create a wxTextCtrl object that will pass the same pointer to
1654# the C++ code. You use it like this:
1655#
1656# textCtrl = wxPyTypeCast(window, "wxTextCtrl")
1657#
1658#
1659# WARNING: Using this function to type cast objects into types that
1660# they are not is not recommended and is likely to cause your
1661# program to crash... Hard.
1662#
1663
1664def wxPyTypeCast(obj, typeStr):
c9482eba
RD
1665 if obj is None:
1666 return None
9df61a29
RD
1667 theClass = globals()[typeStr+"Ptr"]
1668 typeStr = __wxPyPtrTypeMap.get(typeStr, typeStr)
8bf5d46e 1669 if hasattr(obj, "this"):
5c0282d5
RD
1670 # if already the right type then just return it
1671 if isinstance(obj, theClass) or obj.__class__ is theClass:
9df61a29 1672 return obj
8bf5d46e
RD
1673 newPtr = ptrcast(obj.this, typeStr+"_p")
1674 else:
1675 newPtr = ptrcast(obj, typeStr+"_p")
8bf5d46e 1676 theObj = theClass(newPtr)
9b3d3bc4
RD
1677 if hasattr(obj, "this"):
1678 theObj.thisown = obj.thisown
8bf5d46e
RD
1679 return theObj
1680
b67a9327
RD
1681#----------------------------------------------------------------------------
1682# An isinstance for Pythons < 2.2 that can check a sequence of class objects
1683# like the one in 2.2 can.
1684
1685def wxPy_isinstance(obj, klasses):
1686 import types
1687 if sys.version[:3] < "2.2" and type(klasses) in [types.TupleType, types.ListType]:
1688 for klass in klasses:
1689 if isinstance(obj, klass): return True
1690 return False
1691 else:
1692 return isinstance(obj, klasses)
8bf5d46e 1693
301dfd67 1694#----------------------------------------------------------------------------
8f8b0a8d
RD
1695_wxCallAfterId = None
1696
1697def wxCallAfter(callable, *args, **kw):
1698 """
1699 Call the specified function after the current and pending event
ba77f390
RD
1700 handlers have been completed. This is also good for making GUI
1701 method calls from non-GUI threads.
8f8b0a8d
RD
1702 """
1703 app = wxGetApp()
1704 assert app, 'No wxApp created yet'
1705
1706 global _wxCallAfterId
1707 if _wxCallAfterId is None:
1fded56b 1708 _wxCallAfterId = wxNewEventType()
8f8b0a8d 1709 app.Connect(-1, -1, _wxCallAfterId,
1fded56b 1710 lambda event: event.callable(*event.args, **event.kw) )
8f8b0a8d
RD
1711 evt = wxPyEvent()
1712 evt.SetEventType(_wxCallAfterId)
1713 evt.callable = callable
1714 evt.args = args
1715 evt.kw = kw
1716 wxPostEvent(app, evt)
1717
1fded56b
RD
1718
1719#----------------------------------------------------------------------
1720
1721
1722class wxFutureCall:
1723 """
1724 A convenience class for wxTimer, that calls the given callable
1725 object once after the given amount of milliseconds, passing any
1726 positional or keyword args. The return value of the callable is
1727 availbale after it has been run with the GetResult method.
1728
1729 If you don't need to get the return value or restart the timer
1730 then there is no need to hold a reference to this object. It will
1731 hold a reference to itself while the timer is running (the timer
1732 has a reference to self.Notify) but the cycle will be broken when
1733 the timer completes, automatically cleaning up the wxFutureCall
1734 object.
1735 """
1736 def __init__(self, millis, callable, *args, **kwargs):
1737 self.millis = millis
1738 self.callable = callable
1739 self.SetArgs(*args, **kwargs)
1740 self.runCount = 0
1741 self.hasRun = False
1742 self.result = None
1743 self.timer = None
1744 self.Start()
1745
1746 def __del__(self):
1747 self.Stop()
1748
1749
1750 def Start(self, millis=None):
1751 """
1752 (Re)start the timer
1753 """
1754 self.hasRun = False
1755 if millis is not None:
1756 self.millis = millis
1757 self.Stop()
1758 self.timer = wxPyTimer(self.Notify)
1759 self.timer.Start(self.millis, wxTIMER_ONE_SHOT)
1760 Restart = Start
1761
1762
1763 def Stop(self):
1764 """
1765 Stop and destroy the timer.
1766 """
1767 if self.timer is not None:
1768 self.timer.Stop()
1769 self.timer = None
1770
1771
1772 def GetInterval(self):
1773 if self.timer is not None:
1774 return self.timer.GetInterval()
1775 else:
1776 return 0
1777
1778
1779 def IsRunning(self):
1780 return self.timer is not None and self.timer.IsRunning()
1781
1782
1783 def SetArgs(self, *args, **kwargs):
1784 """
1785 (Re)set the args passed to the callable object. This is
1786 useful in conjunction with Restart if you want to schedule a
1787 new call to the same callable object but with different
1788 parameters.
1789 """
1790 self.args = args
1791 self.kwargs = kwargs
1792
1793 def HasRun(self):
1794 return self.hasRun
1795
1796 def GetResult(self):
1797 return self.result
1798
1799 def Notify(self):
1800 """
1801 The timer has expired so call the callable.
1802 """
1803 if self.callable and getattr(self.callable, 'im_self', True):
1804 self.runCount += 1
1805 self.result = self.callable(*self.args, **self.kwargs)
1806 self.hasRun = True
1807 wxCallAfter(self.Stop)
1808
b67a9327 1809
8f8b0a8d 1810#----------------------------------------------------------------------
301dfd67
RD
1811
1812class wxPyDeadObjectError(AttributeError):
1813 pass
1814
1815class _wxPyDeadObject:
1816 """
1817 Instances of wx objects that are OOR capable will have their __class__
1818 changed to this class when the C++ object is deleted. This should help
1819 prevent crashes due to referencing a bogus C++ pointer.
1820 """
1821 reprStr = "wxPython wrapper for DELETED %s object! (The C++ object no longer exists.)"
94c16279 1822 attrStr = "The C++ part of the %s object has been deleted, attribute access no longer allowed."
301dfd67
RD
1823
1824 def __repr__( self ):
1825 if not hasattr(self, "_name"):
1826 self._name = "[unknown]"
1827 return self.reprStr % self._name
1828
1829 def __getattr__( self, *args ):
1830 if not hasattr(self, "_name"):
1831 self._name = "[unknown]"
1832 raise wxPyDeadObjectError( self.attrStr % self._name )
1833
1834 def __nonzero__(self):
1835 return 0
1836
1837
1fded56b
RD
1838#----------------------------------------------------------------------
1839
1840class wxNotebookPage(wxPanel):
1841 """
1842 There is an old (and apparently unsolvable) bug when placing a
1843 window with a nonstandard background colour in a wxNotebook on
1844 wxGTK, as the notbooks's background colour would always be used
1845 when the window is refreshed. The solution is to place a panel in
1846 the notbook and the coloured window on the panel, sized to cover
1847 the panel. This simple class does that for you, just put an
1848 instance of this in the notebook and make your regular window a
1849 child of this one and it will handle the resize for you.
1850 """
1851 def __init__(self, parent, id=-1,
1852 pos=wxDefaultPosition, size=wxDefaultSize,
1853 style=wxTAB_TRAVERSAL, name="panel"):
1854 wxPanel.__init__(self, parent, id, pos, size, style, name)
1855 self.child = None
1856 EVT_SIZE(self, self.OnSize)
1857 def OnSize(self, evt):
1858 if self.child is None:
1859 children = self.GetChildren()
1860 if len(children):
1861 self.child = children[0]
1862 if self.child:
1863 self.child.SetPosition((0,0))
1864 self.child.SetSize(self.GetSize())
1865
1866
c9482eba 1867#----------------------------------------------------------------------
b8b8dda7
RD
1868#----------------------------------------------------------------------
1869
2f90df85
RD
1870class wxPyOnDemandOutputWindow:
1871 def __init__(self, title = "wxPython: stdout/stderr"):
1872 self.frame = None
1873 self.title = title
c9482eba 1874 self.parent = None
cf694132 1875
2f90df85
RD
1876 def SetParent(self, parent):
1877 self.parent = parent
b8b8dda7 1878
2f90df85
RD
1879 def OnCloseWindow(self, event):
1880 if self.frame != None:
1881 self.frame.Destroy()
1882 self.frame = None
1883 self.text = None
1884
471825d7 1885 # These methods provide the file-like output behaviour.
2f90df85 1886 def write(self, str):
471825d7
RD
1887 if not wxThread_IsMain():
1888 # Aquire the GUI mutex before making GUI calls. Mutex is released
7a446686 1889 # when locker is deleted at the end of this function.
471825d7
RD
1890 locker = wxMutexGuiLocker()
1891
2f90df85 1892 if not self.frame:
7a446686
RD
1893 self.frame = wxFrame(self.parent, -1, self.title,
1894 style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE)
2f90df85
RD
1895 self.text = wxTextCtrl(self.frame, -1, "",
1896 style = wxTE_MULTILINE|wxTE_READONLY)
1897 self.frame.SetSize(wxSize(450, 300))
b67a9327 1898 self.frame.Show(True)
2f90df85
RD
1899 EVT_CLOSE(self.frame, self.OnCloseWindow)
1900 self.text.AppendText(str)
1901
1902 def close(self):
eec92d76 1903 if self.frame != None:
471825d7
RD
1904 if not wxThread_IsMain():
1905 locker = wxMutexGuiLocker()
c9482eba 1906 self.frame.Close()
b8b8dda7 1907
b8b8dda7 1908
298ae144 1909_defRedirect = (wxPlatform == '__WXMSW__' or wxPlatform == '__WXMAC__')
b8b8dda7
RD
1910
1911#----------------------------------------------------------------------
1912# The main application class. Derive from this and implement an OnInit
1913# method that creates a frame and then calls self.SetTopWindow(frame)
1914
1915class wxApp(wxPyApp):
1916 error = 'wxApp.error'
2f90df85 1917 outputWindowClass = wxPyOnDemandOutputWindow
b8b8dda7 1918
b67a9327 1919 def __init__(self, redirect=_defRedirect, filename=None, useBestVisual=False):
b8b8dda7 1920 wxPyApp.__init__(self)
1fded56b
RD
1921
1922 if wx.wxPlatform == "__WXMAC__":
1923 try:
1924 import MacOS
1925 if not MacOS.WMAvailable():
1926 print """This program needs access to the screen. Please run with
1927'pythonw', not 'python', and only when you are logged in on the main display
1928of your Mac."""
1929 sys.exit(1)
1930 except:
1931 pass
1932
b8b8dda7
RD
1933 self.stdioWin = None
1934 self.saveStdio = (sys.stdout, sys.stderr)
b67a9327
RD
1935
1936 # This has to be done before OnInit
1937 self.SetUseBestVisual(useBestVisual)
1938
b8b8dda7
RD
1939 if redirect:
1940 self.RedirectStdio(filename)
b67a9327 1941
b8b8dda7
RD
1942 # this initializes wxWindows and then calls our OnInit
1943 _wxStart(self.OnInit)
1944
1945
1946 def __del__(self):
1947 try:
1948 self.RestoreStdio()
1949 except:
1950 pass
1951
2f90df85
RD
1952
1953 def SetTopWindow(self, frame):
1954 if self.stdioWin:
1955 self.stdioWin.SetParent(frame)
2f90df85
RD
1956 wxPyApp.SetTopWindow(self, frame)
1957
eec92d76 1958
2f90df85
RD
1959 def MainLoop(self):
1960 wxPyApp.MainLoop(self)
1961 self.RestoreStdio()
1962
eec92d76 1963
b8b8dda7
RD
1964 def RedirectStdio(self, filename):
1965 if filename:
1966 sys.stdout = sys.stderr = open(filename, 'a')
1967 else:
b67a9327 1968 self.stdioWin = self.outputWindowClass()
c9482eba 1969 sys.stdout = sys.stderr = self.stdioWin
b8b8dda7 1970
eec92d76 1971
b8b8dda7
RD
1972 def RestoreStdio(self):
1973 sys.stdout, sys.stderr = self.saveStdio
c9482eba 1974
b8b8dda7 1975
b67a9327
RD
1976# change from wxPyApp_ to wxApp_
1977wxApp_GetMacDefaultEncodingIsPC = wxc.wxPyApp_GetMacDefaultEncodingIsPC
1978wxApp_GetMacSupportPCMenuShortcuts = wxc.wxPyApp_GetMacSupportPCMenuShortcuts
1979wxApp_GetMacAboutMenuItemId = wxc.wxPyApp_GetMacAboutMenuItemId
1980wxApp_GetMacPreferencesMenuItemId = wxc.wxPyApp_GetMacPreferencesMenuItemId
1981wxApp_GetMacExitMenuItemId = wxc.wxPyApp_GetMacExitMenuItemId
1982wxApp_GetMacHelpMenuTitleName = wxc.wxPyApp_GetMacHelpMenuTitleName
1983wxApp_SetMacDefaultEncodingIsPC = wxc.wxPyApp_SetMacDefaultEncodingIsPC
1984wxApp_SetMacSupportPCMenuShortcuts = wxc.wxPyApp_SetMacSupportPCMenuShortcuts
1985wxApp_SetMacAboutMenuItemId = wxc.wxPyApp_SetMacAboutMenuItemId
1986wxApp_SetMacPreferencesMenuItemId = wxc.wxPyApp_SetMacPreferencesMenuItemId
1987wxApp_SetMacExitMenuItemId = wxc.wxPyApp_SetMacExitMenuItemId
1988wxApp_SetMacHelpMenuTitleName = wxc.wxPyApp_SetMacHelpMenuTitleName
1989
1990
9b3d3bc4
RD
1991#----------------------------------------------------------------------------
1992
1993class wxPySimpleApp(wxApp):
c9482eba
RD
1994 def __init__(self, flag=0):
1995 wxApp.__init__(self, flag)
9b3d3bc4 1996 def OnInit(self):
57ee4c3b 1997 wxInitAllImageHandlers()
b67a9327 1998 return True
b8b8dda7 1999
2f90df85 2000
f6bcfd97
BP
2001class wxPyWidgetTester(wxApp):
2002 def __init__(self, size = (250, 100)):
2003 self.size = size
2004 wxApp.__init__(self, 0)
2005
2006 def OnInit(self):
2007 self.frame = wxFrame(None, -1, "Widget Tester", pos=(0,0), size=self.size)
2008 self.SetTopWindow(self.frame)
b67a9327 2009 return True
f6bcfd97
BP
2010
2011 def SetWidget(self, widgetClass, *args):
1fded56b 2012 w = widgetClass(self.frame, *args)
b67a9327 2013 self.frame.Show(True)
f6bcfd97 2014
b8b8dda7 2015#----------------------------------------------------------------------------
301dfd67
RD
2016# DO NOT hold any other references to this object. This is how we
2017# know when to cleanup system resources that wxWin is holding. When
2018# the sys module is unloaded, the refcount on sys.__wxPythonCleanup
2019# goes to zero and it calls the wxApp_CleanUp function.
b1462dfa
RD
2020
2021class __wxPyCleanup:
2022 def __init__(self):
2023 self.cleanup = wxc.wxApp_CleanUp
2024 def __del__(self):
2025 self.cleanup()
2026
ef2060fa
RD
2027sys.__wxPythonCleanup = __wxPyCleanup()
2028
2029## # another possible solution, but it gets called too early...
2030## if sys.version[0] == '2':
2031## import atexit
2032## atexit.register(wxc.wxApp_CleanUp)
2033## else:
2034## sys.exitfunc = wxc.wxApp_CleanUp
2035
9df61a29
RD
2036
2037#----------------------------------------------------------------------------
8bf5d46e 2038#----------------------------------------------------------------------------