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