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