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