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