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