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