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