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