]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/wxp.py
- Moved the header in the .i files out of the code that gets put into
[wxWidgets.git] / utils / wxPython / src / wxp.py
1 # This file was created automatically by SWIG.
2 import wxpc
3
4 from misc import *
5
6 from windows import *
7
8 from gdi import *
9
10 from events import *
11
12 from mdi import *
13
14 from controls import *
15
16 from controls2 import *
17
18 from windows2 import *
19
20 from cmndlgs import *
21 class wxPyAppPtr(wxEvtHandlerPtr):
22 def __init__(self,this):
23 self.this = this
24 self.thisown = 0
25 def GetAppName(self):
26 val = wxpc.wxPyApp_GetAppName(self.this)
27 return val
28 def GetAuto3D(self):
29 val = wxpc.wxPyApp_GetAuto3D(self.this)
30 return val
31 def GetClassName(self):
32 val = wxpc.wxPyApp_GetClassName(self.this)
33 return val
34 def GetExitOnFrameDelete(self):
35 val = wxpc.wxPyApp_GetExitOnFrameDelete(self.this)
36 return val
37 def GetPrintMode(self):
38 val = wxpc.wxPyApp_GetPrintMode(self.this)
39 return val
40 def GetTopWindow(self):
41 val = wxpc.wxPyApp_GetTopWindow(self.this)
42 val = wxWindowPtr(val)
43 return val
44 def GetVendorName(self):
45 val = wxpc.wxPyApp_GetVendorName(self.this)
46 return val
47 def Dispatch(self):
48 val = wxpc.wxPyApp_Dispatch(self.this)
49 return val
50 def ExitMainLoop(self):
51 val = wxpc.wxPyApp_ExitMainLoop(self.this)
52 return val
53 def Initialized(self):
54 val = wxpc.wxPyApp_Initialized(self.this)
55 return val
56 def MainLoop(self):
57 val = wxpc.wxPyApp_MainLoop(self.this)
58 return val
59 def Pending(self):
60 val = wxpc.wxPyApp_Pending(self.this)
61 return val
62 def SetAppName(self,arg0):
63 val = wxpc.wxPyApp_SetAppName(self.this,arg0)
64 return val
65 def SetAuto3D(self,arg0):
66 val = wxpc.wxPyApp_SetAuto3D(self.this,arg0)
67 return val
68 def SetClassName(self,arg0):
69 val = wxpc.wxPyApp_SetClassName(self.this,arg0)
70 return val
71 def SetExitOnFrameDelete(self,arg0):
72 val = wxpc.wxPyApp_SetExitOnFrameDelete(self.this,arg0)
73 return val
74 def SetPrintMode(self,arg0):
75 val = wxpc.wxPyApp_SetPrintMode(self.this,arg0)
76 return val
77 def SetTopWindow(self,arg0):
78 val = wxpc.wxPyApp_SetTopWindow(self.this,arg0.this)
79 return val
80 def SetVendorName(self,arg0):
81 val = wxpc.wxPyApp_SetVendorName(self.this,arg0)
82 return val
83 def AfterMainLoop(self):
84 val = wxpc.wxPyApp_AfterMainLoop(self.this)
85 return val
86 def __repr__(self):
87 return "<C wxPyApp instance>"
88 class wxPyApp(wxPyAppPtr):
89 def __init__(self) :
90 self.this = wxpc.new_wxPyApp()
91 self.thisown = 1
92
93
94
95
96
97
98 #-------------- FUNCTION WRAPPERS ------------------
99
100 _wxStart = wxpc._wxStart
101
102 _wxSetDictionary = wxpc._wxSetDictionary
103
104
105
106 #-------------- VARIABLE WRAPPERS ------------------
107
108 wxMAJOR_VERSION = wxpc.wxMAJOR_VERSION
109 wxMINOR_VERSION = wxpc.wxMINOR_VERSION
110 wxRELEASE_NUMBER = wxpc.wxRELEASE_NUMBER
111 UNKNOWN = wxpc.UNKNOWN
112 NOT_FOUND = wxpc.NOT_FOUND
113 wxVSCROLL = wxpc.wxVSCROLL
114 wxHSCROLL = wxpc.wxHSCROLL
115 wxCAPTION = wxpc.wxCAPTION
116 wxDOUBLE_BORDER = wxpc.wxDOUBLE_BORDER
117 wxSUNKEN_BORDER = wxpc.wxSUNKEN_BORDER
118 wxRAISED_BORDER = wxpc.wxRAISED_BORDER
119 wxBORDER = wxpc.wxBORDER
120 wxSIMPLE_BORDER = wxpc.wxSIMPLE_BORDER
121 wxSTATIC_BORDER = wxpc.wxSTATIC_BORDER
122 wxTRANSPARENT_WINDOW = wxpc.wxTRANSPARENT_WINDOW
123 wxNO_BORDER = wxpc.wxNO_BORDER
124 wxUSER_COLOURS = wxpc.wxUSER_COLOURS
125 wxNO_3D = wxpc.wxNO_3D
126 wxTAB_TRAVERSAL = wxpc.wxTAB_TRAVERSAL
127 wxHORIZONTAL = wxpc.wxHORIZONTAL
128 wxVERTICAL = wxpc.wxVERTICAL
129 wxBOTH = wxpc.wxBOTH
130 wxCENTER_FRAME = wxpc.wxCENTER_FRAME
131 wxSTAY_ON_TOP = wxpc.wxSTAY_ON_TOP
132 wxICONIZE = wxpc.wxICONIZE
133 wxMINIMIZE = wxpc.wxMINIMIZE
134 wxMAXIMIZE = wxpc.wxMAXIMIZE
135 wxTHICK_FRAME = wxpc.wxTHICK_FRAME
136 wxSYSTEM_MENU = wxpc.wxSYSTEM_MENU
137 wxMINIMIZE_BOX = wxpc.wxMINIMIZE_BOX
138 wxMAXIMIZE_BOX = wxpc.wxMAXIMIZE_BOX
139 wxTINY_CAPTION_HORIZ = wxpc.wxTINY_CAPTION_HORIZ
140 wxTINY_CAPTION_VERT = wxpc.wxTINY_CAPTION_VERT
141 wxRESIZE_BOX = wxpc.wxRESIZE_BOX
142 wxRESIZE_BORDER = wxpc.wxRESIZE_BORDER
143 wxDIALOG_MODAL = wxpc.wxDIALOG_MODAL
144 wxDIALOG_MODELESS = wxpc.wxDIALOG_MODELESS
145 wxDEFAULT_FRAME_STYLE = wxpc.wxDEFAULT_FRAME_STYLE
146 wxDEFAULT_DIALOG_STYLE = wxpc.wxDEFAULT_DIALOG_STYLE
147 wxRETAINED = wxpc.wxRETAINED
148 wxBACKINGSTORE = wxpc.wxBACKINGSTORE
149 wxTB_3DBUTTONS = wxpc.wxTB_3DBUTTONS
150 wxTB_HORIZONTAL = wxpc.wxTB_HORIZONTAL
151 wxTB_VERTICAL = wxpc.wxTB_VERTICAL
152 wxCOLOURED = wxpc.wxCOLOURED
153 wxFIXED_LENGTH = wxpc.wxFIXED_LENGTH
154 wxALIGN_LEFT = wxpc.wxALIGN_LEFT
155 wxALIGN_CENTER = wxpc.wxALIGN_CENTER
156 wxALIGN_CENTRE = wxpc.wxALIGN_CENTRE
157 wxALIGN_RIGHT = wxpc.wxALIGN_RIGHT
158 wxLB_NEEDED_SB = wxpc.wxLB_NEEDED_SB
159 wxLB_ALWAYS_SB = wxpc.wxLB_ALWAYS_SB
160 wxLB_SORT = wxpc.wxLB_SORT
161 wxLB_SINGLE = wxpc.wxLB_SINGLE
162 wxLB_MULTIPLE = wxpc.wxLB_MULTIPLE
163 wxLB_EXTENDED = wxpc.wxLB_EXTENDED
164 wxLB_OWNERDRAW = wxpc.wxLB_OWNERDRAW
165 wxLB_HSCROLL = wxpc.wxLB_HSCROLL
166 wxPROCESS_ENTER = wxpc.wxPROCESS_ENTER
167 wxPASSWORD = wxpc.wxPASSWORD
168 wxTE_PROCESS_ENTER = wxpc.wxTE_PROCESS_ENTER
169 wxTE_PASSWORD = wxpc.wxTE_PASSWORD
170 wxTE_READONLY = wxpc.wxTE_READONLY
171 wxTE_MULTILINE = wxpc.wxTE_MULTILINE
172 wxCB_SIMPLE = wxpc.wxCB_SIMPLE
173 wxCB_DROPDOWN = wxpc.wxCB_DROPDOWN
174 wxCB_SORT = wxpc.wxCB_SORT
175 wxCB_READONLY = wxpc.wxCB_READONLY
176 wxRA_HORIZONTAL = wxpc.wxRA_HORIZONTAL
177 wxRA_VERTICAL = wxpc.wxRA_VERTICAL
178 wxRB_GROUP = wxpc.wxRB_GROUP
179 wxGA_PROGRESSBAR = wxpc.wxGA_PROGRESSBAR
180 wxGA_HORIZONTAL = wxpc.wxGA_HORIZONTAL
181 wxGA_VERTICAL = wxpc.wxGA_VERTICAL
182 wxSL_HORIZONTAL = wxpc.wxSL_HORIZONTAL
183 wxSL_VERTICAL = wxpc.wxSL_VERTICAL
184 wxSL_AUTOTICKS = wxpc.wxSL_AUTOTICKS
185 wxSL_LABELS = wxpc.wxSL_LABELS
186 wxSL_LEFT = wxpc.wxSL_LEFT
187 wxSL_TOP = wxpc.wxSL_TOP
188 wxSL_RIGHT = wxpc.wxSL_RIGHT
189 wxSL_BOTTOM = wxpc.wxSL_BOTTOM
190 wxSL_BOTH = wxpc.wxSL_BOTH
191 wxSL_SELRANGE = wxpc.wxSL_SELRANGE
192 wxSB_HORIZONTAL = wxpc.wxSB_HORIZONTAL
193 wxSB_VERTICAL = wxpc.wxSB_VERTICAL
194 wxBU_AUTODRAW = wxpc.wxBU_AUTODRAW
195 wxBU_NOAUTODRAW = wxpc.wxBU_NOAUTODRAW
196 wxTR_HAS_BUTTONS = wxpc.wxTR_HAS_BUTTONS
197 wxTR_EDIT_LABELS = wxpc.wxTR_EDIT_LABELS
198 wxLC_ICON = wxpc.wxLC_ICON
199 wxLC_SMALL_ICON = wxpc.wxLC_SMALL_ICON
200 wxLC_LIST = wxpc.wxLC_LIST
201 wxLC_REPORT = wxpc.wxLC_REPORT
202 wxLC_ALIGN_TOP = wxpc.wxLC_ALIGN_TOP
203 wxLC_ALIGN_LEFT = wxpc.wxLC_ALIGN_LEFT
204 wxLC_AUTOARRANGE = wxpc.wxLC_AUTOARRANGE
205 wxLC_USER_TEXT = wxpc.wxLC_USER_TEXT
206 wxLC_EDIT_LABELS = wxpc.wxLC_EDIT_LABELS
207 wxLC_NO_HEADER = wxpc.wxLC_NO_HEADER
208 wxLC_NO_SORT_HEADER = wxpc.wxLC_NO_SORT_HEADER
209 wxLC_SINGLE_SEL = wxpc.wxLC_SINGLE_SEL
210 wxLC_SORT_ASCENDING = wxpc.wxLC_SORT_ASCENDING
211 wxLC_SORT_DESCENDING = wxpc.wxLC_SORT_DESCENDING
212 wxLC_MASK_TYPE = wxpc.wxLC_MASK_TYPE
213 wxLC_MASK_ALIGN = wxpc.wxLC_MASK_ALIGN
214 wxLC_MASK_SORT = wxpc.wxLC_MASK_SORT
215 wxSP_VERTICAL = wxpc.wxSP_VERTICAL
216 wxSP_HORIZONTAL = wxpc.wxSP_HORIZONTAL
217 wxSP_ARROW_KEYS = wxpc.wxSP_ARROW_KEYS
218 wxSP_WRAP = wxpc.wxSP_WRAP
219 wxSP_NOBORDER = wxpc.wxSP_NOBORDER
220 wxSP_3D = wxpc.wxSP_3D
221 wxSP_BORDER = wxpc.wxSP_BORDER
222 wxTAB_MULTILINE = wxpc.wxTAB_MULTILINE
223 wxTAB_RIGHTJUSTIFY = wxpc.wxTAB_RIGHTJUSTIFY
224 wxTAB_FIXEDWIDTH = wxpc.wxTAB_FIXEDWIDTH
225 wxTAB_OWNERDRAW = wxpc.wxTAB_OWNERDRAW
226 wxFLOOD_SURFACE = wxpc.wxFLOOD_SURFACE
227 wxFLOOD_BORDER = wxpc.wxFLOOD_BORDER
228 wxODDEVEN_RULE = wxpc.wxODDEVEN_RULE
229 wxWINDING_RULE = wxpc.wxWINDING_RULE
230 wxTOOL_TOP = wxpc.wxTOOL_TOP
231 wxTOOL_BOTTOM = wxpc.wxTOOL_BOTTOM
232 wxTOOL_LEFT = wxpc.wxTOOL_LEFT
233 wxTOOL_RIGHT = wxpc.wxTOOL_RIGHT
234 wxOK = wxpc.wxOK
235 wxYES_NO = wxpc.wxYES_NO
236 wxCANCEL = wxpc.wxCANCEL
237 wxYES = wxpc.wxYES
238 wxNO = wxpc.wxNO
239 wxICON_EXCLAMATION = wxpc.wxICON_EXCLAMATION
240 wxICON_HAND = wxpc.wxICON_HAND
241 wxICON_QUESTION = wxpc.wxICON_QUESTION
242 wxICON_INFORMATION = wxpc.wxICON_INFORMATION
243 wxICON_STOP = wxpc.wxICON_STOP
244 wxICON_ASTERISK = wxpc.wxICON_ASTERISK
245 wxICON_MASK = wxpc.wxICON_MASK
246 wxCENTRE = wxpc.wxCENTRE
247 wxCENTER = wxpc.wxCENTER
248 wxSIZE_AUTO_WIDTH = wxpc.wxSIZE_AUTO_WIDTH
249 wxSIZE_AUTO_HEIGHT = wxpc.wxSIZE_AUTO_HEIGHT
250 wxSIZE_AUTO = wxpc.wxSIZE_AUTO
251 wxSIZE_USE_EXISTING = wxpc.wxSIZE_USE_EXISTING
252 wxSIZE_ALLOW_MINUS_ONE = wxpc.wxSIZE_ALLOW_MINUS_ONE
253 wxDF_TEXT = wxpc.wxDF_TEXT
254 wxDF_BITMAP = wxpc.wxDF_BITMAP
255 wxDF_METAFILE = wxpc.wxDF_METAFILE
256 wxDF_DIB = wxpc.wxDF_DIB
257 wxDF_OEMTEXT = wxpc.wxDF_OEMTEXT
258 wxDF_FILENAME = wxpc.wxDF_FILENAME
259 wxPORTRAIT = wxpc.wxPORTRAIT
260 wxLANDSCAPE = wxpc.wxLANDSCAPE
261 wxID_OPEN = wxpc.wxID_OPEN
262 wxID_CLOSE = wxpc.wxID_CLOSE
263 wxID_NEW = wxpc.wxID_NEW
264 wxID_SAVE = wxpc.wxID_SAVE
265 wxID_SAVEAS = wxpc.wxID_SAVEAS
266 wxID_REVERT = wxpc.wxID_REVERT
267 wxID_EXIT = wxpc.wxID_EXIT
268 wxID_UNDO = wxpc.wxID_UNDO
269 wxID_REDO = wxpc.wxID_REDO
270 wxID_HELP = wxpc.wxID_HELP
271 wxID_PRINT = wxpc.wxID_PRINT
272 wxID_PRINT_SETUP = wxpc.wxID_PRINT_SETUP
273 wxID_PREVIEW = wxpc.wxID_PREVIEW
274 wxID_ABOUT = wxpc.wxID_ABOUT
275 wxID_HELP_CONTENTS = wxpc.wxID_HELP_CONTENTS
276 wxID_HELP_COMMANDS = wxpc.wxID_HELP_COMMANDS
277 wxID_HELP_PROCEDURES = wxpc.wxID_HELP_PROCEDURES
278 wxID_HELP_CONTEXT = wxpc.wxID_HELP_CONTEXT
279 wxID_CUT = wxpc.wxID_CUT
280 wxID_COPY = wxpc.wxID_COPY
281 wxID_PASTE = wxpc.wxID_PASTE
282 wxID_CLEAR = wxpc.wxID_CLEAR
283 wxID_FIND = wxpc.wxID_FIND
284 wxID_FILE1 = wxpc.wxID_FILE1
285 wxID_FILE2 = wxpc.wxID_FILE2
286 wxID_FILE3 = wxpc.wxID_FILE3
287 wxID_FILE4 = wxpc.wxID_FILE4
288 wxID_FILE5 = wxpc.wxID_FILE5
289 wxID_FILE6 = wxpc.wxID_FILE6
290 wxID_FILE7 = wxpc.wxID_FILE7
291 wxID_FILE8 = wxpc.wxID_FILE8
292 wxID_FILE9 = wxpc.wxID_FILE9
293 wxID_OK = wxpc.wxID_OK
294 wxID_CANCEL = wxpc.wxID_CANCEL
295 wxID_APPLY = wxpc.wxID_APPLY
296 wxID_YES = wxpc.wxID_YES
297 wxID_NO = wxpc.wxID_NO
298 wxBITMAP_TYPE_BMP = wxpc.wxBITMAP_TYPE_BMP
299 wxBITMAP_TYPE_BMP_RESOURCE = wxpc.wxBITMAP_TYPE_BMP_RESOURCE
300 wxBITMAP_TYPE_ICO = wxpc.wxBITMAP_TYPE_ICO
301 wxBITMAP_TYPE_ICO_RESOURCE = wxpc.wxBITMAP_TYPE_ICO_RESOURCE
302 wxBITMAP_TYPE_CUR = wxpc.wxBITMAP_TYPE_CUR
303 wxBITMAP_TYPE_CUR_RESOURCE = wxpc.wxBITMAP_TYPE_CUR_RESOURCE
304 wxBITMAP_TYPE_XBM = wxpc.wxBITMAP_TYPE_XBM
305 wxBITMAP_TYPE_XBM_DATA = wxpc.wxBITMAP_TYPE_XBM_DATA
306 wxBITMAP_TYPE_XPM = wxpc.wxBITMAP_TYPE_XPM
307 wxBITMAP_TYPE_XPM_DATA = wxpc.wxBITMAP_TYPE_XPM_DATA
308 wxBITMAP_TYPE_TIF = wxpc.wxBITMAP_TYPE_TIF
309 wxBITMAP_TYPE_TIF_RESOURCE = wxpc.wxBITMAP_TYPE_TIF_RESOURCE
310 wxBITMAP_TYPE_GIF = wxpc.wxBITMAP_TYPE_GIF
311 wxBITMAP_TYPE_GIF_RESOURCE = wxpc.wxBITMAP_TYPE_GIF_RESOURCE
312 wxBITMAP_TYPE_PNG = wxpc.wxBITMAP_TYPE_PNG
313 wxBITMAP_TYPE_PNG_RESOURCE = wxpc.wxBITMAP_TYPE_PNG_RESOURCE
314 wxBITMAP_TYPE_ANY = wxpc.wxBITMAP_TYPE_ANY
315 wxBITMAP_TYPE_RESOURCE = wxpc.wxBITMAP_TYPE_RESOURCE
316 wxOPEN = wxpc.wxOPEN
317 wxSAVE = wxpc.wxSAVE
318 wxHIDE_READONLY = wxpc.wxHIDE_READONLY
319 wxOVERWRITE_PROMPT = wxpc.wxOVERWRITE_PROMPT
320 wxACCEL_ALT = wxpc.wxACCEL_ALT
321 wxACCEL_CTRL = wxpc.wxACCEL_CTRL
322 wxACCEL_SHIFT = wxpc.wxACCEL_SHIFT
323 ERR_PARAM = wxpc.ERR_PARAM
324 ERR_NODATA = wxpc.ERR_NODATA
325 ERR_CANCEL = wxpc.ERR_CANCEL
326 ERR_SUCCESS = wxpc.ERR_SUCCESS
327 wxDEFAULT = wxpc.wxDEFAULT
328 wxDECORATIVE = wxpc.wxDECORATIVE
329 wxROMAN = wxpc.wxROMAN
330 wxSCRIPT = wxpc.wxSCRIPT
331 wxSWISS = wxpc.wxSWISS
332 wxMODERN = wxpc.wxMODERN
333 wxTELETYPE = wxpc.wxTELETYPE
334 wxVARIABLE = wxpc.wxVARIABLE
335 wxFIXED = wxpc.wxFIXED
336 wxNORMAL = wxpc.wxNORMAL
337 wxLIGHT = wxpc.wxLIGHT
338 wxBOLD = wxpc.wxBOLD
339 wxITALIC = wxpc.wxITALIC
340 wxSLANT = wxpc.wxSLANT
341 wxSOLID = wxpc.wxSOLID
342 wxDOT = wxpc.wxDOT
343 wxLONG_DASH = wxpc.wxLONG_DASH
344 wxSHORT_DASH = wxpc.wxSHORT_DASH
345 wxDOT_DASH = wxpc.wxDOT_DASH
346 wxUSER_DASH = wxpc.wxUSER_DASH
347 wxTRANSPARENT = wxpc.wxTRANSPARENT
348 wxSTIPPLE = wxpc.wxSTIPPLE
349 wxBDIAGONAL_HATCH = wxpc.wxBDIAGONAL_HATCH
350 wxCROSSDIAG_HATCH = wxpc.wxCROSSDIAG_HATCH
351 wxFDIAGONAL_HATCH = wxpc.wxFDIAGONAL_HATCH
352 wxCROSS_HATCH = wxpc.wxCROSS_HATCH
353 wxHORIZONTAL_HATCH = wxpc.wxHORIZONTAL_HATCH
354 wxVERTICAL_HATCH = wxpc.wxVERTICAL_HATCH
355 wxJOIN_BEVEL = wxpc.wxJOIN_BEVEL
356 wxJOIN_MITER = wxpc.wxJOIN_MITER
357 wxJOIN_ROUND = wxpc.wxJOIN_ROUND
358 wxCAP_ROUND = wxpc.wxCAP_ROUND
359 wxCAP_PROJECTING = wxpc.wxCAP_PROJECTING
360 wxCAP_BUTT = wxpc.wxCAP_BUTT
361 wxCLEAR = wxpc.wxCLEAR
362 wxXOR = wxpc.wxXOR
363 wxINVERT = wxpc.wxINVERT
364 wxOR_REVERSE = wxpc.wxOR_REVERSE
365 wxAND_REVERSE = wxpc.wxAND_REVERSE
366 wxCOPY = wxpc.wxCOPY
367 wxAND = wxpc.wxAND
368 wxAND_INVERT = wxpc.wxAND_INVERT
369 wxNO_OP = wxpc.wxNO_OP
370 wxNOR = wxpc.wxNOR
371 wxEQUIV = wxpc.wxEQUIV
372 wxSRC_INVERT = wxpc.wxSRC_INVERT
373 wxOR_INVERT = wxpc.wxOR_INVERT
374 wxNAND = wxpc.wxNAND
375 wxOR = wxpc.wxOR
376 wxSET = wxpc.wxSET
377 wxSRC_OR = wxpc.wxSRC_OR
378 wxSRC_AND = wxpc.wxSRC_AND
379 WXK_BACK = wxpc.WXK_BACK
380 WXK_TAB = wxpc.WXK_TAB
381 WXK_RETURN = wxpc.WXK_RETURN
382 WXK_ESCAPE = wxpc.WXK_ESCAPE
383 WXK_SPACE = wxpc.WXK_SPACE
384 WXK_DELETE = wxpc.WXK_DELETE
385 WXK_START = wxpc.WXK_START
386 WXK_LBUTTON = wxpc.WXK_LBUTTON
387 WXK_RBUTTON = wxpc.WXK_RBUTTON
388 WXK_CANCEL = wxpc.WXK_CANCEL
389 WXK_MBUTTON = wxpc.WXK_MBUTTON
390 WXK_CLEAR = wxpc.WXK_CLEAR
391 WXK_SHIFT = wxpc.WXK_SHIFT
392 WXK_CONTROL = wxpc.WXK_CONTROL
393 WXK_MENU = wxpc.WXK_MENU
394 WXK_PAUSE = wxpc.WXK_PAUSE
395 WXK_CAPITAL = wxpc.WXK_CAPITAL
396 WXK_PRIOR = wxpc.WXK_PRIOR
397 WXK_NEXT = wxpc.WXK_NEXT
398 WXK_END = wxpc.WXK_END
399 WXK_HOME = wxpc.WXK_HOME
400 WXK_LEFT = wxpc.WXK_LEFT
401 WXK_UP = wxpc.WXK_UP
402 WXK_RIGHT = wxpc.WXK_RIGHT
403 WXK_DOWN = wxpc.WXK_DOWN
404 WXK_SELECT = wxpc.WXK_SELECT
405 WXK_PRINT = wxpc.WXK_PRINT
406 WXK_EXECUTE = wxpc.WXK_EXECUTE
407 WXK_SNAPSHOT = wxpc.WXK_SNAPSHOT
408 WXK_INSERT = wxpc.WXK_INSERT
409 WXK_HELP = wxpc.WXK_HELP
410 WXK_NUMPAD0 = wxpc.WXK_NUMPAD0
411 WXK_NUMPAD1 = wxpc.WXK_NUMPAD1
412 WXK_NUMPAD2 = wxpc.WXK_NUMPAD2
413 WXK_NUMPAD3 = wxpc.WXK_NUMPAD3
414 WXK_NUMPAD4 = wxpc.WXK_NUMPAD4
415 WXK_NUMPAD5 = wxpc.WXK_NUMPAD5
416 WXK_NUMPAD6 = wxpc.WXK_NUMPAD6
417 WXK_NUMPAD7 = wxpc.WXK_NUMPAD7
418 WXK_NUMPAD8 = wxpc.WXK_NUMPAD8
419 WXK_NUMPAD9 = wxpc.WXK_NUMPAD9
420 WXK_MULTIPLY = wxpc.WXK_MULTIPLY
421 WXK_ADD = wxpc.WXK_ADD
422 WXK_SEPARATOR = wxpc.WXK_SEPARATOR
423 WXK_SUBTRACT = wxpc.WXK_SUBTRACT
424 WXK_DECIMAL = wxpc.WXK_DECIMAL
425 WXK_DIVIDE = wxpc.WXK_DIVIDE
426 WXK_F1 = wxpc.WXK_F1
427 WXK_F2 = wxpc.WXK_F2
428 WXK_F3 = wxpc.WXK_F3
429 WXK_F4 = wxpc.WXK_F4
430 WXK_F5 = wxpc.WXK_F5
431 WXK_F6 = wxpc.WXK_F6
432 WXK_F7 = wxpc.WXK_F7
433 WXK_F8 = wxpc.WXK_F8
434 WXK_F9 = wxpc.WXK_F9
435 WXK_F10 = wxpc.WXK_F10
436 WXK_F11 = wxpc.WXK_F11
437 WXK_F12 = wxpc.WXK_F12
438 WXK_F13 = wxpc.WXK_F13
439 WXK_F14 = wxpc.WXK_F14
440 WXK_F15 = wxpc.WXK_F15
441 WXK_F16 = wxpc.WXK_F16
442 WXK_F17 = wxpc.WXK_F17
443 WXK_F18 = wxpc.WXK_F18
444 WXK_F19 = wxpc.WXK_F19
445 WXK_F20 = wxpc.WXK_F20
446 WXK_F21 = wxpc.WXK_F21
447 WXK_F22 = wxpc.WXK_F22
448 WXK_F23 = wxpc.WXK_F23
449 WXK_F24 = wxpc.WXK_F24
450 WXK_NUMLOCK = wxpc.WXK_NUMLOCK
451 WXK_SCROLL = wxpc.WXK_SCROLL
452 WXK_PAGEUP = wxpc.WXK_PAGEUP
453 WXK_PAGEDOWN = wxpc.WXK_PAGEDOWN
454 wxCURSOR_ARROW = wxpc.wxCURSOR_ARROW
455 wxCURSOR_BULLSEYE = wxpc.wxCURSOR_BULLSEYE
456 wxCURSOR_CHAR = wxpc.wxCURSOR_CHAR
457 wxCURSOR_CROSS = wxpc.wxCURSOR_CROSS
458 wxCURSOR_HAND = wxpc.wxCURSOR_HAND
459 wxCURSOR_IBEAM = wxpc.wxCURSOR_IBEAM
460 wxCURSOR_LEFT_BUTTON = wxpc.wxCURSOR_LEFT_BUTTON
461 wxCURSOR_MAGNIFIER = wxpc.wxCURSOR_MAGNIFIER
462 wxCURSOR_MIDDLE_BUTTON = wxpc.wxCURSOR_MIDDLE_BUTTON
463 wxCURSOR_NO_ENTRY = wxpc.wxCURSOR_NO_ENTRY
464 wxCURSOR_PAINT_BRUSH = wxpc.wxCURSOR_PAINT_BRUSH
465 wxCURSOR_PENCIL = wxpc.wxCURSOR_PENCIL
466 wxCURSOR_POINT_LEFT = wxpc.wxCURSOR_POINT_LEFT
467 wxCURSOR_POINT_RIGHT = wxpc.wxCURSOR_POINT_RIGHT
468 wxCURSOR_QUESTION_ARROW = wxpc.wxCURSOR_QUESTION_ARROW
469 wxCURSOR_RIGHT_BUTTON = wxpc.wxCURSOR_RIGHT_BUTTON
470 wxCURSOR_SIZENESW = wxpc.wxCURSOR_SIZENESW
471 wxCURSOR_SIZENS = wxpc.wxCURSOR_SIZENS
472 wxCURSOR_SIZENWSE = wxpc.wxCURSOR_SIZENWSE
473 wxCURSOR_SIZEWE = wxpc.wxCURSOR_SIZEWE
474 wxCURSOR_SIZING = wxpc.wxCURSOR_SIZING
475 wxCURSOR_SPRAYCAN = wxpc.wxCURSOR_SPRAYCAN
476 wxCURSOR_WAIT = wxpc.wxCURSOR_WAIT
477 wxCURSOR_WATCH = wxpc.wxCURSOR_WATCH
478 wxCURSOR_BLANK = wxpc.wxCURSOR_BLANK
479 FALSE = wxpc.FALSE
480 false = wxpc.false
481 TRUE = wxpc.TRUE
482 true = wxpc.true
483 wxEVT_NULL = wxpc.wxEVT_NULL
484 wxEVT_FIRST = wxpc.wxEVT_FIRST
485 wxEVT_COMMAND_BUTTON_CLICKED = wxpc.wxEVT_COMMAND_BUTTON_CLICKED
486 wxEVT_COMMAND_CHECKBOX_CLICKED = wxpc.wxEVT_COMMAND_CHECKBOX_CLICKED
487 wxEVT_COMMAND_CHOICE_SELECTED = wxpc.wxEVT_COMMAND_CHOICE_SELECTED
488 wxEVT_COMMAND_LISTBOX_SELECTED = wxpc.wxEVT_COMMAND_LISTBOX_SELECTED
489 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED = wxpc.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
490 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED = wxpc.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
491 wxEVT_COMMAND_TEXT_UPDATED = wxpc.wxEVT_COMMAND_TEXT_UPDATED
492 wxEVT_COMMAND_TEXT_ENTER = wxpc.wxEVT_COMMAND_TEXT_ENTER
493 wxEVT_COMMAND_MENU_SELECTED = wxpc.wxEVT_COMMAND_MENU_SELECTED
494 wxEVT_COMMAND_SLIDER_UPDATED = wxpc.wxEVT_COMMAND_SLIDER_UPDATED
495 wxEVT_COMMAND_RADIOBOX_SELECTED = wxpc.wxEVT_COMMAND_RADIOBOX_SELECTED
496 wxEVT_COMMAND_RADIOBUTTON_SELECTED = wxpc.wxEVT_COMMAND_RADIOBUTTON_SELECTED
497 wxEVT_COMMAND_SCROLLBAR_UPDATED = wxpc.wxEVT_COMMAND_SCROLLBAR_UPDATED
498 wxEVT_COMMAND_VLBOX_SELECTED = wxpc.wxEVT_COMMAND_VLBOX_SELECTED
499 wxEVT_COMMAND_COMBOBOX_SELECTED = wxpc.wxEVT_COMMAND_COMBOBOX_SELECTED
500 wxEVT_COMMAND_TOOL_CLICKED = wxpc.wxEVT_COMMAND_TOOL_CLICKED
501 wxEVT_COMMAND_TOOL_RCLICKED = wxpc.wxEVT_COMMAND_TOOL_RCLICKED
502 wxEVT_COMMAND_TOOL_ENTER = wxpc.wxEVT_COMMAND_TOOL_ENTER
503 wxEVT_SET_FOCUS = wxpc.wxEVT_SET_FOCUS
504 wxEVT_KILL_FOCUS = wxpc.wxEVT_KILL_FOCUS
505 wxEVT_LEFT_DOWN = wxpc.wxEVT_LEFT_DOWN
506 wxEVT_LEFT_UP = wxpc.wxEVT_LEFT_UP
507 wxEVT_MIDDLE_DOWN = wxpc.wxEVT_MIDDLE_DOWN
508 wxEVT_MIDDLE_UP = wxpc.wxEVT_MIDDLE_UP
509 wxEVT_RIGHT_DOWN = wxpc.wxEVT_RIGHT_DOWN
510 wxEVT_RIGHT_UP = wxpc.wxEVT_RIGHT_UP
511 wxEVT_MOTION = wxpc.wxEVT_MOTION
512 wxEVT_ENTER_WINDOW = wxpc.wxEVT_ENTER_WINDOW
513 wxEVT_LEAVE_WINDOW = wxpc.wxEVT_LEAVE_WINDOW
514 wxEVT_LEFT_DCLICK = wxpc.wxEVT_LEFT_DCLICK
515 wxEVT_MIDDLE_DCLICK = wxpc.wxEVT_MIDDLE_DCLICK
516 wxEVT_RIGHT_DCLICK = wxpc.wxEVT_RIGHT_DCLICK
517 wxEVT_NC_LEFT_DOWN = wxpc.wxEVT_NC_LEFT_DOWN
518 wxEVT_NC_LEFT_UP = wxpc.wxEVT_NC_LEFT_UP
519 wxEVT_NC_MIDDLE_DOWN = wxpc.wxEVT_NC_MIDDLE_DOWN
520 wxEVT_NC_MIDDLE_UP = wxpc.wxEVT_NC_MIDDLE_UP
521 wxEVT_NC_RIGHT_DOWN = wxpc.wxEVT_NC_RIGHT_DOWN
522 wxEVT_NC_RIGHT_UP = wxpc.wxEVT_NC_RIGHT_UP
523 wxEVT_NC_MOTION = wxpc.wxEVT_NC_MOTION
524 wxEVT_NC_ENTER_WINDOW = wxpc.wxEVT_NC_ENTER_WINDOW
525 wxEVT_NC_LEAVE_WINDOW = wxpc.wxEVT_NC_LEAVE_WINDOW
526 wxEVT_NC_LEFT_DCLICK = wxpc.wxEVT_NC_LEFT_DCLICK
527 wxEVT_NC_MIDDLE_DCLICK = wxpc.wxEVT_NC_MIDDLE_DCLICK
528 wxEVT_NC_RIGHT_DCLICK = wxpc.wxEVT_NC_RIGHT_DCLICK
529 wxEVT_CHAR = wxpc.wxEVT_CHAR
530 wxEVT_SCROLL_TOP = wxpc.wxEVT_SCROLL_TOP
531 wxEVT_SCROLL_BOTTOM = wxpc.wxEVT_SCROLL_BOTTOM
532 wxEVT_SCROLL_LINEUP = wxpc.wxEVT_SCROLL_LINEUP
533 wxEVT_SCROLL_LINEDOWN = wxpc.wxEVT_SCROLL_LINEDOWN
534 wxEVT_SCROLL_PAGEUP = wxpc.wxEVT_SCROLL_PAGEUP
535 wxEVT_SCROLL_PAGEDOWN = wxpc.wxEVT_SCROLL_PAGEDOWN
536 wxEVT_SCROLL_THUMBTRACK = wxpc.wxEVT_SCROLL_THUMBTRACK
537 wxEVT_SIZE = wxpc.wxEVT_SIZE
538 wxEVT_MOVE = wxpc.wxEVT_MOVE
539 wxEVT_CLOSE_WINDOW = wxpc.wxEVT_CLOSE_WINDOW
540 wxEVT_END_SESSION = wxpc.wxEVT_END_SESSION
541 wxEVT_QUERY_END_SESSION = wxpc.wxEVT_QUERY_END_SESSION
542 wxEVT_ACTIVATE_APP = wxpc.wxEVT_ACTIVATE_APP
543 wxEVT_POWER = wxpc.wxEVT_POWER
544 wxEVT_CHAR_HOOK = wxpc.wxEVT_CHAR_HOOK
545 wxEVT_KEY_UP = wxpc.wxEVT_KEY_UP
546 wxEVT_ACTIVATE = wxpc.wxEVT_ACTIVATE
547 wxEVT_CREATE = wxpc.wxEVT_CREATE
548 wxEVT_DESTROY = wxpc.wxEVT_DESTROY
549 wxEVT_SHOW = wxpc.wxEVT_SHOW
550 wxEVT_ICONIZE = wxpc.wxEVT_ICONIZE
551 wxEVT_MAXIMIZE = wxpc.wxEVT_MAXIMIZE
552 wxEVT_MOUSE_CAPTURE_CHANGED = wxpc.wxEVT_MOUSE_CAPTURE_CHANGED
553 wxEVT_PAINT = wxpc.wxEVT_PAINT
554 wxEVT_ERASE_BACKGROUND = wxpc.wxEVT_ERASE_BACKGROUND
555 wxEVT_NC_PAINT = wxpc.wxEVT_NC_PAINT
556 wxEVT_PAINT_ICON = wxpc.wxEVT_PAINT_ICON
557 wxEVT_MENU_CHAR = wxpc.wxEVT_MENU_CHAR
558 wxEVT_MENU_INIT = wxpc.wxEVT_MENU_INIT
559 wxEVT_MENU_HIGHLIGHT = wxpc.wxEVT_MENU_HIGHLIGHT
560 wxEVT_POPUP_MENU_INIT = wxpc.wxEVT_POPUP_MENU_INIT
561 wxEVT_CONTEXT_MENU = wxpc.wxEVT_CONTEXT_MENU
562 wxEVT_SYS_COLOUR_CHANGED = wxpc.wxEVT_SYS_COLOUR_CHANGED
563 wxEVT_SETTING_CHANGED = wxpc.wxEVT_SETTING_CHANGED
564 wxEVT_QUERY_NEW_PALETTE = wxpc.wxEVT_QUERY_NEW_PALETTE
565 wxEVT_PALETTE_CHANGED = wxpc.wxEVT_PALETTE_CHANGED
566 wxEVT_JOY_BUTTON_DOWN = wxpc.wxEVT_JOY_BUTTON_DOWN
567 wxEVT_JOY_BUTTON_UP = wxpc.wxEVT_JOY_BUTTON_UP
568 wxEVT_JOY_MOVE = wxpc.wxEVT_JOY_MOVE
569 wxEVT_JOY_ZMOVE = wxpc.wxEVT_JOY_ZMOVE
570 wxEVT_DROP_FILES = wxpc.wxEVT_DROP_FILES
571 wxEVT_DRAW_ITEM = wxpc.wxEVT_DRAW_ITEM
572 wxEVT_MEASURE_ITEM = wxpc.wxEVT_MEASURE_ITEM
573 wxEVT_COMPARE_ITEM = wxpc.wxEVT_COMPARE_ITEM
574 wxEVT_INIT_DIALOG = wxpc.wxEVT_INIT_DIALOG
575 wxEVT_IDLE = wxpc.wxEVT_IDLE
576 wxEVT_UPDATE_UI = wxpc.wxEVT_UPDATE_UI
577 wxEVT_COMMAND_LEFT_CLICK = wxpc.wxEVT_COMMAND_LEFT_CLICK
578 wxEVT_COMMAND_LEFT_DCLICK = wxpc.wxEVT_COMMAND_LEFT_DCLICK
579 wxEVT_COMMAND_RIGHT_CLICK = wxpc.wxEVT_COMMAND_RIGHT_CLICK
580 wxEVT_COMMAND_RIGHT_DCLICK = wxpc.wxEVT_COMMAND_RIGHT_DCLICK
581 wxEVT_COMMAND_SET_FOCUS = wxpc.wxEVT_COMMAND_SET_FOCUS
582 wxEVT_COMMAND_KILL_FOCUS = wxpc.wxEVT_COMMAND_KILL_FOCUS
583 wxEVT_COMMAND_ENTER = wxpc.wxEVT_COMMAND_ENTER
584 wxEVT_COMMAND_TREE_BEGIN_DRAG = wxpc.wxEVT_COMMAND_TREE_BEGIN_DRAG
585 wxEVT_COMMAND_TREE_BEGIN_RDRAG = wxpc.wxEVT_COMMAND_TREE_BEGIN_RDRAG
586 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT = wxpc.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
587 wxEVT_COMMAND_TREE_END_LABEL_EDIT = wxpc.wxEVT_COMMAND_TREE_END_LABEL_EDIT
588 wxEVT_COMMAND_TREE_DELETE_ITEM = wxpc.wxEVT_COMMAND_TREE_DELETE_ITEM
589 wxEVT_COMMAND_TREE_GET_INFO = wxpc.wxEVT_COMMAND_TREE_GET_INFO
590 wxEVT_COMMAND_TREE_SET_INFO = wxpc.wxEVT_COMMAND_TREE_SET_INFO
591 wxEVT_COMMAND_TREE_ITEM_EXPANDED = wxpc.wxEVT_COMMAND_TREE_ITEM_EXPANDED
592 wxEVT_COMMAND_TREE_ITEM_EXPANDING = wxpc.wxEVT_COMMAND_TREE_ITEM_EXPANDING
593 wxEVT_COMMAND_TREE_SEL_CHANGED = wxpc.wxEVT_COMMAND_TREE_SEL_CHANGED
594 wxEVT_COMMAND_TREE_SEL_CHANGING = wxpc.wxEVT_COMMAND_TREE_SEL_CHANGING
595 wxEVT_COMMAND_TREE_KEY_DOWN = wxpc.wxEVT_COMMAND_TREE_KEY_DOWN
596 wxEVT_COMMAND_LIST_BEGIN_DRAG = wxpc.wxEVT_COMMAND_LIST_BEGIN_DRAG
597 wxEVT_COMMAND_LIST_BEGIN_RDRAG = wxpc.wxEVT_COMMAND_LIST_BEGIN_RDRAG
598 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT = wxpc.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
599 wxEVT_COMMAND_LIST_END_LABEL_EDIT = wxpc.wxEVT_COMMAND_LIST_END_LABEL_EDIT
600 wxEVT_COMMAND_LIST_DELETE_ITEM = wxpc.wxEVT_COMMAND_LIST_DELETE_ITEM
601 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS = wxpc.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
602 wxEVT_COMMAND_LIST_GET_INFO = wxpc.wxEVT_COMMAND_LIST_GET_INFO
603 wxEVT_COMMAND_LIST_SET_INFO = wxpc.wxEVT_COMMAND_LIST_SET_INFO
604 wxEVT_COMMAND_LIST_ITEM_SELECTED = wxpc.wxEVT_COMMAND_LIST_ITEM_SELECTED
605 wxEVT_COMMAND_LIST_ITEM_DESELECTED = wxpc.wxEVT_COMMAND_LIST_ITEM_DESELECTED
606 wxEVT_COMMAND_LIST_KEY_DOWN = wxpc.wxEVT_COMMAND_LIST_KEY_DOWN
607 wxEVT_COMMAND_LIST_INSERT_ITEM = wxpc.wxEVT_COMMAND_LIST_INSERT_ITEM
608 wxEVT_COMMAND_LIST_COL_CLICK = wxpc.wxEVT_COMMAND_LIST_COL_CLICK
609 wxEVT_COMMAND_TAB_SEL_CHANGED = wxpc.wxEVT_COMMAND_TAB_SEL_CHANGED
610 wxEVT_COMMAND_TAB_SEL_CHANGING = wxpc.wxEVT_COMMAND_TAB_SEL_CHANGING
611 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = wxpc.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
612 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = wxpc.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
613 __version__ = wxpc.__version__
614 cvar = wxpc.cvar
615 wxPyDefaultPosition = wxPointPtr(wxpc.cvar.wxPyDefaultPosition)
616 wxPyDefaultSize = wxSizePtr(wxpc.cvar.wxPyDefaultSize)
617
618
619 #-------------- USER INCLUDE -----------------------
620
621 #----------------------------------------------------------------------------
622 # Name: _extra.py
623 # Purpose: This file is appended to the shadow class file generated
624 # by SWIG. We add some unSWIGable things here.
625 #
626 # Author: Robin Dunn
627 #
628 # Created: 6/30/97
629 # RCS-ID: $Id$
630 # Copyright: (c) 1998 by Total Control Software
631 # Licence: wxWindows license
632 #----------------------------------------------------------------------------
633
634 import sys
635
636 #----------------------------------------------------------------------
637 # This gives this module's dictionary to the C++ extension code...
638
639 _wxSetDictionary(vars())
640
641
642 #----------------------------------------------------------------------
643 #----------------------------------------------------------------------
644 # Helper function to link python methods to wxWindows virtual
645 # functions by name.
646
647 def _checkForCallback(obj, name, event, theID=-1):
648 try: cb = getattr(obj, name)
649 except: pass
650 else: obj.Connect(theID, -1, event, cb)
651
652 def _StdWindowCallbacks(win):
653 _checkForCallback(win, "OnChar", wxEVT_CHAR)
654 _checkForCallback(win, "OnSize", wxEVT_SIZE)
655 _checkForCallback(win, "OnEraseBackground", wxEVT_ERASE_BACKGROUND)
656 _checkForCallback(win, "OnSysColourChanged", wxEVT_SYS_COLOUR_CHANGED)
657 _checkForCallback(win, "OnInitDialog", wxEVT_INIT_DIALOG)
658 _checkForCallback(win, "OnIdle", wxEVT_IDLE)
659 _checkForCallback(win, "OnPaint", wxEVT_PAINT)
660
661 def _StdFrameCallbacks(win):
662 _StdWindowCallbacks(win)
663 _checkForCallback(win, "OnActivate", wxEVT_ACTIVATE)
664 _checkForCallback(win, "OnMenuHighlight", wxEVT_MENU_HIGHLIGHT)
665 _checkForCallback(win, "OnCloseWindow", wxEVT_CLOSE_WINDOW)
666
667
668 def _StdOnScrollCallback(win):
669 try: cb = getattr(win, "OnScroll")
670 except: pass
671 else: EVT_SCROLL(win, cb)
672
673
674
675 #----------------------------------------------------------------------
676 #----------------------------------------------------------------------
677 # functions that look and act like the C++ Macros of the same name
678
679
680 # Miscellaneous
681 def EVT_SIZE(win, func):
682 win.Connect(-1, -1, wxEVT_SIZE, func)
683
684 def EVT_MOVE(win, func):
685 win.Connect(-1, -1, wxEVT_MOVE, func)
686
687 def EVT_CLOSE(win, func):
688 win.Connect(-1, -1, wxEVT_CLOSE_WINDOW, func)
689
690 def EVT_PAINT(win, func):
691 win.Connect(-1, -1, wxEVT_PAINT, func)
692
693 def EVT_ERASE_BACKGROUND(win, func):
694 win.Connect(-1, -1, wxEVT_ERASE_BACKGROUND, func)
695
696 def EVT_CHAR(win, func):
697 win.Connect(-1, -1, wxEVT_CHAR, func)
698
699 def EVT_CHAR_HOOK(win, func):
700 win.Connect(-1, -1, wxEVT_CHAR_HOOK, func)
701
702 def EVT_MENU_HIGHLIGHT(win, id, func):
703 win.Connect(id, -1, wxEVT_MENU_HIGHLIGHT, func)
704
705 def EVT_MENU_HIGHLIGHT_ALL(win, func):
706 win.Connect(-1, -1, wxEVT_MENU_HIGHLIGHT, func)
707
708 def EVT_SET_FOCUS(win, func):
709 win.Connect(-1, -1, wxEVT_SET_FOCUS, func)
710
711 def EVT_KILL_FOCUS(win, func):
712 win.Connect(-1, -1, wxEVT_KILL_FOCUS, func)
713
714 def EVT_ACTIVATE(win, func):
715 win.Connect(-1, -1, wxEVT_ACTIVATE, func)
716
717 def EVT_ACTIVATE_APP(win, func):
718 win.Connect(-1, -1, wxEVT_ACTIVATE_APP, func)
719
720 def EVT_END_SESSION(win, func):
721 win.Connect(-1, -1, wxEVT_END_SESSION, func)
722
723 def EVT_QUERY_END_SESSION(win, func):
724 win.Connect(-1, -1, wxEVT_QUERY_END_SESSION, func)
725
726 def EVT_DROP_FILES(win, func):
727 win.Connect(-1, -1, wxEVT_DROP_FILES, func)
728
729 def EVT_INIT_DIALOG(win, func):
730 win.Connect(-1, -1, wxEVT_INIT_DIALOG, func)
731
732 def EVT_SYS_COLOUR_CHANGED(win, func):
733 win.Connect(-1, -1, wxEVT_SYS_COLOUR_CHANGED, func)
734
735 def EVT_SHOW(win, func):
736 win.Connect(-1, -1, wxEVT_SHOW, func)
737
738 def EVT_MAXIMIZE(win, func):
739 win.Connect(-1, -1, wxEVT_MAXIMIZE, func)
740
741 def EVT_ICONIZE(win, func):
742 win.Connect(-1, -1, wxEVT_ICONIZE, func)
743
744 def EVT_NAVIGATION_KEY(win, func):
745 win.Connect(-1, -1, wxEVT_NAVIGATION_KEY, func)
746
747
748 # Mouse Events
749 def EVT_LEFT_DOWN(win, func):
750 win.Connect(-1, -1, wxEVT_LEFT_DOWN, func)
751
752 def EVT_LEFT_UP(win, func):
753 win.Connect(-1, -1, wxEVT_LEFT_UP, func)
754
755 def EVT_MIDDLE_DOWN(win, func):
756 win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func)
757
758 def EVT_MIDDLE_UP(win, func):
759 win.Connect(-1, -1, wxEVT_MIDDLE_UP, func)
760
761 def EVT_RIGHT_DOWN(win, func):
762 win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func)
763
764 def EVT_RIGHT_UP(win, func):
765 win.Connect(-1, -1, wxEVT_RIGHT_UP, func)
766
767 def EVT_MOTION(win, func):
768 win.Connect(-1, -1, wxEVT_MOTION, func)
769
770 def EVT_LEFT_DCLICK(win, func):
771 win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func)
772
773 def EVT_MIDDLE_DCLICK(win, func):
774 win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func)
775
776 def EVT_RIGHT_DCLICK(win, func):
777 win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func)
778
779 def EVT_LEAVE_WINDOW(win, func):
780 win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func)
781
782 def EVT_ENTER_WINDOW(win, func):
783 win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func)
784
785
786 # all mouse events
787 def EVT_MOUSE_EVENTS(win, func):
788 win.Connect(-1, -1, wxEVT_LEFT_DOWN, func)
789 win.Connect(-1, -1, wxEVT_LEFT_UP, func)
790 win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func)
791 win.Connect(-1, -1, wxEVT_MIDDLE_UP, func)
792 win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func)
793 win.Connect(-1, -1, wxEVT_RIGHT_UP, func)
794 win.Connect(-1, -1, wxEVT_MOTION, func)
795 win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func)
796 win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func)
797 win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func)
798 win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func)
799 win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func)
800
801 # EVT_COMMAND
802 def EVT_COMMAND(win, id, cmd, func):
803 win.Connect(id, -1, cmd, func)
804
805 def EVT_COMMAND_RANGE(win, id1, id2, cmd, func):
806 win.Connect(id1, id2, cmd, func)
807
808 # Scrolling
809 def EVT_SCROLL(win, func):
810 win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
811 win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func)
812 win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func)
813 win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func)
814 win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
815 win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
816 win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK,func)
817
818 def EVT_SCROLL_TOP(win, func):
819 win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
820
821 def EVT_SCROLL_BOTTOM(win, func):
822 win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func)
823
824 def EVT_SCROLL_LINEUP(win, func):
825 win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func)
826
827 def EVT_SCROLL_LINEDOWN(win, func):
828 win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func)
829
830 def EVT_SCROLL_PAGEUP(win, func):
831 win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
832
833 def EVT_SCROLL_PAGEDOWN(win, func):
834 win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
835
836 def EVT_SCROLL_THUMBTRACK(win, func):
837 win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK, func)
838
839
840
841 # Scrolling, with an id
842 def EVT_COMMAND_SCROLL(win, id, func):
843 win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
844 win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
845 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
846 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
847 win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
848 win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
849 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
850
851 def EVT_COMMAND_SCROLL_TOP(win, id, func):
852 win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
853
854 def EVT_COMMAND_SCROLL_BOTTOM(win, id, func):
855 win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
856
857 def EVT_COMMAND_SCROLL_LINEUP(win, id, func):
858 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
859
860 def EVT_COMMAND_SCROLL_LINEDOWN(win, id, func):
861 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
862
863 def EVT_COMMAND_SCROLL_PAGEUP(win, id, func):
864 win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
865
866 def EVT_COMMAND_SCROLL_PAGEDOWN(win, id, func):
867 win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
868
869 def EVT_COMMAND_SCROLL_THUMBTRACK(win, id, func):
870 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK, func)
871
872
873 # Convenience commands
874 def EVT_BUTTON(win, id, func):
875 win.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED, func)
876
877 def EVT_CHECKBOX(win, id, func):
878 win.Connect(id, -1, wxEVT_COMMAND_CHECKBOX_CLICKED, func)
879
880 def EVT_CHOICE(win, id, func):
881 win.Connect(id, -1, wxEVT_COMMAND_CHOICE_SELECTED, func)
882
883 def EVT_LISTBOX(win, id, func):
884 win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_SELECTED, func)
885
886 def EVT_LISTBOX_DCLICK(win, id, func):
887 win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, func)
888
889 def EVT_TEXT(win, id, func):
890 win.Connect(id, -1, wxEVT_COMMAND_TEXT_UPDATED, func)
891
892 def EVT_TEXT_ENTER(win, id, func):
893 win.Connect(id, -1, wxEVT_COMMAND_TEXT_ENTER, func)
894
895 def EVT_MENU(win, id, func):
896 win.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED, func)
897
898 def EVT_MENU_RANGE(win, id1, id2, func):
899 win.Connect(id1, id2, wxEVT_COMMAND_MENU_SELECTED, func)
900
901 def EVT_SLIDER(win, id, func):
902 win.Connect(id, -1, wxEVT_COMMAND_SLIDER_UPDATED, func)
903
904 def EVT_RADIOBOX(win, id, func):
905 win.Connect(id, -1, wxEVT_COMMAND_RADIOBOX_SELECTED, func)
906
907 def EVT_RADIOBUTTON(win, id, func):
908 win.Connect(id, -1, wxEVT_COMMAND_RADIOBUTTON_SELECTED, func)
909
910 def EVT_VLBOX(win, id, func):
911 win.Connect(id, -1, wxEVT_COMMAND_VLBOX_SELECTED, func)
912
913 def EVT_COMBOBOX(win, id, func):
914 win.Connect(id, -1, wxEVT_COMMAND_COMBOBOX_SELECTED, func)
915
916 def EVT_TOOL(win, id, func):
917 win.Connect(id, -1, wxEVT_COMMAND_TOOL_CLICKED, func)
918
919 def EVT_TOOL_RCLICKED(win, id, func):
920 win.Connect(id, -1, wxEVT_COMMAND_TOOL_RCLICKED, func)
921
922 def EVT_TOOL_ENTER(win, id, func):
923 win.Connect(id, -1, wxEVT_COMMAND_TOOL_ENTER, func)
924
925 def EVT_CHECKLISTBOX(win, id, func):
926 win.Connect(id, -1, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, func)
927
928
929 # Generic command events
930
931 def EVT_COMMAND_LEFT_CLICK(win, id, func):
932 win.Connect(id, -1, wxEVT_COMMAND_LEFT_CLICK, func)
933
934 def EVT_COMMAND_LEFT_DCLICK(win, id, func):
935 win.Connect(id, -1, wxEVT_COMMAND_LEFT_DCLICK, func)
936
937 def EVT_COMMAND_RIGHT_CLICK(win, id, func):
938 win.Connect(id, -1, wxEVT_COMMAND_RIGHT_CLICK, func)
939
940 def EVT_COMMAND_RIGHT_DCLICK(win, id, func):
941 win.Connect(id, -1, wxEVT_COMMAND_RIGHT_DCLICK, func)
942
943 def EVT_COMMAND_SET_FOCUS(win, id, func):
944 win.Connect(id, -1, wxEVT_COMMAND_SET_FOCUS, func)
945
946 def EVT_COMMAND_KILL_FOCUS(win, id, func):
947 win.Connect(id, -1, wxEVT_COMMAND_KILL_FOCUS, func)
948
949 def EVT_COMMAND_ENTER(win, id, func):
950 win.Connect(id, -1, wxEVT_COMMAND_ENTER, func)
951
952
953
954 def EVT_NOTEBOOK_PAGE_CHANGED(win, id, func):
955 win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, func)
956
957 def EVT_NOTEBOOK_PAGE_CHANGING(win, id, func):
958 win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, func)
959
960
961
962 #----------------------------------------------------------------------
963 #----------------------------------------------------------------------
964 # We need to add to the shadow classes a bit to facilitate callbacks via
965 # virtual functions. These classes replace the shadows generated by SWIG.
966
967 class wxWindow(wxWindowPtr):
968 def __init__(self,arg0,arg1,*args) :
969 argl = map(None,args)
970 try: argl[0] = argl[0].this
971 except: pass
972 try: argl[1] = argl[1].this
973 except: pass
974 args = tuple(argl)
975 self.this = apply(windowsc.new_wxWindow,(arg0.this,arg1,)+args)
976 self.thisown = 1
977 _StdWindowCallbacks(self)
978
979
980 class wxFrame(wxFramePtr):
981 def __init__(self,arg0,arg1,arg2,*args) :
982 argl = map(None,args)
983 try: argl[0] = argl[0].this
984 except: pass
985 try: argl[1] = argl[1].this
986 except: pass
987 args = tuple(argl)
988 self.this = apply(windowsc.new_wxFrame,(arg0.this,arg1,arg2,)+args)
989 self.thisown = 1
990 _StdFrameCallbacks(self)
991
992
993 class wxMiniFrame(wxMiniFramePtr):
994 def __init__(self,arg0,arg1,arg2,*args) :
995 argl = map(None,args)
996 try: argl[0] = argl[0].this
997 except: pass
998 try: argl[1] = argl[1].this
999 except: pass
1000 args = tuple(argl)
1001 self.this = apply(windowsc.new_wxMiniFrame,(arg0.this,arg1,arg2,)+args)
1002 self.thisown = 1
1003 _StdFrameCallbacks(self)
1004
1005
1006 class wxPanel(wxPanelPtr):
1007 def __init__(self,arg0,arg1,*args) :
1008 argl = map(None,args)
1009 try: argl[0] = argl[0].this
1010 except: pass
1011 try: argl[1] = argl[1].this
1012 except: pass
1013 args = tuple(argl)
1014 self.this = apply(windowsc.new_wxPanel,(arg0.this,arg1,)+args)
1015 self.thisown = 1
1016 _StdWindowCallbacks(self)
1017
1018
1019 class wxDialog(wxDialogPtr):
1020 def __init__(self,arg0,arg1,arg2,*args) :
1021 argl = map(None,args)
1022 try: argl[0] = argl[0].this
1023 except: pass
1024 try: argl[1] = argl[1].this
1025 except: pass
1026 args = tuple(argl)
1027 self.this = apply(windowsc.new_wxDialog,(arg0.this,arg1,arg2,)+args)
1028 self.thisown = 1
1029 _StdWindowCallbacks(self)
1030 _checkForCallback(self, "OnOk", wxEVT_COMMAND_BUTTON_CLICKED, wxID_OK)
1031 _checkForCallback(self, "OnApply", wxEVT_COMMAND_BUTTON_CLICKED, wxID_APPLY)
1032 _checkForCallback(self, "OnCancel", wxEVT_COMMAND_BUTTON_CLICKED, wxID_CANCEL)
1033 _checkForCallback(self, "OnCloseWindow", wxEVT_CLOSE_WINDOW)
1034 _checkForCallback(self, "OnCharHook", wxEVT_CHAR_HOOK)
1035
1036
1037 class wxScrolledWindow(wxScrolledWindowPtr):
1038 def __init__(self,arg0,*args) :
1039 argl = map(None,args)
1040 try: argl[1] = argl[1].this
1041 except: pass
1042 try: argl[2] = argl[2].this
1043 except: pass
1044 args = tuple(argl)
1045 self.this = apply(windowsc.new_wxScrolledWindow,(arg0.this,)+args)
1046 self.thisown = 1
1047 _StdWindowCallbacks(self)
1048 _StdOnScrollCallback(self)
1049
1050
1051
1052 class wxMDIParentFrame(wxMDIParentFramePtr):
1053 def __init__(self,arg0,arg1,arg2,*args) :
1054 argl = map(None,args)
1055 try: argl[0] = argl[0].this
1056 except: pass
1057 try: argl[1] = argl[1].this
1058 except: pass
1059 args = tuple(argl)
1060 self.this = apply(mdic.new_wxMDIParentFrame,(arg0.this,arg1,arg2,)+args)
1061 self.thisown = 1
1062 _StdFrameCallbacks(self)
1063
1064
1065 class wxMDIChildFrame(wxMDIChildFramePtr):
1066 def __init__(self,arg0,arg1,arg2,*args) :
1067 argl = map(None,args)
1068 try: argl[0] = argl[0].this
1069 except: pass
1070 try: argl[1] = argl[1].this
1071 except: pass
1072 args = tuple(argl)
1073 self.this = apply(mdic.new_wxMDIChildFrame,(arg0.this,arg1,arg2,)+args)
1074 self.thisown = 1
1075 _StdFrameCallbacks(self)
1076
1077
1078 class wxMDIClientWindow(wxMDIClientWindowPtr):
1079 def __init__(self,arg0,*args) :
1080 self.this = apply(mdic.new_wxMDIClientWindow,(arg0.this,)+args)
1081 self.thisown = 1
1082 _StdWindowCallbacks(self)
1083 _StdOnScrollCallback(self)
1084
1085
1086
1087 class wxControl(wxControlPtr):
1088 def __init__(self,this):
1089 self.this = this
1090 _StdWindowCallbacks(self)
1091
1092 class wxButton(wxButtonPtr):
1093 def __init__(self,arg0,arg1,arg2,*args) :
1094 argl = map(None,args)
1095 try: argl[0] = argl[0].this
1096 except: pass
1097 try: argl[1] = argl[1].this
1098 except: pass
1099 args = tuple(argl)
1100 self.this = apply(controlsc.new_wxButton,(arg0.this,arg1,arg2,)+args)
1101 self.thisown = 1
1102 _StdWindowCallbacks(self)
1103
1104 class wxBitmapButton(wxBitmapButtonPtr):
1105 def __init__(self,arg0,arg1,arg2,*args) :
1106 argl = map(None,args)
1107 try: argl[0] = argl[0].this
1108 except: pass
1109 try: argl[1] = argl[1].this
1110 except: pass
1111 args = tuple(argl)
1112 self.this = apply(controlsc.new_wxBitmapButton,(arg0.this,arg1,arg2.this,)+args)
1113 self.thisown = 1
1114 _StdWindowCallbacks(self)
1115
1116 class wxCheckBox(wxCheckBoxPtr):
1117 def __init__(self,arg0,arg1,arg2,*args) :
1118 argl = map(None,args)
1119 try: argl[0] = argl[0].this
1120 except: pass
1121 try: argl[1] = argl[1].this
1122 except: pass
1123 args = tuple(argl)
1124 self.this = apply(controlsc.new_wxCheckBox,(arg0.this,arg1,arg2,)+args)
1125 self.thisown = 1
1126 _StdWindowCallbacks(self)
1127
1128
1129
1130 class wxChoice(wxChoicePtr):
1131 def __init__(self,arg0,arg1,*args) :
1132 argl = map(None,args)
1133 try: argl[0] = argl[0].this
1134 except: pass
1135 try: argl[1] = argl[1].this
1136 except: pass
1137 args = tuple(argl)
1138 self.this = apply(controlsc.new_wxChoice,(arg0.this,arg1,)+args)
1139 self.thisown = 1
1140 _StdWindowCallbacks(self)
1141
1142 class wxComboBox(wxComboBoxPtr):
1143 def __init__(self,arg0,arg1,*args) :
1144 argl = map(None,args)
1145 try: argl[1] = argl[1].this
1146 except: pass
1147 try: argl[2] = argl[2].this
1148 except: pass
1149 args = tuple(argl)
1150 self.this = apply(controlsc.new_wxComboBox,(arg0.this,arg1,)+args)
1151 self.thisown = 1
1152 _StdWindowCallbacks(self)
1153
1154 class wxGauge(wxGaugePtr):
1155 def __init__(self,arg0,arg1,arg2,*args) :
1156 argl = map(None,args)
1157 try: argl[0] = argl[0].this
1158 except: pass
1159 try: argl[1] = argl[1].this
1160 except: pass
1161 args = tuple(argl)
1162 self.this = apply(controlsc.new_wxGauge,(arg0.this,arg1,arg2,)+args)
1163 self.thisown = 1
1164 _StdWindowCallbacks(self)
1165
1166 class wxStaticBox(wxStaticBoxPtr):
1167 def __init__(self,arg0,arg1,arg2,*args) :
1168 argl = map(None,args)
1169 try: argl[0] = argl[0].this
1170 except: pass
1171 try: argl[1] = argl[1].this
1172 except: pass
1173 args = tuple(argl)
1174 self.this = apply(controlsc.new_wxStaticBox,(arg0.this,arg1,arg2,)+args)
1175 self.thisown = 1
1176 _StdWindowCallbacks(self)
1177
1178 class wxStaticText(wxStaticTextPtr):
1179 def __init__(self,arg0,arg1,arg2,*args) :
1180 argl = map(None,args)
1181 try: argl[0] = argl[0].this
1182 except: pass
1183 try: argl[1] = argl[1].this
1184 except: pass
1185 args = tuple(argl)
1186 self.this = apply(controlsc.new_wxStaticText,(arg0.this,arg1,arg2,)+args)
1187 self.thisown = 1
1188 _StdWindowCallbacks(self)
1189
1190 class wxListBox(wxListBoxPtr):
1191 def __init__(self,arg0,arg1,*args) :
1192 argl = map(None,args)
1193 try: argl[0] = argl[0].this
1194 except: pass
1195 try: argl[1] = argl[1].this
1196 except: pass
1197 args = tuple(argl)
1198 self.this = apply(controlsc.new_wxListBox,(arg0.this,arg1,)+args)
1199 self.thisown = 1
1200 _StdWindowCallbacks(self)
1201
1202 class wxTextCtrl(wxTextCtrlPtr):
1203 def __init__(self,arg0,arg1,*args) :
1204 argl = map(None,args)
1205 try: argl[1] = argl[1].this
1206 except: pass
1207 try: argl[2] = argl[2].this
1208 except: pass
1209 args = tuple(argl)
1210 self.this = apply(controlsc.new_wxTextCtrl,(arg0.this,arg1,)+args)
1211 self.thisown = 1
1212 _StdWindowCallbacks(self)
1213
1214 class wxScrollBar(wxScrollBarPtr):
1215 def __init__(self,arg0,*args) :
1216 argl = map(None,args)
1217 try: argl[1] = argl[1].this
1218 except: pass
1219 try: argl[2] = argl[2].this
1220 except: pass
1221 args = tuple(argl)
1222 self.this = apply(controlsc.new_wxScrollBar,(arg0.this,)+args)
1223 self.thisown = 1
1224 _StdWindowCallbacks(self)
1225
1226 class wxSpinButton(wxSpinButtonPtr):
1227 def __init__(self,arg0,*args) :
1228 argl = map(None,args)
1229 try: argl[1] = argl[1].this
1230 except: pass
1231 try: argl[2] = argl[2].this
1232 except: pass
1233 args = tuple(argl)
1234 self.this = apply(controlsc.new_wxSpinButton,(arg0.this,)+args)
1235 self.thisown = 1
1236 _StdWindowCallbacks(self)
1237
1238 class wxStaticBitmap(wxStaticBitmapPtr):
1239 def __init__(self,arg0,arg1,arg2,*args) :
1240 argl = map(None,args)
1241 try: argl[0] = argl[0].this
1242 except: pass
1243 try: argl[1] = argl[1].this
1244 except: pass
1245 args = tuple(argl)
1246 self.this = apply(controlsc.new_wxStaticBitmap,(arg0.this,arg1,arg2.this,)+args)
1247 self.thisown = 1
1248 _StdWindowCallbacks(self)
1249
1250 class wxRadioBox(wxRadioBoxPtr):
1251 def __init__(self,arg0,arg1,arg2,*args) :
1252 argl = map(None,args)
1253 try: argl[0] = argl[0].this
1254 except: pass
1255 try: argl[1] = argl[1].this
1256 except: pass
1257 args = tuple(argl)
1258 self.this = apply(controlsc.new_wxRadioBox,(arg0.this,arg1,arg2,)+args)
1259 self.thisown = 1
1260 _StdWindowCallbacks(self)
1261
1262 class wxRadioButton(wxRadioButtonPtr):
1263 def __init__(self,arg0,arg1,arg2,*args) :
1264 argl = map(None,args)
1265 try: argl[0] = argl[0].this
1266 except: pass
1267 try: argl[1] = argl[1].this
1268 except: pass
1269 args = tuple(argl)
1270 self.this = apply(controlsc.new_wxRadioButton,(arg0.this,arg1,arg2,)+args)
1271 self.thisown = 1
1272 _StdWindowCallbacks(self)
1273
1274 class wxSlider(wxSliderPtr):
1275 def __init__(self,arg0,arg1,arg2,arg3,arg4,*args) :
1276 argl = map(None,args)
1277 try: argl[0] = argl[0].this
1278 except: pass
1279 try: argl[1] = argl[1].this
1280 except: pass
1281 args = tuple(argl)
1282 self.this = apply(controlsc.new_wxSlider,(arg0.this,arg1,arg2,arg3,arg4,)+args)
1283 self.thisown = 1
1284 _StdWindowCallbacks(self)
1285
1286
1287
1288
1289
1290
1291 class wxTimer(wxPyTimer):
1292 def __init__(self):
1293 wxPyTimer.__init__(self, self.Notify) # derived class must provide
1294 # Notify(self) method.
1295
1296 #----------------------------------------------------------------------
1297 # Some wxWin methods can take "NULL" as parameters, but the shadow classes
1298 # expect an object with the SWIG pointer as a 'this' member. This class
1299 # and instance fools the shadow into passing the NULL pointer.
1300
1301 class NullObj:
1302 this = 'NULL' # SWIG converts this to (void*)0
1303
1304 NULL = NullObj()
1305
1306
1307 #----------------------------------------------------------------------
1308 # aliases
1309
1310 wxColor = wxColour
1311 wxNamedColor = wxNamedColour
1312
1313 wxPyDefaultPosition.Set(-1,-1)
1314 wxPyDefaultSize.Set(-1,-1)
1315
1316 #----------------------------------------------------------------------
1317
1318 ## class wxPyStdOutWindow(wxFrame):
1319 ## def __init__(self, title = "wxPython: stdout/stderr"):
1320 ## wxFrame.__init__(self, NULL, title)
1321 ## self.title = title
1322 ## self.text = wxTextWindow(self)
1323 ## self.text.SetFont(wxFont(10, wxMODERN, wxNORMAL, wxBOLD))
1324 ## self.SetSize(-1,-1,400,200)
1325 ## self.Show(false)
1326 ## self.isShown = false
1327
1328 ## def write(self, str): # with this method,
1329 ## if not self.isShown:
1330 ## self.Show(true)
1331 ## self.isShown = true
1332 ## self.text.WriteText(str)
1333
1334 ## def OnCloseWindow(self, event): # doesn't allow the window to close, just hides it
1335 ## self.Show(false)
1336 ## self.isShown = false
1337
1338
1339 _defRedirect = (wxPlatform == '__WIN32__')
1340
1341 #----------------------------------------------------------------------
1342 # The main application class. Derive from this and implement an OnInit
1343 # method that creates a frame and then calls self.SetTopWindow(frame)
1344
1345 class wxApp(wxPyApp):
1346 error = 'wxApp.error'
1347
1348 def __init__(self, redirect=_defRedirect, filename=None):
1349 wxPyApp.__init__(self)
1350 self.stdioWin = None
1351 self.saveStdio = (sys.stdout, sys.stderr)
1352 if redirect:
1353 self.RedirectStdio(filename)
1354
1355 # this initializes wxWindows and then calls our OnInit
1356 _wxStart(self.OnInit)
1357
1358
1359 def __del__(self):
1360 try:
1361 self.RestoreStdio()
1362 except:
1363 pass
1364
1365 def RedirectStdio(self, filename):
1366 if filename:
1367 sys.stdout = sys.stderr = open(filename, 'a')
1368 else:
1369 raise self.error, 'wxPyStdOutWindow not yet implemented.'
1370 #self.stdioWin = sys.stdout = sys.stderr = wxPyStdOutWindow()
1371
1372 def RestoreStdio(self):
1373 sys.stdout, sys.stderr = self.saveStdio
1374 if self.stdioWin != None:
1375 self.stdioWin.Show(false)
1376 self.stdioWin.Destroy()
1377 self.stdioWin = None
1378
1379
1380 #----------------------------------------------------------------------------
1381 #
1382 # $Log$
1383 # Revision 1.4 1998/08/15 07:36:54 RD
1384 # - Moved the header in the .i files out of the code that gets put into
1385 # the .cpp files. It caused CVS conflicts because of the RCS ID being
1386 # different each time.
1387 #
1388 # - A few minor fixes.
1389 #
1390 # Revision 1.1 1998/08/09 08:25:49 RD
1391 # Initial version
1392 #
1393 #
1394