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