]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/wx.py
SWIGged updates for wxGTK
[wxWidgets.git] / wxPython / src / msw / 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
68bc8549
RD
12from fonts import *
13
b1462dfa
RD
14from clip_dnd import *
15
b8b8dda7
RD
16from events import *
17
c368d904
RD
18from streams import *
19
181526ac
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
7e50db3f
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):
56 val = apply(wxc.wxPyApp__setCallbackInfo,(self,) + _args, _kwargs)
57 return val
1d99702e
RD
58 def GetAppName(self, *_args, **_kwargs):
59 val = apply(wxc.wxPyApp_GetAppName,(self,) + _args, _kwargs)
b8b8dda7 60 return val
1d99702e
RD
61 def GetAuto3D(self, *_args, **_kwargs):
62 val = apply(wxc.wxPyApp_GetAuto3D,(self,) + _args, _kwargs)
b8b8dda7 63 return val
1d99702e
RD
64 def GetClassName(self, *_args, **_kwargs):
65 val = apply(wxc.wxPyApp_GetClassName,(self,) + _args, _kwargs)
b8b8dda7 66 return val
1d99702e
RD
67 def GetExitOnFrameDelete(self, *_args, **_kwargs):
68 val = apply(wxc.wxPyApp_GetExitOnFrameDelete,(self,) + _args, _kwargs)
b8b8dda7 69 return val
1d99702e
RD
70 def GetPrintMode(self, *_args, **_kwargs):
71 val = apply(wxc.wxPyApp_GetPrintMode,(self,) + _args, _kwargs)
b8b8dda7 72 return val
1d99702e
RD
73 def GetTopWindow(self, *_args, **_kwargs):
74 val = apply(wxc.wxPyApp_GetTopWindow,(self,) + _args, _kwargs)
b8b8dda7 75 return val
1d99702e
RD
76 def GetVendorName(self, *_args, **_kwargs):
77 val = apply(wxc.wxPyApp_GetVendorName,(self,) + _args, _kwargs)
b8b8dda7 78 return val
f6bcfd97
BP
79 def GetUseBestVisual(self, *_args, **_kwargs):
80 val = apply(wxc.wxPyApp_GetUseBestVisual,(self,) + _args, _kwargs)
81 return val
1d99702e
RD
82 def Dispatch(self, *_args, **_kwargs):
83 val = apply(wxc.wxPyApp_Dispatch,(self,) + _args, _kwargs)
b8b8dda7 84 return val
1d99702e
RD
85 def ExitMainLoop(self, *_args, **_kwargs):
86 val = apply(wxc.wxPyApp_ExitMainLoop,(self,) + _args, _kwargs)
b8b8dda7 87 return val
1d99702e
RD
88 def Initialized(self, *_args, **_kwargs):
89 val = apply(wxc.wxPyApp_Initialized,(self,) + _args, _kwargs)
b8b8dda7 90 return val
1d99702e
RD
91 def MainLoop(self, *_args, **_kwargs):
92 val = apply(wxc.wxPyApp_MainLoop,(self,) + _args, _kwargs)
b8b8dda7 93 return val
1d99702e
RD
94 def Pending(self, *_args, **_kwargs):
95 val = apply(wxc.wxPyApp_Pending,(self,) + _args, _kwargs)
b8b8dda7 96 return val
1d99702e
RD
97 def ProcessIdle(self, *_args, **_kwargs):
98 val = apply(wxc.wxPyApp_ProcessIdle,(self,) + _args, _kwargs)
8bf5d46e 99 return val
67a92fff
RD
100 def Yield(self, *_args, **_kwargs):
101 val = apply(wxc.wxPyApp_Yield,(self,) + _args, _kwargs)
102 return val
1d99702e
RD
103 def SetAppName(self, *_args, **_kwargs):
104 val = apply(wxc.wxPyApp_SetAppName,(self,) + _args, _kwargs)
b8b8dda7 105 return val
1d99702e
RD
106 def SetAuto3D(self, *_args, **_kwargs):
107 val = apply(wxc.wxPyApp_SetAuto3D,(self,) + _args, _kwargs)
b8b8dda7 108 return val
1d99702e
RD
109 def SetClassName(self, *_args, **_kwargs):
110 val = apply(wxc.wxPyApp_SetClassName,(self,) + _args, _kwargs)
b8b8dda7 111 return val
1d99702e
RD
112 def SetExitOnFrameDelete(self, *_args, **_kwargs):
113 val = apply(wxc.wxPyApp_SetExitOnFrameDelete,(self,) + _args, _kwargs)
b8b8dda7 114 return val
1d99702e
RD
115 def SetPrintMode(self, *_args, **_kwargs):
116 val = apply(wxc.wxPyApp_SetPrintMode,(self,) + _args, _kwargs)
b8b8dda7 117 return val
1d99702e
RD
118 def SetTopWindow(self, *_args, **_kwargs):
119 val = apply(wxc.wxPyApp_SetTopWindow,(self,) + _args, _kwargs)
b8b8dda7 120 return val
1d99702e
RD
121 def SetVendorName(self, *_args, **_kwargs):
122 val = apply(wxc.wxPyApp_SetVendorName,(self,) + _args, _kwargs)
b8b8dda7 123 return val
f6bcfd97
BP
124 def SetUseBestVisual(self, *_args, **_kwargs):
125 val = apply(wxc.wxPyApp_SetUseBestVisual,(self,) + _args, _kwargs)
126 return val
7e50db3f
RD
127 def GetAssertMode(self, *_args, **_kwargs):
128 val = apply(wxc.wxPyApp_GetAssertMode,(self,) + _args, _kwargs)
129 return val
130 def SetAssertMode(self, *_args, **_kwargs):
131 val = apply(wxc.wxPyApp_SetAssertMode,(self,) + _args, _kwargs)
132 return val
b8b8dda7 133 def __repr__(self):
1d99702e 134 return "<C wxPyApp instance at %s>" % (self.this,)
b8b8dda7 135class wxPyApp(wxPyAppPtr):
1d99702e
RD
136 def __init__(self,*_args,**_kwargs):
137 self.this = apply(wxc.new_wxPyApp,_args,_kwargs)
b8b8dda7 138 self.thisown = 1
7e50db3f
RD
139 self._setCallbackInfo(self, wxPyApp)
140 self._setOORInfo(self)
b8b8dda7
RD
141
142
143
144
145
146
147#-------------- FUNCTION WRAPPERS ------------------
148
8bf5d46e
RD
149ptrcast = wxc.ptrcast
150
151ptrvalue = wxc.ptrvalue
152
153ptrset = wxc.ptrset
154
155ptrcreate = wxc.ptrcreate
156
157ptrfree = wxc.ptrfree
158
159ptradd = wxc.ptradd
160
161ptrmap = wxc.ptrmap
162
b8b8dda7
RD
163_wxStart = wxc._wxStart
164
165_wxSetDictionary = wxc._wxSetDictionary
166
c368d904
RD
167def wxGetApp(*_args, **_kwargs):
168 val = apply(wxc.wxGetApp,_args,_kwargs)
c368d904
RD
169 return val
170
b1462dfa
RD
171wxApp_CleanUp = wxc.wxApp_CleanUp
172
7e50db3f
RD
173wxPyApp_GetMacDefaultEncodingIsPC = wxc.wxPyApp_GetMacDefaultEncodingIsPC
174
175wxPyApp_GetMacSupportPCMenuShortcuts = wxc.wxPyApp_GetMacSupportPCMenuShortcuts
176
177wxPyApp_GetMacAboutMenuItemId = wxc.wxPyApp_GetMacAboutMenuItemId
178
179wxPyApp_GetMacPreferencesMenuItemId = wxc.wxPyApp_GetMacPreferencesMenuItemId
180
181wxPyApp_GetMacExitMenuItemId = wxc.wxPyApp_GetMacExitMenuItemId
182
183wxPyApp_GetMacHelpMenuTitleName = wxc.wxPyApp_GetMacHelpMenuTitleName
184
185wxPyApp_SetMacDefaultEncodingIsPC = wxc.wxPyApp_SetMacDefaultEncodingIsPC
186
187wxPyApp_SetMacSupportPCMenuShortcuts = wxc.wxPyApp_SetMacSupportPCMenuShortcuts
188
189wxPyApp_SetMacAboutMenuItemId = wxc.wxPyApp_SetMacAboutMenuItemId
190
191wxPyApp_SetMacPreferencesMenuItemId = wxc.wxPyApp_SetMacPreferencesMenuItemId
192
193wxPyApp_SetMacExitMenuItemId = wxc.wxPyApp_SetMacExitMenuItemId
194
195wxPyApp_SetMacHelpMenuTitleName = wxc.wxPyApp_SetMacHelpMenuTitleName
196
b8b8dda7
RD
197
198
199#-------------- VARIABLE WRAPPERS ------------------
200
201wxMAJOR_VERSION = wxc.wxMAJOR_VERSION
202wxMINOR_VERSION = wxc.wxMINOR_VERSION
203wxRELEASE_NUMBER = wxc.wxRELEASE_NUMBER
08127323 204wxNOT_FOUND = wxc.wxNOT_FOUND
b8b8dda7
RD
205wxVSCROLL = wxc.wxVSCROLL
206wxHSCROLL = wxc.wxHSCROLL
207wxCAPTION = wxc.wxCAPTION
208wxDOUBLE_BORDER = wxc.wxDOUBLE_BORDER
209wxSUNKEN_BORDER = wxc.wxSUNKEN_BORDER
210wxRAISED_BORDER = wxc.wxRAISED_BORDER
211wxBORDER = wxc.wxBORDER
212wxSIMPLE_BORDER = wxc.wxSIMPLE_BORDER
213wxSTATIC_BORDER = wxc.wxSTATIC_BORDER
214wxTRANSPARENT_WINDOW = wxc.wxTRANSPARENT_WINDOW
215wxNO_BORDER = wxc.wxNO_BORDER
216wxUSER_COLOURS = wxc.wxUSER_COLOURS
217wxNO_3D = wxc.wxNO_3D
218wxTAB_TRAVERSAL = wxc.wxTAB_TRAVERSAL
1afc06c2 219wxWANTS_CHARS = wxc.wxWANTS_CHARS
0122b7e3 220wxPOPUP_WINDOW = wxc.wxPOPUP_WINDOW
b8b8dda7
RD
221wxHORIZONTAL = wxc.wxHORIZONTAL
222wxVERTICAL = wxc.wxVERTICAL
223wxBOTH = wxc.wxBOTH
224wxCENTER_FRAME = wxc.wxCENTER_FRAME
1afc06c2
RD
225wxCENTRE_ON_SCREEN = wxc.wxCENTRE_ON_SCREEN
226wxCENTER_ON_SCREEN = wxc.wxCENTER_ON_SCREEN
b8b8dda7
RD
227wxSTAY_ON_TOP = wxc.wxSTAY_ON_TOP
228wxICONIZE = wxc.wxICONIZE
229wxMINIMIZE = wxc.wxMINIMIZE
230wxMAXIMIZE = wxc.wxMAXIMIZE
231wxTHICK_FRAME = wxc.wxTHICK_FRAME
232wxSYSTEM_MENU = wxc.wxSYSTEM_MENU
233wxMINIMIZE_BOX = wxc.wxMINIMIZE_BOX
234wxMAXIMIZE_BOX = wxc.wxMAXIMIZE_BOX
235wxTINY_CAPTION_HORIZ = wxc.wxTINY_CAPTION_HORIZ
236wxTINY_CAPTION_VERT = wxc.wxTINY_CAPTION_VERT
237wxRESIZE_BOX = wxc.wxRESIZE_BOX
238wxRESIZE_BORDER = wxc.wxRESIZE_BORDER
239wxDIALOG_MODAL = wxc.wxDIALOG_MODAL
240wxDIALOG_MODELESS = wxc.wxDIALOG_MODELESS
d56cebe7 241wxDIALOG_NO_PARENT = wxc.wxDIALOG_NO_PARENT
b8b8dda7
RD
242wxDEFAULT_FRAME_STYLE = wxc.wxDEFAULT_FRAME_STYLE
243wxDEFAULT_DIALOG_STYLE = wxc.wxDEFAULT_DIALOG_STYLE
244wxFRAME_TOOL_WINDOW = wxc.wxFRAME_TOOL_WINDOW
bb0054cd 245wxFRAME_FLOAT_ON_PARENT = wxc.wxFRAME_FLOAT_ON_PARENT
4c9993c3 246wxFRAME_NO_WINDOW_MENU = wxc.wxFRAME_NO_WINDOW_MENU
1b62f00d 247wxFRAME_NO_TASKBAR = wxc.wxFRAME_NO_TASKBAR
1afc06c2
RD
248wxED_CLIENT_MARGIN = wxc.wxED_CLIENT_MARGIN
249wxED_BUTTONS_BOTTOM = wxc.wxED_BUTTONS_BOTTOM
250wxED_BUTTONS_RIGHT = wxc.wxED_BUTTONS_RIGHT
251wxED_STATIC_LINE = wxc.wxED_STATIC_LINE
252wxEXT_DIALOG_STYLE = wxc.wxEXT_DIALOG_STYLE
08127323 253wxCLIP_CHILDREN = wxc.wxCLIP_CHILDREN
0adbc166 254wxCLIP_SIBLINGS = wxc.wxCLIP_SIBLINGS
b8b8dda7
RD
255wxRETAINED = wxc.wxRETAINED
256wxBACKINGSTORE = wxc.wxBACKINGSTORE
b8b8dda7
RD
257wxTB_HORIZONTAL = wxc.wxTB_HORIZONTAL
258wxTB_VERTICAL = wxc.wxTB_VERTICAL
b96c7a38 259wxTB_3DBUTTONS = wxc.wxTB_3DBUTTONS
b8b8dda7 260wxTB_FLAT = wxc.wxTB_FLAT
f0261a72 261wxTB_DOCKABLE = wxc.wxTB_DOCKABLE
b96c7a38
RD
262wxTB_NOICONS = wxc.wxTB_NOICONS
263wxTB_TEXT = wxc.wxTB_TEXT
ffd990f6
RD
264wxTB_NODIVIDER = wxc.wxTB_NODIVIDER
265wxTB_NOALIGN = wxc.wxTB_NOALIGN
b8b8dda7
RD
266wxCOLOURED = wxc.wxCOLOURED
267wxFIXED_LENGTH = wxc.wxFIXED_LENGTH
268wxALIGN_LEFT = wxc.wxALIGN_LEFT
694759cf
RD
269wxALIGN_CENTER_HORIZONTAL = wxc.wxALIGN_CENTER_HORIZONTAL
270wxALIGN_CENTRE_HORIZONTAL = wxc.wxALIGN_CENTRE_HORIZONTAL
b8b8dda7 271wxALIGN_RIGHT = wxc.wxALIGN_RIGHT
2f90df85 272wxALIGN_BOTTOM = wxc.wxALIGN_BOTTOM
694759cf
RD
273wxALIGN_CENTER_VERTICAL = wxc.wxALIGN_CENTER_VERTICAL
274wxALIGN_CENTRE_VERTICAL = wxc.wxALIGN_CENTRE_VERTICAL
2f90df85 275wxALIGN_TOP = wxc.wxALIGN_TOP
694759cf
RD
276wxALIGN_CENTER = wxc.wxALIGN_CENTER
277wxALIGN_CENTRE = wxc.wxALIGN_CENTRE
278wxSHAPED = wxc.wxSHAPED
1b62f00d 279wxADJUST_MINSIZE = wxc.wxADJUST_MINSIZE
b8b8dda7
RD
280wxLB_NEEDED_SB = wxc.wxLB_NEEDED_SB
281wxLB_ALWAYS_SB = wxc.wxLB_ALWAYS_SB
282wxLB_SORT = wxc.wxLB_SORT
283wxLB_SINGLE = wxc.wxLB_SINGLE
284wxLB_MULTIPLE = wxc.wxLB_MULTIPLE
285wxLB_EXTENDED = wxc.wxLB_EXTENDED
286wxLB_OWNERDRAW = wxc.wxLB_OWNERDRAW
287wxLB_HSCROLL = wxc.wxLB_HSCROLL
288wxPROCESS_ENTER = wxc.wxPROCESS_ENTER
289wxPASSWORD = wxc.wxPASSWORD
b8b8dda7
RD
290wxTE_READONLY = wxc.wxTE_READONLY
291wxTE_MULTILINE = wxc.wxTE_MULTILINE
2f4e9287
RD
292wxTE_PROCESS_TAB = wxc.wxTE_PROCESS_TAB
293wxTE_RICH = wxc.wxTE_RICH
68320e40 294wxTE_RICH2 = wxc.wxTE_RICH2
06c0fba4 295wxTE_NO_VSCROLL = wxc.wxTE_NO_VSCROLL
2f4e9287
RD
296wxTE_AUTO_SCROLL = wxc.wxTE_AUTO_SCROLL
297wxTE_PROCESS_ENTER = wxc.wxTE_PROCESS_ENTER
298wxTE_PASSWORD = wxc.wxTE_PASSWORD
00b6c4e3 299wxTE_AUTO_URL = wxc.wxTE_AUTO_URL
b1e930a5 300wxTE_NOHIDESEL = wxc.wxTE_NOHIDESEL
2f4e9287
RD
301wxTE_DONTWRAP = wxc.wxTE_DONTWRAP
302wxTE_LINEWRAP = wxc.wxTE_LINEWRAP
303wxTE_WORDWRAP = wxc.wxTE_WORDWRAP
67a92fff
RD
304wxTE_LEFT = wxc.wxTE_LEFT
305wxTE_RIGHT = wxc.wxTE_RIGHT
306wxTE_CENTER = wxc.wxTE_CENTER
307wxTE_CENTRE = wxc.wxTE_CENTRE
b8b8dda7
RD
308wxCB_SIMPLE = wxc.wxCB_SIMPLE
309wxCB_DROPDOWN = wxc.wxCB_DROPDOWN
310wxCB_SORT = wxc.wxCB_SORT
311wxCB_READONLY = wxc.wxCB_READONLY
312wxRA_HORIZONTAL = wxc.wxRA_HORIZONTAL
313wxRA_VERTICAL = wxc.wxRA_VERTICAL
62abd41e
RD
314wxRA_SPECIFY_ROWS = wxc.wxRA_SPECIFY_ROWS
315wxRA_SPECIFY_COLS = wxc.wxRA_SPECIFY_COLS
b8b8dda7 316wxRB_GROUP = wxc.wxRB_GROUP
7e50db3f 317wxRB_SINGLE = wxc.wxRB_SINGLE
b8b8dda7
RD
318wxGA_PROGRESSBAR = wxc.wxGA_PROGRESSBAR
319wxGA_HORIZONTAL = wxc.wxGA_HORIZONTAL
320wxGA_VERTICAL = wxc.wxGA_VERTICAL
bb0054cd 321wxGA_SMOOTH = wxc.wxGA_SMOOTH
b8b8dda7
RD
322wxSL_HORIZONTAL = wxc.wxSL_HORIZONTAL
323wxSL_VERTICAL = wxc.wxSL_VERTICAL
324wxSL_AUTOTICKS = wxc.wxSL_AUTOTICKS
325wxSL_LABELS = wxc.wxSL_LABELS
326wxSL_LEFT = wxc.wxSL_LEFT
327wxSL_TOP = wxc.wxSL_TOP
328wxSL_RIGHT = wxc.wxSL_RIGHT
329wxSL_BOTTOM = wxc.wxSL_BOTTOM
330wxSL_BOTH = wxc.wxSL_BOTH
331wxSL_SELRANGE = wxc.wxSL_SELRANGE
332wxSB_HORIZONTAL = wxc.wxSB_HORIZONTAL
333wxSB_VERTICAL = wxc.wxSB_VERTICAL
cf694132 334wxST_SIZEGRIP = wxc.wxST_SIZEGRIP
2abc0a0f 335wxST_NO_AUTORESIZE = wxc.wxST_NO_AUTORESIZE
b8b8dda7 336wxBU_NOAUTODRAW = wxc.wxBU_NOAUTODRAW
e67409dc
RD
337wxBU_AUTODRAW = wxc.wxBU_AUTODRAW
338wxBU_LEFT = wxc.wxBU_LEFT
339wxBU_TOP = wxc.wxBU_TOP
340wxBU_RIGHT = wxc.wxBU_RIGHT
341wxBU_BOTTOM = wxc.wxBU_BOTTOM
342wxBU_EXACTFIT = wxc.wxBU_EXACTFIT
b8b8dda7
RD
343wxSP_VERTICAL = wxc.wxSP_VERTICAL
344wxSP_HORIZONTAL = wxc.wxSP_HORIZONTAL
345wxSP_ARROW_KEYS = wxc.wxSP_ARROW_KEYS
346wxSP_WRAP = wxc.wxSP_WRAP
347wxSP_NOBORDER = wxc.wxSP_NOBORDER
348wxSP_3D = wxc.wxSP_3D
1b62f00d
RD
349wxSP_3DSASH = wxc.wxSP_3DSASH
350wxSP_3DBORDER = wxc.wxSP_3DBORDER
351wxSP_FULLSASH = wxc.wxSP_FULLSASH
b8b8dda7 352wxSP_BORDER = wxc.wxSP_BORDER
9d8bd15f
RD
353wxSP_LIVE_UPDATE = wxc.wxSP_LIVE_UPDATE
354wxSP_PERMIT_UNSPLIT = wxc.wxSP_PERMIT_UNSPLIT
b8b8dda7
RD
355wxFLOOD_SURFACE = wxc.wxFLOOD_SURFACE
356wxFLOOD_BORDER = wxc.wxFLOOD_BORDER
357wxODDEVEN_RULE = wxc.wxODDEVEN_RULE
358wxWINDING_RULE = wxc.wxWINDING_RULE
359wxTOOL_TOP = wxc.wxTOOL_TOP
360wxTOOL_BOTTOM = wxc.wxTOOL_BOTTOM
361wxTOOL_LEFT = wxc.wxTOOL_LEFT
362wxTOOL_RIGHT = wxc.wxTOOL_RIGHT
363wxOK = wxc.wxOK
364wxYES_NO = wxc.wxYES_NO
365wxCANCEL = wxc.wxCANCEL
366wxYES = wxc.wxYES
367wxNO = wxc.wxNO
1afc06c2
RD
368wxNO_DEFAULT = wxc.wxNO_DEFAULT
369wxYES_DEFAULT = wxc.wxYES_DEFAULT
b8b8dda7
RD
370wxICON_EXCLAMATION = wxc.wxICON_EXCLAMATION
371wxICON_HAND = wxc.wxICON_HAND
372wxICON_QUESTION = wxc.wxICON_QUESTION
373wxICON_INFORMATION = wxc.wxICON_INFORMATION
374wxICON_STOP = wxc.wxICON_STOP
375wxICON_ASTERISK = wxc.wxICON_ASTERISK
376wxICON_MASK = wxc.wxICON_MASK
1afc06c2
RD
377wxICON_WARNING = wxc.wxICON_WARNING
378wxICON_ERROR = wxc.wxICON_ERROR
379wxFORWARD = wxc.wxFORWARD
380wxBACKWARD = wxc.wxBACKWARD
381wxRESET = wxc.wxRESET
382wxHELP = wxc.wxHELP
383wxMORE = wxc.wxMORE
384wxSETUP = wxc.wxSETUP
b8b8dda7
RD
385wxCENTRE = wxc.wxCENTRE
386wxCENTER = wxc.wxCENTER
387wxSIZE_AUTO_WIDTH = wxc.wxSIZE_AUTO_WIDTH
388wxSIZE_AUTO_HEIGHT = wxc.wxSIZE_AUTO_HEIGHT
389wxSIZE_AUTO = wxc.wxSIZE_AUTO
390wxSIZE_USE_EXISTING = wxc.wxSIZE_USE_EXISTING
391wxSIZE_ALLOW_MINUS_ONE = wxc.wxSIZE_ALLOW_MINUS_ONE
b8b8dda7
RD
392wxPORTRAIT = wxc.wxPORTRAIT
393wxLANDSCAPE = wxc.wxLANDSCAPE
bb0054cd
RD
394wxPRINT_QUALITY_HIGH = wxc.wxPRINT_QUALITY_HIGH
395wxPRINT_QUALITY_MEDIUM = wxc.wxPRINT_QUALITY_MEDIUM
396wxPRINT_QUALITY_LOW = wxc.wxPRINT_QUALITY_LOW
397wxPRINT_QUALITY_DRAFT = wxc.wxPRINT_QUALITY_DRAFT
3eb221f6
RD
398wxID_ANY = wxc.wxID_ANY
399wxID_SEPARATOR = wxc.wxID_SEPARATOR
b8b8dda7
RD
400wxID_OPEN = wxc.wxID_OPEN
401wxID_CLOSE = wxc.wxID_CLOSE
402wxID_NEW = wxc.wxID_NEW
403wxID_SAVE = wxc.wxID_SAVE
404wxID_SAVEAS = wxc.wxID_SAVEAS
405wxID_REVERT = wxc.wxID_REVERT
406wxID_EXIT = wxc.wxID_EXIT
407wxID_UNDO = wxc.wxID_UNDO
408wxID_REDO = wxc.wxID_REDO
409wxID_HELP = wxc.wxID_HELP
410wxID_PRINT = wxc.wxID_PRINT
411wxID_PRINT_SETUP = wxc.wxID_PRINT_SETUP
412wxID_PREVIEW = wxc.wxID_PREVIEW
413wxID_ABOUT = wxc.wxID_ABOUT
414wxID_HELP_CONTENTS = wxc.wxID_HELP_CONTENTS
415wxID_HELP_COMMANDS = wxc.wxID_HELP_COMMANDS
416wxID_HELP_PROCEDURES = wxc.wxID_HELP_PROCEDURES
417wxID_HELP_CONTEXT = wxc.wxID_HELP_CONTEXT
b5a5d647 418wxID_CLOSE_ALL = wxc.wxID_CLOSE_ALL
b8b8dda7
RD
419wxID_CUT = wxc.wxID_CUT
420wxID_COPY = wxc.wxID_COPY
421wxID_PASTE = wxc.wxID_PASTE
422wxID_CLEAR = wxc.wxID_CLEAR
423wxID_FIND = wxc.wxID_FIND
d56cebe7
RD
424wxID_DUPLICATE = wxc.wxID_DUPLICATE
425wxID_SELECTALL = wxc.wxID_SELECTALL
b8b8dda7
RD
426wxID_FILE1 = wxc.wxID_FILE1
427wxID_FILE2 = wxc.wxID_FILE2
428wxID_FILE3 = wxc.wxID_FILE3
429wxID_FILE4 = wxc.wxID_FILE4
430wxID_FILE5 = wxc.wxID_FILE5
431wxID_FILE6 = wxc.wxID_FILE6
432wxID_FILE7 = wxc.wxID_FILE7
433wxID_FILE8 = wxc.wxID_FILE8
434wxID_FILE9 = wxc.wxID_FILE9
435wxID_OK = wxc.wxID_OK
436wxID_CANCEL = wxc.wxID_CANCEL
437wxID_APPLY = wxc.wxID_APPLY
438wxID_YES = wxc.wxID_YES
439wxID_NO = wxc.wxID_NO
cf694132 440wxID_STATIC = wxc.wxID_STATIC
f3d9dc1d
RD
441wxID_FORWARD = wxc.wxID_FORWARD
442wxID_BACKWARD = wxc.wxID_BACKWARD
26e335b8 443wxID_DEFAULT = wxc.wxID_DEFAULT
f3d9dc1d 444wxID_MORE = wxc.wxID_MORE
26e335b8
RD
445wxID_SETUP = wxc.wxID_SETUP
446wxID_RESET = wxc.wxID_RESET
447wxID_CONTEXT_HELP = wxc.wxID_CONTEXT_HELP
448wxID_YESTOALL = wxc.wxID_YESTOALL
449wxID_NOTOALL = wxc.wxID_NOTOALL
450wxID_ABORT = wxc.wxID_ABORT
451wxID_RETRY = wxc.wxID_RETRY
452wxID_IGNORE = wxc.wxID_IGNORE
b8b8dda7
RD
453wxOPEN = wxc.wxOPEN
454wxSAVE = wxc.wxSAVE
455wxHIDE_READONLY = wxc.wxHIDE_READONLY
456wxOVERWRITE_PROMPT = wxc.wxOVERWRITE_PROMPT
2abc0a0f 457wxFILE_MUST_EXIST = wxc.wxFILE_MUST_EXIST
f6bcfd97 458wxMULTIPLE = wxc.wxMULTIPLE
1b62f00d 459wxCHANGE_DIR = wxc.wxCHANGE_DIR
b8b8dda7
RD
460wxACCEL_ALT = wxc.wxACCEL_ALT
461wxACCEL_CTRL = wxc.wxACCEL_CTRL
462wxACCEL_SHIFT = wxc.wxACCEL_SHIFT
f6bcfd97 463wxACCEL_NORMAL = wxc.wxACCEL_NORMAL
bb0054cd
RD
464wxPD_AUTO_HIDE = wxc.wxPD_AUTO_HIDE
465wxPD_APP_MODAL = wxc.wxPD_APP_MODAL
466wxPD_CAN_ABORT = wxc.wxPD_CAN_ABORT
a08cbc01
RD
467wxPD_ELAPSED_TIME = wxc.wxPD_ELAPSED_TIME
468wxPD_ESTIMATED_TIME = wxc.wxPD_ESTIMATED_TIME
469wxPD_REMAINING_TIME = wxc.wxPD_REMAINING_TIME
7cdaed0b 470wxDD_NEW_DIR_BUTTON = wxc.wxDD_NEW_DIR_BUTTON
daa3eac9 471wxDD_DEFAULT_STYLE = wxc.wxDD_DEFAULT_STYLE
8bf5d46e 472wxMENU_TEAROFF = wxc.wxMENU_TEAROFF
1afc06c2 473wxMB_DOCKABLE = wxc.wxMB_DOCKABLE
8bf5d46e 474wxNO_FULL_REPAINT_ON_RESIZE = wxc.wxNO_FULL_REPAINT_ON_RESIZE
1afc06c2
RD
475wxLEFT = wxc.wxLEFT
476wxRIGHT = wxc.wxRIGHT
477wxUP = wxc.wxUP
478wxDOWN = wxc.wxDOWN
479wxALL = wxc.wxALL
480wxTOP = wxc.wxTOP
481wxBOTTOM = wxc.wxBOTTOM
482wxNORTH = wxc.wxNORTH
483wxSOUTH = wxc.wxSOUTH
484wxEAST = wxc.wxEAST
485wxWEST = wxc.wxWEST
486wxSTRETCH_NOT = wxc.wxSTRETCH_NOT
487wxSHRINK = wxc.wxSHRINK
488wxGROW = wxc.wxGROW
489wxEXPAND = wxc.wxEXPAND
490wxNB_FIXEDWIDTH = wxc.wxNB_FIXEDWIDTH
f0261a72
RD
491wxNB_LEFT = wxc.wxNB_LEFT
492wxNB_RIGHT = wxc.wxNB_RIGHT
493wxNB_BOTTOM = wxc.wxNB_BOTTOM
0adbc166 494wxNB_MULTILINE = wxc.wxNB_MULTILINE
1afc06c2
RD
495wxLI_HORIZONTAL = wxc.wxLI_HORIZONTAL
496wxLI_VERTICAL = wxc.wxLI_VERTICAL
185d7c3e
RD
497wxJOYSTICK1 = wxc.wxJOYSTICK1
498wxJOYSTICK2 = wxc.wxJOYSTICK2
499wxJOY_BUTTON1 = wxc.wxJOY_BUTTON1
500wxJOY_BUTTON2 = wxc.wxJOY_BUTTON2
501wxJOY_BUTTON3 = wxc.wxJOY_BUTTON3
502wxJOY_BUTTON4 = wxc.wxJOY_BUTTON4
503wxJOY_BUTTON_ANY = wxc.wxJOY_BUTTON_ANY
d1679124 504wxWS_EX_VALIDATE_RECURSIVELY = wxc.wxWS_EX_VALIDATE_RECURSIVELY
0122b7e3 505wxWS_EX_BLOCK_EVENTS = wxc.wxWS_EX_BLOCK_EVENTS
78e8819c 506wxWS_EX_TRANSIENT = wxc.wxWS_EX_TRANSIENT
ecc08ead
RD
507wxMM_TEXT = wxc.wxMM_TEXT
508wxMM_LOMETRIC = wxc.wxMM_LOMETRIC
509wxMM_HIMETRIC = wxc.wxMM_HIMETRIC
510wxMM_LOENGLISH = wxc.wxMM_LOENGLISH
511wxMM_HIENGLISH = wxc.wxMM_HIENGLISH
512wxMM_TWIPS = wxc.wxMM_TWIPS
513wxMM_ISOTROPIC = wxc.wxMM_ISOTROPIC
514wxMM_ANISOTROPIC = wxc.wxMM_ANISOTROPIC
515wxMM_POINTS = wxc.wxMM_POINTS
516wxMM_METRIC = wxc.wxMM_METRIC
fe953afb
RD
517wxTIMER_CONTINUOUS = wxc.wxTIMER_CONTINUOUS
518wxTIMER_ONE_SHOT = wxc.wxTIMER_ONE_SHOT
3eb221f6
RD
519wxMOUSE_BTN_ANY = wxc.wxMOUSE_BTN_ANY
520wxMOUSE_BTN_NONE = wxc.wxMOUSE_BTN_NONE
521wxMOUSE_BTN_LEFT = wxc.wxMOUSE_BTN_LEFT
522wxMOUSE_BTN_MIDDLE = wxc.wxMOUSE_BTN_MIDDLE
523wxMOUSE_BTN_RIGHT = wxc.wxMOUSE_BTN_RIGHT
ebf4302c
RD
524wxBORDER_DEFAULT = wxc.wxBORDER_DEFAULT
525wxBORDER_NONE = wxc.wxBORDER_NONE
526wxBORDER_STATIC = wxc.wxBORDER_STATIC
527wxBORDER_SIMPLE = wxc.wxBORDER_SIMPLE
528wxBORDER_RAISED = wxc.wxBORDER_RAISED
529wxBORDER_SUNKEN = wxc.wxBORDER_SUNKEN
530wxBORDER_DOUBLE = wxc.wxBORDER_DOUBLE
531wxBORDER_MASK = wxc.wxBORDER_MASK
b8b8dda7
RD
532wxDEFAULT = wxc.wxDEFAULT
533wxDECORATIVE = wxc.wxDECORATIVE
534wxROMAN = wxc.wxROMAN
535wxSCRIPT = wxc.wxSCRIPT
536wxSWISS = wxc.wxSWISS
537wxMODERN = wxc.wxMODERN
538wxTELETYPE = wxc.wxTELETYPE
539wxVARIABLE = wxc.wxVARIABLE
540wxFIXED = wxc.wxFIXED
541wxNORMAL = wxc.wxNORMAL
542wxLIGHT = wxc.wxLIGHT
543wxBOLD = wxc.wxBOLD
544wxITALIC = wxc.wxITALIC
545wxSLANT = wxc.wxSLANT
546wxSOLID = wxc.wxSOLID
547wxDOT = wxc.wxDOT
548wxLONG_DASH = wxc.wxLONG_DASH
549wxSHORT_DASH = wxc.wxSHORT_DASH
550wxDOT_DASH = wxc.wxDOT_DASH
551wxUSER_DASH = wxc.wxUSER_DASH
552wxTRANSPARENT = wxc.wxTRANSPARENT
553wxSTIPPLE = wxc.wxSTIPPLE
554wxBDIAGONAL_HATCH = wxc.wxBDIAGONAL_HATCH
555wxCROSSDIAG_HATCH = wxc.wxCROSSDIAG_HATCH
556wxFDIAGONAL_HATCH = wxc.wxFDIAGONAL_HATCH
557wxCROSS_HATCH = wxc.wxCROSS_HATCH
558wxHORIZONTAL_HATCH = wxc.wxHORIZONTAL_HATCH
559wxVERTICAL_HATCH = wxc.wxVERTICAL_HATCH
560wxJOIN_BEVEL = wxc.wxJOIN_BEVEL
561wxJOIN_MITER = wxc.wxJOIN_MITER
562wxJOIN_ROUND = wxc.wxJOIN_ROUND
563wxCAP_ROUND = wxc.wxCAP_ROUND
564wxCAP_PROJECTING = wxc.wxCAP_PROJECTING
565wxCAP_BUTT = wxc.wxCAP_BUTT
566wxCLEAR = wxc.wxCLEAR
567wxXOR = wxc.wxXOR
568wxINVERT = wxc.wxINVERT
569wxOR_REVERSE = wxc.wxOR_REVERSE
570wxAND_REVERSE = wxc.wxAND_REVERSE
571wxCOPY = wxc.wxCOPY
572wxAND = wxc.wxAND
573wxAND_INVERT = wxc.wxAND_INVERT
574wxNO_OP = wxc.wxNO_OP
575wxNOR = wxc.wxNOR
576wxEQUIV = wxc.wxEQUIV
577wxSRC_INVERT = wxc.wxSRC_INVERT
578wxOR_INVERT = wxc.wxOR_INVERT
579wxNAND = wxc.wxNAND
580wxOR = wxc.wxOR
581wxSET = wxc.wxSET
b8b8dda7
RD
582WXK_BACK = wxc.WXK_BACK
583WXK_TAB = wxc.WXK_TAB
584WXK_RETURN = wxc.WXK_RETURN
585WXK_ESCAPE = wxc.WXK_ESCAPE
586WXK_SPACE = wxc.WXK_SPACE
587WXK_DELETE = wxc.WXK_DELETE
588WXK_START = wxc.WXK_START
589WXK_LBUTTON = wxc.WXK_LBUTTON
590WXK_RBUTTON = wxc.WXK_RBUTTON
591WXK_CANCEL = wxc.WXK_CANCEL
592WXK_MBUTTON = wxc.WXK_MBUTTON
593WXK_CLEAR = wxc.WXK_CLEAR
594WXK_SHIFT = wxc.WXK_SHIFT
65fe3842 595WXK_ALT = wxc.WXK_ALT
b8b8dda7
RD
596WXK_CONTROL = wxc.WXK_CONTROL
597WXK_MENU = wxc.WXK_MENU
598WXK_PAUSE = wxc.WXK_PAUSE
599WXK_CAPITAL = wxc.WXK_CAPITAL
600WXK_PRIOR = wxc.WXK_PRIOR
601WXK_NEXT = wxc.WXK_NEXT
602WXK_END = wxc.WXK_END
603WXK_HOME = wxc.WXK_HOME
604WXK_LEFT = wxc.WXK_LEFT
605WXK_UP = wxc.WXK_UP
606WXK_RIGHT = wxc.WXK_RIGHT
607WXK_DOWN = wxc.WXK_DOWN
608WXK_SELECT = wxc.WXK_SELECT
609WXK_PRINT = wxc.WXK_PRINT
610WXK_EXECUTE = wxc.WXK_EXECUTE
611WXK_SNAPSHOT = wxc.WXK_SNAPSHOT
612WXK_INSERT = wxc.WXK_INSERT
613WXK_HELP = wxc.WXK_HELP
614WXK_NUMPAD0 = wxc.WXK_NUMPAD0
615WXK_NUMPAD1 = wxc.WXK_NUMPAD1
616WXK_NUMPAD2 = wxc.WXK_NUMPAD2
617WXK_NUMPAD3 = wxc.WXK_NUMPAD3
618WXK_NUMPAD4 = wxc.WXK_NUMPAD4
619WXK_NUMPAD5 = wxc.WXK_NUMPAD5
620WXK_NUMPAD6 = wxc.WXK_NUMPAD6
621WXK_NUMPAD7 = wxc.WXK_NUMPAD7
622WXK_NUMPAD8 = wxc.WXK_NUMPAD8
623WXK_NUMPAD9 = wxc.WXK_NUMPAD9
624WXK_MULTIPLY = wxc.WXK_MULTIPLY
625WXK_ADD = wxc.WXK_ADD
626WXK_SEPARATOR = wxc.WXK_SEPARATOR
627WXK_SUBTRACT = wxc.WXK_SUBTRACT
628WXK_DECIMAL = wxc.WXK_DECIMAL
629WXK_DIVIDE = wxc.WXK_DIVIDE
630WXK_F1 = wxc.WXK_F1
631WXK_F2 = wxc.WXK_F2
632WXK_F3 = wxc.WXK_F3
633WXK_F4 = wxc.WXK_F4
634WXK_F5 = wxc.WXK_F5
635WXK_F6 = wxc.WXK_F6
636WXK_F7 = wxc.WXK_F7
637WXK_F8 = wxc.WXK_F8
638WXK_F9 = wxc.WXK_F9
639WXK_F10 = wxc.WXK_F10
640WXK_F11 = wxc.WXK_F11
641WXK_F12 = wxc.WXK_F12
642WXK_F13 = wxc.WXK_F13
643WXK_F14 = wxc.WXK_F14
644WXK_F15 = wxc.WXK_F15
645WXK_F16 = wxc.WXK_F16
646WXK_F17 = wxc.WXK_F17
647WXK_F18 = wxc.WXK_F18
648WXK_F19 = wxc.WXK_F19
649WXK_F20 = wxc.WXK_F20
650WXK_F21 = wxc.WXK_F21
651WXK_F22 = wxc.WXK_F22
652WXK_F23 = wxc.WXK_F23
653WXK_F24 = wxc.WXK_F24
654WXK_NUMLOCK = wxc.WXK_NUMLOCK
655WXK_SCROLL = wxc.WXK_SCROLL
656WXK_PAGEUP = wxc.WXK_PAGEUP
657WXK_PAGEDOWN = wxc.WXK_PAGEDOWN
65fe3842
RD
658WXK_NUMPAD_SPACE = wxc.WXK_NUMPAD_SPACE
659WXK_NUMPAD_TAB = wxc.WXK_NUMPAD_TAB
660WXK_NUMPAD_ENTER = wxc.WXK_NUMPAD_ENTER
661WXK_NUMPAD_F1 = wxc.WXK_NUMPAD_F1
662WXK_NUMPAD_F2 = wxc.WXK_NUMPAD_F2
663WXK_NUMPAD_F3 = wxc.WXK_NUMPAD_F3
664WXK_NUMPAD_F4 = wxc.WXK_NUMPAD_F4
665WXK_NUMPAD_HOME = wxc.WXK_NUMPAD_HOME
666WXK_NUMPAD_LEFT = wxc.WXK_NUMPAD_LEFT
667WXK_NUMPAD_UP = wxc.WXK_NUMPAD_UP
668WXK_NUMPAD_RIGHT = wxc.WXK_NUMPAD_RIGHT
669WXK_NUMPAD_DOWN = wxc.WXK_NUMPAD_DOWN
670WXK_NUMPAD_PRIOR = wxc.WXK_NUMPAD_PRIOR
671WXK_NUMPAD_PAGEUP = wxc.WXK_NUMPAD_PAGEUP
672WXK_NUMPAD_NEXT = wxc.WXK_NUMPAD_NEXT
673WXK_NUMPAD_PAGEDOWN = wxc.WXK_NUMPAD_PAGEDOWN
674WXK_NUMPAD_END = wxc.WXK_NUMPAD_END
675WXK_NUMPAD_BEGIN = wxc.WXK_NUMPAD_BEGIN
676WXK_NUMPAD_INSERT = wxc.WXK_NUMPAD_INSERT
677WXK_NUMPAD_DELETE = wxc.WXK_NUMPAD_DELETE
678WXK_NUMPAD_EQUAL = wxc.WXK_NUMPAD_EQUAL
679WXK_NUMPAD_MULTIPLY = wxc.WXK_NUMPAD_MULTIPLY
680WXK_NUMPAD_ADD = wxc.WXK_NUMPAD_ADD
681WXK_NUMPAD_SEPARATOR = wxc.WXK_NUMPAD_SEPARATOR
682WXK_NUMPAD_SUBTRACT = wxc.WXK_NUMPAD_SUBTRACT
683WXK_NUMPAD_DECIMAL = wxc.WXK_NUMPAD_DECIMAL
684WXK_NUMPAD_DIVIDE = wxc.WXK_NUMPAD_DIVIDE
0a651eb8
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
68320e40 713wxBITMAP_TYPE_ANI = wxc.wxBITMAP_TYPE_ANI
ce914f73 714wxBITMAP_TYPE_IFF = wxc.wxBITMAP_TYPE_IFF
0a651eb8
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
e9159fe8 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
0a651eb8
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
23bed520
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
00b6c4e3
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
7b7ac0ab 864wxEVT_CHILD_FOCUS = wxc.wxEVT_CHILD_FOCUS
d1679124 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
6d26dc89 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
e67409dc 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
83f3dd45 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
afb810d9
RD
930wxEVT_MENU_OPEN = wxc.wxEVT_MENU_OPEN
931wxEVT_MENU_CLOSE = wxc.wxEVT_MENU_CLOSE
b8b8dda7 932wxEVT_MENU_HIGHLIGHT = wxc.wxEVT_MENU_HIGHLIGHT
3999941a 933wxEVT_CONTEXT_MENU = wxc.wxEVT_CONTEXT_MENU
b8b8dda7 934wxEVT_SYS_COLOUR_CHANGED = wxc.wxEVT_SYS_COLOUR_CHANGED
be43cc44 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
RD
959__version__ = wxc.__version__
960cvar = wxc.cvar
e508a2b6
RD
961wxDefaultPosition = wxPointPtr(wxc.cvar.wxDefaultPosition)
962wxDefaultSize = wxSizePtr(wxc.cvar.wxDefaultSize)
7e50db3f
RD
963wxPYAPP_ASSERT_SUPPRESS = wxc.wxPYAPP_ASSERT_SUPPRESS
964wxPYAPP_ASSERT_EXCEPTION = wxc.wxPYAPP_ASSERT_EXCEPTION
965wxPYAPP_ASSERT_DIALOG = wxc.wxPYAPP_ASSERT_DIALOG
966wxPYAPP_ASSERT_LOG = wxc.wxPYAPP_ASSERT_LOG
b8b8dda7
RD
967
968
969#-------------- USER INCLUDE -----------------------
970
971#----------------------------------------------------------------------------
972# Name: _extra.py
7e50db3f 973# Purpose: This file is appended to the shadow class file generated
b8b8dda7
RD
974# by SWIG. We add some unSWIGable things here.
975#
976# Author: Robin Dunn
977#
978# Created: 6/30/97
b8b8dda7
RD
979# Copyright: (c) 1998 by Total Control Software
980# Licence: wxWindows license
981#----------------------------------------------------------------------------
982
983import sys
984
985#----------------------------------------------------------------------
986# This gives this module's dictionary to the C++ extension code...
987
988_wxSetDictionary(vars())
989
990
991#----------------------------------------------------------------------
992#----------------------------------------------------------------------
993# Helper function to link python methods to wxWindows virtual
994# functions by name.
995
c368d904
RD
996def _checkForCallback(obj, name, event, theID=-1):
997 try: cb = getattr(obj, name)
998 except: pass
999 else: obj.Connect(theID, -1, event, cb)
b8b8dda7 1000
b8b8dda7
RD
1001
1002#----------------------------------------------------------------------
1003#----------------------------------------------------------------------
1004# functions that look and act like the C++ Macros of the same name
1005
1006
1007# Miscellaneous
1008def EVT_SIZE(win, func):
1009 win.Connect(-1, -1, wxEVT_SIZE, func)
1010
1011def EVT_MOVE(win, func):
1012 win.Connect(-1, -1, wxEVT_MOVE, func)
1013
1014def EVT_CLOSE(win, func):
1015 win.Connect(-1, -1, wxEVT_CLOSE_WINDOW, func)
1016
1017def EVT_PAINT(win, func):
1018 win.Connect(-1, -1, wxEVT_PAINT, func)
1019
1020def EVT_ERASE_BACKGROUND(win, func):
1021 win.Connect(-1, -1, wxEVT_ERASE_BACKGROUND, func)
1022
1023def EVT_CHAR(win, func):
1024 win.Connect(-1, -1, wxEVT_CHAR, func)
1025
1026def EVT_CHAR_HOOK(win, func):
1027 win.Connect(-1, -1, wxEVT_CHAR_HOOK, func)
1028
8bf5d46e
RD
1029def EVT_KEY_DOWN(win, func):
1030 win.Connect(-1, -1, wxEVT_KEY_DOWN, func)
1031
1032def EVT_KEY_UP(win, func):
1033 win.Connect(-1, -1, wxEVT_KEY_UP, func)
1034
afb810d9
RD
1035def EVT_MENU_OPEN(win, func):
1036 win.Connect(-1, -1, wxEVT_MENU_OPEN, func)
1037
1038def EVT_MENU_CLOSE(win, func):
1039 win.Connect(-1, -1, wxEVT_MENU_CLOSE, func)
1040
b8b8dda7
RD
1041def EVT_MENU_HIGHLIGHT(win, id, func):
1042 win.Connect(id, -1, wxEVT_MENU_HIGHLIGHT, func)
1043
1044def EVT_MENU_HIGHLIGHT_ALL(win, func):
1045 win.Connect(-1, -1, wxEVT_MENU_HIGHLIGHT, func)
1046
1047def EVT_SET_FOCUS(win, func):
1048 win.Connect(-1, -1, wxEVT_SET_FOCUS, func)
1049
1050def EVT_KILL_FOCUS(win, func):
1051 win.Connect(-1, -1, wxEVT_KILL_FOCUS, func)
1052
7b7ac0ab
RD
1053def EVT_CHILD_FOCUS(win, func):
1054 win.Connect(-1, -1, wxEVT_CHILD_FOCUS, func)
1055
b8b8dda7
RD
1056def EVT_ACTIVATE(win, func):
1057 win.Connect(-1, -1, wxEVT_ACTIVATE, func)
1058
1059def EVT_ACTIVATE_APP(win, func):
1060 win.Connect(-1, -1, wxEVT_ACTIVATE_APP, func)
1061
1062def EVT_END_SESSION(win, func):
1063 win.Connect(-1, -1, wxEVT_END_SESSION, func)
1064
1065def EVT_QUERY_END_SESSION(win, func):
1066 win.Connect(-1, -1, wxEVT_QUERY_END_SESSION, func)
1067
1068def EVT_DROP_FILES(win, func):
1069 win.Connect(-1, -1, wxEVT_DROP_FILES, func)
1070
1071def EVT_INIT_DIALOG(win, func):
1072 win.Connect(-1, -1, wxEVT_INIT_DIALOG, func)
1073
1074def EVT_SYS_COLOUR_CHANGED(win, func):
1075 win.Connect(-1, -1, wxEVT_SYS_COLOUR_CHANGED, func)
1076
be43cc44
RD
1077def EVT_DISPLAY_CHANGED(win, func):
1078 win.Connect(-1, -1, wxEVT_DISPLAY_CHANGED, func)
1079
b8b8dda7
RD
1080def EVT_SHOW(win, func):
1081 win.Connect(-1, -1, wxEVT_SHOW, func)
1082
1083def EVT_MAXIMIZE(win, func):
1084 win.Connect(-1, -1, wxEVT_MAXIMIZE, func)
1085
1086def EVT_ICONIZE(win, func):
1087 win.Connect(-1, -1, wxEVT_ICONIZE, func)
1088
1089def EVT_NAVIGATION_KEY(win, func):
1090 win.Connect(-1, -1, wxEVT_NAVIGATION_KEY, func)
1091
3af4e610
RD
1092def EVT_PALETTE_CHANGED(win, func):
1093 win.Connect(-1, -1, wxEVT_PALETTE_CHANGED, func)
1094
1095def EVT_QUERY_NEW_PALETTE(win, func):
1096 win.Connect(-1, -1, wxEVT_QUERY_NEW_PALETTE, func)
1097
1098def EVT_WINDOW_CREATE(win, func):
b7e72427 1099 win.Connect(-1, -1, wxEVT_CREATE, func)
3af4e610
RD
1100
1101def EVT_WINDOW_DESTROY(win, func):
b7e72427 1102 win.Connect(-1, -1, wxEVT_DESTROY, func)
3af4e610 1103
7e50db3f
RD
1104def EVT_WINDOW_CREATE_ID(win, id, func):
1105 win.Connect(id, -1, wxEVT_CREATE, func)
1106
1107def EVT_WINDOW_DESTROY_ID(win, id, func):
1108 win.Connect(id, -1, wxEVT_DESTROY, func)
1109
e67409dc
RD
1110def EVT_SET_CURSOR(win, func):
1111 win.Connect(-1, -1, wxEVT_SET_CURSOR, func)
1112
3af4e610
RD
1113
1114
cf694132
RD
1115def EVT_IDLE(win, func):
1116 win.Connect(-1, -1, wxEVT_IDLE, func)
1117
bb0054cd
RD
1118def EVT_UPDATE_UI(win, id, func):
1119 win.Connect(id, -1, wxEVT_UPDATE_UI, func)
1120
eb715945
RD
1121def EVT_UPDATE_UI_RANGE(win, id, id2, func):
1122 win.Connect(id, id2, wxEVT_UPDATE_UI, func)
1123
b8b8dda7
RD
1124
1125# Mouse Events
1126def EVT_LEFT_DOWN(win, func):
1127 win.Connect(-1, -1, wxEVT_LEFT_DOWN, func)
1128
1129def EVT_LEFT_UP(win, func):
1130 win.Connect(-1, -1, wxEVT_LEFT_UP, func)
1131
1132def EVT_MIDDLE_DOWN(win, func):
1133 win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func)
1134
1135def EVT_MIDDLE_UP(win, func):
1136 win.Connect(-1, -1, wxEVT_MIDDLE_UP, func)
1137
1138def EVT_RIGHT_DOWN(win, func):
1139 win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func)
1140
1141def EVT_RIGHT_UP(win, func):
1142 win.Connect(-1, -1, wxEVT_RIGHT_UP, func)
1143
1144def EVT_MOTION(win, func):
1145 win.Connect(-1, -1, wxEVT_MOTION, func)
1146
1147def EVT_LEFT_DCLICK(win, func):
1148 win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func)
1149
1150def EVT_MIDDLE_DCLICK(win, func):
1151 win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func)
1152
1153def EVT_RIGHT_DCLICK(win, func):
1154 win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func)
1155
1156def EVT_LEAVE_WINDOW(win, func):
1157 win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func)
1158
1159def EVT_ENTER_WINDOW(win, func):
1160 win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func)
1161
d1679124
RD
1162def EVT_MOUSEWHEEL(win, func):
1163 win.Connect(-1, -1, wxEVT_MOUSEWHEEL, func)
b8b8dda7
RD
1164
1165# all mouse events
1166def EVT_MOUSE_EVENTS(win, func):
1167 win.Connect(-1, -1, wxEVT_LEFT_DOWN, func)
1168 win.Connect(-1, -1, wxEVT_LEFT_UP, func)
1169 win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func)
1170 win.Connect(-1, -1, wxEVT_MIDDLE_UP, func)
1171 win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func)
1172 win.Connect(-1, -1, wxEVT_RIGHT_UP, func)
1173 win.Connect(-1, -1, wxEVT_MOTION, func)
1174 win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func)
1175 win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func)
1176 win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func)
1177 win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func)
1178 win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func)
1179
6d26dc89
RD
1180def EVT_MOUSE_CAPTURE_CHANGED(win, func):
1181 win.Connect(-1, -1, wxEVT_MOUSE_CAPTURE_CHANGED, func)
1182
b8b8dda7
RD
1183# EVT_COMMAND
1184def EVT_COMMAND(win, id, cmd, func):
1185 win.Connect(id, -1, cmd, func)
1186
1187def EVT_COMMAND_RANGE(win, id1, id2, cmd, func):
1188 win.Connect(id1, id2, cmd, func)
1189
26b9cf27 1190
b8b8dda7
RD
1191# Scrolling
1192def EVT_SCROLL(win, func):
83f3dd45
RD
1193 win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
1194 win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func)
1195 win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func)
1196 win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func)
1197 win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
1198 win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
1199 win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK, func)
26b9cf27 1200 win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE,func)
83f3dd45 1201 win.Connect(-1, -1, wxEVT_SCROLL_ENDSCROLL, func)
b8b8dda7
RD
1202
1203def EVT_SCROLL_TOP(win, func):
1204 win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
1205
1206def EVT_SCROLL_BOTTOM(win, func):
1207 win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func)
1208
1209def EVT_SCROLL_LINEUP(win, func):
1210 win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func)
1211
1212def EVT_SCROLL_LINEDOWN(win, func):
1213 win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func)
1214
1215def EVT_SCROLL_PAGEUP(win, func):
1216 win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
1217
1218def EVT_SCROLL_PAGEDOWN(win, func):
1219 win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
1220
1221def EVT_SCROLL_THUMBTRACK(win, func):
1222 win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK, func)
1223
26b9cf27
RD
1224def EVT_SCROLL_THUMBRELEASE(win, func):
1225 win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE, func)
1226
83f3dd45
RD
1227def EVT_SCROLL_ENDSCROLL(win, func):
1228 win.Connect(-1, -1, wxEVT_SCROLL_ENDSCROLL, func)
1229
b8b8dda7
RD
1230
1231
1232# Scrolling, with an id
1233def EVT_COMMAND_SCROLL(win, id, func):
1234 win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
1235 win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
1236 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
1237 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
1238 win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
1239 win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
1240 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
26b9cf27 1241 win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE,func)
7e50db3f 1242 win.Connect(id, -1, wxEVT_SCROLL_ENDSCROLL, func)
b8b8dda7
RD
1243
1244def EVT_COMMAND_SCROLL_TOP(win, id, func):
1245 win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
1246
1247def EVT_COMMAND_SCROLL_BOTTOM(win, id, func):
1248 win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
1249
1250def EVT_COMMAND_SCROLL_LINEUP(win, id, func):
1251 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
1252
1253def EVT_COMMAND_SCROLL_LINEDOWN(win, id, func):
1254 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
1255
1256def EVT_COMMAND_SCROLL_PAGEUP(win, id, func):
1257 win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
1258
1259def EVT_COMMAND_SCROLL_PAGEDOWN(win, id, func):
1260 win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
1261
1262def EVT_COMMAND_SCROLL_THUMBTRACK(win, id, func):
1263 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK, func)
1264
26b9cf27
RD
1265def EVT_COMMAND_SCROLL_THUMBRELEASE(win, id, func):
1266 win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE, func)
1267
83f3dd45
RD
1268def EVT_COMMAND_SCROLL_ENDSCROLL(win, id, func):
1269 win.Connect(id, -1, wxEVT_SCROLL_ENDSCROLL, func)
1270
d426c97e
RD
1271#---
1272def EVT_SCROLLWIN(win, func):
26b9cf27
RD
1273 win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
1274 win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func)
1275 win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func)
1276 win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
1277 win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func)
1278 win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
1279 win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
1280 win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE,func)
d426c97e
RD
1281
1282def EVT_SCROLLWIN_TOP(win, func):
1283 win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
1284
1285def EVT_SCROLLWIN_BOTTOM(win, func):
1286 win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func)
1287
1288def EVT_SCROLLWIN_LINEUP(win, func):
1289 win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func)
1290
1291def EVT_SCROLLWIN_LINEDOWN(win, func):
1292 win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
1293
1294def EVT_SCROLLWIN_PAGEUP(win, func):
1295 win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func)
1296
1297def EVT_SCROLLWIN_PAGEDOWN(win, func):
1298 win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
1299
1300def EVT_SCROLLWIN_THUMBTRACK(win, func):
1301 win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
1302
26b9cf27
RD
1303def EVT_SCROLLWIN_THUMBRELEASE(win, func):
1304 win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func)
1305
d426c97e
RD
1306
1307
1308# Scrolling, with an id
1309def EVT_COMMAND_SCROLLWIN(win, id, func):
26b9cf27
RD
1310 win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
1311 win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func)
1312 win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func)
1313 win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
1314 win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func)
1315 win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
1316 win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
1317 win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE,func)
d426c97e
RD
1318
1319def EVT_COMMAND_SCROLLWIN_TOP(win, id, func):
1320 win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
1321
1322def EVT_COMMAND_SCROLLWIN_BOTTOM(win, id, func):
1323 win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func)
1324
1325def EVT_COMMAND_SCROLLWIN_LINEUP(win, id, func):
1326 win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func)
1327
1328def EVT_COMMAND_SCROLLWIN_LINEDOWN(win, id, func):
1329 win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
1330
1331def EVT_COMMAND_SCROLLWIN_PAGEUP(win, id, func):
1332 win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func)
1333
1334def EVT_COMMAND_SCROLLWIN_PAGEDOWN(win, id, func):
1335 win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
1336
1337def EVT_COMMAND_SCROLLWIN_THUMBTRACK(win, id, func):
1338 win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
b8b8dda7 1339
26b9cf27
RD
1340def EVT_COMMAND_SCROLLWIN_THUMBRELEASE(win, id, func):
1341 win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func)
1342
1343
b8b8dda7
RD
1344# Convenience commands
1345def EVT_BUTTON(win, id, func):
1346 win.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED, func)
1347
1348def EVT_CHECKBOX(win, id, func):
1349 win.Connect(id, -1, wxEVT_COMMAND_CHECKBOX_CLICKED, func)
1350
1351def EVT_CHOICE(win, id, func):
1352 win.Connect(id, -1, wxEVT_COMMAND_CHOICE_SELECTED, func)
1353
1354def EVT_LISTBOX(win, id, func):
1355 win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_SELECTED, func)
1356
1357def EVT_LISTBOX_DCLICK(win, id, func):
1358 win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, func)
1359
1360def EVT_TEXT(win, id, func):
1361 win.Connect(id, -1, wxEVT_COMMAND_TEXT_UPDATED, func)
1362
1363def EVT_TEXT_ENTER(win, id, func):
1364 win.Connect(id, -1, wxEVT_COMMAND_TEXT_ENTER, func)
1365
00b6c4e3
RD
1366def EVT_TEXT_URL(win, id, func):
1367 win.Connect(id, -1, wxEVT_COMMAND_TEXT_URL, func)
1368
1369def EVT_TEXT_MAXLEN(win, id, func):
1370 win.Connect(id, -1, wxEVT_COMMAND_TEXT_MAXLEN, func)
1371
b8b8dda7
RD
1372def EVT_MENU(win, id, func):
1373 win.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED, func)
1374
1375def EVT_MENU_RANGE(win, id1, id2, func):
1376 win.Connect(id1, id2, wxEVT_COMMAND_MENU_SELECTED, func)
1377
1378def EVT_SLIDER(win, id, func):
1379 win.Connect(id, -1, wxEVT_COMMAND_SLIDER_UPDATED, func)
1380
1381def EVT_RADIOBOX(win, id, func):
1382 win.Connect(id, -1, wxEVT_COMMAND_RADIOBOX_SELECTED, func)
1383
1384def EVT_RADIOBUTTON(win, id, func):
1385 win.Connect(id, -1, wxEVT_COMMAND_RADIOBUTTON_SELECTED, func)
1386
1387def EVT_VLBOX(win, id, func):
1388 win.Connect(id, -1, wxEVT_COMMAND_VLBOX_SELECTED, func)
1389
1390def EVT_COMBOBOX(win, id, func):
1391 win.Connect(id, -1, wxEVT_COMMAND_COMBOBOX_SELECTED, func)
1392
1393def EVT_TOOL(win, id, func):
1394 win.Connect(id, -1, wxEVT_COMMAND_TOOL_CLICKED, func)
1395
3af4e610
RD
1396def EVT_TOOL_RANGE(win, id, id2, func):
1397 win.Connect(id, id2, wxEVT_COMMAND_TOOL_CLICKED, func)
1398
b8b8dda7
RD
1399def EVT_TOOL_RCLICKED(win, id, func):
1400 win.Connect(id, -1, wxEVT_COMMAND_TOOL_RCLICKED, func)
1401
3af4e610
RD
1402def EVT_TOOL_RCLICKED_RANGE(win, id, id2, func):
1403 win.Connect(id, id2, wxEVT_COMMAND_TOOL_RCLICKED, func)
1404
b8b8dda7
RD
1405def EVT_TOOL_ENTER(win, id, func):
1406 win.Connect(id, -1, wxEVT_COMMAND_TOOL_ENTER, func)
1407
1408def EVT_CHECKLISTBOX(win, id, func):
1409 win.Connect(id, -1, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, func)
1410
3af4e610
RD
1411def EVT_SPINCTRL(win, id, func):
1412 win.Connect(id, -1, wxEVT_COMMAND_SPINCTRL_UPDATED, func)
1413
1414
b8b8dda7
RD
1415
1416# Generic command events
1417
1418def EVT_COMMAND_LEFT_CLICK(win, id, func):
1419 win.Connect(id, -1, wxEVT_COMMAND_LEFT_CLICK, func)
1420
1421def EVT_COMMAND_LEFT_DCLICK(win, id, func):
1422 win.Connect(id, -1, wxEVT_COMMAND_LEFT_DCLICK, func)
1423
1424def EVT_COMMAND_RIGHT_CLICK(win, id, func):
1425 win.Connect(id, -1, wxEVT_COMMAND_RIGHT_CLICK, func)
1426
1427def EVT_COMMAND_RIGHT_DCLICK(win, id, func):
1428 win.Connect(id, -1, wxEVT_COMMAND_RIGHT_DCLICK, func)
1429
1430def EVT_COMMAND_SET_FOCUS(win, id, func):
1431 win.Connect(id, -1, wxEVT_COMMAND_SET_FOCUS, func)
1432
1433def EVT_COMMAND_KILL_FOCUS(win, id, func):
1434 win.Connect(id, -1, wxEVT_COMMAND_KILL_FOCUS, func)
1435
1436def EVT_COMMAND_ENTER(win, id, func):
1437 win.Connect(id, -1, wxEVT_COMMAND_ENTER, func)
1438
1439
1440# wxNotebook events
1441def EVT_NOTEBOOK_PAGE_CHANGED(win, id, func):
1442 win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, func)
1443
1444def EVT_NOTEBOOK_PAGE_CHANGING(win, id, func):
1445 win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, func)
1446
1447
b8b8dda7
RD
1448# wxSpinButton
1449def EVT_SPIN_UP(win, id, func):
1450 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
1451
1452def EVT_SPIN_DOWN(win, id, func):
f6bcfd97 1453 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
b8b8dda7
RD
1454
1455def EVT_SPIN(win, id, func):
b8b8dda7
RD
1456 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
1457
1458
b8b8dda7
RD
1459# wxTaskBarIcon
1460def EVT_TASKBAR_MOVE(win, func):
1461 win.Connect(-1, -1, wxEVT_TASKBAR_MOVE, func)
1462
1463def EVT_TASKBAR_LEFT_DOWN(win, func):
1464 win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DOWN, func)
1465
1466def EVT_TASKBAR_LEFT_UP(win, func):
1467 win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_UP, func)
1468
1469def EVT_TASKBAR_RIGHT_DOWN(win, func):
1470 win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DOWN, func)
1471
1472def EVT_TASKBAR_RIGHT_UP(win, func):
1473 win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_UP, func)
1474
1475def EVT_TASKBAR_LEFT_DCLICK(win, func):
1476 win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DCLICK, func)
1477
1478def EVT_TASKBAR_RIGHT_DCLICK(win, func):
1479 win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DCLICK, func)
1480
1481
08127323
RD
1482# wxSashWindow
1483def EVT_SASH_DRAGGED(win, id, func):
1484 win.Connect(id, -1, wxEVT_SASH_DRAGGED, func)
1485
1486def EVT_SASH_DRAGGED_RANGE(win, id1, id2, func):
1487 win.Connect(id1, id2, wxEVT_SASH_DRAGGED, func)
1488
1489def EVT_QUERY_LAYOUT_INFO(win, func):
1490 win.Connect(-1, -1, wxEVT_EVT_QUERY_LAYOUT_INFO, func)
1491
1492def EVT_CALCULATE_LAYOUT(win, func):
1493 win.Connect(-1, -1, wxEVT_EVT_CALCULATE_LAYOUT, func)
1494
1495
bb0054cd
RD
1496#wxSplitterWindow
1497def EVT_SPLITTER_SASH_POS_CHANGING(win, id, func):
1498 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, func)
1499
1500def EVT_SPLITTER_SASH_POS_CHANGED(win, id, func):
1501 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, func)
1502
1503def EVT_SPLITTER_UNSPLIT(win, id, func):
1504 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_UNSPLIT, func)
1505
1506def EVT_SPLITTER_DOUBLECLICKED(win, id, func):
1507 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, func)
1508
b8b8dda7 1509
f6bcfd97
BP
1510# wxTimer
1511def EVT_TIMER(win, id, func):
1512 win.Connect(id, -1, wxEVT_TIMER, func)
1513
c368d904
RD
1514# wxProcess
1515def EVT_END_PROCESS(eh, id, func):
1516 eh.Connect(id, -1, wxEVT_END_PROCESS, func)
f6bcfd97 1517
185d7c3e
RD
1518
1519# wxJoyStick
1520def EVT_JOY_DOWN(win, func):
ac346f50 1521 win.Connect(-1, -1, wxEVT_JOY_BUTTON_DOWN, func)
185d7c3e
RD
1522
1523def EVT_JOY_UP(win, func):
ac346f50 1524 win.Connect(-1, -1, wxEVT_JOY_BUTTON_UP, func)
185d7c3e
RD
1525
1526def EVT_JOY_MOVE(win, func):
1527 win.Connect(-1, -1, wxEVT_JOY_MOVE, func)
1528
1529def EVT_JOY_ZMOVE(win, func):
1530 win.Connect(-1, -1, wxEVT_JOY_ZMOVE, func)
1531
1532def EVT_JOYSTICK_EVENTS(win, func):
ac346f50
RD
1533 win.Connect(-1, -1, wxEVT_JOY_BUTTON_DOWN, func)
1534 win.Connect(-1, -1, wxEVT_JOY_BUTTON_UP, func)
185d7c3e
RD
1535 win.Connect(-1, -1, wxEVT_JOY_MOVE, func)
1536 win.Connect(-1, -1, wxEVT_JOY_ZMOVE, func)
1537
d1679124
RD
1538
1539def EVT_TOGGLEBUTTON(win, id, func):
1540 win.Connect(id, -1, wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, func)
1541
1542
4f3449b4 1543
4f3449b4
RD
1544def EVT_CONTEXT_MENU(win, func):
1545 win.Connect(-1, -1, wxEVT_CONTEXT_MENU, func)
1546
1547
b8b8dda7
RD
1548#----------------------------------------------------------------------
1549
1550class wxTimer(wxPyTimer):
185d7c3e
RD
1551 def __init__(self, evtHandler = None, id = -1):
1552 if evtHandler is None:
1553 wxPyTimer.__init__(self, self.Notify) # derived class must provide
1554 # Notify(self) method.
1555 else:
1556 wxPyTimer.__init__(self, None)
1557 self.SetOwner(evtHandler, id)
b8b8dda7 1558
b8b8dda7
RD
1559#----------------------------------------------------------------------
1560# aliases
1561
1562wxColor = wxColour
1563wxNamedColor = wxNamedColour
ecc08ead 1564wxPen = wxPyPen
293a0a86 1565wxScrollbar = wxScrollBar
7e50db3f
RD
1566wxPoint2D = wxPoint2DDouble
1567
1568wxPyAssertionError = wxc.wxPyAssertionError
293a0a86 1569
11765138 1570
9b3d3bc4 1571# backwards compatibility
7e50db3f
RD
1572wxNoRefBitmap = wxBitmap
1573wxPyDefaultPosition = wxDefaultPosition
1574wxPyDefaultSize = wxDefaultSize
1575NULL = None
68320e40
RD
1576wxSystemSettings_GetSystemColour = wxSystemSettings_GetColour
1577wxSystemSettings_GetSystemFont = wxSystemSettings_GetFont
1578wxSystemSettings_GetSystemMetric = wxSystemSettings_GetMetric
00b6c4e3 1579
7e50db3f
RD
1580
1581# workarounds for bad wxRTTI names
1582__wxPyPtrTypeMap['wxGauge95'] = 'wxGauge'
1583
1584
1585
1586def NewId():
1587 import warnings
1588 warnings.warn("Use wxNewId instead", DeprecationWarning, 2)
1589 return wxNewId()
1590
1591def RegisterId(ID):
1592 import warnings
1593 warnings.warn("Use wxRegisterId instead", DeprecationWarning, 2)
1594 return wxRegisterId(ID)
1595
1596
1597
1598# Use Python's bool constants if available, make aliases if not
1599try:
1600 True
1601except NameError:
1602 True = 1==1
1603 False = 1==0
1604
1605# Backwards compaatible
1606TRUE = true = True
1607FALSE = false = False
1608
1609
a3fbed81 1610#----------------------------------------------------------------------
00b6c4e3
RD
1611# wxGTK sets the locale when initialized. Doing this at the Python
1612# level should set it up to match what GTK is doing at the C level.
293a0a86
RD
1613if wxPlatform == "__WXGTK__":
1614 try:
1615 import locale
1616 locale.setlocale(locale.LC_ALL, "")
1617 except:
1618 pass
00b6c4e3 1619
7e50db3f
RD
1620if wxPlatform == "__WXMSW__":
1621 import os
1622 localedir = os.path.join(os.path.split(__file__)[0], "locale")
1623 wxLocale_AddCatalogLookupPathPrefix(localedir)
1624 del os
a3fbed81
RD
1625
1626#----------------------------------------------------------------------
1627# wxWindows version numbers. wxPython version is in __version__.
1628
1629wxMAJOR_VERSION = wxc.wxMAJOR_VERSION
1630wxMINOR_VERSION = wxc.wxMINOR_VERSION
1631wxRELEASE_NUMBER = wxc.wxRELEASE_NUMBER
1632wxVERSION_STRING = wxc.wxVERSION_STRING
1633wxVERSION_NUMBER = wxc.wxVERSION_NUMBER
1634
1635wxVERSION = (wxMAJOR_VERSION, wxMINOR_VERSION, wxRELEASE_NUMBER)
1636
1637
8bf5d46e
RD
1638#----------------------------------------------------------------------
1639# This helper function will take a wxPython object and convert it to
1640# another wxPython object type. This will not be able to create objects
f581a26d 1641# that are derived from wxPython classes by the user, only those that are
8bf5d46e
RD
1642# actually part of wxPython and directly corespond to C++ objects.
1643#
1644# This is useful in situations where some method returns a generic
1645# type such as wxWindow, but you know that it is actually some
1646# derived type such as a wxTextCtrl. You can't call wxTextCtrl specific
1647# methods on a wxWindow object, but you can use this function to
1648# create a wxTextCtrl object that will pass the same pointer to
1649# the C++ code. You use it like this:
1650#
1651# textCtrl = wxPyTypeCast(window, "wxTextCtrl")
1652#
1653#
1654# WARNING: Using this function to type cast objects into types that
1655# they are not is not recommended and is likely to cause your
1656# program to crash... Hard.
1657#
1658
1659def wxPyTypeCast(obj, typeStr):
83b18bab
RD
1660 if obj is None:
1661 return None
9416aa89
RD
1662 theClass = globals()[typeStr+"Ptr"]
1663 typeStr = __wxPyPtrTypeMap.get(typeStr, typeStr)
8bf5d46e 1664 if hasattr(obj, "this"):
2aab8f16
RD
1665 # if already the right type then just return it
1666 if isinstance(obj, theClass) or obj.__class__ is theClass:
9416aa89 1667 return obj
8bf5d46e
RD
1668 newPtr = ptrcast(obj.this, typeStr+"_p")
1669 else:
1670 newPtr = ptrcast(obj, typeStr+"_p")
8bf5d46e 1671 theObj = theClass(newPtr)
9b3d3bc4
RD
1672 if hasattr(obj, "this"):
1673 theObj.thisown = obj.thisown
8bf5d46e
RD
1674 return theObj
1675
7e50db3f
RD
1676#----------------------------------------------------------------------------
1677# An isinstance for Pythons < 2.2 that can check a sequence of class objects
1678# like the one in 2.2 can.
1679
1680def wxPy_isinstance(obj, klasses):
1681 import types
1682 if sys.version[:3] < "2.2" and type(klasses) in [types.TupleType, types.ListType]:
1683 for klass in klasses:
1684 if isinstance(obj, klass): return True
1685 return False
1686 else:
1687 return isinstance(obj, klasses)
8bf5d46e 1688
4acff284 1689#----------------------------------------------------------------------------
72797a7d
RD
1690_wxCallAfterId = None
1691
1692def wxCallAfter(callable, *args, **kw):
1693 """
1694 Call the specified function after the current and pending event
c2dac736
RD
1695 handlers have been completed. This is also good for making GUI
1696 method calls from non-GUI threads.
72797a7d
RD
1697 """
1698 app = wxGetApp()
1699 assert app, 'No wxApp created yet'
1700
1701 global _wxCallAfterId
1702 if _wxCallAfterId is None:
1703 _wxCallAfterId = wxNewId()
1704 app.Connect(-1, -1, _wxCallAfterId,
1705 lambda event: apply(event.callable, event.args, event.kw) )
1706 evt = wxPyEvent()
1707 evt.SetEventType(_wxCallAfterId)
1708 evt.callable = callable
1709 evt.args = args
1710 evt.kw = kw
1711 wxPostEvent(app, evt)
1712
7e50db3f
RD
1713# an alias
1714wxRunLater = wxCallAfter
1715
72797a7d 1716#----------------------------------------------------------------------
4acff284 1717
7cdaed0b
RD
1718class wxPyDeadObjectError(AttributeError):
1719 pass
4acff284
RD
1720
1721class _wxPyDeadObject:
1722 """
1723 Instances of wx objects that are OOR capable will have their __class__
1724 changed to this class when the C++ object is deleted. This should help
1725 prevent crashes due to referencing a bogus C++ pointer.
1726 """
7cdaed0b 1727 reprStr = "wxPython wrapper for DELETED %s object! (The C++ object no longer exists.)"
fc51b8c3 1728 attrStr = "The C++ part of the %s object has been deleted, attribute access no longer allowed."
7cdaed0b 1729
4acff284
RD
1730 def __repr__( self ):
1731 if not hasattr(self, "_name"):
1732 self._name = "[unknown]"
7cdaed0b 1733 return self.reprStr % self._name
4acff284
RD
1734
1735 def __getattr__( self, *args ):
1736 if not hasattr(self, "_name"):
1737 self._name = "[unknown]"
7cdaed0b
RD
1738 raise wxPyDeadObjectError( self.attrStr % self._name )
1739
1740 def __nonzero__(self):
1741 return 0
4acff284
RD
1742
1743
c856d372 1744#----------------------------------------------------------------------
b8b8dda7
RD
1745#----------------------------------------------------------------------
1746
2f90df85
RD
1747class wxPyOnDemandOutputWindow:
1748 def __init__(self, title = "wxPython: stdout/stderr"):
1749 self.frame = None
1750 self.title = title
c856d372 1751 self.parent = None
cf694132 1752
2f90df85
RD
1753 def SetParent(self, parent):
1754 self.parent = parent
b8b8dda7 1755
2f90df85
RD
1756 def OnCloseWindow(self, event):
1757 if self.frame != None:
1758 self.frame.Destroy()
1759 self.frame = None
1760 self.text = None
1761
6e18ca6c 1762 # These methods provide the file-like output behaviour.
2f90df85 1763 def write(self, str):
6e18ca6c
RD
1764 if not wxThread_IsMain():
1765 # Aquire the GUI mutex before making GUI calls. Mutex is released
0a651eb8 1766 # when locker is deleted at the end of this function.
6e18ca6c
RD
1767 locker = wxMutexGuiLocker()
1768
2f90df85 1769 if not self.frame:
0a651eb8
RD
1770 self.frame = wxFrame(self.parent, -1, self.title,
1771 style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE)
2f90df85
RD
1772 self.text = wxTextCtrl(self.frame, -1, "",
1773 style = wxTE_MULTILINE|wxTE_READONLY)
1774 self.frame.SetSize(wxSize(450, 300))
7e50db3f 1775 self.frame.Show(True)
2f90df85
RD
1776 EVT_CLOSE(self.frame, self.OnCloseWindow)
1777 self.text.AppendText(str)
1778
1779 def close(self):
eec92d76 1780 if self.frame != None:
6e18ca6c
RD
1781 if not wxThread_IsMain():
1782 locker = wxMutexGuiLocker()
c856d372 1783 self.frame.Close()
b8b8dda7 1784
b8b8dda7 1785
e67409dc 1786_defRedirect = (wxPlatform == '__WXMSW__' or wxPlatform == '__WXMAC__')
b8b8dda7
RD
1787
1788#----------------------------------------------------------------------
1789# The main application class. Derive from this and implement an OnInit
1790# method that creates a frame and then calls self.SetTopWindow(frame)
1791
1792class wxApp(wxPyApp):
1793 error = 'wxApp.error'
2f90df85 1794 outputWindowClass = wxPyOnDemandOutputWindow
b8b8dda7 1795
7e50db3f 1796 def __init__(self, redirect=_defRedirect, filename=None, useBestVisual=False):
b8b8dda7
RD
1797 wxPyApp.__init__(self)
1798 self.stdioWin = None
1799 self.saveStdio = (sys.stdout, sys.stderr)
7e50db3f
RD
1800
1801 # This has to be done before OnInit
1802 self.SetUseBestVisual(useBestVisual)
1803
b8b8dda7
RD
1804 if redirect:
1805 self.RedirectStdio(filename)
7e50db3f 1806
b8b8dda7
RD
1807 # this initializes wxWindows and then calls our OnInit
1808 _wxStart(self.OnInit)
1809
1810
1811 def __del__(self):
1812 try:
1813 self.RestoreStdio()
1814 except:
1815 pass
1816
2f90df85
RD
1817
1818 def SetTopWindow(self, frame):
1819 if self.stdioWin:
1820 self.stdioWin.SetParent(frame)
2f90df85
RD
1821 wxPyApp.SetTopWindow(self, frame)
1822
eec92d76 1823
2f90df85
RD
1824 def MainLoop(self):
1825 wxPyApp.MainLoop(self)
1826 self.RestoreStdio()
1827
eec92d76 1828
b8b8dda7
RD
1829 def RedirectStdio(self, filename):
1830 if filename:
1831 sys.stdout = sys.stderr = open(filename, 'a')
1832 else:
7e50db3f 1833 self.stdioWin = self.outputWindowClass()
c856d372 1834 sys.stdout = sys.stderr = self.stdioWin
b8b8dda7 1835
eec92d76 1836
b8b8dda7
RD
1837 def RestoreStdio(self):
1838 sys.stdout, sys.stderr = self.saveStdio
c856d372 1839
b8b8dda7 1840
7e50db3f
RD
1841# change from wxPyApp_ to wxApp_
1842wxApp_GetMacDefaultEncodingIsPC = wxc.wxPyApp_GetMacDefaultEncodingIsPC
1843wxApp_GetMacSupportPCMenuShortcuts = wxc.wxPyApp_GetMacSupportPCMenuShortcuts
1844wxApp_GetMacAboutMenuItemId = wxc.wxPyApp_GetMacAboutMenuItemId
1845wxApp_GetMacPreferencesMenuItemId = wxc.wxPyApp_GetMacPreferencesMenuItemId
1846wxApp_GetMacExitMenuItemId = wxc.wxPyApp_GetMacExitMenuItemId
1847wxApp_GetMacHelpMenuTitleName = wxc.wxPyApp_GetMacHelpMenuTitleName
1848wxApp_SetMacDefaultEncodingIsPC = wxc.wxPyApp_SetMacDefaultEncodingIsPC
1849wxApp_SetMacSupportPCMenuShortcuts = wxc.wxPyApp_SetMacSupportPCMenuShortcuts
1850wxApp_SetMacAboutMenuItemId = wxc.wxPyApp_SetMacAboutMenuItemId
1851wxApp_SetMacPreferencesMenuItemId = wxc.wxPyApp_SetMacPreferencesMenuItemId
1852wxApp_SetMacExitMenuItemId = wxc.wxPyApp_SetMacExitMenuItemId
1853wxApp_SetMacHelpMenuTitleName = wxc.wxPyApp_SetMacHelpMenuTitleName
1854
1855
9b3d3bc4
RD
1856#----------------------------------------------------------------------------
1857
1858class wxPySimpleApp(wxApp):
83b18bab
RD
1859 def __init__(self, flag=0):
1860 wxApp.__init__(self, flag)
9b3d3bc4 1861 def OnInit(self):
3fce70fb 1862 wxInitAllImageHandlers()
7e50db3f 1863 return True
b8b8dda7 1864
2f90df85 1865
f6bcfd97
BP
1866class wxPyWidgetTester(wxApp):
1867 def __init__(self, size = (250, 100)):
1868 self.size = size
1869 wxApp.__init__(self, 0)
1870
1871 def OnInit(self):
1872 self.frame = wxFrame(None, -1, "Widget Tester", pos=(0,0), size=self.size)
1873 self.SetTopWindow(self.frame)
7e50db3f 1874 return True
f6bcfd97
BP
1875
1876 def SetWidget(self, widgetClass, *args):
1877 w = apply(widgetClass, (self.frame,) + args)
7e50db3f 1878 self.frame.Show(True)
f6bcfd97 1879
b8b8dda7 1880#----------------------------------------------------------------------------
4acff284
RD
1881# DO NOT hold any other references to this object. This is how we
1882# know when to cleanup system resources that wxWin is holding. When
1883# the sys module is unloaded, the refcount on sys.__wxPythonCleanup
1884# goes to zero and it calls the wxApp_CleanUp function.
b1462dfa 1885
c0fbf24b
RD
1886class __wxPyCleanup:
1887 def __init__(self):
1888 self.cleanup = wxc.wxApp_CleanUp
1889 def __del__(self):
1890 self.cleanup()
1891
1892sys.__wxPythonCleanup = __wxPyCleanup()
1893
14afa2cb 1894## # another possible solution, but it gets called too early...
c0fbf24b
RD
1895## if sys.version[0] == '2':
1896## import atexit
1897## atexit.register(wxc.wxApp_CleanUp)
1898## else:
1899## sys.exitfunc = wxc.wxApp_CleanUp
b1462dfa 1900
9416aa89
RD
1901
1902#----------------------------------------------------------------------------
8bf5d46e 1903#----------------------------------------------------------------------------