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