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