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