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