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