]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/wx.py
reSWIGged
[wxWidgets.git] / wxPython / src / msw / wx.py
1 # This file was created automatically by SWIG.
2 import wxc
3
4 from misc import *
5
6 from misc2 import *
7
8 from windows import *
9
10 from gdi import *
11
12 from fonts import *
13
14 from clip_dnd import *
15
16 from events import *
17
18 from streams import *
19
20 from utils import *
21
22 from mdi import *
23
24 from frames import *
25
26 from stattool import *
27
28 from controls import *
29
30 from controls2 import *
31
32 from windows2 import *
33
34 from cmndlgs import *
35
36 from windows3 import *
37
38 from image import *
39
40 from printfw import *
41
42 from sizers import *
43
44 from filesys import *
45 class wxPyAppPtr(wxEvtHandlerPtr):
46 def __init__(self,this):
47 self.this = this
48 self.thisown = 0
49 def __del__(self, delfunc=wxc.delete_wxPyApp):
50 if self.thisown == 1:
51 try:
52 delfunc(self)
53 except:
54 pass
55 def _setCallbackInfo(self, *_args, **_kwargs):
56 val = wxc.wxPyApp__setCallbackInfo(self, *_args, **_kwargs)
57 return val
58 def GetAppName(self, *_args, **_kwargs):
59 val = wxc.wxPyApp_GetAppName(self, *_args, **_kwargs)
60 return val
61 def GetClassName(self, *_args, **_kwargs):
62 val = wxc.wxPyApp_GetClassName(self, *_args, **_kwargs)
63 return val
64 def GetExitOnFrameDelete(self, *_args, **_kwargs):
65 val = wxc.wxPyApp_GetExitOnFrameDelete(self, *_args, **_kwargs)
66 return val
67 def GetPrintMode(self, *_args, **_kwargs):
68 val = wxc.wxPyApp_GetPrintMode(self, *_args, **_kwargs)
69 return val
70 def GetTopWindow(self, *_args, **_kwargs):
71 val = wxc.wxPyApp_GetTopWindow(self, *_args, **_kwargs)
72 return val
73 def GetVendorName(self, *_args, **_kwargs):
74 val = wxc.wxPyApp_GetVendorName(self, *_args, **_kwargs)
75 return val
76 def GetUseBestVisual(self, *_args, **_kwargs):
77 val = wxc.wxPyApp_GetUseBestVisual(self, *_args, **_kwargs)
78 return val
79 def Dispatch(self, *_args, **_kwargs):
80 val = wxc.wxPyApp_Dispatch(self, *_args, **_kwargs)
81 return val
82 def ExitMainLoop(self, *_args, **_kwargs):
83 val = wxc.wxPyApp_ExitMainLoop(self, *_args, **_kwargs)
84 return val
85 def Initialized(self, *_args, **_kwargs):
86 val = wxc.wxPyApp_Initialized(self, *_args, **_kwargs)
87 return val
88 def MainLoop(self, *_args, **_kwargs):
89 val = wxc.wxPyApp_MainLoop(self, *_args, **_kwargs)
90 return val
91 def Pending(self, *_args, **_kwargs):
92 val = wxc.wxPyApp_Pending(self, *_args, **_kwargs)
93 return val
94 def ProcessIdle(self, *_args, **_kwargs):
95 val = wxc.wxPyApp_ProcessIdle(self, *_args, **_kwargs)
96 return val
97 def Yield(self, *_args, **_kwargs):
98 val = wxc.wxPyApp_Yield(self, *_args, **_kwargs)
99 return val
100 def SetAppName(self, *_args, **_kwargs):
101 val = wxc.wxPyApp_SetAppName(self, *_args, **_kwargs)
102 return val
103 def SetClassName(self, *_args, **_kwargs):
104 val = wxc.wxPyApp_SetClassName(self, *_args, **_kwargs)
105 return val
106 def SetExitOnFrameDelete(self, *_args, **_kwargs):
107 val = wxc.wxPyApp_SetExitOnFrameDelete(self, *_args, **_kwargs)
108 return val
109 def SetPrintMode(self, *_args, **_kwargs):
110 val = wxc.wxPyApp_SetPrintMode(self, *_args, **_kwargs)
111 return val
112 def SetTopWindow(self, *_args, **_kwargs):
113 val = wxc.wxPyApp_SetTopWindow(self, *_args, **_kwargs)
114 return val
115 def SetVendorName(self, *_args, **_kwargs):
116 val = wxc.wxPyApp_SetVendorName(self, *_args, **_kwargs)
117 return val
118 def SetUseBestVisual(self, *_args, **_kwargs):
119 val = wxc.wxPyApp_SetUseBestVisual(self, *_args, **_kwargs)
120 return val
121 def GetAssertMode(self, *_args, **_kwargs):
122 val = wxc.wxPyApp_GetAssertMode(self, *_args, **_kwargs)
123 return val
124 def SetAssertMode(self, *_args, **_kwargs):
125 val = wxc.wxPyApp_SetAssertMode(self, *_args, **_kwargs)
126 return val
127 def __repr__(self):
128 return "<%s.%s instance; proxy of C++ wxPyApp instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
129 class wxPyApp(wxPyAppPtr):
130 def __init__(self,*_args,**_kwargs):
131 self.this = wxc.new_wxPyApp(*_args,**_kwargs)
132 self.thisown = 1
133 self._setCallbackInfo(self, wxPyApp)
134 self._setOORInfo(self)
135
136
137
138
139
140
141 #-------------- FUNCTION WRAPPERS ------------------
142
143 ptrcast = wxc.ptrcast
144
145 ptrvalue = wxc.ptrvalue
146
147 ptrset = wxc.ptrset
148
149 ptrcreate = wxc.ptrcreate
150
151 ptrfree = wxc.ptrfree
152
153 ptradd = wxc.ptradd
154
155 ptrmap = wxc.ptrmap
156
157 _wxStart = wxc._wxStart
158
159 _wxSetDictionary = wxc._wxSetDictionary
160
161 def wxGetApp(*_args, **_kwargs):
162 val = wxc.wxGetApp(*_args,**_kwargs)
163 return val
164
165 wxApp_CleanUp = wxc.wxApp_CleanUp
166
167 wxPyApp_GetMacDefaultEncodingIsPC = wxc.wxPyApp_GetMacDefaultEncodingIsPC
168
169 wxPyApp_GetMacSupportPCMenuShortcuts = wxc.wxPyApp_GetMacSupportPCMenuShortcuts
170
171 wxPyApp_GetMacAboutMenuItemId = wxc.wxPyApp_GetMacAboutMenuItemId
172
173 wxPyApp_GetMacPreferencesMenuItemId = wxc.wxPyApp_GetMacPreferencesMenuItemId
174
175 wxPyApp_GetMacExitMenuItemId = wxc.wxPyApp_GetMacExitMenuItemId
176
177 wxPyApp_GetMacHelpMenuTitleName = wxc.wxPyApp_GetMacHelpMenuTitleName
178
179 wxPyApp_SetMacDefaultEncodingIsPC = wxc.wxPyApp_SetMacDefaultEncodingIsPC
180
181 wxPyApp_SetMacSupportPCMenuShortcuts = wxc.wxPyApp_SetMacSupportPCMenuShortcuts
182
183 wxPyApp_SetMacAboutMenuItemId = wxc.wxPyApp_SetMacAboutMenuItemId
184
185 wxPyApp_SetMacPreferencesMenuItemId = wxc.wxPyApp_SetMacPreferencesMenuItemId
186
187 wxPyApp_SetMacExitMenuItemId = wxc.wxPyApp_SetMacExitMenuItemId
188
189 wxPyApp_SetMacHelpMenuTitleName = wxc.wxPyApp_SetMacHelpMenuTitleName
190
191
192
193 #-------------- VARIABLE WRAPPERS ------------------
194
195 wxMAJOR_VERSION = wxc.wxMAJOR_VERSION
196 wxMINOR_VERSION = wxc.wxMINOR_VERSION
197 wxRELEASE_NUMBER = wxc.wxRELEASE_NUMBER
198 wxNOT_FOUND = wxc.wxNOT_FOUND
199 wxVSCROLL = wxc.wxVSCROLL
200 wxHSCROLL = wxc.wxHSCROLL
201 wxCAPTION = wxc.wxCAPTION
202 wxDOUBLE_BORDER = wxc.wxDOUBLE_BORDER
203 wxSUNKEN_BORDER = wxc.wxSUNKEN_BORDER
204 wxRAISED_BORDER = wxc.wxRAISED_BORDER
205 wxBORDER = wxc.wxBORDER
206 wxSIMPLE_BORDER = wxc.wxSIMPLE_BORDER
207 wxSTATIC_BORDER = wxc.wxSTATIC_BORDER
208 wxTRANSPARENT_WINDOW = wxc.wxTRANSPARENT_WINDOW
209 wxNO_BORDER = wxc.wxNO_BORDER
210 wxUSER_COLOURS = wxc.wxUSER_COLOURS
211 wxNO_3D = wxc.wxNO_3D
212 wxTAB_TRAVERSAL = wxc.wxTAB_TRAVERSAL
213 wxWANTS_CHARS = wxc.wxWANTS_CHARS
214 wxPOPUP_WINDOW = wxc.wxPOPUP_WINDOW
215 wxHORIZONTAL = wxc.wxHORIZONTAL
216 wxVERTICAL = wxc.wxVERTICAL
217 wxBOTH = wxc.wxBOTH
218 wxCENTER_FRAME = wxc.wxCENTER_FRAME
219 wxCENTRE_ON_SCREEN = wxc.wxCENTRE_ON_SCREEN
220 wxCENTER_ON_SCREEN = wxc.wxCENTER_ON_SCREEN
221 wxSTAY_ON_TOP = wxc.wxSTAY_ON_TOP
222 wxICONIZE = wxc.wxICONIZE
223 wxMINIMIZE = wxc.wxMINIMIZE
224 wxMAXIMIZE = wxc.wxMAXIMIZE
225 wxCLOSE_BOX = wxc.wxCLOSE_BOX
226 wxTHICK_FRAME = wxc.wxTHICK_FRAME
227 wxSYSTEM_MENU = wxc.wxSYSTEM_MENU
228 wxMINIMIZE_BOX = wxc.wxMINIMIZE_BOX
229 wxMAXIMIZE_BOX = wxc.wxMAXIMIZE_BOX
230 wxTINY_CAPTION_HORIZ = wxc.wxTINY_CAPTION_HORIZ
231 wxTINY_CAPTION_VERT = wxc.wxTINY_CAPTION_VERT
232 wxRESIZE_BOX = wxc.wxRESIZE_BOX
233 wxRESIZE_BORDER = wxc.wxRESIZE_BORDER
234 wxDIALOG_MODAL = wxc.wxDIALOG_MODAL
235 wxDIALOG_MODELESS = wxc.wxDIALOG_MODELESS
236 wxDIALOG_NO_PARENT = wxc.wxDIALOG_NO_PARENT
237 wxDEFAULT_FRAME_STYLE = wxc.wxDEFAULT_FRAME_STYLE
238 wxDEFAULT_DIALOG_STYLE = wxc.wxDEFAULT_DIALOG_STYLE
239 wxFRAME_TOOL_WINDOW = wxc.wxFRAME_TOOL_WINDOW
240 wxFRAME_FLOAT_ON_PARENT = wxc.wxFRAME_FLOAT_ON_PARENT
241 wxFRAME_NO_WINDOW_MENU = wxc.wxFRAME_NO_WINDOW_MENU
242 wxFRAME_NO_TASKBAR = wxc.wxFRAME_NO_TASKBAR
243 wxFRAME_SHAPED = wxc.wxFRAME_SHAPED
244 wxED_CLIENT_MARGIN = wxc.wxED_CLIENT_MARGIN
245 wxED_BUTTONS_BOTTOM = wxc.wxED_BUTTONS_BOTTOM
246 wxED_BUTTONS_RIGHT = wxc.wxED_BUTTONS_RIGHT
247 wxED_STATIC_LINE = wxc.wxED_STATIC_LINE
248 wxEXT_DIALOG_STYLE = wxc.wxEXT_DIALOG_STYLE
249 wxCLIP_CHILDREN = wxc.wxCLIP_CHILDREN
250 wxCLIP_SIBLINGS = wxc.wxCLIP_SIBLINGS
251 wxRETAINED = wxc.wxRETAINED
252 wxBACKINGSTORE = wxc.wxBACKINGSTORE
253 wxCOLOURED = wxc.wxCOLOURED
254 wxFIXED_LENGTH = wxc.wxFIXED_LENGTH
255 wxALIGN_LEFT = wxc.wxALIGN_LEFT
256 wxALIGN_CENTER_HORIZONTAL = wxc.wxALIGN_CENTER_HORIZONTAL
257 wxALIGN_CENTRE_HORIZONTAL = wxc.wxALIGN_CENTRE_HORIZONTAL
258 wxALIGN_RIGHT = wxc.wxALIGN_RIGHT
259 wxALIGN_BOTTOM = wxc.wxALIGN_BOTTOM
260 wxALIGN_CENTER_VERTICAL = wxc.wxALIGN_CENTER_VERTICAL
261 wxALIGN_CENTRE_VERTICAL = wxc.wxALIGN_CENTRE_VERTICAL
262 wxALIGN_TOP = wxc.wxALIGN_TOP
263 wxALIGN_CENTER = wxc.wxALIGN_CENTER
264 wxALIGN_CENTRE = wxc.wxALIGN_CENTRE
265 wxSHAPED = wxc.wxSHAPED
266 wxADJUST_MINSIZE = wxc.wxADJUST_MINSIZE
267 wxLB_NEEDED_SB = wxc.wxLB_NEEDED_SB
268 wxLB_ALWAYS_SB = wxc.wxLB_ALWAYS_SB
269 wxLB_SORT = wxc.wxLB_SORT
270 wxLB_SINGLE = wxc.wxLB_SINGLE
271 wxLB_MULTIPLE = wxc.wxLB_MULTIPLE
272 wxLB_EXTENDED = wxc.wxLB_EXTENDED
273 wxLB_OWNERDRAW = wxc.wxLB_OWNERDRAW
274 wxLB_HSCROLL = wxc.wxLB_HSCROLL
275 wxPROCESS_ENTER = wxc.wxPROCESS_ENTER
276 wxPASSWORD = wxc.wxPASSWORD
277 wxCB_SIMPLE = wxc.wxCB_SIMPLE
278 wxCB_DROPDOWN = wxc.wxCB_DROPDOWN
279 wxCB_SORT = wxc.wxCB_SORT
280 wxCB_READONLY = wxc.wxCB_READONLY
281 wxRA_HORIZONTAL = wxc.wxRA_HORIZONTAL
282 wxRA_VERTICAL = wxc.wxRA_VERTICAL
283 wxRA_SPECIFY_ROWS = wxc.wxRA_SPECIFY_ROWS
284 wxRA_SPECIFY_COLS = wxc.wxRA_SPECIFY_COLS
285 wxRB_GROUP = wxc.wxRB_GROUP
286 wxRB_SINGLE = wxc.wxRB_SINGLE
287 wxGA_PROGRESSBAR = wxc.wxGA_PROGRESSBAR
288 wxGA_HORIZONTAL = wxc.wxGA_HORIZONTAL
289 wxGA_VERTICAL = wxc.wxGA_VERTICAL
290 wxGA_SMOOTH = wxc.wxGA_SMOOTH
291 wxSL_HORIZONTAL = wxc.wxSL_HORIZONTAL
292 wxSL_VERTICAL = wxc.wxSL_VERTICAL
293 wxSL_AUTOTICKS = wxc.wxSL_AUTOTICKS
294 wxSL_LABELS = wxc.wxSL_LABELS
295 wxSL_LEFT = wxc.wxSL_LEFT
296 wxSL_TOP = wxc.wxSL_TOP
297 wxSL_RIGHT = wxc.wxSL_RIGHT
298 wxSL_BOTTOM = wxc.wxSL_BOTTOM
299 wxSL_BOTH = wxc.wxSL_BOTH
300 wxSL_SELRANGE = wxc.wxSL_SELRANGE
301 wxSB_HORIZONTAL = wxc.wxSB_HORIZONTAL
302 wxSB_VERTICAL = wxc.wxSB_VERTICAL
303 wxST_SIZEGRIP = wxc.wxST_SIZEGRIP
304 wxST_NO_AUTORESIZE = wxc.wxST_NO_AUTORESIZE
305 wxBU_NOAUTODRAW = wxc.wxBU_NOAUTODRAW
306 wxBU_AUTODRAW = wxc.wxBU_AUTODRAW
307 wxBU_LEFT = wxc.wxBU_LEFT
308 wxBU_TOP = wxc.wxBU_TOP
309 wxBU_RIGHT = wxc.wxBU_RIGHT
310 wxBU_BOTTOM = wxc.wxBU_BOTTOM
311 wxBU_EXACTFIT = wxc.wxBU_EXACTFIT
312 wxFLOOD_SURFACE = wxc.wxFLOOD_SURFACE
313 wxFLOOD_BORDER = wxc.wxFLOOD_BORDER
314 wxODDEVEN_RULE = wxc.wxODDEVEN_RULE
315 wxWINDING_RULE = wxc.wxWINDING_RULE
316 wxTOOL_TOP = wxc.wxTOOL_TOP
317 wxTOOL_BOTTOM = wxc.wxTOOL_BOTTOM
318 wxTOOL_LEFT = wxc.wxTOOL_LEFT
319 wxTOOL_RIGHT = wxc.wxTOOL_RIGHT
320 wxOK = wxc.wxOK
321 wxYES_NO = wxc.wxYES_NO
322 wxCANCEL = wxc.wxCANCEL
323 wxYES = wxc.wxYES
324 wxNO = wxc.wxNO
325 wxNO_DEFAULT = wxc.wxNO_DEFAULT
326 wxYES_DEFAULT = wxc.wxYES_DEFAULT
327 wxICON_EXCLAMATION = wxc.wxICON_EXCLAMATION
328 wxICON_HAND = wxc.wxICON_HAND
329 wxICON_QUESTION = wxc.wxICON_QUESTION
330 wxICON_INFORMATION = wxc.wxICON_INFORMATION
331 wxICON_STOP = wxc.wxICON_STOP
332 wxICON_ASTERISK = wxc.wxICON_ASTERISK
333 wxICON_MASK = wxc.wxICON_MASK
334 wxICON_WARNING = wxc.wxICON_WARNING
335 wxICON_ERROR = wxc.wxICON_ERROR
336 wxFORWARD = wxc.wxFORWARD
337 wxBACKWARD = wxc.wxBACKWARD
338 wxRESET = wxc.wxRESET
339 wxHELP = wxc.wxHELP
340 wxMORE = wxc.wxMORE
341 wxSETUP = wxc.wxSETUP
342 wxCENTRE = wxc.wxCENTRE
343 wxCENTER = wxc.wxCENTER
344 wxSIZE_AUTO_WIDTH = wxc.wxSIZE_AUTO_WIDTH
345 wxSIZE_AUTO_HEIGHT = wxc.wxSIZE_AUTO_HEIGHT
346 wxSIZE_AUTO = wxc.wxSIZE_AUTO
347 wxSIZE_USE_EXISTING = wxc.wxSIZE_USE_EXISTING
348 wxSIZE_ALLOW_MINUS_ONE = wxc.wxSIZE_ALLOW_MINUS_ONE
349 wxPORTRAIT = wxc.wxPORTRAIT
350 wxLANDSCAPE = wxc.wxLANDSCAPE
351 wxPRINT_QUALITY_HIGH = wxc.wxPRINT_QUALITY_HIGH
352 wxPRINT_QUALITY_MEDIUM = wxc.wxPRINT_QUALITY_MEDIUM
353 wxPRINT_QUALITY_LOW = wxc.wxPRINT_QUALITY_LOW
354 wxPRINT_QUALITY_DRAFT = wxc.wxPRINT_QUALITY_DRAFT
355 wxID_ANY = wxc.wxID_ANY
356 wxID_SEPARATOR = wxc.wxID_SEPARATOR
357 wxID_OPEN = wxc.wxID_OPEN
358 wxID_CLOSE = wxc.wxID_CLOSE
359 wxID_NEW = wxc.wxID_NEW
360 wxID_SAVE = wxc.wxID_SAVE
361 wxID_SAVEAS = wxc.wxID_SAVEAS
362 wxID_REVERT = wxc.wxID_REVERT
363 wxID_EXIT = wxc.wxID_EXIT
364 wxID_UNDO = wxc.wxID_UNDO
365 wxID_REDO = wxc.wxID_REDO
366 wxID_HELP = wxc.wxID_HELP
367 wxID_PRINT = wxc.wxID_PRINT
368 wxID_PRINT_SETUP = wxc.wxID_PRINT_SETUP
369 wxID_PREVIEW = wxc.wxID_PREVIEW
370 wxID_ABOUT = wxc.wxID_ABOUT
371 wxID_HELP_CONTENTS = wxc.wxID_HELP_CONTENTS
372 wxID_HELP_COMMANDS = wxc.wxID_HELP_COMMANDS
373 wxID_HELP_PROCEDURES = wxc.wxID_HELP_PROCEDURES
374 wxID_HELP_CONTEXT = wxc.wxID_HELP_CONTEXT
375 wxID_CLOSE_ALL = wxc.wxID_CLOSE_ALL
376 wxID_CUT = wxc.wxID_CUT
377 wxID_COPY = wxc.wxID_COPY
378 wxID_PASTE = wxc.wxID_PASTE
379 wxID_CLEAR = wxc.wxID_CLEAR
380 wxID_FIND = wxc.wxID_FIND
381 wxID_DUPLICATE = wxc.wxID_DUPLICATE
382 wxID_SELECTALL = wxc.wxID_SELECTALL
383 wxID_DELETE = wxc.wxID_DELETE
384 wxID_REPLACE = wxc.wxID_REPLACE
385 wxID_REPLACE_ALL = wxc.wxID_REPLACE_ALL
386 wxID_PROPERTIES = wxc.wxID_PROPERTIES
387 wxID_VIEW_DETAILS = wxc.wxID_VIEW_DETAILS
388 wxID_VIEW_LARGEICONS = wxc.wxID_VIEW_LARGEICONS
389 wxID_VIEW_SMALLICONS = wxc.wxID_VIEW_SMALLICONS
390 wxID_VIEW_LIST = wxc.wxID_VIEW_LIST
391 wxID_VIEW_SORTDATE = wxc.wxID_VIEW_SORTDATE
392 wxID_VIEW_SORTNAME = wxc.wxID_VIEW_SORTNAME
393 wxID_VIEW_SORTSIZE = wxc.wxID_VIEW_SORTSIZE
394 wxID_VIEW_SORTTYPE = wxc.wxID_VIEW_SORTTYPE
395 wxID_FILE1 = wxc.wxID_FILE1
396 wxID_FILE2 = wxc.wxID_FILE2
397 wxID_FILE3 = wxc.wxID_FILE3
398 wxID_FILE4 = wxc.wxID_FILE4
399 wxID_FILE5 = wxc.wxID_FILE5
400 wxID_FILE6 = wxc.wxID_FILE6
401 wxID_FILE7 = wxc.wxID_FILE7
402 wxID_FILE8 = wxc.wxID_FILE8
403 wxID_FILE9 = wxc.wxID_FILE9
404 wxID_OK = wxc.wxID_OK
405 wxID_CANCEL = wxc.wxID_CANCEL
406 wxID_APPLY = wxc.wxID_APPLY
407 wxID_YES = wxc.wxID_YES
408 wxID_NO = wxc.wxID_NO
409 wxID_STATIC = wxc.wxID_STATIC
410 wxID_FORWARD = wxc.wxID_FORWARD
411 wxID_BACKWARD = wxc.wxID_BACKWARD
412 wxID_DEFAULT = wxc.wxID_DEFAULT
413 wxID_MORE = wxc.wxID_MORE
414 wxID_SETUP = wxc.wxID_SETUP
415 wxID_RESET = wxc.wxID_RESET
416 wxID_CONTEXT_HELP = wxc.wxID_CONTEXT_HELP
417 wxID_YESTOALL = wxc.wxID_YESTOALL
418 wxID_NOTOALL = wxc.wxID_NOTOALL
419 wxID_ABORT = wxc.wxID_ABORT
420 wxID_RETRY = wxc.wxID_RETRY
421 wxID_IGNORE = wxc.wxID_IGNORE
422 wxOPEN = wxc.wxOPEN
423 wxSAVE = wxc.wxSAVE
424 wxHIDE_READONLY = wxc.wxHIDE_READONLY
425 wxOVERWRITE_PROMPT = wxc.wxOVERWRITE_PROMPT
426 wxFILE_MUST_EXIST = wxc.wxFILE_MUST_EXIST
427 wxMULTIPLE = wxc.wxMULTIPLE
428 wxCHANGE_DIR = wxc.wxCHANGE_DIR
429 wxACCEL_ALT = wxc.wxACCEL_ALT
430 wxACCEL_CTRL = wxc.wxACCEL_CTRL
431 wxACCEL_SHIFT = wxc.wxACCEL_SHIFT
432 wxACCEL_NORMAL = wxc.wxACCEL_NORMAL
433 wxPD_AUTO_HIDE = wxc.wxPD_AUTO_HIDE
434 wxPD_APP_MODAL = wxc.wxPD_APP_MODAL
435 wxPD_CAN_ABORT = wxc.wxPD_CAN_ABORT
436 wxPD_ELAPSED_TIME = wxc.wxPD_ELAPSED_TIME
437 wxPD_ESTIMATED_TIME = wxc.wxPD_ESTIMATED_TIME
438 wxPD_REMAINING_TIME = wxc.wxPD_REMAINING_TIME
439 wxDD_NEW_DIR_BUTTON = wxc.wxDD_NEW_DIR_BUTTON
440 wxDD_DEFAULT_STYLE = wxc.wxDD_DEFAULT_STYLE
441 wxMENU_TEAROFF = wxc.wxMENU_TEAROFF
442 wxMB_DOCKABLE = wxc.wxMB_DOCKABLE
443 wxNO_FULL_REPAINT_ON_RESIZE = wxc.wxNO_FULL_REPAINT_ON_RESIZE
444 wxLEFT = wxc.wxLEFT
445 wxRIGHT = wxc.wxRIGHT
446 wxUP = wxc.wxUP
447 wxDOWN = wxc.wxDOWN
448 wxALL = wxc.wxALL
449 wxTOP = wxc.wxTOP
450 wxBOTTOM = wxc.wxBOTTOM
451 wxNORTH = wxc.wxNORTH
452 wxSOUTH = wxc.wxSOUTH
453 wxEAST = wxc.wxEAST
454 wxWEST = wxc.wxWEST
455 wxSTRETCH_NOT = wxc.wxSTRETCH_NOT
456 wxSHRINK = wxc.wxSHRINK
457 wxGROW = wxc.wxGROW
458 wxEXPAND = wxc.wxEXPAND
459 wxLI_HORIZONTAL = wxc.wxLI_HORIZONTAL
460 wxLI_VERTICAL = wxc.wxLI_VERTICAL
461 wxJOYSTICK1 = wxc.wxJOYSTICK1
462 wxJOYSTICK2 = wxc.wxJOYSTICK2
463 wxJOY_BUTTON1 = wxc.wxJOY_BUTTON1
464 wxJOY_BUTTON2 = wxc.wxJOY_BUTTON2
465 wxJOY_BUTTON3 = wxc.wxJOY_BUTTON3
466 wxJOY_BUTTON4 = wxc.wxJOY_BUTTON4
467 wxJOY_BUTTON_ANY = wxc.wxJOY_BUTTON_ANY
468 wxWS_EX_VALIDATE_RECURSIVELY = wxc.wxWS_EX_VALIDATE_RECURSIVELY
469 wxWS_EX_BLOCK_EVENTS = wxc.wxWS_EX_BLOCK_EVENTS
470 wxWS_EX_TRANSIENT = wxc.wxWS_EX_TRANSIENT
471 wxWS_EX_THEMED_BACKGROUND = wxc.wxWS_EX_THEMED_BACKGROUND
472 wxWS_EX_PROCESS_IDLE = wxc.wxWS_EX_PROCESS_IDLE
473 wxWS_EX_PROCESS_UI_UPDATES = wxc.wxWS_EX_PROCESS_UI_UPDATES
474 wxMM_TEXT = wxc.wxMM_TEXT
475 wxMM_LOMETRIC = wxc.wxMM_LOMETRIC
476 wxMM_HIMETRIC = wxc.wxMM_HIMETRIC
477 wxMM_LOENGLISH = wxc.wxMM_LOENGLISH
478 wxMM_HIENGLISH = wxc.wxMM_HIENGLISH
479 wxMM_TWIPS = wxc.wxMM_TWIPS
480 wxMM_ISOTROPIC = wxc.wxMM_ISOTROPIC
481 wxMM_ANISOTROPIC = wxc.wxMM_ANISOTROPIC
482 wxMM_POINTS = wxc.wxMM_POINTS
483 wxMM_METRIC = wxc.wxMM_METRIC
484 wxTIMER_CONTINUOUS = wxc.wxTIMER_CONTINUOUS
485 wxTIMER_ONE_SHOT = wxc.wxTIMER_ONE_SHOT
486 wxMOUSE_BTN_ANY = wxc.wxMOUSE_BTN_ANY
487 wxMOUSE_BTN_NONE = wxc.wxMOUSE_BTN_NONE
488 wxMOUSE_BTN_LEFT = wxc.wxMOUSE_BTN_LEFT
489 wxMOUSE_BTN_MIDDLE = wxc.wxMOUSE_BTN_MIDDLE
490 wxMOUSE_BTN_RIGHT = wxc.wxMOUSE_BTN_RIGHT
491 wxBORDER_DEFAULT = wxc.wxBORDER_DEFAULT
492 wxBORDER_NONE = wxc.wxBORDER_NONE
493 wxBORDER_STATIC = wxc.wxBORDER_STATIC
494 wxBORDER_SIMPLE = wxc.wxBORDER_SIMPLE
495 wxBORDER_RAISED = wxc.wxBORDER_RAISED
496 wxBORDER_SUNKEN = wxc.wxBORDER_SUNKEN
497 wxBORDER_DOUBLE = wxc.wxBORDER_DOUBLE
498 wxBORDER_MASK = wxc.wxBORDER_MASK
499 wxDEFAULT = wxc.wxDEFAULT
500 wxDECORATIVE = wxc.wxDECORATIVE
501 wxROMAN = wxc.wxROMAN
502 wxSCRIPT = wxc.wxSCRIPT
503 wxSWISS = wxc.wxSWISS
504 wxMODERN = wxc.wxMODERN
505 wxTELETYPE = wxc.wxTELETYPE
506 wxVARIABLE = wxc.wxVARIABLE
507 wxFIXED = wxc.wxFIXED
508 wxNORMAL = wxc.wxNORMAL
509 wxLIGHT = wxc.wxLIGHT
510 wxBOLD = wxc.wxBOLD
511 wxITALIC = wxc.wxITALIC
512 wxSLANT = wxc.wxSLANT
513 wxSOLID = wxc.wxSOLID
514 wxDOT = wxc.wxDOT
515 wxLONG_DASH = wxc.wxLONG_DASH
516 wxSHORT_DASH = wxc.wxSHORT_DASH
517 wxDOT_DASH = wxc.wxDOT_DASH
518 wxUSER_DASH = wxc.wxUSER_DASH
519 wxTRANSPARENT = wxc.wxTRANSPARENT
520 wxSTIPPLE = wxc.wxSTIPPLE
521 wxBDIAGONAL_HATCH = wxc.wxBDIAGONAL_HATCH
522 wxCROSSDIAG_HATCH = wxc.wxCROSSDIAG_HATCH
523 wxFDIAGONAL_HATCH = wxc.wxFDIAGONAL_HATCH
524 wxCROSS_HATCH = wxc.wxCROSS_HATCH
525 wxHORIZONTAL_HATCH = wxc.wxHORIZONTAL_HATCH
526 wxVERTICAL_HATCH = wxc.wxVERTICAL_HATCH
527 wxJOIN_BEVEL = wxc.wxJOIN_BEVEL
528 wxJOIN_MITER = wxc.wxJOIN_MITER
529 wxJOIN_ROUND = wxc.wxJOIN_ROUND
530 wxCAP_ROUND = wxc.wxCAP_ROUND
531 wxCAP_PROJECTING = wxc.wxCAP_PROJECTING
532 wxCAP_BUTT = wxc.wxCAP_BUTT
533 wxCLEAR = wxc.wxCLEAR
534 wxXOR = wxc.wxXOR
535 wxINVERT = wxc.wxINVERT
536 wxOR_REVERSE = wxc.wxOR_REVERSE
537 wxAND_REVERSE = wxc.wxAND_REVERSE
538 wxCOPY = wxc.wxCOPY
539 wxAND = wxc.wxAND
540 wxAND_INVERT = wxc.wxAND_INVERT
541 wxNO_OP = wxc.wxNO_OP
542 wxNOR = wxc.wxNOR
543 wxEQUIV = wxc.wxEQUIV
544 wxSRC_INVERT = wxc.wxSRC_INVERT
545 wxOR_INVERT = wxc.wxOR_INVERT
546 wxNAND = wxc.wxNAND
547 wxOR = wxc.wxOR
548 wxSET = wxc.wxSET
549 WXK_BACK = wxc.WXK_BACK
550 WXK_TAB = wxc.WXK_TAB
551 WXK_RETURN = wxc.WXK_RETURN
552 WXK_ESCAPE = wxc.WXK_ESCAPE
553 WXK_SPACE = wxc.WXK_SPACE
554 WXK_DELETE = wxc.WXK_DELETE
555 WXK_START = wxc.WXK_START
556 WXK_LBUTTON = wxc.WXK_LBUTTON
557 WXK_RBUTTON = wxc.WXK_RBUTTON
558 WXK_CANCEL = wxc.WXK_CANCEL
559 WXK_MBUTTON = wxc.WXK_MBUTTON
560 WXK_CLEAR = wxc.WXK_CLEAR
561 WXK_SHIFT = wxc.WXK_SHIFT
562 WXK_ALT = wxc.WXK_ALT
563 WXK_CONTROL = wxc.WXK_CONTROL
564 WXK_MENU = wxc.WXK_MENU
565 WXK_PAUSE = wxc.WXK_PAUSE
566 WXK_CAPITAL = wxc.WXK_CAPITAL
567 WXK_PRIOR = wxc.WXK_PRIOR
568 WXK_NEXT = wxc.WXK_NEXT
569 WXK_END = wxc.WXK_END
570 WXK_HOME = wxc.WXK_HOME
571 WXK_LEFT = wxc.WXK_LEFT
572 WXK_UP = wxc.WXK_UP
573 WXK_RIGHT = wxc.WXK_RIGHT
574 WXK_DOWN = wxc.WXK_DOWN
575 WXK_SELECT = wxc.WXK_SELECT
576 WXK_PRINT = wxc.WXK_PRINT
577 WXK_EXECUTE = wxc.WXK_EXECUTE
578 WXK_SNAPSHOT = wxc.WXK_SNAPSHOT
579 WXK_INSERT = wxc.WXK_INSERT
580 WXK_HELP = wxc.WXK_HELP
581 WXK_NUMPAD0 = wxc.WXK_NUMPAD0
582 WXK_NUMPAD1 = wxc.WXK_NUMPAD1
583 WXK_NUMPAD2 = wxc.WXK_NUMPAD2
584 WXK_NUMPAD3 = wxc.WXK_NUMPAD3
585 WXK_NUMPAD4 = wxc.WXK_NUMPAD4
586 WXK_NUMPAD5 = wxc.WXK_NUMPAD5
587 WXK_NUMPAD6 = wxc.WXK_NUMPAD6
588 WXK_NUMPAD7 = wxc.WXK_NUMPAD7
589 WXK_NUMPAD8 = wxc.WXK_NUMPAD8
590 WXK_NUMPAD9 = wxc.WXK_NUMPAD9
591 WXK_MULTIPLY = wxc.WXK_MULTIPLY
592 WXK_ADD = wxc.WXK_ADD
593 WXK_SEPARATOR = wxc.WXK_SEPARATOR
594 WXK_SUBTRACT = wxc.WXK_SUBTRACT
595 WXK_DECIMAL = wxc.WXK_DECIMAL
596 WXK_DIVIDE = wxc.WXK_DIVIDE
597 WXK_F1 = wxc.WXK_F1
598 WXK_F2 = wxc.WXK_F2
599 WXK_F3 = wxc.WXK_F3
600 WXK_F4 = wxc.WXK_F4
601 WXK_F5 = wxc.WXK_F5
602 WXK_F6 = wxc.WXK_F6
603 WXK_F7 = wxc.WXK_F7
604 WXK_F8 = wxc.WXK_F8
605 WXK_F9 = wxc.WXK_F9
606 WXK_F10 = wxc.WXK_F10
607 WXK_F11 = wxc.WXK_F11
608 WXK_F12 = wxc.WXK_F12
609 WXK_F13 = wxc.WXK_F13
610 WXK_F14 = wxc.WXK_F14
611 WXK_F15 = wxc.WXK_F15
612 WXK_F16 = wxc.WXK_F16
613 WXK_F17 = wxc.WXK_F17
614 WXK_F18 = wxc.WXK_F18
615 WXK_F19 = wxc.WXK_F19
616 WXK_F20 = wxc.WXK_F20
617 WXK_F21 = wxc.WXK_F21
618 WXK_F22 = wxc.WXK_F22
619 WXK_F23 = wxc.WXK_F23
620 WXK_F24 = wxc.WXK_F24
621 WXK_NUMLOCK = wxc.WXK_NUMLOCK
622 WXK_SCROLL = wxc.WXK_SCROLL
623 WXK_PAGEUP = wxc.WXK_PAGEUP
624 WXK_PAGEDOWN = wxc.WXK_PAGEDOWN
625 WXK_NUMPAD_SPACE = wxc.WXK_NUMPAD_SPACE
626 WXK_NUMPAD_TAB = wxc.WXK_NUMPAD_TAB
627 WXK_NUMPAD_ENTER = wxc.WXK_NUMPAD_ENTER
628 WXK_NUMPAD_F1 = wxc.WXK_NUMPAD_F1
629 WXK_NUMPAD_F2 = wxc.WXK_NUMPAD_F2
630 WXK_NUMPAD_F3 = wxc.WXK_NUMPAD_F3
631 WXK_NUMPAD_F4 = wxc.WXK_NUMPAD_F4
632 WXK_NUMPAD_HOME = wxc.WXK_NUMPAD_HOME
633 WXK_NUMPAD_LEFT = wxc.WXK_NUMPAD_LEFT
634 WXK_NUMPAD_UP = wxc.WXK_NUMPAD_UP
635 WXK_NUMPAD_RIGHT = wxc.WXK_NUMPAD_RIGHT
636 WXK_NUMPAD_DOWN = wxc.WXK_NUMPAD_DOWN
637 WXK_NUMPAD_PRIOR = wxc.WXK_NUMPAD_PRIOR
638 WXK_NUMPAD_PAGEUP = wxc.WXK_NUMPAD_PAGEUP
639 WXK_NUMPAD_NEXT = wxc.WXK_NUMPAD_NEXT
640 WXK_NUMPAD_PAGEDOWN = wxc.WXK_NUMPAD_PAGEDOWN
641 WXK_NUMPAD_END = wxc.WXK_NUMPAD_END
642 WXK_NUMPAD_BEGIN = wxc.WXK_NUMPAD_BEGIN
643 WXK_NUMPAD_INSERT = wxc.WXK_NUMPAD_INSERT
644 WXK_NUMPAD_DELETE = wxc.WXK_NUMPAD_DELETE
645 WXK_NUMPAD_EQUAL = wxc.WXK_NUMPAD_EQUAL
646 WXK_NUMPAD_MULTIPLY = wxc.WXK_NUMPAD_MULTIPLY
647 WXK_NUMPAD_ADD = wxc.WXK_NUMPAD_ADD
648 WXK_NUMPAD_SEPARATOR = wxc.WXK_NUMPAD_SEPARATOR
649 WXK_NUMPAD_SUBTRACT = wxc.WXK_NUMPAD_SUBTRACT
650 WXK_NUMPAD_DECIMAL = wxc.WXK_NUMPAD_DECIMAL
651 WXK_NUMPAD_DIVIDE = wxc.WXK_NUMPAD_DIVIDE
652 WXK_WINDOWS_LEFT = wxc.WXK_WINDOWS_LEFT
653 WXK_WINDOWS_RIGHT = wxc.WXK_WINDOWS_RIGHT
654 WXK_WINDOWS_MENU = wxc.WXK_WINDOWS_MENU
655 wxBITMAP_TYPE_INVALID = wxc.wxBITMAP_TYPE_INVALID
656 wxBITMAP_TYPE_BMP = wxc.wxBITMAP_TYPE_BMP
657 wxBITMAP_TYPE_BMP_RESOURCE = wxc.wxBITMAP_TYPE_BMP_RESOURCE
658 wxBITMAP_TYPE_RESOURCE = wxc.wxBITMAP_TYPE_RESOURCE
659 wxBITMAP_TYPE_ICO = wxc.wxBITMAP_TYPE_ICO
660 wxBITMAP_TYPE_ICO_RESOURCE = wxc.wxBITMAP_TYPE_ICO_RESOURCE
661 wxBITMAP_TYPE_CUR = wxc.wxBITMAP_TYPE_CUR
662 wxBITMAP_TYPE_CUR_RESOURCE = wxc.wxBITMAP_TYPE_CUR_RESOURCE
663 wxBITMAP_TYPE_XBM = wxc.wxBITMAP_TYPE_XBM
664 wxBITMAP_TYPE_XBM_DATA = wxc.wxBITMAP_TYPE_XBM_DATA
665 wxBITMAP_TYPE_XPM = wxc.wxBITMAP_TYPE_XPM
666 wxBITMAP_TYPE_XPM_DATA = wxc.wxBITMAP_TYPE_XPM_DATA
667 wxBITMAP_TYPE_TIF = wxc.wxBITMAP_TYPE_TIF
668 wxBITMAP_TYPE_TIF_RESOURCE = wxc.wxBITMAP_TYPE_TIF_RESOURCE
669 wxBITMAP_TYPE_GIF = wxc.wxBITMAP_TYPE_GIF
670 wxBITMAP_TYPE_GIF_RESOURCE = wxc.wxBITMAP_TYPE_GIF_RESOURCE
671 wxBITMAP_TYPE_PNG = wxc.wxBITMAP_TYPE_PNG
672 wxBITMAP_TYPE_PNG_RESOURCE = wxc.wxBITMAP_TYPE_PNG_RESOURCE
673 wxBITMAP_TYPE_JPEG = wxc.wxBITMAP_TYPE_JPEG
674 wxBITMAP_TYPE_JPEG_RESOURCE = wxc.wxBITMAP_TYPE_JPEG_RESOURCE
675 wxBITMAP_TYPE_PNM = wxc.wxBITMAP_TYPE_PNM
676 wxBITMAP_TYPE_PNM_RESOURCE = wxc.wxBITMAP_TYPE_PNM_RESOURCE
677 wxBITMAP_TYPE_PCX = wxc.wxBITMAP_TYPE_PCX
678 wxBITMAP_TYPE_PCX_RESOURCE = wxc.wxBITMAP_TYPE_PCX_RESOURCE
679 wxBITMAP_TYPE_PICT = wxc.wxBITMAP_TYPE_PICT
680 wxBITMAP_TYPE_PICT_RESOURCE = wxc.wxBITMAP_TYPE_PICT_RESOURCE
681 wxBITMAP_TYPE_ICON = wxc.wxBITMAP_TYPE_ICON
682 wxBITMAP_TYPE_ICON_RESOURCE = wxc.wxBITMAP_TYPE_ICON_RESOURCE
683 wxBITMAP_TYPE_ANI = wxc.wxBITMAP_TYPE_ANI
684 wxBITMAP_TYPE_IFF = wxc.wxBITMAP_TYPE_IFF
685 wxBITMAP_TYPE_MACCURSOR = wxc.wxBITMAP_TYPE_MACCURSOR
686 wxBITMAP_TYPE_MACCURSOR_RESOURCE = wxc.wxBITMAP_TYPE_MACCURSOR_RESOURCE
687 wxBITMAP_TYPE_ANY = wxc.wxBITMAP_TYPE_ANY
688 wxCURSOR_NONE = wxc.wxCURSOR_NONE
689 wxCURSOR_ARROW = wxc.wxCURSOR_ARROW
690 wxCURSOR_RIGHT_ARROW = wxc.wxCURSOR_RIGHT_ARROW
691 wxCURSOR_BULLSEYE = wxc.wxCURSOR_BULLSEYE
692 wxCURSOR_CHAR = wxc.wxCURSOR_CHAR
693 wxCURSOR_CROSS = wxc.wxCURSOR_CROSS
694 wxCURSOR_HAND = wxc.wxCURSOR_HAND
695 wxCURSOR_IBEAM = wxc.wxCURSOR_IBEAM
696 wxCURSOR_LEFT_BUTTON = wxc.wxCURSOR_LEFT_BUTTON
697 wxCURSOR_MAGNIFIER = wxc.wxCURSOR_MAGNIFIER
698 wxCURSOR_MIDDLE_BUTTON = wxc.wxCURSOR_MIDDLE_BUTTON
699 wxCURSOR_NO_ENTRY = wxc.wxCURSOR_NO_ENTRY
700 wxCURSOR_PAINT_BRUSH = wxc.wxCURSOR_PAINT_BRUSH
701 wxCURSOR_PENCIL = wxc.wxCURSOR_PENCIL
702 wxCURSOR_POINT_LEFT = wxc.wxCURSOR_POINT_LEFT
703 wxCURSOR_POINT_RIGHT = wxc.wxCURSOR_POINT_RIGHT
704 wxCURSOR_QUESTION_ARROW = wxc.wxCURSOR_QUESTION_ARROW
705 wxCURSOR_RIGHT_BUTTON = wxc.wxCURSOR_RIGHT_BUTTON
706 wxCURSOR_SIZENESW = wxc.wxCURSOR_SIZENESW
707 wxCURSOR_SIZENS = wxc.wxCURSOR_SIZENS
708 wxCURSOR_SIZENWSE = wxc.wxCURSOR_SIZENWSE
709 wxCURSOR_SIZEWE = wxc.wxCURSOR_SIZEWE
710 wxCURSOR_SIZING = wxc.wxCURSOR_SIZING
711 wxCURSOR_SPRAYCAN = wxc.wxCURSOR_SPRAYCAN
712 wxCURSOR_WAIT = wxc.wxCURSOR_WAIT
713 wxCURSOR_WATCH = wxc.wxCURSOR_WATCH
714 wxCURSOR_BLANK = wxc.wxCURSOR_BLANK
715 wxCURSOR_DEFAULT = wxc.wxCURSOR_DEFAULT
716 wxCURSOR_ARROWWAIT = wxc.wxCURSOR_ARROWWAIT
717 wxCURSOR_MAX = wxc.wxCURSOR_MAX
718 wxPAPER_NONE = wxc.wxPAPER_NONE
719 wxPAPER_LETTER = wxc.wxPAPER_LETTER
720 wxPAPER_LEGAL = wxc.wxPAPER_LEGAL
721 wxPAPER_A4 = wxc.wxPAPER_A4
722 wxPAPER_CSHEET = wxc.wxPAPER_CSHEET
723 wxPAPER_DSHEET = wxc.wxPAPER_DSHEET
724 wxPAPER_ESHEET = wxc.wxPAPER_ESHEET
725 wxPAPER_LETTERSMALL = wxc.wxPAPER_LETTERSMALL
726 wxPAPER_TABLOID = wxc.wxPAPER_TABLOID
727 wxPAPER_LEDGER = wxc.wxPAPER_LEDGER
728 wxPAPER_STATEMENT = wxc.wxPAPER_STATEMENT
729 wxPAPER_EXECUTIVE = wxc.wxPAPER_EXECUTIVE
730 wxPAPER_A3 = wxc.wxPAPER_A3
731 wxPAPER_A4SMALL = wxc.wxPAPER_A4SMALL
732 wxPAPER_A5 = wxc.wxPAPER_A5
733 wxPAPER_B4 = wxc.wxPAPER_B4
734 wxPAPER_B5 = wxc.wxPAPER_B5
735 wxPAPER_FOLIO = wxc.wxPAPER_FOLIO
736 wxPAPER_QUARTO = wxc.wxPAPER_QUARTO
737 wxPAPER_10X14 = wxc.wxPAPER_10X14
738 wxPAPER_11X17 = wxc.wxPAPER_11X17
739 wxPAPER_NOTE = wxc.wxPAPER_NOTE
740 wxPAPER_ENV_9 = wxc.wxPAPER_ENV_9
741 wxPAPER_ENV_10 = wxc.wxPAPER_ENV_10
742 wxPAPER_ENV_11 = wxc.wxPAPER_ENV_11
743 wxPAPER_ENV_12 = wxc.wxPAPER_ENV_12
744 wxPAPER_ENV_14 = wxc.wxPAPER_ENV_14
745 wxPAPER_ENV_DL = wxc.wxPAPER_ENV_DL
746 wxPAPER_ENV_C5 = wxc.wxPAPER_ENV_C5
747 wxPAPER_ENV_C3 = wxc.wxPAPER_ENV_C3
748 wxPAPER_ENV_C4 = wxc.wxPAPER_ENV_C4
749 wxPAPER_ENV_C6 = wxc.wxPAPER_ENV_C6
750 wxPAPER_ENV_C65 = wxc.wxPAPER_ENV_C65
751 wxPAPER_ENV_B4 = wxc.wxPAPER_ENV_B4
752 wxPAPER_ENV_B5 = wxc.wxPAPER_ENV_B5
753 wxPAPER_ENV_B6 = wxc.wxPAPER_ENV_B6
754 wxPAPER_ENV_ITALY = wxc.wxPAPER_ENV_ITALY
755 wxPAPER_ENV_MONARCH = wxc.wxPAPER_ENV_MONARCH
756 wxPAPER_ENV_PERSONAL = wxc.wxPAPER_ENV_PERSONAL
757 wxPAPER_FANFOLD_US = wxc.wxPAPER_FANFOLD_US
758 wxPAPER_FANFOLD_STD_GERMAN = wxc.wxPAPER_FANFOLD_STD_GERMAN
759 wxPAPER_FANFOLD_LGL_GERMAN = wxc.wxPAPER_FANFOLD_LGL_GERMAN
760 wxPAPER_ISO_B4 = wxc.wxPAPER_ISO_B4
761 wxPAPER_JAPANESE_POSTCARD = wxc.wxPAPER_JAPANESE_POSTCARD
762 wxPAPER_9X11 = wxc.wxPAPER_9X11
763 wxPAPER_10X11 = wxc.wxPAPER_10X11
764 wxPAPER_15X11 = wxc.wxPAPER_15X11
765 wxPAPER_ENV_INVITE = wxc.wxPAPER_ENV_INVITE
766 wxPAPER_LETTER_EXTRA = wxc.wxPAPER_LETTER_EXTRA
767 wxPAPER_LEGAL_EXTRA = wxc.wxPAPER_LEGAL_EXTRA
768 wxPAPER_TABLOID_EXTRA = wxc.wxPAPER_TABLOID_EXTRA
769 wxPAPER_A4_EXTRA = wxc.wxPAPER_A4_EXTRA
770 wxPAPER_LETTER_TRANSVERSE = wxc.wxPAPER_LETTER_TRANSVERSE
771 wxPAPER_A4_TRANSVERSE = wxc.wxPAPER_A4_TRANSVERSE
772 wxPAPER_LETTER_EXTRA_TRANSVERSE = wxc.wxPAPER_LETTER_EXTRA_TRANSVERSE
773 wxPAPER_A_PLUS = wxc.wxPAPER_A_PLUS
774 wxPAPER_B_PLUS = wxc.wxPAPER_B_PLUS
775 wxPAPER_LETTER_PLUS = wxc.wxPAPER_LETTER_PLUS
776 wxPAPER_A4_PLUS = wxc.wxPAPER_A4_PLUS
777 wxPAPER_A5_TRANSVERSE = wxc.wxPAPER_A5_TRANSVERSE
778 wxPAPER_B5_TRANSVERSE = wxc.wxPAPER_B5_TRANSVERSE
779 wxPAPER_A3_EXTRA = wxc.wxPAPER_A3_EXTRA
780 wxPAPER_A5_EXTRA = wxc.wxPAPER_A5_EXTRA
781 wxPAPER_B5_EXTRA = wxc.wxPAPER_B5_EXTRA
782 wxPAPER_A2 = wxc.wxPAPER_A2
783 wxPAPER_A3_TRANSVERSE = wxc.wxPAPER_A3_TRANSVERSE
784 wxPAPER_A3_EXTRA_TRANSVERSE = wxc.wxPAPER_A3_EXTRA_TRANSVERSE
785 wxDUPLEX_SIMPLEX = wxc.wxDUPLEX_SIMPLEX
786 wxDUPLEX_HORIZONTAL = wxc.wxDUPLEX_HORIZONTAL
787 wxDUPLEX_VERTICAL = wxc.wxDUPLEX_VERTICAL
788 wxITEM_SEPARATOR = wxc.wxITEM_SEPARATOR
789 wxITEM_NORMAL = wxc.wxITEM_NORMAL
790 wxITEM_CHECK = wxc.wxITEM_CHECK
791 wxITEM_RADIO = wxc.wxITEM_RADIO
792 wxITEM_MAX = wxc.wxITEM_MAX
793 wxHT_NOWHERE = wxc.wxHT_NOWHERE
794 wxHT_SCROLLBAR_FIRST = wxc.wxHT_SCROLLBAR_FIRST
795 wxHT_SCROLLBAR_ARROW_LINE_1 = wxc.wxHT_SCROLLBAR_ARROW_LINE_1
796 wxHT_SCROLLBAR_ARROW_LINE_2 = wxc.wxHT_SCROLLBAR_ARROW_LINE_2
797 wxHT_SCROLLBAR_ARROW_PAGE_1 = wxc.wxHT_SCROLLBAR_ARROW_PAGE_1
798 wxHT_SCROLLBAR_ARROW_PAGE_2 = wxc.wxHT_SCROLLBAR_ARROW_PAGE_2
799 wxHT_SCROLLBAR_THUMB = wxc.wxHT_SCROLLBAR_THUMB
800 wxHT_SCROLLBAR_BAR_1 = wxc.wxHT_SCROLLBAR_BAR_1
801 wxHT_SCROLLBAR_BAR_2 = wxc.wxHT_SCROLLBAR_BAR_2
802 wxHT_SCROLLBAR_LAST = wxc.wxHT_SCROLLBAR_LAST
803 wxHT_WINDOW_OUTSIDE = wxc.wxHT_WINDOW_OUTSIDE
804 wxHT_WINDOW_INSIDE = wxc.wxHT_WINDOW_INSIDE
805 wxHT_WINDOW_VERT_SCROLLBAR = wxc.wxHT_WINDOW_VERT_SCROLLBAR
806 wxHT_WINDOW_HORZ_SCROLLBAR = wxc.wxHT_WINDOW_HORZ_SCROLLBAR
807 wxHT_WINDOW_CORNER = wxc.wxHT_WINDOW_CORNER
808 wxHT_MAX = wxc.wxHT_MAX
809 wxMOD_NONE = wxc.wxMOD_NONE
810 wxMOD_ALT = wxc.wxMOD_ALT
811 wxMOD_CONTROL = wxc.wxMOD_CONTROL
812 wxMOD_SHIFT = wxc.wxMOD_SHIFT
813 wxMOD_WIN = wxc.wxMOD_WIN
814 wxUPDATE_UI_NONE = wxc.wxUPDATE_UI_NONE
815 wxUPDATE_UI_RECURSE = wxc.wxUPDATE_UI_RECURSE
816 wxUPDATE_UI_FROMIDLE = wxc.wxUPDATE_UI_FROMIDLE
817 wxEVT_NULL = wxc.wxEVT_NULL
818 wxEVT_FIRST = wxc.wxEVT_FIRST
819 wxEVT_COMMAND_BUTTON_CLICKED = wxc.wxEVT_COMMAND_BUTTON_CLICKED
820 wxEVT_COMMAND_CHECKBOX_CLICKED = wxc.wxEVT_COMMAND_CHECKBOX_CLICKED
821 wxEVT_COMMAND_CHOICE_SELECTED = wxc.wxEVT_COMMAND_CHOICE_SELECTED
822 wxEVT_COMMAND_LISTBOX_SELECTED = wxc.wxEVT_COMMAND_LISTBOX_SELECTED
823 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED = wxc.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
824 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED = wxc.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
825 wxEVT_COMMAND_SPINCTRL_UPDATED = wxc.wxEVT_COMMAND_SPINCTRL_UPDATED
826 wxEVT_COMMAND_TEXT_UPDATED = wxc.wxEVT_COMMAND_TEXT_UPDATED
827 wxEVT_COMMAND_TEXT_ENTER = wxc.wxEVT_COMMAND_TEXT_ENTER
828 wxEVT_COMMAND_TEXT_URL = wxc.wxEVT_COMMAND_TEXT_URL
829 wxEVT_COMMAND_TEXT_MAXLEN = wxc.wxEVT_COMMAND_TEXT_MAXLEN
830 wxEVT_COMMAND_MENU_SELECTED = wxc.wxEVT_COMMAND_MENU_SELECTED
831 wxEVT_COMMAND_SLIDER_UPDATED = wxc.wxEVT_COMMAND_SLIDER_UPDATED
832 wxEVT_COMMAND_RADIOBOX_SELECTED = wxc.wxEVT_COMMAND_RADIOBOX_SELECTED
833 wxEVT_COMMAND_RADIOBUTTON_SELECTED = wxc.wxEVT_COMMAND_RADIOBUTTON_SELECTED
834 wxEVT_COMMAND_SCROLLBAR_UPDATED = wxc.wxEVT_COMMAND_SCROLLBAR_UPDATED
835 wxEVT_COMMAND_VLBOX_SELECTED = wxc.wxEVT_COMMAND_VLBOX_SELECTED
836 wxEVT_COMMAND_COMBOBOX_SELECTED = wxc.wxEVT_COMMAND_COMBOBOX_SELECTED
837 wxEVT_COMMAND_TOOL_CLICKED = wxc.wxEVT_COMMAND_TOOL_CLICKED
838 wxEVT_COMMAND_TOOL_RCLICKED = wxc.wxEVT_COMMAND_TOOL_RCLICKED
839 wxEVT_COMMAND_TOOL_ENTER = wxc.wxEVT_COMMAND_TOOL_ENTER
840 wxEVT_SET_FOCUS = wxc.wxEVT_SET_FOCUS
841 wxEVT_KILL_FOCUS = wxc.wxEVT_KILL_FOCUS
842 wxEVT_CHILD_FOCUS = wxc.wxEVT_CHILD_FOCUS
843 wxEVT_MOUSEWHEEL = wxc.wxEVT_MOUSEWHEEL
844 wxEVT_LEFT_DOWN = wxc.wxEVT_LEFT_DOWN
845 wxEVT_LEFT_UP = wxc.wxEVT_LEFT_UP
846 wxEVT_MIDDLE_DOWN = wxc.wxEVT_MIDDLE_DOWN
847 wxEVT_MIDDLE_UP = wxc.wxEVT_MIDDLE_UP
848 wxEVT_RIGHT_DOWN = wxc.wxEVT_RIGHT_DOWN
849 wxEVT_RIGHT_UP = wxc.wxEVT_RIGHT_UP
850 wxEVT_MOTION = wxc.wxEVT_MOTION
851 wxEVT_ENTER_WINDOW = wxc.wxEVT_ENTER_WINDOW
852 wxEVT_LEAVE_WINDOW = wxc.wxEVT_LEAVE_WINDOW
853 wxEVT_LEFT_DCLICK = wxc.wxEVT_LEFT_DCLICK
854 wxEVT_MIDDLE_DCLICK = wxc.wxEVT_MIDDLE_DCLICK
855 wxEVT_RIGHT_DCLICK = wxc.wxEVT_RIGHT_DCLICK
856 wxEVT_MOUSE_CAPTURE_CHANGED = wxc.wxEVT_MOUSE_CAPTURE_CHANGED
857 wxEVT_NC_LEFT_DOWN = wxc.wxEVT_NC_LEFT_DOWN
858 wxEVT_NC_LEFT_UP = wxc.wxEVT_NC_LEFT_UP
859 wxEVT_NC_MIDDLE_DOWN = wxc.wxEVT_NC_MIDDLE_DOWN
860 wxEVT_NC_MIDDLE_UP = wxc.wxEVT_NC_MIDDLE_UP
861 wxEVT_NC_RIGHT_DOWN = wxc.wxEVT_NC_RIGHT_DOWN
862 wxEVT_NC_RIGHT_UP = wxc.wxEVT_NC_RIGHT_UP
863 wxEVT_NC_MOTION = wxc.wxEVT_NC_MOTION
864 wxEVT_NC_ENTER_WINDOW = wxc.wxEVT_NC_ENTER_WINDOW
865 wxEVT_NC_LEAVE_WINDOW = wxc.wxEVT_NC_LEAVE_WINDOW
866 wxEVT_NC_LEFT_DCLICK = wxc.wxEVT_NC_LEFT_DCLICK
867 wxEVT_NC_MIDDLE_DCLICK = wxc.wxEVT_NC_MIDDLE_DCLICK
868 wxEVT_NC_RIGHT_DCLICK = wxc.wxEVT_NC_RIGHT_DCLICK
869 wxEVT_SET_CURSOR = wxc.wxEVT_SET_CURSOR
870 wxEVT_CHAR = wxc.wxEVT_CHAR
871 wxEVT_KEY_DOWN = wxc.wxEVT_KEY_DOWN
872 wxEVT_KEY_UP = wxc.wxEVT_KEY_UP
873 wxEVT_CHAR_HOOK = wxc.wxEVT_CHAR_HOOK
874 wxEVT_HOTKEY = wxc.wxEVT_HOTKEY
875 wxEVT_SCROLL_TOP = wxc.wxEVT_SCROLL_TOP
876 wxEVT_SCROLL_BOTTOM = wxc.wxEVT_SCROLL_BOTTOM
877 wxEVT_SCROLL_LINEUP = wxc.wxEVT_SCROLL_LINEUP
878 wxEVT_SCROLL_LINEDOWN = wxc.wxEVT_SCROLL_LINEDOWN
879 wxEVT_SCROLL_PAGEUP = wxc.wxEVT_SCROLL_PAGEUP
880 wxEVT_SCROLL_PAGEDOWN = wxc.wxEVT_SCROLL_PAGEDOWN
881 wxEVT_SCROLL_THUMBTRACK = wxc.wxEVT_SCROLL_THUMBTRACK
882 wxEVT_SCROLL_THUMBRELEASE = wxc.wxEVT_SCROLL_THUMBRELEASE
883 wxEVT_SCROLL_ENDSCROLL = wxc.wxEVT_SCROLL_ENDSCROLL
884 wxEVT_SCROLLWIN_TOP = wxc.wxEVT_SCROLLWIN_TOP
885 wxEVT_SCROLLWIN_BOTTOM = wxc.wxEVT_SCROLLWIN_BOTTOM
886 wxEVT_SCROLLWIN_LINEUP = wxc.wxEVT_SCROLLWIN_LINEUP
887 wxEVT_SCROLLWIN_LINEDOWN = wxc.wxEVT_SCROLLWIN_LINEDOWN
888 wxEVT_SCROLLWIN_PAGEUP = wxc.wxEVT_SCROLLWIN_PAGEUP
889 wxEVT_SCROLLWIN_PAGEDOWN = wxc.wxEVT_SCROLLWIN_PAGEDOWN
890 wxEVT_SCROLLWIN_THUMBTRACK = wxc.wxEVT_SCROLLWIN_THUMBTRACK
891 wxEVT_SCROLLWIN_THUMBRELEASE = wxc.wxEVT_SCROLLWIN_THUMBRELEASE
892 wxEVT_SIZE = wxc.wxEVT_SIZE
893 wxEVT_MOVE = wxc.wxEVT_MOVE
894 wxEVT_SIZING = wxc.wxEVT_SIZING
895 wxEVT_MOVING = wxc.wxEVT_MOVING
896 wxEVT_CLOSE_WINDOW = wxc.wxEVT_CLOSE_WINDOW
897 wxEVT_END_SESSION = wxc.wxEVT_END_SESSION
898 wxEVT_QUERY_END_SESSION = wxc.wxEVT_QUERY_END_SESSION
899 wxEVT_ACTIVATE_APP = wxc.wxEVT_ACTIVATE_APP
900 wxEVT_POWER = wxc.wxEVT_POWER
901 wxEVT_ACTIVATE = wxc.wxEVT_ACTIVATE
902 wxEVT_CREATE = wxc.wxEVT_CREATE
903 wxEVT_DESTROY = wxc.wxEVT_DESTROY
904 wxEVT_SHOW = wxc.wxEVT_SHOW
905 wxEVT_ICONIZE = wxc.wxEVT_ICONIZE
906 wxEVT_MAXIMIZE = wxc.wxEVT_MAXIMIZE
907 wxEVT_PAINT = wxc.wxEVT_PAINT
908 wxEVT_ERASE_BACKGROUND = wxc.wxEVT_ERASE_BACKGROUND
909 wxEVT_NC_PAINT = wxc.wxEVT_NC_PAINT
910 wxEVT_PAINT_ICON = wxc.wxEVT_PAINT_ICON
911 wxEVT_MENU_OPEN = wxc.wxEVT_MENU_OPEN
912 wxEVT_MENU_CLOSE = wxc.wxEVT_MENU_CLOSE
913 wxEVT_MENU_HIGHLIGHT = wxc.wxEVT_MENU_HIGHLIGHT
914 wxEVT_CONTEXT_MENU = wxc.wxEVT_CONTEXT_MENU
915 wxEVT_SYS_COLOUR_CHANGED = wxc.wxEVT_SYS_COLOUR_CHANGED
916 wxEVT_DISPLAY_CHANGED = wxc.wxEVT_DISPLAY_CHANGED
917 wxEVT_SETTING_CHANGED = wxc.wxEVT_SETTING_CHANGED
918 wxEVT_QUERY_NEW_PALETTE = wxc.wxEVT_QUERY_NEW_PALETTE
919 wxEVT_PALETTE_CHANGED = wxc.wxEVT_PALETTE_CHANGED
920 wxEVT_JOY_BUTTON_DOWN = wxc.wxEVT_JOY_BUTTON_DOWN
921 wxEVT_JOY_BUTTON_UP = wxc.wxEVT_JOY_BUTTON_UP
922 wxEVT_JOY_MOVE = wxc.wxEVT_JOY_MOVE
923 wxEVT_JOY_ZMOVE = wxc.wxEVT_JOY_ZMOVE
924 wxEVT_DROP_FILES = wxc.wxEVT_DROP_FILES
925 wxEVT_DRAW_ITEM = wxc.wxEVT_DRAW_ITEM
926 wxEVT_MEASURE_ITEM = wxc.wxEVT_MEASURE_ITEM
927 wxEVT_COMPARE_ITEM = wxc.wxEVT_COMPARE_ITEM
928 wxEVT_INIT_DIALOG = wxc.wxEVT_INIT_DIALOG
929 wxEVT_IDLE = wxc.wxEVT_IDLE
930 wxEVT_UPDATE_UI = wxc.wxEVT_UPDATE_UI
931 wxEVT_COMMAND_LEFT_CLICK = wxc.wxEVT_COMMAND_LEFT_CLICK
932 wxEVT_COMMAND_LEFT_DCLICK = wxc.wxEVT_COMMAND_LEFT_DCLICK
933 wxEVT_COMMAND_RIGHT_CLICK = wxc.wxEVT_COMMAND_RIGHT_CLICK
934 wxEVT_COMMAND_RIGHT_DCLICK = wxc.wxEVT_COMMAND_RIGHT_DCLICK
935 wxEVT_COMMAND_SET_FOCUS = wxc.wxEVT_COMMAND_SET_FOCUS
936 wxEVT_COMMAND_KILL_FOCUS = wxc.wxEVT_COMMAND_KILL_FOCUS
937 wxEVT_COMMAND_ENTER = wxc.wxEVT_COMMAND_ENTER
938 wxEVT_NAVIGATION_KEY = wxc.wxEVT_NAVIGATION_KEY
939 wxEVT_TIMER = wxc.wxEVT_TIMER
940 cvar = wxc.cvar
941 wxDefaultPosition = wxPointPtr(wxc.cvar.wxDefaultPosition)
942 wxDefaultSize = wxSizePtr(wxc.cvar.wxDefaultSize)
943 wxPYAPP_ASSERT_SUPPRESS = wxc.wxPYAPP_ASSERT_SUPPRESS
944 wxPYAPP_ASSERT_EXCEPTION = wxc.wxPYAPP_ASSERT_EXCEPTION
945 wxPYAPP_ASSERT_DIALOG = wxc.wxPYAPP_ASSERT_DIALOG
946 wxPYAPP_ASSERT_LOG = wxc.wxPYAPP_ASSERT_LOG
947
948
949 #-------------- USER INCLUDE -----------------------
950
951 #----------------------------------------------------------------------------
952 # Name: _extra.py
953 # Purpose: This file is appended to the shadow class file generated
954 # by SWIG. We add some unSWIGable things here.
955 #
956 # Author: Robin Dunn
957 #
958 # Created: 6/30/97
959 # Copyright: (c) 1998 by Total Control Software
960 # Licence: wxWindows license
961 #----------------------------------------------------------------------------
962
963 import 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
976 def _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
988 def EVT_SIZE(win, func):
989 win.Connect(-1, -1, wxEVT_SIZE, func)
990
991 def EVT_MOVE(win, func):
992 win.Connect(-1, -1, wxEVT_MOVE, func)
993
994 def EVT_SIZING(win, func):
995 win.Connect(-1, -1, wxEVT_SIZING, func)
996
997 def EVT_MOVING(win, func):
998 win.Connect(-1, -1, wxEVT_MOVING, func)
999
1000 def EVT_CLOSE(win, func):
1001 win.Connect(-1, -1, wxEVT_CLOSE_WINDOW, func)
1002
1003 def EVT_PAINT(win, func):
1004 win.Connect(-1, -1, wxEVT_PAINT, func)
1005
1006 def EVT_ERASE_BACKGROUND(win, func):
1007 win.Connect(-1, -1, wxEVT_ERASE_BACKGROUND, func)
1008
1009 def EVT_CHAR(win, func):
1010 win.Connect(-1, -1, wxEVT_CHAR, func)
1011
1012 def EVT_CHAR_HOOK(win, func):
1013 win.Connect(-1, -1, wxEVT_CHAR_HOOK, func)
1014
1015 def EVT_KEY_DOWN(win, func):
1016 win.Connect(-1, -1, wxEVT_KEY_DOWN, func)
1017
1018 def EVT_KEY_UP(win, func):
1019 win.Connect(-1, -1, wxEVT_KEY_UP, func)
1020
1021 def EVT_HOTKEY(win, func):
1022 win.Connect(-1, -1, wxEVT_HOTKEY, func)
1023
1024 def EVT_MENU_OPEN(win, func):
1025 win.Connect(-1, -1, wxEVT_MENU_OPEN, func)
1026
1027 def EVT_MENU_CLOSE(win, func):
1028 win.Connect(-1, -1, wxEVT_MENU_CLOSE, func)
1029
1030 def EVT_MENU_HIGHLIGHT(win, id, func):
1031 win.Connect(id, -1, wxEVT_MENU_HIGHLIGHT, func)
1032
1033 def EVT_MENU_HIGHLIGHT_ALL(win, func):
1034 win.Connect(-1, -1, wxEVT_MENU_HIGHLIGHT, func)
1035
1036 def EVT_SET_FOCUS(win, func):
1037 win.Connect(-1, -1, wxEVT_SET_FOCUS, func)
1038
1039 def EVT_KILL_FOCUS(win, func):
1040 win.Connect(-1, -1, wxEVT_KILL_FOCUS, func)
1041
1042 def EVT_CHILD_FOCUS(win, func):
1043 win.Connect(-1, -1, wxEVT_CHILD_FOCUS, func)
1044
1045 def EVT_ACTIVATE(win, func):
1046 win.Connect(-1, -1, wxEVT_ACTIVATE, func)
1047
1048 def EVT_ACTIVATE_APP(win, func):
1049 win.Connect(-1, -1, wxEVT_ACTIVATE_APP, func)
1050
1051 def EVT_END_SESSION(win, func):
1052 win.Connect(-1, -1, wxEVT_END_SESSION, func)
1053
1054 def EVT_QUERY_END_SESSION(win, func):
1055 win.Connect(-1, -1, wxEVT_QUERY_END_SESSION, func)
1056
1057 def EVT_DROP_FILES(win, func):
1058 win.Connect(-1, -1, wxEVT_DROP_FILES, func)
1059
1060 def EVT_INIT_DIALOG(win, func):
1061 win.Connect(-1, -1, wxEVT_INIT_DIALOG, func)
1062
1063 def EVT_SYS_COLOUR_CHANGED(win, func):
1064 win.Connect(-1, -1, wxEVT_SYS_COLOUR_CHANGED, func)
1065
1066 def EVT_DISPLAY_CHANGED(win, func):
1067 win.Connect(-1, -1, wxEVT_DISPLAY_CHANGED, func)
1068
1069 def EVT_SHOW(win, func):
1070 win.Connect(-1, -1, wxEVT_SHOW, func)
1071
1072 def EVT_MAXIMIZE(win, func):
1073 win.Connect(-1, -1, wxEVT_MAXIMIZE, func)
1074
1075 def EVT_ICONIZE(win, func):
1076 win.Connect(-1, -1, wxEVT_ICONIZE, func)
1077
1078 def EVT_NAVIGATION_KEY(win, func):
1079 win.Connect(-1, -1, wxEVT_NAVIGATION_KEY, func)
1080
1081 def EVT_PALETTE_CHANGED(win, func):
1082 win.Connect(-1, -1, wxEVT_PALETTE_CHANGED, func)
1083
1084 def EVT_QUERY_NEW_PALETTE(win, func):
1085 win.Connect(-1, -1, wxEVT_QUERY_NEW_PALETTE, func)
1086
1087 def EVT_WINDOW_CREATE(win, func):
1088 win.Connect(-1, -1, wxEVT_CREATE, func)
1089
1090 def EVT_WINDOW_DESTROY(win, func):
1091 win.Connect(-1, -1, wxEVT_DESTROY, func)
1092
1093 def EVT_WINDOW_CREATE_ID(win, id, func):
1094 win.Connect(id, -1, wxEVT_CREATE, func)
1095
1096 def EVT_WINDOW_DESTROY_ID(win, id, func):
1097 win.Connect(id, -1, wxEVT_DESTROY, func)
1098
1099 def EVT_SET_CURSOR(win, func):
1100 win.Connect(-1, -1, wxEVT_SET_CURSOR, func)
1101
1102
1103
1104 def EVT_IDLE(win, func):
1105 win.Connect(-1, -1, wxEVT_IDLE, func)
1106
1107 def EVT_UPDATE_UI(win, id, func):
1108 win.Connect(id, -1, wxEVT_UPDATE_UI, func)
1109
1110 def EVT_UPDATE_UI_RANGE(win, id, id2, func):
1111 win.Connect(id, id2, wxEVT_UPDATE_UI, func)
1112
1113
1114 # Mouse Events
1115 def EVT_LEFT_DOWN(win, func):
1116 win.Connect(-1, -1, wxEVT_LEFT_DOWN, func)
1117
1118 def EVT_LEFT_UP(win, func):
1119 win.Connect(-1, -1, wxEVT_LEFT_UP, func)
1120
1121 def EVT_MIDDLE_DOWN(win, func):
1122 win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func)
1123
1124 def EVT_MIDDLE_UP(win, func):
1125 win.Connect(-1, -1, wxEVT_MIDDLE_UP, func)
1126
1127 def EVT_RIGHT_DOWN(win, func):
1128 win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func)
1129
1130 def EVT_RIGHT_UP(win, func):
1131 win.Connect(-1, -1, wxEVT_RIGHT_UP, func)
1132
1133 def EVT_MOTION(win, func):
1134 win.Connect(-1, -1, wxEVT_MOTION, func)
1135
1136 def EVT_LEFT_DCLICK(win, func):
1137 win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func)
1138
1139 def EVT_MIDDLE_DCLICK(win, func):
1140 win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func)
1141
1142 def EVT_RIGHT_DCLICK(win, func):
1143 win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func)
1144
1145 def EVT_LEAVE_WINDOW(win, func):
1146 win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func)
1147
1148 def EVT_ENTER_WINDOW(win, func):
1149 win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func)
1150
1151 def EVT_MOUSEWHEEL(win, func):
1152 win.Connect(-1, -1, wxEVT_MOUSEWHEEL, func)
1153
1154 # all mouse events
1155 def 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
1169 def EVT_MOUSE_CAPTURE_CHANGED(win, func):
1170 win.Connect(-1, -1, wxEVT_MOUSE_CAPTURE_CHANGED, func)
1171
1172 # EVT_COMMAND
1173 def EVT_COMMAND(win, id, cmd, func):
1174 win.Connect(id, -1, cmd, func)
1175
1176 def EVT_COMMAND_RANGE(win, id1, id2, cmd, func):
1177 win.Connect(id1, id2, cmd, func)
1178
1179
1180 # Scrolling
1181 def EVT_SCROLL(win, func):
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)
1189 win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE,func)
1190 win.Connect(-1, -1, wxEVT_SCROLL_ENDSCROLL, func)
1191
1192 def EVT_SCROLL_TOP(win, func):
1193 win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
1194
1195 def EVT_SCROLL_BOTTOM(win, func):
1196 win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func)
1197
1198 def EVT_SCROLL_LINEUP(win, func):
1199 win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func)
1200
1201 def EVT_SCROLL_LINEDOWN(win, func):
1202 win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func)
1203
1204 def EVT_SCROLL_PAGEUP(win, func):
1205 win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
1206
1207 def EVT_SCROLL_PAGEDOWN(win, func):
1208 win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
1209
1210 def EVT_SCROLL_THUMBTRACK(win, func):
1211 win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK, func)
1212
1213 def EVT_SCROLL_THUMBRELEASE(win, func):
1214 win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE, func)
1215
1216 def EVT_SCROLL_ENDSCROLL(win, func):
1217 win.Connect(-1, -1, wxEVT_SCROLL_ENDSCROLL, func)
1218
1219
1220
1221 # Scrolling, with an id
1222 def 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)
1231 win.Connect(id, -1, wxEVT_SCROLL_ENDSCROLL, func)
1232
1233 def EVT_COMMAND_SCROLL_TOP(win, id, func):
1234 win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
1235
1236 def EVT_COMMAND_SCROLL_BOTTOM(win, id, func):
1237 win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
1238
1239 def EVT_COMMAND_SCROLL_LINEUP(win, id, func):
1240 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
1241
1242 def EVT_COMMAND_SCROLL_LINEDOWN(win, id, func):
1243 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
1244
1245 def EVT_COMMAND_SCROLL_PAGEUP(win, id, func):
1246 win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
1247
1248 def EVT_COMMAND_SCROLL_PAGEDOWN(win, id, func):
1249 win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
1250
1251 def EVT_COMMAND_SCROLL_THUMBTRACK(win, id, func):
1252 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK, func)
1253
1254 def EVT_COMMAND_SCROLL_THUMBRELEASE(win, id, func):
1255 win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE, func)
1256
1257 def EVT_COMMAND_SCROLL_ENDSCROLL(win, id, func):
1258 win.Connect(id, -1, wxEVT_SCROLL_ENDSCROLL, func)
1259
1260 #---
1261 def 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
1271 def EVT_SCROLLWIN_TOP(win, func):
1272 win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
1273
1274 def EVT_SCROLLWIN_BOTTOM(win, func):
1275 win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func)
1276
1277 def EVT_SCROLLWIN_LINEUP(win, func):
1278 win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func)
1279
1280 def EVT_SCROLLWIN_LINEDOWN(win, func):
1281 win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
1282
1283 def EVT_SCROLLWIN_PAGEUP(win, func):
1284 win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func)
1285
1286 def EVT_SCROLLWIN_PAGEDOWN(win, func):
1287 win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
1288
1289 def EVT_SCROLLWIN_THUMBTRACK(win, func):
1290 win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
1291
1292 def EVT_SCROLLWIN_THUMBRELEASE(win, func):
1293 win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func)
1294
1295
1296
1297 # Scrolling, with an id
1298 def 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
1308 def EVT_COMMAND_SCROLLWIN_TOP(win, id, func):
1309 win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
1310
1311 def EVT_COMMAND_SCROLLWIN_BOTTOM(win, id, func):
1312 win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func)
1313
1314 def EVT_COMMAND_SCROLLWIN_LINEUP(win, id, func):
1315 win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func)
1316
1317 def EVT_COMMAND_SCROLLWIN_LINEDOWN(win, id, func):
1318 win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
1319
1320 def EVT_COMMAND_SCROLLWIN_PAGEUP(win, id, func):
1321 win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func)
1322
1323 def EVT_COMMAND_SCROLLWIN_PAGEDOWN(win, id, func):
1324 win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
1325
1326 def EVT_COMMAND_SCROLLWIN_THUMBTRACK(win, id, func):
1327 win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
1328
1329 def EVT_COMMAND_SCROLLWIN_THUMBRELEASE(win, id, func):
1330 win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func)
1331
1332
1333 # Convenience commands
1334 def EVT_BUTTON(win, id, func):
1335 win.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED, func)
1336
1337 def EVT_CHECKBOX(win, id, func):
1338 win.Connect(id, -1, wxEVT_COMMAND_CHECKBOX_CLICKED, func)
1339
1340 def EVT_CHOICE(win, id, func):
1341 win.Connect(id, -1, wxEVT_COMMAND_CHOICE_SELECTED, func)
1342
1343 def EVT_LISTBOX(win, id, func):
1344 win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_SELECTED, func)
1345
1346 def EVT_LISTBOX_DCLICK(win, id, func):
1347 win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, func)
1348
1349 def EVT_TEXT(win, id, func):
1350 win.Connect(id, -1, wxEVT_COMMAND_TEXT_UPDATED, func)
1351
1352 def EVT_TEXT_ENTER(win, id, func):
1353 win.Connect(id, -1, wxEVT_COMMAND_TEXT_ENTER, func)
1354
1355 def EVT_TEXT_URL(win, id, func):
1356 win.Connect(id, -1, wxEVT_COMMAND_TEXT_URL, func)
1357
1358 def EVT_TEXT_MAXLEN(win, id, func):
1359 win.Connect(id, -1, wxEVT_COMMAND_TEXT_MAXLEN, func)
1360
1361 def EVT_MENU(win, id, func):
1362 win.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED, func)
1363
1364 def EVT_MENU_RANGE(win, id1, id2, func):
1365 win.Connect(id1, id2, wxEVT_COMMAND_MENU_SELECTED, func)
1366
1367 def EVT_SLIDER(win, id, func):
1368 win.Connect(id, -1, wxEVT_COMMAND_SLIDER_UPDATED, func)
1369
1370 def EVT_RADIOBOX(win, id, func):
1371 win.Connect(id, -1, wxEVT_COMMAND_RADIOBOX_SELECTED, func)
1372
1373 def EVT_RADIOBUTTON(win, id, func):
1374 win.Connect(id, -1, wxEVT_COMMAND_RADIOBUTTON_SELECTED, func)
1375
1376 def EVT_VLBOX(win, id, func):
1377 win.Connect(id, -1, wxEVT_COMMAND_VLBOX_SELECTED, func)
1378
1379 def EVT_COMBOBOX(win, id, func):
1380 win.Connect(id, -1, wxEVT_COMMAND_COMBOBOX_SELECTED, func)
1381
1382 def EVT_TOOL(win, id, func):
1383 win.Connect(id, -1, wxEVT_COMMAND_TOOL_CLICKED, func)
1384
1385 def EVT_TOOL_RANGE(win, id, id2, func):
1386 win.Connect(id, id2, wxEVT_COMMAND_TOOL_CLICKED, func)
1387
1388 def EVT_TOOL_RCLICKED(win, id, func):
1389 win.Connect(id, -1, wxEVT_COMMAND_TOOL_RCLICKED, func)
1390
1391 def EVT_TOOL_RCLICKED_RANGE(win, id, id2, func):
1392 win.Connect(id, id2, wxEVT_COMMAND_TOOL_RCLICKED, func)
1393
1394 def EVT_TOOL_ENTER(win, id, func):
1395 win.Connect(id, -1, wxEVT_COMMAND_TOOL_ENTER, func)
1396
1397 def EVT_CHECKLISTBOX(win, id, func):
1398 win.Connect(id, -1, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, func)
1399
1400 def EVT_SPINCTRL(win, id, func):
1401 win.Connect(id, -1, wxEVT_COMMAND_SPINCTRL_UPDATED, func)
1402
1403
1404
1405 # Generic command events
1406
1407 def EVT_COMMAND_LEFT_CLICK(win, id, func):
1408 win.Connect(id, -1, wxEVT_COMMAND_LEFT_CLICK, func)
1409
1410 def EVT_COMMAND_LEFT_DCLICK(win, id, func):
1411 win.Connect(id, -1, wxEVT_COMMAND_LEFT_DCLICK, func)
1412
1413 def EVT_COMMAND_RIGHT_CLICK(win, id, func):
1414 win.Connect(id, -1, wxEVT_COMMAND_RIGHT_CLICK, func)
1415
1416 def EVT_COMMAND_RIGHT_DCLICK(win, id, func):
1417 win.Connect(id, -1, wxEVT_COMMAND_RIGHT_DCLICK, func)
1418
1419 def EVT_COMMAND_SET_FOCUS(win, id, func):
1420 win.Connect(id, -1, wxEVT_COMMAND_SET_FOCUS, func)
1421
1422 def EVT_COMMAND_KILL_FOCUS(win, id, func):
1423 win.Connect(id, -1, wxEVT_COMMAND_KILL_FOCUS, func)
1424
1425 def EVT_COMMAND_ENTER(win, id, func):
1426 win.Connect(id, -1, wxEVT_COMMAND_ENTER, func)
1427
1428
1429 # wxNotebook events
1430 def EVT_NOTEBOOK_PAGE_CHANGED(win, id, func):
1431 win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, func)
1432
1433 def EVT_NOTEBOOK_PAGE_CHANGING(win, id, func):
1434 win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, func)
1435
1436
1437 # wxSpinButton
1438 def EVT_SPIN_UP(win, id, func):
1439 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
1440
1441 def EVT_SPIN_DOWN(win, id, func):
1442 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
1443
1444 def EVT_SPIN(win, id, func):
1445 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
1446
1447
1448 # wxSashWindow
1449 def EVT_SASH_DRAGGED(win, id, func):
1450 win.Connect(id, -1, wxEVT_SASH_DRAGGED, func)
1451
1452 def EVT_SASH_DRAGGED_RANGE(win, id1, id2, func):
1453 win.Connect(id1, id2, wxEVT_SASH_DRAGGED, func)
1454
1455 def EVT_QUERY_LAYOUT_INFO(win, func):
1456 win.Connect(-1, -1, wxEVT_QUERY_LAYOUT_INFO, func)
1457
1458 def EVT_CALCULATE_LAYOUT(win, func):
1459 win.Connect(-1, -1, wxEVT_CALCULATE_LAYOUT, func)
1460
1461
1462 #wxSplitterWindow
1463 def EVT_SPLITTER_SASH_POS_CHANGING(win, id, func):
1464 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, func)
1465
1466 def EVT_SPLITTER_SASH_POS_CHANGED(win, id, func):
1467 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, func)
1468
1469 def EVT_SPLITTER_UNSPLIT(win, id, func):
1470 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_UNSPLIT, func)
1471
1472 def EVT_SPLITTER_DOUBLECLICKED(win, id, func):
1473 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, func)
1474
1475
1476 # wxTimer
1477 def EVT_TIMER(win, id, func):
1478 win.Connect(id, -1, wxEVT_TIMER, func)
1479
1480 # wxProcess
1481 def EVT_END_PROCESS(eh, id, func):
1482 eh.Connect(id, -1, wxEVT_END_PROCESS, func)
1483
1484
1485 # wxJoyStick
1486 def EVT_JOY_DOWN(win, func):
1487 win.Connect(-1, -1, wxEVT_JOY_BUTTON_DOWN, func)
1488
1489 def EVT_JOY_UP(win, func):
1490 win.Connect(-1, -1, wxEVT_JOY_BUTTON_UP, func)
1491
1492 def EVT_JOY_MOVE(win, func):
1493 win.Connect(-1, -1, wxEVT_JOY_MOVE, func)
1494
1495 def EVT_JOY_ZMOVE(win, func):
1496 win.Connect(-1, -1, wxEVT_JOY_ZMOVE, func)
1497
1498 def 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
1505 def EVT_TOGGLEBUTTON(win, id, func):
1506 win.Connect(id, -1, wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, func)
1507
1508
1509
1510 def EVT_CONTEXT_MENU(win, func):
1511 win.Connect(-1, -1, wxEVT_CONTEXT_MENU, func)
1512
1513
1514 #----------------------------------------------------------------------
1515
1516 class 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
1525 #----------------------------------------------------------------------
1526 # aliases
1527
1528 wxColor = wxColour
1529 wxNamedColor = wxNamedColour
1530 wxPen = wxPyPen
1531 wxScrollbar = wxScrollBar
1532 wxPoint2D = wxPoint2DDouble
1533
1534 wxPyAssertionError = wxc.wxPyAssertionError
1535
1536
1537 # backwards compatibility
1538 wxNoRefBitmap = wxBitmap
1539 wxPyDefaultPosition = wxDefaultPosition
1540 wxPyDefaultSize = wxDefaultSize
1541 NULL = None
1542 wxSystemSettings_GetSystemColour = wxSystemSettings_GetColour
1543 wxSystemSettings_GetSystemFont = wxSystemSettings_GetFont
1544 wxSystemSettings_GetSystemMetric = wxSystemSettings_GetMetric
1545
1546
1547 # workarounds for bad wxRTTI names
1548 __wxPyPtrTypeMap['wxGauge95'] = 'wxGauge'
1549 __wxPyPtrTypeMap['wxSlider95'] = 'wxSlider'
1550 __wxPyPtrTypeMap['wxStatusBar95'] = 'wxStatusBar'
1551
1552
1553
1554 def NewId():
1555 import warnings
1556 warnings.warn("Use wxNewId instead", DeprecationWarning, 2)
1557 return wxNewId()
1558
1559 def 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
1567 try:
1568 True
1569 except NameError:
1570 True = 1==1
1571 False = 1==0
1572
1573 # Backwards compaatible
1574 TRUE = true = True
1575 FALSE = false = False
1576
1577
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.
1581 if wxPlatform == "__WXGTK__":
1582 try:
1583 import locale
1584 locale.setlocale(locale.LC_ALL, "")
1585 except:
1586 pass
1587
1588 # On MSW add the directory where the wxWindows catalogs were installed
1589 # to the default catalog path.
1590 if wxPlatform == "__WXMSW__":
1591 import os
1592 localedir = os.path.join(os.path.split(__file__)[0], "locale")
1593 wxLocale_AddCatalogLookupPathPrefix(localedir)
1594 del os
1595
1596 #----------------------------------------------------------------------
1597 # Load version numbers from __version__... Ensure that major and minor
1598 # versions are the same for both wxPython and wxWindows.
1599
1600 from wxPython.__version__ import *
1601 __version__ = wxVERSION_STRING
1602
1603 assert wxMAJOR_VERSION == wxc.wxMAJOR_VERSION, "wxPython/wxWindows version mismatch"
1604 assert wxMINOR_VERSION == wxc.wxMINOR_VERSION, "wxPython/wxWindows version mismatch"
1605 if wxRELEASE_VERSION != wxc.wxRELEASE_VERSION:
1606 import warnings
1607 warnings.warn("wxPython/wxWindows release number mismatch")
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
1631 def 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
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
1652 def 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)
1660
1661 #----------------------------------------------------------------------------
1662 _wxCallAfterId = None
1663
1664 def wxCallAfter(callable, *args, **kw):
1665 """
1666 Call the specified function after the current and pending event
1667 handlers have been completed. This is also good for making GUI
1668 method calls from non-GUI threads.
1669 """
1670 app = wxGetApp()
1671 assert app, 'No wxApp created yet'
1672
1673 global _wxCallAfterId
1674 if _wxCallAfterId is None:
1675 _wxCallAfterId = wxNewEventType()
1676 app.Connect(-1, -1, _wxCallAfterId,
1677 lambda event: event.callable(*event.args, **event.kw) )
1678 evt = wxPyEvent()
1679 evt.SetEventType(_wxCallAfterId)
1680 evt.callable = callable
1681 evt.args = args
1682 evt.kw = kw
1683 wxPostEvent(app, evt)
1684
1685
1686 #----------------------------------------------------------------------
1687
1688
1689 class 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
1776
1777 #----------------------------------------------------------------------
1778
1779 class wxPyDeadObjectError(AttributeError):
1780 pass
1781
1782 class _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
1805 #----------------------------------------------------------------------
1806
1807 class 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
1834 #----------------------------------------------------------------------
1835 #----------------------------------------------------------------------
1836
1837 class 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))
1865 self.frame.Show(True)
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
1876 _defRedirect = (wxPlatform == '__WXMSW__' or wxPlatform == '__WXMAC__')
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
1882 class wxApp(wxPyApp):
1883 error = 'wxApp.error'
1884 outputWindowClass = wxPyOnDemandOutputWindow
1885
1886 def __init__(self, redirect=_defRedirect, filename=None, useBestVisual=False):
1887 wxPyApp.__init__(self)
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
1895 of your Mac."""
1896 sys.exit(1)
1897 except:
1898 pass
1899
1900 self.stdioWin = None
1901 self.saveStdio = (sys.stdout, sys.stderr)
1902
1903 # This has to be done before OnInit
1904 self.SetUseBestVisual(useBestVisual)
1905
1906 if redirect:
1907 self.RedirectStdio(filename)
1908
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
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:
1944 self.stdioWin = self.outputWindowClass()
1945 sys.stdout = sys.stderr = self.stdioWin
1946
1947
1948 def RestoreStdio(self):
1949 sys.stdout, sys.stderr = self.saveStdio
1950
1951
1952 # change from wxPyApp_ to wxApp_
1953 wxApp_GetMacDefaultEncodingIsPC = wxc.wxPyApp_GetMacDefaultEncodingIsPC
1954 wxApp_GetMacSupportPCMenuShortcuts = wxc.wxPyApp_GetMacSupportPCMenuShortcuts
1955 wxApp_GetMacAboutMenuItemId = wxc.wxPyApp_GetMacAboutMenuItemId
1956 wxApp_GetMacPreferencesMenuItemId = wxc.wxPyApp_GetMacPreferencesMenuItemId
1957 wxApp_GetMacExitMenuItemId = wxc.wxPyApp_GetMacExitMenuItemId
1958 wxApp_GetMacHelpMenuTitleName = wxc.wxPyApp_GetMacHelpMenuTitleName
1959 wxApp_SetMacDefaultEncodingIsPC = wxc.wxPyApp_SetMacDefaultEncodingIsPC
1960 wxApp_SetMacSupportPCMenuShortcuts = wxc.wxPyApp_SetMacSupportPCMenuShortcuts
1961 wxApp_SetMacAboutMenuItemId = wxc.wxPyApp_SetMacAboutMenuItemId
1962 wxApp_SetMacPreferencesMenuItemId = wxc.wxPyApp_SetMacPreferencesMenuItemId
1963 wxApp_SetMacExitMenuItemId = wxc.wxPyApp_SetMacExitMenuItemId
1964 wxApp_SetMacHelpMenuTitleName = wxc.wxPyApp_SetMacHelpMenuTitleName
1965
1966
1967 #----------------------------------------------------------------------------
1968
1969 class wxPySimpleApp(wxApp):
1970 def __init__(self, flag=0):
1971 wxApp.__init__(self, flag)
1972 def OnInit(self):
1973 wxInitAllImageHandlers()
1974 return True
1975
1976
1977 class 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)
1985 return True
1986
1987 def SetWidget(self, widgetClass, *args):
1988 w = widgetClass(self.frame, *args)
1989 self.frame.Show(True)
1990
1991 #----------------------------------------------------------------------------
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.
1996
1997 class __wxPyCleanup:
1998 def __init__(self):
1999 self.cleanup = wxc.wxApp_CleanUp
2000 def __del__(self):
2001 self.cleanup()
2002
2003 sys.__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
2012
2013 #----------------------------------------------------------------------------
2014 #----------------------------------------------------------------------------