]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/wx.py
New build system for wxPython. (Still needs some polish but is stable
[wxWidgets.git] / utils / 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 events import *
13
14 from mdi import *
15
16 from frames import *
17
18 from stattool import *
19
20 from controls import *
21
22 from controls2 import *
23
24 from windows2 import *
25
26 from cmndlgs import *
27
28 from windows3 import *
29
30 from image import *
31
32 from printfw import *
33 class wxPyAppPtr(wxEvtHandlerPtr):
34 def __init__(self,this):
35 self.this = this
36 self.thisown = 0
37 def __del__(self,wxc=wxc):
38 if self.thisown == 1 :
39 wxc.delete_wxPyApp(self)
40 def GetAppName(self, *_args, **_kwargs):
41 val = apply(wxc.wxPyApp_GetAppName,(self,) + _args, _kwargs)
42 return val
43 def GetAuto3D(self, *_args, **_kwargs):
44 val = apply(wxc.wxPyApp_GetAuto3D,(self,) + _args, _kwargs)
45 return val
46 def GetClassName(self, *_args, **_kwargs):
47 val = apply(wxc.wxPyApp_GetClassName,(self,) + _args, _kwargs)
48 return val
49 def GetExitOnFrameDelete(self, *_args, **_kwargs):
50 val = apply(wxc.wxPyApp_GetExitOnFrameDelete,(self,) + _args, _kwargs)
51 return val
52 def GetPrintMode(self, *_args, **_kwargs):
53 val = apply(wxc.wxPyApp_GetPrintMode,(self,) + _args, _kwargs)
54 return val
55 def GetTopWindow(self, *_args, **_kwargs):
56 val = apply(wxc.wxPyApp_GetTopWindow,(self,) + _args, _kwargs)
57 if val: val = wxWindowPtr(val)
58 return val
59 def GetVendorName(self, *_args, **_kwargs):
60 val = apply(wxc.wxPyApp_GetVendorName,(self,) + _args, _kwargs)
61 return val
62 def Dispatch(self, *_args, **_kwargs):
63 val = apply(wxc.wxPyApp_Dispatch,(self,) + _args, _kwargs)
64 return val
65 def ExitMainLoop(self, *_args, **_kwargs):
66 val = apply(wxc.wxPyApp_ExitMainLoop,(self,) + _args, _kwargs)
67 return val
68 def Initialized(self, *_args, **_kwargs):
69 val = apply(wxc.wxPyApp_Initialized,(self,) + _args, _kwargs)
70 return val
71 def MainLoop(self, *_args, **_kwargs):
72 val = apply(wxc.wxPyApp_MainLoop,(self,) + _args, _kwargs)
73 return val
74 def Pending(self, *_args, **_kwargs):
75 val = apply(wxc.wxPyApp_Pending,(self,) + _args, _kwargs)
76 return val
77 def ProcessIdle(self, *_args, **_kwargs):
78 val = apply(wxc.wxPyApp_ProcessIdle,(self,) + _args, _kwargs)
79 return val
80 def SetAppName(self, *_args, **_kwargs):
81 val = apply(wxc.wxPyApp_SetAppName,(self,) + _args, _kwargs)
82 return val
83 def SetAuto3D(self, *_args, **_kwargs):
84 val = apply(wxc.wxPyApp_SetAuto3D,(self,) + _args, _kwargs)
85 return val
86 def SetClassName(self, *_args, **_kwargs):
87 val = apply(wxc.wxPyApp_SetClassName,(self,) + _args, _kwargs)
88 return val
89 def SetExitOnFrameDelete(self, *_args, **_kwargs):
90 val = apply(wxc.wxPyApp_SetExitOnFrameDelete,(self,) + _args, _kwargs)
91 return val
92 def SetPrintMode(self, *_args, **_kwargs):
93 val = apply(wxc.wxPyApp_SetPrintMode,(self,) + _args, _kwargs)
94 return val
95 def SetTopWindow(self, *_args, **_kwargs):
96 val = apply(wxc.wxPyApp_SetTopWindow,(self,) + _args, _kwargs)
97 return val
98 def SetVendorName(self, *_args, **_kwargs):
99 val = apply(wxc.wxPyApp_SetVendorName,(self,) + _args, _kwargs)
100 return val
101 def GetStdIcon(self, *_args, **_kwargs):
102 val = apply(wxc.wxPyApp_GetStdIcon,(self,) + _args, _kwargs)
103 if val: val = wxIconPtr(val) ; val.thisown = 1
104 return val
105 def __repr__(self):
106 return "<C wxPyApp instance at %s>" % (self.this,)
107 class wxPyApp(wxPyAppPtr):
108 def __init__(self,*_args,**_kwargs):
109 self.this = apply(wxc.new_wxPyApp,_args,_kwargs)
110 self.thisown = 1
111
112
113
114
115 class __wxPyCleanupPtr :
116 def __init__(self,this):
117 self.this = this
118 self.thisown = 0
119 def __del__(self,wxc=wxc):
120 if self.thisown == 1 :
121 wxc.delete___wxPyCleanup(self)
122 def __repr__(self):
123 return "<C __wxPyCleanup instance at %s>" % (self.this,)
124 class __wxPyCleanup(__wxPyCleanupPtr):
125 def __init__(self,*_args,**_kwargs):
126 self.this = apply(wxc.new___wxPyCleanup,_args,_kwargs)
127 self.thisown = 1
128
129
130
131
132
133
134 #-------------- FUNCTION WRAPPERS ------------------
135
136 ptrcast = wxc.ptrcast
137
138 ptrvalue = wxc.ptrvalue
139
140 ptrset = wxc.ptrset
141
142 ptrcreate = wxc.ptrcreate
143
144 ptrfree = wxc.ptrfree
145
146 ptradd = wxc.ptradd
147
148 ptrmap = wxc.ptrmap
149
150 _wxStart = wxc._wxStart
151
152 _wxSetDictionary = wxc._wxSetDictionary
153
154
155
156 #-------------- VARIABLE WRAPPERS ------------------
157
158 wxMAJOR_VERSION = wxc.wxMAJOR_VERSION
159 wxMINOR_VERSION = wxc.wxMINOR_VERSION
160 wxRELEASE_NUMBER = wxc.wxRELEASE_NUMBER
161 wxNOT_FOUND = wxc.wxNOT_FOUND
162 wxVSCROLL = wxc.wxVSCROLL
163 wxHSCROLL = wxc.wxHSCROLL
164 wxCAPTION = wxc.wxCAPTION
165 wxDOUBLE_BORDER = wxc.wxDOUBLE_BORDER
166 wxSUNKEN_BORDER = wxc.wxSUNKEN_BORDER
167 wxRAISED_BORDER = wxc.wxRAISED_BORDER
168 wxBORDER = wxc.wxBORDER
169 wxSIMPLE_BORDER = wxc.wxSIMPLE_BORDER
170 wxSTATIC_BORDER = wxc.wxSTATIC_BORDER
171 wxTRANSPARENT_WINDOW = wxc.wxTRANSPARENT_WINDOW
172 wxNO_BORDER = wxc.wxNO_BORDER
173 wxUSER_COLOURS = wxc.wxUSER_COLOURS
174 wxNO_3D = wxc.wxNO_3D
175 wxTAB_TRAVERSAL = wxc.wxTAB_TRAVERSAL
176 wxHORIZONTAL = wxc.wxHORIZONTAL
177 wxVERTICAL = wxc.wxVERTICAL
178 wxBOTH = wxc.wxBOTH
179 wxCENTER_FRAME = wxc.wxCENTER_FRAME
180 wxSTAY_ON_TOP = wxc.wxSTAY_ON_TOP
181 wxICONIZE = wxc.wxICONIZE
182 wxMINIMIZE = wxc.wxMINIMIZE
183 wxMAXIMIZE = wxc.wxMAXIMIZE
184 wxTHICK_FRAME = wxc.wxTHICK_FRAME
185 wxSYSTEM_MENU = wxc.wxSYSTEM_MENU
186 wxMINIMIZE_BOX = wxc.wxMINIMIZE_BOX
187 wxMAXIMIZE_BOX = wxc.wxMAXIMIZE_BOX
188 wxTINY_CAPTION_HORIZ = wxc.wxTINY_CAPTION_HORIZ
189 wxTINY_CAPTION_VERT = wxc.wxTINY_CAPTION_VERT
190 wxRESIZE_BOX = wxc.wxRESIZE_BOX
191 wxRESIZE_BORDER = wxc.wxRESIZE_BORDER
192 wxDIALOG_MODAL = wxc.wxDIALOG_MODAL
193 wxDIALOG_MODELESS = wxc.wxDIALOG_MODELESS
194 wxDEFAULT_FRAME_STYLE = wxc.wxDEFAULT_FRAME_STYLE
195 wxDEFAULT_DIALOG_STYLE = wxc.wxDEFAULT_DIALOG_STYLE
196 wxFRAME_TOOL_WINDOW = wxc.wxFRAME_TOOL_WINDOW
197 wxFRAME_FLOAT_ON_PARENT = wxc.wxFRAME_FLOAT_ON_PARENT
198 wxCLIP_CHILDREN = wxc.wxCLIP_CHILDREN
199 wxRETAINED = wxc.wxRETAINED
200 wxBACKINGSTORE = wxc.wxBACKINGSTORE
201 wxTB_3DBUTTONS = wxc.wxTB_3DBUTTONS
202 wxTB_HORIZONTAL = wxc.wxTB_HORIZONTAL
203 wxTB_VERTICAL = wxc.wxTB_VERTICAL
204 wxTB_FLAT = wxc.wxTB_FLAT
205 wxCOLOURED = wxc.wxCOLOURED
206 wxFIXED_LENGTH = wxc.wxFIXED_LENGTH
207 wxALIGN_LEFT = wxc.wxALIGN_LEFT
208 wxALIGN_CENTER = wxc.wxALIGN_CENTER
209 wxALIGN_CENTRE = wxc.wxALIGN_CENTRE
210 wxALIGN_RIGHT = wxc.wxALIGN_RIGHT
211 wxLB_NEEDED_SB = wxc.wxLB_NEEDED_SB
212 wxLB_ALWAYS_SB = wxc.wxLB_ALWAYS_SB
213 wxLB_SORT = wxc.wxLB_SORT
214 wxLB_SINGLE = wxc.wxLB_SINGLE
215 wxLB_MULTIPLE = wxc.wxLB_MULTIPLE
216 wxLB_EXTENDED = wxc.wxLB_EXTENDED
217 wxLB_OWNERDRAW = wxc.wxLB_OWNERDRAW
218 wxLB_HSCROLL = wxc.wxLB_HSCROLL
219 wxPROCESS_ENTER = wxc.wxPROCESS_ENTER
220 wxPASSWORD = wxc.wxPASSWORD
221 wxTE_PROCESS_ENTER = wxc.wxTE_PROCESS_ENTER
222 wxTE_PASSWORD = wxc.wxTE_PASSWORD
223 wxTE_READONLY = wxc.wxTE_READONLY
224 wxTE_RICH = wxc.wxTE_RICH
225 wxTE_MULTILINE = wxc.wxTE_MULTILINE
226 wxCB_SIMPLE = wxc.wxCB_SIMPLE
227 wxCB_DROPDOWN = wxc.wxCB_DROPDOWN
228 wxCB_SORT = wxc.wxCB_SORT
229 wxCB_READONLY = wxc.wxCB_READONLY
230 wxRA_HORIZONTAL = wxc.wxRA_HORIZONTAL
231 wxRA_VERTICAL = wxc.wxRA_VERTICAL
232 wxRA_SPECIFY_ROWS = wxc.wxRA_SPECIFY_ROWS
233 wxRA_SPECIFY_COLS = wxc.wxRA_SPECIFY_COLS
234 wxRB_GROUP = wxc.wxRB_GROUP
235 wxGA_PROGRESSBAR = wxc.wxGA_PROGRESSBAR
236 wxGA_HORIZONTAL = wxc.wxGA_HORIZONTAL
237 wxGA_VERTICAL = wxc.wxGA_VERTICAL
238 wxGA_SMOOTH = wxc.wxGA_SMOOTH
239 wxSL_HORIZONTAL = wxc.wxSL_HORIZONTAL
240 wxSL_VERTICAL = wxc.wxSL_VERTICAL
241 wxSL_AUTOTICKS = wxc.wxSL_AUTOTICKS
242 wxSL_LABELS = wxc.wxSL_LABELS
243 wxSL_LEFT = wxc.wxSL_LEFT
244 wxSL_TOP = wxc.wxSL_TOP
245 wxSL_RIGHT = wxc.wxSL_RIGHT
246 wxSL_BOTTOM = wxc.wxSL_BOTTOM
247 wxSL_BOTH = wxc.wxSL_BOTH
248 wxSL_SELRANGE = wxc.wxSL_SELRANGE
249 wxSB_HORIZONTAL = wxc.wxSB_HORIZONTAL
250 wxSB_VERTICAL = wxc.wxSB_VERTICAL
251 wxST_SIZEGRIP = wxc.wxST_SIZEGRIP
252 wxBU_AUTODRAW = wxc.wxBU_AUTODRAW
253 wxBU_NOAUTODRAW = wxc.wxBU_NOAUTODRAW
254 wxTR_HAS_BUTTONS = wxc.wxTR_HAS_BUTTONS
255 wxTR_EDIT_LABELS = wxc.wxTR_EDIT_LABELS
256 wxTR_LINES_AT_ROOT = wxc.wxTR_LINES_AT_ROOT
257 wxTR_MULTIPLE = wxc.wxTR_MULTIPLE
258 wxTR_HAS_VARIABLE_ROW_HEIGHT = wxc.wxTR_HAS_VARIABLE_ROW_HEIGHT
259 wxLC_ICON = wxc.wxLC_ICON
260 wxLC_SMALL_ICON = wxc.wxLC_SMALL_ICON
261 wxLC_LIST = wxc.wxLC_LIST
262 wxLC_REPORT = wxc.wxLC_REPORT
263 wxLC_ALIGN_TOP = wxc.wxLC_ALIGN_TOP
264 wxLC_ALIGN_LEFT = wxc.wxLC_ALIGN_LEFT
265 wxLC_AUTOARRANGE = wxc.wxLC_AUTOARRANGE
266 wxLC_USER_TEXT = wxc.wxLC_USER_TEXT
267 wxLC_EDIT_LABELS = wxc.wxLC_EDIT_LABELS
268 wxLC_NO_HEADER = wxc.wxLC_NO_HEADER
269 wxLC_NO_SORT_HEADER = wxc.wxLC_NO_SORT_HEADER
270 wxLC_SINGLE_SEL = wxc.wxLC_SINGLE_SEL
271 wxLC_SORT_ASCENDING = wxc.wxLC_SORT_ASCENDING
272 wxLC_SORT_DESCENDING = wxc.wxLC_SORT_DESCENDING
273 wxLC_MASK_TYPE = wxc.wxLC_MASK_TYPE
274 wxLC_MASK_ALIGN = wxc.wxLC_MASK_ALIGN
275 wxLC_MASK_SORT = wxc.wxLC_MASK_SORT
276 wxSP_VERTICAL = wxc.wxSP_VERTICAL
277 wxSP_HORIZONTAL = wxc.wxSP_HORIZONTAL
278 wxSP_ARROW_KEYS = wxc.wxSP_ARROW_KEYS
279 wxSP_WRAP = wxc.wxSP_WRAP
280 wxSP_NOBORDER = wxc.wxSP_NOBORDER
281 wxSP_3D = wxc.wxSP_3D
282 wxSP_BORDER = wxc.wxSP_BORDER
283 wxFLOOD_SURFACE = wxc.wxFLOOD_SURFACE
284 wxFLOOD_BORDER = wxc.wxFLOOD_BORDER
285 wxODDEVEN_RULE = wxc.wxODDEVEN_RULE
286 wxWINDING_RULE = wxc.wxWINDING_RULE
287 wxTOOL_TOP = wxc.wxTOOL_TOP
288 wxTOOL_BOTTOM = wxc.wxTOOL_BOTTOM
289 wxTOOL_LEFT = wxc.wxTOOL_LEFT
290 wxTOOL_RIGHT = wxc.wxTOOL_RIGHT
291 wxOK = wxc.wxOK
292 wxYES_NO = wxc.wxYES_NO
293 wxCANCEL = wxc.wxCANCEL
294 wxYES = wxc.wxYES
295 wxNO = wxc.wxNO
296 wxICON_EXCLAMATION = wxc.wxICON_EXCLAMATION
297 wxICON_HAND = wxc.wxICON_HAND
298 wxICON_QUESTION = wxc.wxICON_QUESTION
299 wxICON_INFORMATION = wxc.wxICON_INFORMATION
300 wxICON_STOP = wxc.wxICON_STOP
301 wxICON_ASTERISK = wxc.wxICON_ASTERISK
302 wxICON_MASK = wxc.wxICON_MASK
303 wxCENTRE = wxc.wxCENTRE
304 wxCENTER = wxc.wxCENTER
305 wxSIZE_AUTO_WIDTH = wxc.wxSIZE_AUTO_WIDTH
306 wxSIZE_AUTO_HEIGHT = wxc.wxSIZE_AUTO_HEIGHT
307 wxSIZE_AUTO = wxc.wxSIZE_AUTO
308 wxSIZE_USE_EXISTING = wxc.wxSIZE_USE_EXISTING
309 wxSIZE_ALLOW_MINUS_ONE = wxc.wxSIZE_ALLOW_MINUS_ONE
310 wxDF_TEXT = wxc.wxDF_TEXT
311 wxDF_BITMAP = wxc.wxDF_BITMAP
312 wxDF_METAFILE = wxc.wxDF_METAFILE
313 wxDF_DIB = wxc.wxDF_DIB
314 wxDF_OEMTEXT = wxc.wxDF_OEMTEXT
315 wxDF_FILENAME = wxc.wxDF_FILENAME
316 wxPORTRAIT = wxc.wxPORTRAIT
317 wxLANDSCAPE = wxc.wxLANDSCAPE
318 wxPRINT_QUALITY_HIGH = wxc.wxPRINT_QUALITY_HIGH
319 wxPRINT_QUALITY_MEDIUM = wxc.wxPRINT_QUALITY_MEDIUM
320 wxPRINT_QUALITY_LOW = wxc.wxPRINT_QUALITY_LOW
321 wxPRINT_QUALITY_DRAFT = wxc.wxPRINT_QUALITY_DRAFT
322 wxID_OPEN = wxc.wxID_OPEN
323 wxID_CLOSE = wxc.wxID_CLOSE
324 wxID_NEW = wxc.wxID_NEW
325 wxID_SAVE = wxc.wxID_SAVE
326 wxID_SAVEAS = wxc.wxID_SAVEAS
327 wxID_REVERT = wxc.wxID_REVERT
328 wxID_EXIT = wxc.wxID_EXIT
329 wxID_UNDO = wxc.wxID_UNDO
330 wxID_REDO = wxc.wxID_REDO
331 wxID_HELP = wxc.wxID_HELP
332 wxID_PRINT = wxc.wxID_PRINT
333 wxID_PRINT_SETUP = wxc.wxID_PRINT_SETUP
334 wxID_PREVIEW = wxc.wxID_PREVIEW
335 wxID_ABOUT = wxc.wxID_ABOUT
336 wxID_HELP_CONTENTS = wxc.wxID_HELP_CONTENTS
337 wxID_HELP_COMMANDS = wxc.wxID_HELP_COMMANDS
338 wxID_HELP_PROCEDURES = wxc.wxID_HELP_PROCEDURES
339 wxID_HELP_CONTEXT = wxc.wxID_HELP_CONTEXT
340 wxID_CUT = wxc.wxID_CUT
341 wxID_COPY = wxc.wxID_COPY
342 wxID_PASTE = wxc.wxID_PASTE
343 wxID_CLEAR = wxc.wxID_CLEAR
344 wxID_FIND = wxc.wxID_FIND
345 wxID_FILE1 = wxc.wxID_FILE1
346 wxID_FILE2 = wxc.wxID_FILE2
347 wxID_FILE3 = wxc.wxID_FILE3
348 wxID_FILE4 = wxc.wxID_FILE4
349 wxID_FILE5 = wxc.wxID_FILE5
350 wxID_FILE6 = wxc.wxID_FILE6
351 wxID_FILE7 = wxc.wxID_FILE7
352 wxID_FILE8 = wxc.wxID_FILE8
353 wxID_FILE9 = wxc.wxID_FILE9
354 wxID_OK = wxc.wxID_OK
355 wxID_CANCEL = wxc.wxID_CANCEL
356 wxID_APPLY = wxc.wxID_APPLY
357 wxID_YES = wxc.wxID_YES
358 wxID_NO = wxc.wxID_NO
359 wxID_STATIC = wxc.wxID_STATIC
360 wxBITMAP_TYPE_BMP = wxc.wxBITMAP_TYPE_BMP
361 wxBITMAP_TYPE_BMP_RESOURCE = wxc.wxBITMAP_TYPE_BMP_RESOURCE
362 wxBITMAP_TYPE_ICO = wxc.wxBITMAP_TYPE_ICO
363 wxBITMAP_TYPE_ICO_RESOURCE = wxc.wxBITMAP_TYPE_ICO_RESOURCE
364 wxBITMAP_TYPE_CUR = wxc.wxBITMAP_TYPE_CUR
365 wxBITMAP_TYPE_CUR_RESOURCE = wxc.wxBITMAP_TYPE_CUR_RESOURCE
366 wxBITMAP_TYPE_XBM = wxc.wxBITMAP_TYPE_XBM
367 wxBITMAP_TYPE_XBM_DATA = wxc.wxBITMAP_TYPE_XBM_DATA
368 wxBITMAP_TYPE_XPM = wxc.wxBITMAP_TYPE_XPM
369 wxBITMAP_TYPE_XPM_DATA = wxc.wxBITMAP_TYPE_XPM_DATA
370 wxBITMAP_TYPE_TIF = wxc.wxBITMAP_TYPE_TIF
371 wxBITMAP_TYPE_TIF_RESOURCE = wxc.wxBITMAP_TYPE_TIF_RESOURCE
372 wxBITMAP_TYPE_GIF = wxc.wxBITMAP_TYPE_GIF
373 wxBITMAP_TYPE_GIF_RESOURCE = wxc.wxBITMAP_TYPE_GIF_RESOURCE
374 wxBITMAP_TYPE_PNG = wxc.wxBITMAP_TYPE_PNG
375 wxBITMAP_TYPE_PNG_RESOURCE = wxc.wxBITMAP_TYPE_PNG_RESOURCE
376 wxBITMAP_TYPE_ANY = wxc.wxBITMAP_TYPE_ANY
377 wxBITMAP_TYPE_RESOURCE = wxc.wxBITMAP_TYPE_RESOURCE
378 wxBITMAP_TYPE_JPEG = wxc.wxBITMAP_TYPE_JPEG
379 wxOPEN = wxc.wxOPEN
380 wxSAVE = wxc.wxSAVE
381 wxHIDE_READONLY = wxc.wxHIDE_READONLY
382 wxOVERWRITE_PROMPT = wxc.wxOVERWRITE_PROMPT
383 wxACCEL_ALT = wxc.wxACCEL_ALT
384 wxACCEL_CTRL = wxc.wxACCEL_CTRL
385 wxACCEL_SHIFT = wxc.wxACCEL_SHIFT
386 wxPD_AUTO_HIDE = wxc.wxPD_AUTO_HIDE
387 wxPD_APP_MODAL = wxc.wxPD_APP_MODAL
388 wxPD_CAN_ABORT = wxc.wxPD_CAN_ABORT
389 wxPD_ELAPSED_TIME = wxc.wxPD_ELAPSED_TIME
390 wxPD_ESTIMATED_TIME = wxc.wxPD_ESTIMATED_TIME
391 wxPD_REMAINING_TIME = wxc.wxPD_REMAINING_TIME
392 wxNO_DEFAULT = wxc.wxNO_DEFAULT
393 wxMENU_TEAROFF = wxc.wxMENU_TEAROFF
394 wxNO_FULL_REPAINT_ON_RESIZE = wxc.wxNO_FULL_REPAINT_ON_RESIZE
395 wxDEFAULT = wxc.wxDEFAULT
396 wxDECORATIVE = wxc.wxDECORATIVE
397 wxROMAN = wxc.wxROMAN
398 wxSCRIPT = wxc.wxSCRIPT
399 wxSWISS = wxc.wxSWISS
400 wxMODERN = wxc.wxMODERN
401 wxTELETYPE = wxc.wxTELETYPE
402 wxVARIABLE = wxc.wxVARIABLE
403 wxFIXED = wxc.wxFIXED
404 wxNORMAL = wxc.wxNORMAL
405 wxLIGHT = wxc.wxLIGHT
406 wxBOLD = wxc.wxBOLD
407 wxITALIC = wxc.wxITALIC
408 wxSLANT = wxc.wxSLANT
409 wxSOLID = wxc.wxSOLID
410 wxDOT = wxc.wxDOT
411 wxLONG_DASH = wxc.wxLONG_DASH
412 wxSHORT_DASH = wxc.wxSHORT_DASH
413 wxDOT_DASH = wxc.wxDOT_DASH
414 wxUSER_DASH = wxc.wxUSER_DASH
415 wxTRANSPARENT = wxc.wxTRANSPARENT
416 wxSTIPPLE = wxc.wxSTIPPLE
417 wxBDIAGONAL_HATCH = wxc.wxBDIAGONAL_HATCH
418 wxCROSSDIAG_HATCH = wxc.wxCROSSDIAG_HATCH
419 wxFDIAGONAL_HATCH = wxc.wxFDIAGONAL_HATCH
420 wxCROSS_HATCH = wxc.wxCROSS_HATCH
421 wxHORIZONTAL_HATCH = wxc.wxHORIZONTAL_HATCH
422 wxVERTICAL_HATCH = wxc.wxVERTICAL_HATCH
423 wxJOIN_BEVEL = wxc.wxJOIN_BEVEL
424 wxJOIN_MITER = wxc.wxJOIN_MITER
425 wxJOIN_ROUND = wxc.wxJOIN_ROUND
426 wxCAP_ROUND = wxc.wxCAP_ROUND
427 wxCAP_PROJECTING = wxc.wxCAP_PROJECTING
428 wxCAP_BUTT = wxc.wxCAP_BUTT
429 wxCLEAR = wxc.wxCLEAR
430 wxXOR = wxc.wxXOR
431 wxINVERT = wxc.wxINVERT
432 wxOR_REVERSE = wxc.wxOR_REVERSE
433 wxAND_REVERSE = wxc.wxAND_REVERSE
434 wxCOPY = wxc.wxCOPY
435 wxAND = wxc.wxAND
436 wxAND_INVERT = wxc.wxAND_INVERT
437 wxNO_OP = wxc.wxNO_OP
438 wxNOR = wxc.wxNOR
439 wxEQUIV = wxc.wxEQUIV
440 wxSRC_INVERT = wxc.wxSRC_INVERT
441 wxOR_INVERT = wxc.wxOR_INVERT
442 wxNAND = wxc.wxNAND
443 wxOR = wxc.wxOR
444 wxSET = wxc.wxSET
445 wxSRC_OR = wxc.wxSRC_OR
446 wxSRC_AND = wxc.wxSRC_AND
447 WXK_BACK = wxc.WXK_BACK
448 WXK_TAB = wxc.WXK_TAB
449 WXK_RETURN = wxc.WXK_RETURN
450 WXK_ESCAPE = wxc.WXK_ESCAPE
451 WXK_SPACE = wxc.WXK_SPACE
452 WXK_DELETE = wxc.WXK_DELETE
453 WXK_START = wxc.WXK_START
454 WXK_LBUTTON = wxc.WXK_LBUTTON
455 WXK_RBUTTON = wxc.WXK_RBUTTON
456 WXK_CANCEL = wxc.WXK_CANCEL
457 WXK_MBUTTON = wxc.WXK_MBUTTON
458 WXK_CLEAR = wxc.WXK_CLEAR
459 WXK_SHIFT = wxc.WXK_SHIFT
460 WXK_CONTROL = wxc.WXK_CONTROL
461 WXK_MENU = wxc.WXK_MENU
462 WXK_PAUSE = wxc.WXK_PAUSE
463 WXK_CAPITAL = wxc.WXK_CAPITAL
464 WXK_PRIOR = wxc.WXK_PRIOR
465 WXK_NEXT = wxc.WXK_NEXT
466 WXK_END = wxc.WXK_END
467 WXK_HOME = wxc.WXK_HOME
468 WXK_LEFT = wxc.WXK_LEFT
469 WXK_UP = wxc.WXK_UP
470 WXK_RIGHT = wxc.WXK_RIGHT
471 WXK_DOWN = wxc.WXK_DOWN
472 WXK_SELECT = wxc.WXK_SELECT
473 WXK_PRINT = wxc.WXK_PRINT
474 WXK_EXECUTE = wxc.WXK_EXECUTE
475 WXK_SNAPSHOT = wxc.WXK_SNAPSHOT
476 WXK_INSERT = wxc.WXK_INSERT
477 WXK_HELP = wxc.WXK_HELP
478 WXK_NUMPAD0 = wxc.WXK_NUMPAD0
479 WXK_NUMPAD1 = wxc.WXK_NUMPAD1
480 WXK_NUMPAD2 = wxc.WXK_NUMPAD2
481 WXK_NUMPAD3 = wxc.WXK_NUMPAD3
482 WXK_NUMPAD4 = wxc.WXK_NUMPAD4
483 WXK_NUMPAD5 = wxc.WXK_NUMPAD5
484 WXK_NUMPAD6 = wxc.WXK_NUMPAD6
485 WXK_NUMPAD7 = wxc.WXK_NUMPAD7
486 WXK_NUMPAD8 = wxc.WXK_NUMPAD8
487 WXK_NUMPAD9 = wxc.WXK_NUMPAD9
488 WXK_MULTIPLY = wxc.WXK_MULTIPLY
489 WXK_ADD = wxc.WXK_ADD
490 WXK_SEPARATOR = wxc.WXK_SEPARATOR
491 WXK_SUBTRACT = wxc.WXK_SUBTRACT
492 WXK_DECIMAL = wxc.WXK_DECIMAL
493 WXK_DIVIDE = wxc.WXK_DIVIDE
494 WXK_F1 = wxc.WXK_F1
495 WXK_F2 = wxc.WXK_F2
496 WXK_F3 = wxc.WXK_F3
497 WXK_F4 = wxc.WXK_F4
498 WXK_F5 = wxc.WXK_F5
499 WXK_F6 = wxc.WXK_F6
500 WXK_F7 = wxc.WXK_F7
501 WXK_F8 = wxc.WXK_F8
502 WXK_F9 = wxc.WXK_F9
503 WXK_F10 = wxc.WXK_F10
504 WXK_F11 = wxc.WXK_F11
505 WXK_F12 = wxc.WXK_F12
506 WXK_F13 = wxc.WXK_F13
507 WXK_F14 = wxc.WXK_F14
508 WXK_F15 = wxc.WXK_F15
509 WXK_F16 = wxc.WXK_F16
510 WXK_F17 = wxc.WXK_F17
511 WXK_F18 = wxc.WXK_F18
512 WXK_F19 = wxc.WXK_F19
513 WXK_F20 = wxc.WXK_F20
514 WXK_F21 = wxc.WXK_F21
515 WXK_F22 = wxc.WXK_F22
516 WXK_F23 = wxc.WXK_F23
517 WXK_F24 = wxc.WXK_F24
518 WXK_NUMLOCK = wxc.WXK_NUMLOCK
519 WXK_SCROLL = wxc.WXK_SCROLL
520 WXK_PAGEUP = wxc.WXK_PAGEUP
521 WXK_PAGEDOWN = wxc.WXK_PAGEDOWN
522 wxCURSOR_NONE = wxc.wxCURSOR_NONE
523 wxCURSOR_ARROW = wxc.wxCURSOR_ARROW
524 wxCURSOR_BULLSEYE = wxc.wxCURSOR_BULLSEYE
525 wxCURSOR_CHAR = wxc.wxCURSOR_CHAR
526 wxCURSOR_CROSS = wxc.wxCURSOR_CROSS
527 wxCURSOR_HAND = wxc.wxCURSOR_HAND
528 wxCURSOR_IBEAM = wxc.wxCURSOR_IBEAM
529 wxCURSOR_LEFT_BUTTON = wxc.wxCURSOR_LEFT_BUTTON
530 wxCURSOR_MAGNIFIER = wxc.wxCURSOR_MAGNIFIER
531 wxCURSOR_MIDDLE_BUTTON = wxc.wxCURSOR_MIDDLE_BUTTON
532 wxCURSOR_NO_ENTRY = wxc.wxCURSOR_NO_ENTRY
533 wxCURSOR_PAINT_BRUSH = wxc.wxCURSOR_PAINT_BRUSH
534 wxCURSOR_PENCIL = wxc.wxCURSOR_PENCIL
535 wxCURSOR_POINT_LEFT = wxc.wxCURSOR_POINT_LEFT
536 wxCURSOR_POINT_RIGHT = wxc.wxCURSOR_POINT_RIGHT
537 wxCURSOR_QUESTION_ARROW = wxc.wxCURSOR_QUESTION_ARROW
538 wxCURSOR_RIGHT_BUTTON = wxc.wxCURSOR_RIGHT_BUTTON
539 wxCURSOR_SIZENESW = wxc.wxCURSOR_SIZENESW
540 wxCURSOR_SIZENS = wxc.wxCURSOR_SIZENS
541 wxCURSOR_SIZENWSE = wxc.wxCURSOR_SIZENWSE
542 wxCURSOR_SIZEWE = wxc.wxCURSOR_SIZEWE
543 wxCURSOR_SIZING = wxc.wxCURSOR_SIZING
544 wxCURSOR_SPRAYCAN = wxc.wxCURSOR_SPRAYCAN
545 wxCURSOR_WAIT = wxc.wxCURSOR_WAIT
546 wxCURSOR_WATCH = wxc.wxCURSOR_WATCH
547 wxCURSOR_BLANK = wxc.wxCURSOR_BLANK
548 wxPAPER_NONE = wxc.wxPAPER_NONE
549 wxPAPER_LETTER = wxc.wxPAPER_LETTER
550 wxPAPER_LEGAL = wxc.wxPAPER_LEGAL
551 wxPAPER_A4 = wxc.wxPAPER_A4
552 wxPAPER_CSHEET = wxc.wxPAPER_CSHEET
553 wxPAPER_DSHEET = wxc.wxPAPER_DSHEET
554 wxPAPER_ESHEET = wxc.wxPAPER_ESHEET
555 wxPAPER_LETTERSMALL = wxc.wxPAPER_LETTERSMALL
556 wxPAPER_TABLOID = wxc.wxPAPER_TABLOID
557 wxPAPER_LEDGER = wxc.wxPAPER_LEDGER
558 wxPAPER_STATEMENT = wxc.wxPAPER_STATEMENT
559 wxPAPER_EXECUTIVE = wxc.wxPAPER_EXECUTIVE
560 wxPAPER_A3 = wxc.wxPAPER_A3
561 wxPAPER_A4SMALL = wxc.wxPAPER_A4SMALL
562 wxPAPER_A5 = wxc.wxPAPER_A5
563 wxPAPER_B4 = wxc.wxPAPER_B4
564 wxPAPER_B5 = wxc.wxPAPER_B5
565 wxPAPER_FOLIO = wxc.wxPAPER_FOLIO
566 wxPAPER_QUARTO = wxc.wxPAPER_QUARTO
567 wxPAPER_10X14 = wxc.wxPAPER_10X14
568 wxPAPER_11X17 = wxc.wxPAPER_11X17
569 wxPAPER_NOTE = wxc.wxPAPER_NOTE
570 wxPAPER_ENV_9 = wxc.wxPAPER_ENV_9
571 wxPAPER_ENV_10 = wxc.wxPAPER_ENV_10
572 wxPAPER_ENV_11 = wxc.wxPAPER_ENV_11
573 wxPAPER_ENV_12 = wxc.wxPAPER_ENV_12
574 wxPAPER_ENV_14 = wxc.wxPAPER_ENV_14
575 wxPAPER_ENV_DL = wxc.wxPAPER_ENV_DL
576 wxPAPER_ENV_C5 = wxc.wxPAPER_ENV_C5
577 wxPAPER_ENV_C3 = wxc.wxPAPER_ENV_C3
578 wxPAPER_ENV_C4 = wxc.wxPAPER_ENV_C4
579 wxPAPER_ENV_C6 = wxc.wxPAPER_ENV_C6
580 wxPAPER_ENV_C65 = wxc.wxPAPER_ENV_C65
581 wxPAPER_ENV_B4 = wxc.wxPAPER_ENV_B4
582 wxPAPER_ENV_B5 = wxc.wxPAPER_ENV_B5
583 wxPAPER_ENV_B6 = wxc.wxPAPER_ENV_B6
584 wxPAPER_ENV_ITALY = wxc.wxPAPER_ENV_ITALY
585 wxPAPER_ENV_MONARCH = wxc.wxPAPER_ENV_MONARCH
586 wxPAPER_ENV_PERSONAL = wxc.wxPAPER_ENV_PERSONAL
587 wxPAPER_FANFOLD_US = wxc.wxPAPER_FANFOLD_US
588 wxPAPER_FANFOLD_STD_GERMAN = wxc.wxPAPER_FANFOLD_STD_GERMAN
589 wxPAPER_FANFOLD_LGL_GERMAN = wxc.wxPAPER_FANFOLD_LGL_GERMAN
590 wxPAPER_ISO_B4 = wxc.wxPAPER_ISO_B4
591 wxPAPER_JAPANESE_POSTCARD = wxc.wxPAPER_JAPANESE_POSTCARD
592 wxPAPER_9X11 = wxc.wxPAPER_9X11
593 wxPAPER_10X11 = wxc.wxPAPER_10X11
594 wxPAPER_15X11 = wxc.wxPAPER_15X11
595 wxPAPER_ENV_INVITE = wxc.wxPAPER_ENV_INVITE
596 wxPAPER_LETTER_EXTRA = wxc.wxPAPER_LETTER_EXTRA
597 wxPAPER_LEGAL_EXTRA = wxc.wxPAPER_LEGAL_EXTRA
598 wxPAPER_TABLOID_EXTRA = wxc.wxPAPER_TABLOID_EXTRA
599 wxPAPER_A4_EXTRA = wxc.wxPAPER_A4_EXTRA
600 wxPAPER_LETTER_TRANSVERSE = wxc.wxPAPER_LETTER_TRANSVERSE
601 wxPAPER_A4_TRANSVERSE = wxc.wxPAPER_A4_TRANSVERSE
602 wxPAPER_LETTER_EXTRA_TRANSVERSE = wxc.wxPAPER_LETTER_EXTRA_TRANSVERSE
603 wxPAPER_A_PLUS = wxc.wxPAPER_A_PLUS
604 wxPAPER_B_PLUS = wxc.wxPAPER_B_PLUS
605 wxPAPER_LETTER_PLUS = wxc.wxPAPER_LETTER_PLUS
606 wxPAPER_A4_PLUS = wxc.wxPAPER_A4_PLUS
607 wxPAPER_A5_TRANSVERSE = wxc.wxPAPER_A5_TRANSVERSE
608 wxPAPER_B5_TRANSVERSE = wxc.wxPAPER_B5_TRANSVERSE
609 wxPAPER_A3_EXTRA = wxc.wxPAPER_A3_EXTRA
610 wxPAPER_A5_EXTRA = wxc.wxPAPER_A5_EXTRA
611 wxPAPER_B5_EXTRA = wxc.wxPAPER_B5_EXTRA
612 wxPAPER_A2 = wxc.wxPAPER_A2
613 wxPAPER_A3_TRANSVERSE = wxc.wxPAPER_A3_TRANSVERSE
614 wxPAPER_A3_EXTRA_TRANSVERSE = wxc.wxPAPER_A3_EXTRA_TRANSVERSE
615 wxDUPLEX_SIMPLEX = wxc.wxDUPLEX_SIMPLEX
616 wxDUPLEX_HORIZONTAL = wxc.wxDUPLEX_HORIZONTAL
617 wxDUPLEX_VERTICAL = wxc.wxDUPLEX_VERTICAL
618 FALSE = wxc.FALSE
619 false = wxc.false
620 TRUE = wxc.TRUE
621 true = wxc.true
622 wxVERSION_STRING = wxc.wxVERSION_STRING
623 wxEVT_NULL = wxc.wxEVT_NULL
624 wxEVT_FIRST = wxc.wxEVT_FIRST
625 wxEVT_COMMAND_BUTTON_CLICKED = wxc.wxEVT_COMMAND_BUTTON_CLICKED
626 wxEVT_COMMAND_CHECKBOX_CLICKED = wxc.wxEVT_COMMAND_CHECKBOX_CLICKED
627 wxEVT_COMMAND_CHOICE_SELECTED = wxc.wxEVT_COMMAND_CHOICE_SELECTED
628 wxEVT_COMMAND_LISTBOX_SELECTED = wxc.wxEVT_COMMAND_LISTBOX_SELECTED
629 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED = wxc.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
630 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED = wxc.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
631 wxEVT_COMMAND_TEXT_UPDATED = wxc.wxEVT_COMMAND_TEXT_UPDATED
632 wxEVT_COMMAND_TEXT_ENTER = wxc.wxEVT_COMMAND_TEXT_ENTER
633 wxEVT_COMMAND_MENU_SELECTED = wxc.wxEVT_COMMAND_MENU_SELECTED
634 wxEVT_COMMAND_SLIDER_UPDATED = wxc.wxEVT_COMMAND_SLIDER_UPDATED
635 wxEVT_COMMAND_RADIOBOX_SELECTED = wxc.wxEVT_COMMAND_RADIOBOX_SELECTED
636 wxEVT_COMMAND_RADIOBUTTON_SELECTED = wxc.wxEVT_COMMAND_RADIOBUTTON_SELECTED
637 wxEVT_COMMAND_SCROLLBAR_UPDATED = wxc.wxEVT_COMMAND_SCROLLBAR_UPDATED
638 wxEVT_COMMAND_VLBOX_SELECTED = wxc.wxEVT_COMMAND_VLBOX_SELECTED
639 wxEVT_COMMAND_COMBOBOX_SELECTED = wxc.wxEVT_COMMAND_COMBOBOX_SELECTED
640 wxEVT_COMMAND_TOOL_CLICKED = wxc.wxEVT_COMMAND_TOOL_CLICKED
641 wxEVT_COMMAND_TOOL_RCLICKED = wxc.wxEVT_COMMAND_TOOL_RCLICKED
642 wxEVT_COMMAND_TOOL_ENTER = wxc.wxEVT_COMMAND_TOOL_ENTER
643 wxEVT_SET_FOCUS = wxc.wxEVT_SET_FOCUS
644 wxEVT_KILL_FOCUS = wxc.wxEVT_KILL_FOCUS
645 wxEVT_LEFT_DOWN = wxc.wxEVT_LEFT_DOWN
646 wxEVT_LEFT_UP = wxc.wxEVT_LEFT_UP
647 wxEVT_MIDDLE_DOWN = wxc.wxEVT_MIDDLE_DOWN
648 wxEVT_MIDDLE_UP = wxc.wxEVT_MIDDLE_UP
649 wxEVT_RIGHT_DOWN = wxc.wxEVT_RIGHT_DOWN
650 wxEVT_RIGHT_UP = wxc.wxEVT_RIGHT_UP
651 wxEVT_MOTION = wxc.wxEVT_MOTION
652 wxEVT_ENTER_WINDOW = wxc.wxEVT_ENTER_WINDOW
653 wxEVT_LEAVE_WINDOW = wxc.wxEVT_LEAVE_WINDOW
654 wxEVT_LEFT_DCLICK = wxc.wxEVT_LEFT_DCLICK
655 wxEVT_MIDDLE_DCLICK = wxc.wxEVT_MIDDLE_DCLICK
656 wxEVT_RIGHT_DCLICK = wxc.wxEVT_RIGHT_DCLICK
657 wxEVT_NC_LEFT_DOWN = wxc.wxEVT_NC_LEFT_DOWN
658 wxEVT_NC_LEFT_UP = wxc.wxEVT_NC_LEFT_UP
659 wxEVT_NC_MIDDLE_DOWN = wxc.wxEVT_NC_MIDDLE_DOWN
660 wxEVT_NC_MIDDLE_UP = wxc.wxEVT_NC_MIDDLE_UP
661 wxEVT_NC_RIGHT_DOWN = wxc.wxEVT_NC_RIGHT_DOWN
662 wxEVT_NC_RIGHT_UP = wxc.wxEVT_NC_RIGHT_UP
663 wxEVT_NC_MOTION = wxc.wxEVT_NC_MOTION
664 wxEVT_NC_ENTER_WINDOW = wxc.wxEVT_NC_ENTER_WINDOW
665 wxEVT_NC_LEAVE_WINDOW = wxc.wxEVT_NC_LEAVE_WINDOW
666 wxEVT_NC_LEFT_DCLICK = wxc.wxEVT_NC_LEFT_DCLICK
667 wxEVT_NC_MIDDLE_DCLICK = wxc.wxEVT_NC_MIDDLE_DCLICK
668 wxEVT_NC_RIGHT_DCLICK = wxc.wxEVT_NC_RIGHT_DCLICK
669 wxEVT_CHAR = wxc.wxEVT_CHAR
670 wxEVT_KEY_DOWN = wxc.wxEVT_KEY_DOWN
671 wxEVT_KEY_UP = wxc.wxEVT_KEY_UP
672 wxEVT_CHAR_HOOK = wxc.wxEVT_CHAR_HOOK
673 wxEVT_SCROLL_TOP = wxc.wxEVT_SCROLL_TOP
674 wxEVT_SCROLL_BOTTOM = wxc.wxEVT_SCROLL_BOTTOM
675 wxEVT_SCROLL_LINEUP = wxc.wxEVT_SCROLL_LINEUP
676 wxEVT_SCROLL_LINEDOWN = wxc.wxEVT_SCROLL_LINEDOWN
677 wxEVT_SCROLL_PAGEUP = wxc.wxEVT_SCROLL_PAGEUP
678 wxEVT_SCROLL_PAGEDOWN = wxc.wxEVT_SCROLL_PAGEDOWN
679 wxEVT_SCROLL_THUMBTRACK = wxc.wxEVT_SCROLL_THUMBTRACK
680 wxEVT_SCROLLWIN_TOP = wxc.wxEVT_SCROLLWIN_TOP
681 wxEVT_SCROLLWIN_BOTTOM = wxc.wxEVT_SCROLLWIN_BOTTOM
682 wxEVT_SCROLLWIN_LINEUP = wxc.wxEVT_SCROLLWIN_LINEUP
683 wxEVT_SCROLLWIN_LINEDOWN = wxc.wxEVT_SCROLLWIN_LINEDOWN
684 wxEVT_SCROLLWIN_PAGEUP = wxc.wxEVT_SCROLLWIN_PAGEUP
685 wxEVT_SCROLLWIN_PAGEDOWN = wxc.wxEVT_SCROLLWIN_PAGEDOWN
686 wxEVT_SCROLLWIN_THUMBTRACK = wxc.wxEVT_SCROLLWIN_THUMBTRACK
687 wxEVT_SIZE = wxc.wxEVT_SIZE
688 wxEVT_MOVE = wxc.wxEVT_MOVE
689 wxEVT_CLOSE_WINDOW = wxc.wxEVT_CLOSE_WINDOW
690 wxEVT_END_SESSION = wxc.wxEVT_END_SESSION
691 wxEVT_QUERY_END_SESSION = wxc.wxEVT_QUERY_END_SESSION
692 wxEVT_ACTIVATE_APP = wxc.wxEVT_ACTIVATE_APP
693 wxEVT_POWER = wxc.wxEVT_POWER
694 wxEVT_ACTIVATE = wxc.wxEVT_ACTIVATE
695 wxEVT_CREATE = wxc.wxEVT_CREATE
696 wxEVT_DESTROY = wxc.wxEVT_DESTROY
697 wxEVT_SHOW = wxc.wxEVT_SHOW
698 wxEVT_ICONIZE = wxc.wxEVT_ICONIZE
699 wxEVT_MAXIMIZE = wxc.wxEVT_MAXIMIZE
700 wxEVT_MOUSE_CAPTURE_CHANGED = wxc.wxEVT_MOUSE_CAPTURE_CHANGED
701 wxEVT_PAINT = wxc.wxEVT_PAINT
702 wxEVT_ERASE_BACKGROUND = wxc.wxEVT_ERASE_BACKGROUND
703 wxEVT_NC_PAINT = wxc.wxEVT_NC_PAINT
704 wxEVT_PAINT_ICON = wxc.wxEVT_PAINT_ICON
705 wxEVT_MENU_CHAR = wxc.wxEVT_MENU_CHAR
706 wxEVT_MENU_INIT = wxc.wxEVT_MENU_INIT
707 wxEVT_MENU_HIGHLIGHT = wxc.wxEVT_MENU_HIGHLIGHT
708 wxEVT_POPUP_MENU_INIT = wxc.wxEVT_POPUP_MENU_INIT
709 wxEVT_CONTEXT_MENU = wxc.wxEVT_CONTEXT_MENU
710 wxEVT_SYS_COLOUR_CHANGED = wxc.wxEVT_SYS_COLOUR_CHANGED
711 wxEVT_SETTING_CHANGED = wxc.wxEVT_SETTING_CHANGED
712 wxEVT_QUERY_NEW_PALETTE = wxc.wxEVT_QUERY_NEW_PALETTE
713 wxEVT_PALETTE_CHANGED = wxc.wxEVT_PALETTE_CHANGED
714 wxEVT_JOY_BUTTON_DOWN = wxc.wxEVT_JOY_BUTTON_DOWN
715 wxEVT_JOY_BUTTON_UP = wxc.wxEVT_JOY_BUTTON_UP
716 wxEVT_JOY_MOVE = wxc.wxEVT_JOY_MOVE
717 wxEVT_JOY_ZMOVE = wxc.wxEVT_JOY_ZMOVE
718 wxEVT_DROP_FILES = wxc.wxEVT_DROP_FILES
719 wxEVT_DRAW_ITEM = wxc.wxEVT_DRAW_ITEM
720 wxEVT_MEASURE_ITEM = wxc.wxEVT_MEASURE_ITEM
721 wxEVT_COMPARE_ITEM = wxc.wxEVT_COMPARE_ITEM
722 wxEVT_INIT_DIALOG = wxc.wxEVT_INIT_DIALOG
723 wxEVT_IDLE = wxc.wxEVT_IDLE
724 wxEVT_UPDATE_UI = wxc.wxEVT_UPDATE_UI
725 wxEVT_COMMAND_LEFT_CLICK = wxc.wxEVT_COMMAND_LEFT_CLICK
726 wxEVT_COMMAND_LEFT_DCLICK = wxc.wxEVT_COMMAND_LEFT_DCLICK
727 wxEVT_COMMAND_RIGHT_CLICK = wxc.wxEVT_COMMAND_RIGHT_CLICK
728 wxEVT_COMMAND_RIGHT_DCLICK = wxc.wxEVT_COMMAND_RIGHT_DCLICK
729 wxEVT_COMMAND_SET_FOCUS = wxc.wxEVT_COMMAND_SET_FOCUS
730 wxEVT_COMMAND_KILL_FOCUS = wxc.wxEVT_COMMAND_KILL_FOCUS
731 wxEVT_COMMAND_ENTER = wxc.wxEVT_COMMAND_ENTER
732 wxEVT_COMMAND_TREE_BEGIN_DRAG = wxc.wxEVT_COMMAND_TREE_BEGIN_DRAG
733 wxEVT_COMMAND_TREE_BEGIN_RDRAG = wxc.wxEVT_COMMAND_TREE_BEGIN_RDRAG
734 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT = wxc.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
735 wxEVT_COMMAND_TREE_END_LABEL_EDIT = wxc.wxEVT_COMMAND_TREE_END_LABEL_EDIT
736 wxEVT_COMMAND_TREE_DELETE_ITEM = wxc.wxEVT_COMMAND_TREE_DELETE_ITEM
737 wxEVT_COMMAND_TREE_GET_INFO = wxc.wxEVT_COMMAND_TREE_GET_INFO
738 wxEVT_COMMAND_TREE_SET_INFO = wxc.wxEVT_COMMAND_TREE_SET_INFO
739 wxEVT_COMMAND_TREE_ITEM_EXPANDED = wxc.wxEVT_COMMAND_TREE_ITEM_EXPANDED
740 wxEVT_COMMAND_TREE_ITEM_EXPANDING = wxc.wxEVT_COMMAND_TREE_ITEM_EXPANDING
741 wxEVT_COMMAND_TREE_ITEM_COLLAPSED = wxc.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
742 wxEVT_COMMAND_TREE_ITEM_COLLAPSING = wxc.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
743 wxEVT_COMMAND_TREE_SEL_CHANGED = wxc.wxEVT_COMMAND_TREE_SEL_CHANGED
744 wxEVT_COMMAND_TREE_SEL_CHANGING = wxc.wxEVT_COMMAND_TREE_SEL_CHANGING
745 wxEVT_COMMAND_TREE_KEY_DOWN = wxc.wxEVT_COMMAND_TREE_KEY_DOWN
746 wxEVT_COMMAND_LIST_BEGIN_DRAG = wxc.wxEVT_COMMAND_LIST_BEGIN_DRAG
747 wxEVT_COMMAND_LIST_BEGIN_RDRAG = wxc.wxEVT_COMMAND_LIST_BEGIN_RDRAG
748 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT = wxc.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
749 wxEVT_COMMAND_LIST_END_LABEL_EDIT = wxc.wxEVT_COMMAND_LIST_END_LABEL_EDIT
750 wxEVT_COMMAND_LIST_DELETE_ITEM = wxc.wxEVT_COMMAND_LIST_DELETE_ITEM
751 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS = wxc.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
752 wxEVT_COMMAND_LIST_GET_INFO = wxc.wxEVT_COMMAND_LIST_GET_INFO
753 wxEVT_COMMAND_LIST_SET_INFO = wxc.wxEVT_COMMAND_LIST_SET_INFO
754 wxEVT_COMMAND_LIST_ITEM_SELECTED = wxc.wxEVT_COMMAND_LIST_ITEM_SELECTED
755 wxEVT_COMMAND_LIST_ITEM_DESELECTED = wxc.wxEVT_COMMAND_LIST_ITEM_DESELECTED
756 wxEVT_COMMAND_LIST_KEY_DOWN = wxc.wxEVT_COMMAND_LIST_KEY_DOWN
757 wxEVT_COMMAND_LIST_INSERT_ITEM = wxc.wxEVT_COMMAND_LIST_INSERT_ITEM
758 wxEVT_COMMAND_LIST_COL_CLICK = wxc.wxEVT_COMMAND_LIST_COL_CLICK
759 wxEVT_COMMAND_LIST_ITEM_ACTIVATED = wxc.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
760 wxEVT_COMMAND_TAB_SEL_CHANGED = wxc.wxEVT_COMMAND_TAB_SEL_CHANGED
761 wxEVT_COMMAND_TAB_SEL_CHANGING = wxc.wxEVT_COMMAND_TAB_SEL_CHANGING
762 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = wxc.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
763 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = wxc.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
764 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = wxc.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
765 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = wxc.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
766 wxEVT_COMMAND_SPLITTER_UNSPLIT = wxc.wxEVT_COMMAND_SPLITTER_UNSPLIT
767 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = wxc.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
768 __version__ = wxc.__version__
769 cvar = wxc.cvar
770 wxPyDefaultPosition = wxPointPtr(wxc.cvar.wxPyDefaultPosition)
771 wxPyDefaultSize = wxSizePtr(wxc.cvar.wxPyDefaultSize)
772
773
774 #-------------- USER INCLUDE -----------------------
775
776 #----------------------------------------------------------------------------
777 # Name: _extra.py
778 # Purpose: This file is appended to the shadow class file generated
779 # by SWIG. We add some unSWIGable things here.
780 #
781 # Author: Robin Dunn
782 #
783 # Created: 6/30/97
784 # RCS-ID: $Id$
785 # Copyright: (c) 1998 by Total Control Software
786 # Licence: wxWindows license
787 #----------------------------------------------------------------------------
788
789 import sys
790
791 #----------------------------------------------------------------------
792 # This gives this module's dictionary to the C++ extension code...
793
794 _wxSetDictionary(vars())
795
796
797 #----------------------------------------------------------------------
798 #----------------------------------------------------------------------
799 # Helper function to link python methods to wxWindows virtual
800 # functions by name.
801
802 def _checkForCallback(obj, name, event, theID=-1):
803 try: cb = getattr(obj, name)
804 except: pass
805 else: obj.Connect(theID, -1, event, cb)
806
807 ## def _checkClassCallback(obj, name):
808 ## try: cb = getattr(obj, name)
809 ## except: pass
810 ## else: obj._addCallback(name, cb)
811
812
813 def _StdWindowCallbacks(win):
814 _checkForCallback(win, "OnChar", wxEVT_CHAR)
815 _checkForCallback(win, "OnSize", wxEVT_SIZE)
816 _checkForCallback(win, "OnEraseBackground", wxEVT_ERASE_BACKGROUND)
817 _checkForCallback(win, "OnSysColourChanged", wxEVT_SYS_COLOUR_CHANGED)
818 _checkForCallback(win, "OnInitDialog", wxEVT_INIT_DIALOG)
819 _checkForCallback(win, "OnPaint", wxEVT_PAINT)
820 _checkForCallback(win, "OnIdle", wxEVT_IDLE)
821
822
823 def _StdFrameCallbacks(win):
824 _StdWindowCallbacks(win)
825 _checkForCallback(win, "OnActivate", wxEVT_ACTIVATE)
826 _checkForCallback(win, "OnMenuHighlight", wxEVT_MENU_HIGHLIGHT)
827 _checkForCallback(win, "OnCloseWindow", wxEVT_CLOSE_WINDOW)
828
829
830 def _StdDialogCallbacks(win):
831 _StdWindowCallbacks(win)
832 _checkForCallback(win, "OnOk", wxEVT_COMMAND_BUTTON_CLICKED, wxID_OK)
833 _checkForCallback(win, "OnApply", wxEVT_COMMAND_BUTTON_CLICKED, wxID_APPLY)
834 _checkForCallback(win, "OnCancel", wxEVT_COMMAND_BUTTON_CLICKED, wxID_CANCEL)
835 _checkForCallback(win, "OnCloseWindow", wxEVT_CLOSE_WINDOW)
836 _checkForCallback(win, "OnCharHook", wxEVT_CHAR_HOOK)
837
838
839 def _StdOnScrollCallbacks(win):
840 try: cb = getattr(win, "OnScroll")
841 except: pass
842 else: EVT_SCROLL(win, cb)
843
844
845
846 #----------------------------------------------------------------------
847 #----------------------------------------------------------------------
848 # functions that look and act like the C++ Macros of the same name
849
850
851 # Miscellaneous
852 def EVT_SIZE(win, func):
853 win.Connect(-1, -1, wxEVT_SIZE, func)
854
855 def EVT_MOVE(win, func):
856 win.Connect(-1, -1, wxEVT_MOVE, func)
857
858 def EVT_CLOSE(win, func):
859 win.Connect(-1, -1, wxEVT_CLOSE_WINDOW, func)
860
861 def EVT_PAINT(win, func):
862 win.Connect(-1, -1, wxEVT_PAINT, func)
863
864 def EVT_ERASE_BACKGROUND(win, func):
865 win.Connect(-1, -1, wxEVT_ERASE_BACKGROUND, func)
866
867 def EVT_CHAR(win, func):
868 win.Connect(-1, -1, wxEVT_CHAR, func)
869
870 def EVT_CHAR_HOOK(win, func):
871 win.Connect(-1, -1, wxEVT_CHAR_HOOK, func)
872
873 def EVT_KEY_DOWN(win, func):
874 win.Connect(-1, -1, wxEVT_KEY_DOWN, func)
875
876 def EVT_KEY_UP(win, func):
877 win.Connect(-1, -1, wxEVT_KEY_UP, func)
878
879 def EVT_MENU_HIGHLIGHT(win, id, func):
880 win.Connect(id, -1, wxEVT_MENU_HIGHLIGHT, func)
881
882 def EVT_MENU_HIGHLIGHT_ALL(win, func):
883 win.Connect(-1, -1, wxEVT_MENU_HIGHLIGHT, func)
884
885 def EVT_SET_FOCUS(win, func):
886 win.Connect(-1, -1, wxEVT_SET_FOCUS, func)
887
888 def EVT_KILL_FOCUS(win, func):
889 win.Connect(-1, -1, wxEVT_KILL_FOCUS, func)
890
891 def EVT_ACTIVATE(win, func):
892 win.Connect(-1, -1, wxEVT_ACTIVATE, func)
893
894 def EVT_ACTIVATE_APP(win, func):
895 win.Connect(-1, -1, wxEVT_ACTIVATE_APP, func)
896
897 def EVT_END_SESSION(win, func):
898 win.Connect(-1, -1, wxEVT_END_SESSION, func)
899
900 def EVT_QUERY_END_SESSION(win, func):
901 win.Connect(-1, -1, wxEVT_QUERY_END_SESSION, func)
902
903 def EVT_DROP_FILES(win, func):
904 win.Connect(-1, -1, wxEVT_DROP_FILES, func)
905
906 def EVT_INIT_DIALOG(win, func):
907 win.Connect(-1, -1, wxEVT_INIT_DIALOG, func)
908
909 def EVT_SYS_COLOUR_CHANGED(win, func):
910 win.Connect(-1, -1, wxEVT_SYS_COLOUR_CHANGED, func)
911
912 def EVT_SHOW(win, func):
913 win.Connect(-1, -1, wxEVT_SHOW, func)
914
915 def EVT_MAXIMIZE(win, func):
916 win.Connect(-1, -1, wxEVT_MAXIMIZE, func)
917
918 def EVT_ICONIZE(win, func):
919 win.Connect(-1, -1, wxEVT_ICONIZE, func)
920
921 def EVT_NAVIGATION_KEY(win, func):
922 win.Connect(-1, -1, wxEVT_NAVIGATION_KEY, func)
923
924 def EVT_IDLE(win, func):
925 win.Connect(-1, -1, wxEVT_IDLE, func)
926
927 def EVT_UPDATE_UI(win, id, func):
928 win.Connect(id, -1, wxEVT_UPDATE_UI, func)
929
930
931 # Mouse Events
932 def EVT_LEFT_DOWN(win, func):
933 win.Connect(-1, -1, wxEVT_LEFT_DOWN, func)
934
935 def EVT_LEFT_UP(win, func):
936 win.Connect(-1, -1, wxEVT_LEFT_UP, func)
937
938 def EVT_MIDDLE_DOWN(win, func):
939 win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func)
940
941 def EVT_MIDDLE_UP(win, func):
942 win.Connect(-1, -1, wxEVT_MIDDLE_UP, func)
943
944 def EVT_RIGHT_DOWN(win, func):
945 win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func)
946
947 def EVT_RIGHT_UP(win, func):
948 win.Connect(-1, -1, wxEVT_RIGHT_UP, func)
949
950 def EVT_MOTION(win, func):
951 win.Connect(-1, -1, wxEVT_MOTION, func)
952
953 def EVT_LEFT_DCLICK(win, func):
954 win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func)
955
956 def EVT_MIDDLE_DCLICK(win, func):
957 win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func)
958
959 def EVT_RIGHT_DCLICK(win, func):
960 win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func)
961
962 def EVT_LEAVE_WINDOW(win, func):
963 win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func)
964
965 def EVT_ENTER_WINDOW(win, func):
966 win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func)
967
968
969 # all mouse events
970 def EVT_MOUSE_EVENTS(win, func):
971 win.Connect(-1, -1, wxEVT_LEFT_DOWN, func)
972 win.Connect(-1, -1, wxEVT_LEFT_UP, func)
973 win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func)
974 win.Connect(-1, -1, wxEVT_MIDDLE_UP, func)
975 win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func)
976 win.Connect(-1, -1, wxEVT_RIGHT_UP, func)
977 win.Connect(-1, -1, wxEVT_MOTION, func)
978 win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func)
979 win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func)
980 win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func)
981 win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func)
982 win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func)
983
984 # EVT_COMMAND
985 def EVT_COMMAND(win, id, cmd, func):
986 win.Connect(id, -1, cmd, func)
987
988 def EVT_COMMAND_RANGE(win, id1, id2, cmd, func):
989 win.Connect(id1, id2, cmd, func)
990
991 # Scrolling
992 def EVT_SCROLL(win, func):
993 win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
994 win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func)
995 win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func)
996 win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func)
997 win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
998 win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
999 win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK,func)
1000
1001 def EVT_SCROLL_TOP(win, func):
1002 win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
1003
1004 def EVT_SCROLL_BOTTOM(win, func):
1005 win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func)
1006
1007 def EVT_SCROLL_LINEUP(win, func):
1008 win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func)
1009
1010 def EVT_SCROLL_LINEDOWN(win, func):
1011 win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func)
1012
1013 def EVT_SCROLL_PAGEUP(win, func):
1014 win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
1015
1016 def EVT_SCROLL_PAGEDOWN(win, func):
1017 win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
1018
1019 def EVT_SCROLL_THUMBTRACK(win, func):
1020 win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK, func)
1021
1022
1023
1024 # Scrolling, with an id
1025 def EVT_COMMAND_SCROLL(win, id, func):
1026 win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
1027 win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
1028 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
1029 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
1030 win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
1031 win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
1032 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
1033
1034 def EVT_COMMAND_SCROLL_TOP(win, id, func):
1035 win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
1036
1037 def EVT_COMMAND_SCROLL_BOTTOM(win, id, func):
1038 win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
1039
1040 def EVT_COMMAND_SCROLL_LINEUP(win, id, func):
1041 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
1042
1043 def EVT_COMMAND_SCROLL_LINEDOWN(win, id, func):
1044 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
1045
1046 def EVT_COMMAND_SCROLL_PAGEUP(win, id, func):
1047 win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
1048
1049 def EVT_COMMAND_SCROLL_PAGEDOWN(win, id, func):
1050 win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
1051
1052 def EVT_COMMAND_SCROLL_THUMBTRACK(win, id, func):
1053 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK, func)
1054
1055
1056 # Convenience commands
1057 def EVT_BUTTON(win, id, func):
1058 win.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED, func)
1059
1060 def EVT_CHECKBOX(win, id, func):
1061 win.Connect(id, -1, wxEVT_COMMAND_CHECKBOX_CLICKED, func)
1062
1063 def EVT_CHOICE(win, id, func):
1064 win.Connect(id, -1, wxEVT_COMMAND_CHOICE_SELECTED, func)
1065
1066 def EVT_LISTBOX(win, id, func):
1067 win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_SELECTED, func)
1068
1069 def EVT_LISTBOX_DCLICK(win, id, func):
1070 win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, func)
1071
1072 def EVT_TEXT(win, id, func):
1073 win.Connect(id, -1, wxEVT_COMMAND_TEXT_UPDATED, func)
1074
1075 def EVT_TEXT_ENTER(win, id, func):
1076 win.Connect(id, -1, wxEVT_COMMAND_TEXT_ENTER, func)
1077
1078 def EVT_MENU(win, id, func):
1079 win.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED, func)
1080
1081 def EVT_MENU_RANGE(win, id1, id2, func):
1082 win.Connect(id1, id2, wxEVT_COMMAND_MENU_SELECTED, func)
1083
1084 def EVT_SLIDER(win, id, func):
1085 win.Connect(id, -1, wxEVT_COMMAND_SLIDER_UPDATED, func)
1086
1087 def EVT_RADIOBOX(win, id, func):
1088 win.Connect(id, -1, wxEVT_COMMAND_RADIOBOX_SELECTED, func)
1089
1090 def EVT_RADIOBUTTON(win, id, func):
1091 win.Connect(id, -1, wxEVT_COMMAND_RADIOBUTTON_SELECTED, func)
1092
1093 def EVT_VLBOX(win, id, func):
1094 win.Connect(id, -1, wxEVT_COMMAND_VLBOX_SELECTED, func)
1095
1096 def EVT_COMBOBOX(win, id, func):
1097 win.Connect(id, -1, wxEVT_COMMAND_COMBOBOX_SELECTED, func)
1098
1099 def EVT_TOOL(win, id, func):
1100 win.Connect(id, -1, wxEVT_COMMAND_TOOL_CLICKED, func)
1101
1102 def EVT_TOOL_RCLICKED(win, id, func):
1103 win.Connect(id, -1, wxEVT_COMMAND_TOOL_RCLICKED, func)
1104
1105 def EVT_TOOL_ENTER(win, id, func):
1106 win.Connect(id, -1, wxEVT_COMMAND_TOOL_ENTER, func)
1107
1108 def EVT_CHECKLISTBOX(win, id, func):
1109 win.Connect(id, -1, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, func)
1110
1111
1112 # Generic command events
1113
1114 def EVT_COMMAND_LEFT_CLICK(win, id, func):
1115 win.Connect(id, -1, wxEVT_COMMAND_LEFT_CLICK, func)
1116
1117 def EVT_COMMAND_LEFT_DCLICK(win, id, func):
1118 win.Connect(id, -1, wxEVT_COMMAND_LEFT_DCLICK, func)
1119
1120 def EVT_COMMAND_RIGHT_CLICK(win, id, func):
1121 win.Connect(id, -1, wxEVT_COMMAND_RIGHT_CLICK, func)
1122
1123 def EVT_COMMAND_RIGHT_DCLICK(win, id, func):
1124 win.Connect(id, -1, wxEVT_COMMAND_RIGHT_DCLICK, func)
1125
1126 def EVT_COMMAND_SET_FOCUS(win, id, func):
1127 win.Connect(id, -1, wxEVT_COMMAND_SET_FOCUS, func)
1128
1129 def EVT_COMMAND_KILL_FOCUS(win, id, func):
1130 win.Connect(id, -1, wxEVT_COMMAND_KILL_FOCUS, func)
1131
1132 def EVT_COMMAND_ENTER(win, id, func):
1133 win.Connect(id, -1, wxEVT_COMMAND_ENTER, func)
1134
1135
1136 # wxNotebook events
1137 def EVT_NOTEBOOK_PAGE_CHANGED(win, id, func):
1138 win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, func)
1139
1140 def EVT_NOTEBOOK_PAGE_CHANGING(win, id, func):
1141 win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, func)
1142
1143
1144 # wxTreeCtrl events
1145 def EVT_TREE_BEGIN_DRAG(win, id, func):
1146 win.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_DRAG, func)
1147
1148 def EVT_TREE_BEGIN_RDRAG(win, id, func):
1149 win.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_RDRAG, func)
1150
1151 def EVT_TREE_BEGIN_LABEL_EDIT(win, id, func):
1152 win.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, func)
1153
1154 def EVT_TREE_END_LABEL_EDIT(win, id, func):
1155 win.Connect(id, -1, wxEVT_COMMAND_TREE_END_LABEL_EDIT, func)
1156
1157 def EVT_TREE_GET_INFO(win, id, func):
1158 win.Connect(id, -1, wxEVT_COMMAND_TREE_GET_INFO, func)
1159
1160 def EVT_TREE_SET_INFO(win, id, func):
1161 win.Connect(id, -1, wxEVT_COMMAND_TREE_SET_INFO, func)
1162
1163 def EVT_TREE_ITEM_EXPANDED(win, id, func):
1164 win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_EXPANDED, func)
1165
1166 def EVT_TREE_ITEM_EXPANDING(win, id, func):
1167 win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_EXPANDING, func)
1168
1169 def EVT_TREE_ITEM_COLLAPSED(win, id, func):
1170 win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_COLLAPSED, func)
1171
1172 def EVT_TREE_ITEM_COLLAPSING(win, id, func):
1173 win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_COLLAPSING, func)
1174
1175 def EVT_TREE_SEL_CHANGED(win, id, func):
1176 win.Connect(id, -1, wxEVT_COMMAND_TREE_SEL_CHANGED, func)
1177
1178 def EVT_TREE_SEL_CHANGING(win, id, func):
1179 win.Connect(id, -1, wxEVT_COMMAND_TREE_SEL_CHANGING, func)
1180
1181 def EVT_TREE_KEY_DOWN(win, id, func):
1182 win.Connect(id, -1, wxEVT_COMMAND_TREE_KEY_DOWN, func)
1183
1184 def EVT_TREE_DELETE_ITEM(win, id, func):
1185 win.Connect(id, -1, wxEVT_COMMAND_TREE_DELETE_ITEM, func)
1186
1187
1188 # wxSpinButton
1189 def EVT_SPIN_UP(win, id, func):
1190 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
1191
1192 def EVT_SPIN_DOWN(win, id, func):
1193 win.Connect(id, -1,wxEVT_SCROLL_LINEDOWN, func)
1194
1195 def EVT_SPIN(win, id, func):
1196 win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
1197 win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
1198 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
1199 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
1200 win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
1201 win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
1202 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
1203
1204
1205
1206
1207 # wxTaskBarIcon
1208 def EVT_TASKBAR_MOVE(win, func):
1209 win.Connect(-1, -1, wxEVT_TASKBAR_MOVE, func)
1210
1211 def EVT_TASKBAR_LEFT_DOWN(win, func):
1212 win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DOWN, func)
1213
1214 def EVT_TASKBAR_LEFT_UP(win, func):
1215 win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_UP, func)
1216
1217 def EVT_TASKBAR_RIGHT_DOWN(win, func):
1218 win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DOWN, func)
1219
1220 def EVT_TASKBAR_RIGHT_UP(win, func):
1221 win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_UP, func)
1222
1223 def EVT_TASKBAR_LEFT_DCLICK(win, func):
1224 win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DCLICK, func)
1225
1226 def EVT_TASKBAR_RIGHT_DCLICK(win, func):
1227 win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DCLICK, func)
1228
1229
1230 # wxGrid
1231 def EVT_GRID_SELECT_CELL(win, fn):
1232 win.Connect(-1, -1, wxEVT_GRID_SELECT_CELL, fn)
1233
1234 def EVT_GRID_CREATE_CELL(win, fn):
1235 win.Connect(-1, -1, wxEVT_GRID_CREATE_CELL, fn)
1236
1237 def EVT_GRID_CHANGE_LABELS(win, fn):
1238 win.Connect(-1, -1, wxEVT_GRID_CHANGE_LABELS, fn)
1239
1240 def EVT_GRID_CHANGE_SEL_LABEL(win, fn):
1241 win.Connect(-1, -1, wxEVT_GRID_CHANGE_SEL_LABEL, fn)
1242
1243 def EVT_GRID_CELL_CHANGE(win, fn):
1244 win.Connect(-1, -1, wxEVT_GRID_CELL_CHANGE, fn)
1245
1246 def EVT_GRID_CELL_LCLICK(win, fn):
1247 win.Connect(-1, -1, wxEVT_GRID_CELL_LCLICK, fn)
1248
1249 def EVT_GRID_CELL_RCLICK(win, fn):
1250 win.Connect(-1, -1, wxEVT_GRID_CELL_RCLICK, fn)
1251
1252 def EVT_GRID_LABEL_LCLICK(win, fn):
1253 win.Connect(-1, -1, wxEVT_GRID_LABEL_LCLICK, fn)
1254
1255 def EVT_GRID_LABEL_RCLICK(win, fn):
1256 win.Connect(-1, -1, wxEVT_GRID_LABEL_RCLICK, fn)
1257
1258
1259 # wxSashWindow
1260 def EVT_SASH_DRAGGED(win, id, func):
1261 win.Connect(id, -1, wxEVT_SASH_DRAGGED, func)
1262
1263 def EVT_SASH_DRAGGED_RANGE(win, id1, id2, func):
1264 win.Connect(id1, id2, wxEVT_SASH_DRAGGED, func)
1265
1266 def EVT_QUERY_LAYOUT_INFO(win, func):
1267 win.Connect(-1, -1, wxEVT_EVT_QUERY_LAYOUT_INFO, func)
1268
1269 def EVT_CALCULATE_LAYOUT(win, func):
1270 win.Connect(-1, -1, wxEVT_EVT_CALCULATE_LAYOUT, func)
1271
1272
1273 # wxListCtrl
1274 def EVT_LIST_BEGIN_DRAG(win, id, func):
1275 win.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_DRAG, func)
1276
1277 def EVT_LIST_BEGIN_RDRAG(win, id, func):
1278 win.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_RDRAG, func)
1279
1280 def EVT_LIST_BEGIN_LABEL_EDIT(win, id, func):
1281 win.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT, func)
1282
1283 def EVT_LIST_END_LABEL_EDIT(win, id, func):
1284 win.Connect(id, -1, wxEVT_COMMAND_LIST_END_LABEL_EDIT, func)
1285
1286 def EVT_LIST_DELETE_ITEM(win, id, func):
1287 win.Connect(id, -1, wxEVT_COMMAND_LIST_DELETE_ITEM, func)
1288
1289 def EVT_LIST_DELETE_ALL_ITEMS(win, id, func):
1290 win.Connect(id, -1, wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS, func)
1291
1292 def EVT_LIST_GET_INFO(win, id, func):
1293 win.Connect(id, -1, wxEVT_COMMAND_LIST_GET_INFO, func)
1294
1295 def EVT_LIST_SET_INFO(win, id, func):
1296 win.Connect(id, -1, wxEVT_COMMAND_LIST_SET_INFO, func)
1297
1298 def EVT_LIST_ITEM_SELECTED(win, id, func):
1299 win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_SELECTED, func)
1300
1301 def EVT_LIST_ITEM_ACTIVATED(win, id, func):
1302 win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_ACTIVATED, func)
1303
1304 def EVT_LIST_ITEM_DESELECTED(win, id, func):
1305 win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_DESELECTED, func)
1306
1307 def EVT_LIST_KEY_DOWN(win, id, func):
1308 win.Connect(id, -1, wxEVT_COMMAND_LIST_KEY_DOWN, func)
1309
1310 def EVT_LIST_INSERT_ITEM(win, id, func):
1311 win.Connect(id, -1, wxEVT_COMMAND_LIST_INSERT_ITEM, func)
1312
1313 def EVT_LIST_COL_CLICK(win, id, func):
1314 win.Connect(id, -1, wxEVT_COMMAND_LIST_COL_CLICK, func)
1315
1316 #wxSplitterWindow
1317 def EVT_SPLITTER_SASH_POS_CHANGING(win, id, func):
1318 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, func)
1319
1320 def EVT_SPLITTER_SASH_POS_CHANGED(win, id, func):
1321 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, func)
1322
1323 def EVT_SPLITTER_UNSPLIT(win, id, func):
1324 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_UNSPLIT, func)
1325
1326 def EVT_SPLITTER_DOUBLECLICKED(win, id, func):
1327 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, func)
1328
1329
1330 #----------------------------------------------------------------------
1331
1332 class wxTimer(wxPyTimer):
1333 def __init__(self):
1334 wxPyTimer.__init__(self, self.Notify) # derived class must provide
1335 # Notify(self) method.
1336
1337 #----------------------------------------------------------------------
1338 # Some wxWin methods can take "NULL" as parameters, but the shadow classes
1339 # expect an object with the SWIG pointer as a 'this' member. This class
1340 # and instance fools the shadow into passing the NULL pointer.
1341
1342 class NullObj:
1343 this = 'NULL' # SWIG converts this to (void*)0
1344
1345 NULL = NullObj()
1346
1347
1348 #----------------------------------------------------------------------
1349 # aliases
1350
1351 wxColor = wxColour
1352 wxNamedColor = wxNamedColour
1353
1354 wxPyDefaultPosition.Set(-1,-1)
1355 wxPyDefaultSize.Set(-1,-1)
1356
1357 # aliases so that C++ documentation applies:
1358 wxDefaultPosition = wxPyDefaultPosition
1359 wxDefaultSize = wxPyDefaultSize
1360
1361
1362 # This is to cover up a bug in SWIG. We are redefining
1363 # the shadow class that is generated for wxAcceleratorTable
1364 # because SWIG incorrectly uses "arg0.this"
1365 class wxAcceleratorTable(wxAcceleratorTablePtr):
1366 def __init__(self,arg0) :
1367 self.this = miscc.new_wxAcceleratorTable(arg0)
1368 self.thisown = 1
1369
1370 #----------------------------------------------------------------------
1371 # This helper function will take a wxPython object and convert it to
1372 # another wxPython object type. This will not be able to create objects
1373 # that are derived from wxPython classes by the user, only those that are
1374 # actually part of wxPython and directly corespond to C++ objects.
1375 #
1376 # This is useful in situations where some method returns a generic
1377 # type such as wxWindow, but you know that it is actually some
1378 # derived type such as a wxTextCtrl. You can't call wxTextCtrl specific
1379 # methods on a wxWindow object, but you can use this function to
1380 # create a wxTextCtrl object that will pass the same pointer to
1381 # the C++ code. You use it like this:
1382 #
1383 # textCtrl = wxPyTypeCast(window, "wxTextCtrl")
1384 #
1385 #
1386 # WARNING: Using this function to type cast objects into types that
1387 # they are not is not recommended and is likely to cause your
1388 # program to crash... Hard.
1389 #
1390
1391 def wxPyTypeCast(obj, typeStr):
1392 if hasattr(obj, "this"):
1393 newPtr = ptrcast(obj.this, typeStr+"_p")
1394 else:
1395 newPtr = ptrcast(obj, typeStr+"_p")
1396 theClass = globals()[typeStr+"Ptr"]
1397 theObj = theClass(newPtr)
1398 theObj.thisown = obj.thisown
1399 return theObj
1400
1401
1402 #----------------------------------------------------------------------
1403
1404 ## class wxPyStdOutWindow:
1405 ## def __init__(self, title = "wxPython: stdout/stderr"):
1406 ## self.frame = None
1407 ## self.title = title
1408
1409 ## def write(self, str):
1410 ## if not self.frame:
1411 ## self.frame = wxFrame(NULL, -1, self.title)
1412 ## self.text = wxTextCtrl(self.frame, -1, "", wxPoint(0,0), wxDefaultSize,
1413 ## wxTE_MULTILINE|wxTE_READONLY)
1414 ## self.frame.SetSize(wxSize(450, 300))
1415 ## self.frame.Show(true)
1416 ## EVT_CLOSE(self.frame, self.OnCloseWindow)
1417 ## self.text.AppendText(str)
1418
1419 ## def OnCloseWindow(self, event):
1420 ## wxBell()
1421 ## self.frame.Destroy()
1422 ## self.frame = None
1423 ## self.text = None
1424
1425
1426 ## def close(self):
1427 ## if self.frame:
1428 ## self.frame.Close(true)
1429
1430 _defRedirect = (wxPlatform == '__WXMSW__')
1431
1432 #----------------------------------------------------------------------
1433 # The main application class. Derive from this and implement an OnInit
1434 # method that creates a frame and then calls self.SetTopWindow(frame)
1435
1436 class wxApp(wxPyApp):
1437 error = 'wxApp.error'
1438
1439 def __init__(self, redirect=_defRedirect, filename=None):
1440 wxPyApp.__init__(self)
1441 self.stdioWin = None
1442 self.saveStdio = (sys.stdout, sys.stderr)
1443 if redirect:
1444 self.RedirectStdio(filename)
1445
1446 # this initializes wxWindows and then calls our OnInit
1447 _wxStart(self.OnInit)
1448
1449
1450 def __del__(self):
1451 try:
1452 self.RestoreStdio()
1453 except:
1454 pass
1455
1456 def RedirectStdio(self, filename):
1457 if filename:
1458 sys.stdout = sys.stderr = open(filename, 'a')
1459 else:
1460 raise self.error, 'wxPyStdOutWindow not yet implemented.'
1461 #self.stdioWin = sys.stdout = sys.stderr = wxPyStdOutWindow()
1462
1463 def RestoreStdio(self):
1464 sys.stdout, sys.stderr = self.saveStdio
1465 if self.stdioWin != None:
1466 self.stdioWin.close()
1467
1468
1469 #----------------------------------------------------------------------------
1470 # DO NOT hold any other references to this object. This is how we know when
1471 # to cleanup system resources that wxWin is holding...
1472 __cleanMeUp = __wxPyCleanup()
1473 #----------------------------------------------------------------------------
1474
1475
1476