]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/wx.py
Removed deprecation warnings in OGL and Gizmos
[wxWidgets.git] / wxPython / src / gtk / 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
a323d3bd
RD
12from fonts import *
13
b1462dfa
RD
14from clip_dnd import *
15
b8b8dda7
RD
16from events import *
17
c368d904
RD
18from streams import *
19
08da19d7
RD
20from utils import *
21
b8b8dda7
RD
22from mdi import *
23
24from frames import *
25
26from stattool import *
27
28from controls import *
29
30from controls2 import *
31
32from windows2 import *
33
34from cmndlgs import *
35
08127323
RD
36from windows3 import *
37
cf694132 38from image import *
bb0054cd
RD
39
40from printfw import *
2f90df85
RD
41
42from sizers import *
c368d904
RD
43
44from filesys import *
b8b8dda7
RD
45class wxPyAppPtr(wxEvtHandlerPtr):
46 def __init__(self,this):
47 self.this = this
48 self.thisown = 0
1d99702e 49 def __del__(self,wxc=wxc):
8bf5d46e 50 if self.thisown == 1 :
1d99702e
RD
51 wxc.delete_wxPyApp(self)
52 def GetAppName(self, *_args, **_kwargs):
53 val = apply(wxc.wxPyApp_GetAppName,(self,) + _args, _kwargs)
b8b8dda7 54 return val
1d99702e
RD
55 def GetClassName(self, *_args, **_kwargs):
56 val = apply(wxc.wxPyApp_GetClassName,(self,) + _args, _kwargs)
b8b8dda7 57 return val
1d99702e
RD
58 def GetExitOnFrameDelete(self, *_args, **_kwargs):
59 val = apply(wxc.wxPyApp_GetExitOnFrameDelete,(self,) + _args, _kwargs)
b8b8dda7 60 return val
1d99702e
RD
61 def GetPrintMode(self, *_args, **_kwargs):
62 val = apply(wxc.wxPyApp_GetPrintMode,(self,) + _args, _kwargs)
b8b8dda7 63 return val
1d99702e
RD
64 def GetTopWindow(self, *_args, **_kwargs):
65 val = apply(wxc.wxPyApp_GetTopWindow,(self,) + _args, _kwargs)
b8b8dda7 66 return val
1d99702e
RD
67 def GetVendorName(self, *_args, **_kwargs):
68 val = apply(wxc.wxPyApp_GetVendorName,(self,) + _args, _kwargs)
b8b8dda7 69 return val
f6bcfd97
BP
70 def GetUseBestVisual(self, *_args, **_kwargs):
71 val = apply(wxc.wxPyApp_GetUseBestVisual,(self,) + _args, _kwargs)
72 return val
1d99702e
RD
73 def Dispatch(self, *_args, **_kwargs):
74 val = apply(wxc.wxPyApp_Dispatch,(self,) + _args, _kwargs)
b8b8dda7 75 return val
1d99702e
RD
76 def ExitMainLoop(self, *_args, **_kwargs):
77 val = apply(wxc.wxPyApp_ExitMainLoop,(self,) + _args, _kwargs)
b8b8dda7 78 return val
1d99702e
RD
79 def Initialized(self, *_args, **_kwargs):
80 val = apply(wxc.wxPyApp_Initialized,(self,) + _args, _kwargs)
b8b8dda7 81 return val
1d99702e
RD
82 def MainLoop(self, *_args, **_kwargs):
83 val = apply(wxc.wxPyApp_MainLoop,(self,) + _args, _kwargs)
b8b8dda7 84 return val
1d99702e
RD
85 def Pending(self, *_args, **_kwargs):
86 val = apply(wxc.wxPyApp_Pending,(self,) + _args, _kwargs)
b8b8dda7 87 return val
1d99702e
RD
88 def ProcessIdle(self, *_args, **_kwargs):
89 val = apply(wxc.wxPyApp_ProcessIdle,(self,) + _args, _kwargs)
8bf5d46e 90 return val
4eb65923
RD
91 def Yield(self, *_args, **_kwargs):
92 val = apply(wxc.wxPyApp_Yield,(self,) + _args, _kwargs)
93 return val
1d99702e
RD
94 def SetAppName(self, *_args, **_kwargs):
95 val = apply(wxc.wxPyApp_SetAppName,(self,) + _args, _kwargs)
b8b8dda7 96 return val
1d99702e
RD
97 def SetClassName(self, *_args, **_kwargs):
98 val = apply(wxc.wxPyApp_SetClassName,(self,) + _args, _kwargs)
b8b8dda7 99 return val
1d99702e
RD
100 def SetExitOnFrameDelete(self, *_args, **_kwargs):
101 val = apply(wxc.wxPyApp_SetExitOnFrameDelete,(self,) + _args, _kwargs)
b8b8dda7 102 return val
1d99702e
RD
103 def SetPrintMode(self, *_args, **_kwargs):
104 val = apply(wxc.wxPyApp_SetPrintMode,(self,) + _args, _kwargs)
b8b8dda7 105 return val
1d99702e
RD
106 def SetTopWindow(self, *_args, **_kwargs):
107 val = apply(wxc.wxPyApp_SetTopWindow,(self,) + _args, _kwargs)
b8b8dda7 108 return val
1d99702e
RD
109 def SetVendorName(self, *_args, **_kwargs):
110 val = apply(wxc.wxPyApp_SetVendorName,(self,) + _args, _kwargs)
b8b8dda7 111 return val
f6bcfd97
BP
112 def SetUseBestVisual(self, *_args, **_kwargs):
113 val = apply(wxc.wxPyApp_SetUseBestVisual,(self,) + _args, _kwargs)
114 return val
b8b8dda7 115 def __repr__(self):
1d99702e 116 return "<C wxPyApp instance at %s>" % (self.this,)
b8b8dda7 117class wxPyApp(wxPyAppPtr):
1d99702e
RD
118 def __init__(self,*_args,**_kwargs):
119 self.this = apply(wxc.new_wxPyApp,_args,_kwargs)
b8b8dda7
RD
120 self.thisown = 1
121
122
123
124
125
126
127#-------------- FUNCTION WRAPPERS ------------------
128
8bf5d46e
RD
129ptrcast = wxc.ptrcast
130
131ptrvalue = wxc.ptrvalue
132
133ptrset = wxc.ptrset
134
135ptrcreate = wxc.ptrcreate
136
137ptrfree = wxc.ptrfree
138
139ptradd = wxc.ptradd
140
141ptrmap = wxc.ptrmap
142
b8b8dda7
RD
143_wxStart = wxc._wxStart
144
145_wxSetDictionary = wxc._wxSetDictionary
146
c368d904
RD
147def wxGetApp(*_args, **_kwargs):
148 val = apply(wxc.wxGetApp,_args,_kwargs)
149 if val: val = wxPyAppPtr(val)
150 return val
151
b1462dfa
RD
152wxApp_CleanUp = wxc.wxApp_CleanUp
153
b8b8dda7
RD
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
1afc06c2 176wxWANTS_CHARS = wxc.wxWANTS_CHARS
0220cbc1 177wxPOPUP_WINDOW = wxc.wxPOPUP_WINDOW
b8b8dda7
RD
178wxHORIZONTAL = wxc.wxHORIZONTAL
179wxVERTICAL = wxc.wxVERTICAL
180wxBOTH = wxc.wxBOTH
181wxCENTER_FRAME = wxc.wxCENTER_FRAME
1afc06c2
RD
182wxCENTRE_ON_SCREEN = wxc.wxCENTRE_ON_SCREEN
183wxCENTER_ON_SCREEN = wxc.wxCENTER_ON_SCREEN
b8b8dda7
RD
184wxSTAY_ON_TOP = wxc.wxSTAY_ON_TOP
185wxICONIZE = wxc.wxICONIZE
186wxMINIMIZE = wxc.wxMINIMIZE
187wxMAXIMIZE = wxc.wxMAXIMIZE
188wxTHICK_FRAME = wxc.wxTHICK_FRAME
189wxSYSTEM_MENU = wxc.wxSYSTEM_MENU
190wxMINIMIZE_BOX = wxc.wxMINIMIZE_BOX
191wxMAXIMIZE_BOX = wxc.wxMAXIMIZE_BOX
192wxTINY_CAPTION_HORIZ = wxc.wxTINY_CAPTION_HORIZ
193wxTINY_CAPTION_VERT = wxc.wxTINY_CAPTION_VERT
194wxRESIZE_BOX = wxc.wxRESIZE_BOX
195wxRESIZE_BORDER = wxc.wxRESIZE_BORDER
196wxDIALOG_MODAL = wxc.wxDIALOG_MODAL
197wxDIALOG_MODELESS = wxc.wxDIALOG_MODELESS
2c8a649d 198wxDIALOG_NO_PARENT = wxc.wxDIALOG_NO_PARENT
b8b8dda7
RD
199wxDEFAULT_FRAME_STYLE = wxc.wxDEFAULT_FRAME_STYLE
200wxDEFAULT_DIALOG_STYLE = wxc.wxDEFAULT_DIALOG_STYLE
201wxFRAME_TOOL_WINDOW = wxc.wxFRAME_TOOL_WINDOW
bb0054cd 202wxFRAME_FLOAT_ON_PARENT = wxc.wxFRAME_FLOAT_ON_PARENT
4c9993c3 203wxFRAME_NO_WINDOW_MENU = wxc.wxFRAME_NO_WINDOW_MENU
9c4165ad 204wxFRAME_NO_TASKBAR = wxc.wxFRAME_NO_TASKBAR
1afc06c2
RD
205wxED_CLIENT_MARGIN = wxc.wxED_CLIENT_MARGIN
206wxED_BUTTONS_BOTTOM = wxc.wxED_BUTTONS_BOTTOM
207wxED_BUTTONS_RIGHT = wxc.wxED_BUTTONS_RIGHT
208wxED_STATIC_LINE = wxc.wxED_STATIC_LINE
209wxEXT_DIALOG_STYLE = wxc.wxEXT_DIALOG_STYLE
08127323 210wxCLIP_CHILDREN = wxc.wxCLIP_CHILDREN
2c8a649d 211wxCLIP_SIBLINGS = wxc.wxCLIP_SIBLINGS
b8b8dda7
RD
212wxRETAINED = wxc.wxRETAINED
213wxBACKINGSTORE = wxc.wxBACKINGSTORE
b8b8dda7
RD
214wxTB_HORIZONTAL = wxc.wxTB_HORIZONTAL
215wxTB_VERTICAL = wxc.wxTB_VERTICAL
be86ffe3 216wxTB_3DBUTTONS = wxc.wxTB_3DBUTTONS
b8b8dda7 217wxTB_FLAT = wxc.wxTB_FLAT
f0261a72 218wxTB_DOCKABLE = wxc.wxTB_DOCKABLE
be86ffe3
RD
219wxTB_NOICONS = wxc.wxTB_NOICONS
220wxTB_TEXT = wxc.wxTB_TEXT
87439dd8
RD
221wxTB_NODIVIDER = wxc.wxTB_NODIVIDER
222wxTB_NOALIGN = wxc.wxTB_NOALIGN
b8b8dda7
RD
223wxCOLOURED = wxc.wxCOLOURED
224wxFIXED_LENGTH = wxc.wxFIXED_LENGTH
225wxALIGN_LEFT = wxc.wxALIGN_LEFT
694759cf
RD
226wxALIGN_CENTER_HORIZONTAL = wxc.wxALIGN_CENTER_HORIZONTAL
227wxALIGN_CENTRE_HORIZONTAL = wxc.wxALIGN_CENTRE_HORIZONTAL
b8b8dda7 228wxALIGN_RIGHT = wxc.wxALIGN_RIGHT
2f90df85 229wxALIGN_BOTTOM = wxc.wxALIGN_BOTTOM
694759cf
RD
230wxALIGN_CENTER_VERTICAL = wxc.wxALIGN_CENTER_VERTICAL
231wxALIGN_CENTRE_VERTICAL = wxc.wxALIGN_CENTRE_VERTICAL
2f90df85 232wxALIGN_TOP = wxc.wxALIGN_TOP
694759cf
RD
233wxALIGN_CENTER = wxc.wxALIGN_CENTER
234wxALIGN_CENTRE = wxc.wxALIGN_CENTRE
235wxSHAPED = wxc.wxSHAPED
9c4165ad 236wxADJUST_MINSIZE = wxc.wxADJUST_MINSIZE
b8b8dda7
RD
237wxLB_NEEDED_SB = wxc.wxLB_NEEDED_SB
238wxLB_ALWAYS_SB = wxc.wxLB_ALWAYS_SB
239wxLB_SORT = wxc.wxLB_SORT
240wxLB_SINGLE = wxc.wxLB_SINGLE
241wxLB_MULTIPLE = wxc.wxLB_MULTIPLE
242wxLB_EXTENDED = wxc.wxLB_EXTENDED
243wxLB_OWNERDRAW = wxc.wxLB_OWNERDRAW
244wxLB_HSCROLL = wxc.wxLB_HSCROLL
245wxPROCESS_ENTER = wxc.wxPROCESS_ENTER
246wxPASSWORD = wxc.wxPASSWORD
b8b8dda7
RD
247wxTE_READONLY = wxc.wxTE_READONLY
248wxTE_MULTILINE = wxc.wxTE_MULTILINE
7a9b33db
RD
249wxTE_PROCESS_TAB = wxc.wxTE_PROCESS_TAB
250wxTE_RICH = wxc.wxTE_RICH
db34b2d4 251wxTE_RICH2 = wxc.wxTE_RICH2
06c0fba4 252wxTE_NO_VSCROLL = wxc.wxTE_NO_VSCROLL
7a9b33db
RD
253wxTE_AUTO_SCROLL = wxc.wxTE_AUTO_SCROLL
254wxTE_PROCESS_ENTER = wxc.wxTE_PROCESS_ENTER
255wxTE_PASSWORD = wxc.wxTE_PASSWORD
059a841c 256wxTE_AUTO_URL = wxc.wxTE_AUTO_URL
c20da257 257wxTE_NOHIDESEL = wxc.wxTE_NOHIDESEL
7a9b33db
RD
258wxTE_DONTWRAP = wxc.wxTE_DONTWRAP
259wxTE_LINEWRAP = wxc.wxTE_LINEWRAP
260wxTE_WORDWRAP = wxc.wxTE_WORDWRAP
4eb65923
RD
261wxTE_LEFT = wxc.wxTE_LEFT
262wxTE_RIGHT = wxc.wxTE_RIGHT
263wxTE_CENTER = wxc.wxTE_CENTER
264wxTE_CENTRE = wxc.wxTE_CENTRE
b8b8dda7
RD
265wxCB_SIMPLE = wxc.wxCB_SIMPLE
266wxCB_DROPDOWN = wxc.wxCB_DROPDOWN
267wxCB_SORT = wxc.wxCB_SORT
268wxCB_READONLY = wxc.wxCB_READONLY
269wxRA_HORIZONTAL = wxc.wxRA_HORIZONTAL
270wxRA_VERTICAL = wxc.wxRA_VERTICAL
62abd41e
RD
271wxRA_SPECIFY_ROWS = wxc.wxRA_SPECIFY_ROWS
272wxRA_SPECIFY_COLS = wxc.wxRA_SPECIFY_COLS
b8b8dda7
RD
273wxRB_GROUP = wxc.wxRB_GROUP
274wxGA_PROGRESSBAR = wxc.wxGA_PROGRESSBAR
275wxGA_HORIZONTAL = wxc.wxGA_HORIZONTAL
276wxGA_VERTICAL = wxc.wxGA_VERTICAL
bb0054cd 277wxGA_SMOOTH = wxc.wxGA_SMOOTH
b8b8dda7
RD
278wxSL_HORIZONTAL = wxc.wxSL_HORIZONTAL
279wxSL_VERTICAL = wxc.wxSL_VERTICAL
280wxSL_AUTOTICKS = wxc.wxSL_AUTOTICKS
281wxSL_LABELS = wxc.wxSL_LABELS
282wxSL_LEFT = wxc.wxSL_LEFT
283wxSL_TOP = wxc.wxSL_TOP
284wxSL_RIGHT = wxc.wxSL_RIGHT
285wxSL_BOTTOM = wxc.wxSL_BOTTOM
286wxSL_BOTH = wxc.wxSL_BOTH
287wxSL_SELRANGE = wxc.wxSL_SELRANGE
288wxSB_HORIZONTAL = wxc.wxSB_HORIZONTAL
289wxSB_VERTICAL = wxc.wxSB_VERTICAL
cf694132 290wxST_SIZEGRIP = wxc.wxST_SIZEGRIP
2abc0a0f 291wxST_NO_AUTORESIZE = wxc.wxST_NO_AUTORESIZE
b8b8dda7 292wxBU_NOAUTODRAW = wxc.wxBU_NOAUTODRAW
298ae144
RD
293wxBU_AUTODRAW = wxc.wxBU_AUTODRAW
294wxBU_LEFT = wxc.wxBU_LEFT
295wxBU_TOP = wxc.wxBU_TOP
296wxBU_RIGHT = wxc.wxBU_RIGHT
297wxBU_BOTTOM = wxc.wxBU_BOTTOM
298wxBU_EXACTFIT = wxc.wxBU_EXACTFIT
b8b8dda7
RD
299wxSP_VERTICAL = wxc.wxSP_VERTICAL
300wxSP_HORIZONTAL = wxc.wxSP_HORIZONTAL
301wxSP_ARROW_KEYS = wxc.wxSP_ARROW_KEYS
302wxSP_WRAP = wxc.wxSP_WRAP
303wxSP_NOBORDER = wxc.wxSP_NOBORDER
304wxSP_3D = wxc.wxSP_3D
1b62f00d
RD
305wxSP_3DSASH = wxc.wxSP_3DSASH
306wxSP_3DBORDER = wxc.wxSP_3DBORDER
307wxSP_FULLSASH = wxc.wxSP_FULLSASH
b8b8dda7 308wxSP_BORDER = wxc.wxSP_BORDER
9d8bd15f
RD
309wxSP_LIVE_UPDATE = wxc.wxSP_LIVE_UPDATE
310wxSP_PERMIT_UNSPLIT = wxc.wxSP_PERMIT_UNSPLIT
b8b8dda7
RD
311wxFLOOD_SURFACE = wxc.wxFLOOD_SURFACE
312wxFLOOD_BORDER = wxc.wxFLOOD_BORDER
313wxODDEVEN_RULE = wxc.wxODDEVEN_RULE
314wxWINDING_RULE = wxc.wxWINDING_RULE
315wxTOOL_TOP = wxc.wxTOOL_TOP
316wxTOOL_BOTTOM = wxc.wxTOOL_BOTTOM
317wxTOOL_LEFT = wxc.wxTOOL_LEFT
318wxTOOL_RIGHT = wxc.wxTOOL_RIGHT
319wxOK = wxc.wxOK
320wxYES_NO = wxc.wxYES_NO
321wxCANCEL = wxc.wxCANCEL
322wxYES = wxc.wxYES
323wxNO = wxc.wxNO
1afc06c2
RD
324wxNO_DEFAULT = wxc.wxNO_DEFAULT
325wxYES_DEFAULT = wxc.wxYES_DEFAULT
b8b8dda7
RD
326wxICON_EXCLAMATION = wxc.wxICON_EXCLAMATION
327wxICON_HAND = wxc.wxICON_HAND
328wxICON_QUESTION = wxc.wxICON_QUESTION
329wxICON_INFORMATION = wxc.wxICON_INFORMATION
330wxICON_STOP = wxc.wxICON_STOP
331wxICON_ASTERISK = wxc.wxICON_ASTERISK
332wxICON_MASK = wxc.wxICON_MASK
1afc06c2
RD
333wxICON_WARNING = wxc.wxICON_WARNING
334wxICON_ERROR = wxc.wxICON_ERROR
335wxFORWARD = wxc.wxFORWARD
336wxBACKWARD = wxc.wxBACKWARD
337wxRESET = wxc.wxRESET
338wxHELP = wxc.wxHELP
339wxMORE = wxc.wxMORE
340wxSETUP = wxc.wxSETUP
b8b8dda7
RD
341wxCENTRE = wxc.wxCENTRE
342wxCENTER = wxc.wxCENTER
343wxSIZE_AUTO_WIDTH = wxc.wxSIZE_AUTO_WIDTH
344wxSIZE_AUTO_HEIGHT = wxc.wxSIZE_AUTO_HEIGHT
345wxSIZE_AUTO = wxc.wxSIZE_AUTO
346wxSIZE_USE_EXISTING = wxc.wxSIZE_USE_EXISTING
347wxSIZE_ALLOW_MINUS_ONE = wxc.wxSIZE_ALLOW_MINUS_ONE
b8b8dda7
RD
348wxPORTRAIT = wxc.wxPORTRAIT
349wxLANDSCAPE = wxc.wxLANDSCAPE
bb0054cd
RD
350wxPRINT_QUALITY_HIGH = wxc.wxPRINT_QUALITY_HIGH
351wxPRINT_QUALITY_MEDIUM = wxc.wxPRINT_QUALITY_MEDIUM
352wxPRINT_QUALITY_LOW = wxc.wxPRINT_QUALITY_LOW
353wxPRINT_QUALITY_DRAFT = wxc.wxPRINT_QUALITY_DRAFT
ba77f390
RD
354wxID_ANY = wxc.wxID_ANY
355wxID_SEPARATOR = wxc.wxID_SEPARATOR
b8b8dda7
RD
356wxID_OPEN = wxc.wxID_OPEN
357wxID_CLOSE = wxc.wxID_CLOSE
358wxID_NEW = wxc.wxID_NEW
359wxID_SAVE = wxc.wxID_SAVE
360wxID_SAVEAS = wxc.wxID_SAVEAS
361wxID_REVERT = wxc.wxID_REVERT
362wxID_EXIT = wxc.wxID_EXIT
363wxID_UNDO = wxc.wxID_UNDO
364wxID_REDO = wxc.wxID_REDO
365wxID_HELP = wxc.wxID_HELP
366wxID_PRINT = wxc.wxID_PRINT
367wxID_PRINT_SETUP = wxc.wxID_PRINT_SETUP
368wxID_PREVIEW = wxc.wxID_PREVIEW
369wxID_ABOUT = wxc.wxID_ABOUT
370wxID_HELP_CONTENTS = wxc.wxID_HELP_CONTENTS
371wxID_HELP_COMMANDS = wxc.wxID_HELP_COMMANDS
372wxID_HELP_PROCEDURES = wxc.wxID_HELP_PROCEDURES
373wxID_HELP_CONTEXT = wxc.wxID_HELP_CONTEXT
1893b029 374wxID_CLOSE_ALL = wxc.wxID_CLOSE_ALL
b8b8dda7
RD
375wxID_CUT = wxc.wxID_CUT
376wxID_COPY = wxc.wxID_COPY
377wxID_PASTE = wxc.wxID_PASTE
378wxID_CLEAR = wxc.wxID_CLEAR
379wxID_FIND = wxc.wxID_FIND
2c8a649d
RD
380wxID_DUPLICATE = wxc.wxID_DUPLICATE
381wxID_SELECTALL = wxc.wxID_SELECTALL
b8b8dda7
RD
382wxID_FILE1 = wxc.wxID_FILE1
383wxID_FILE2 = wxc.wxID_FILE2
384wxID_FILE3 = wxc.wxID_FILE3
385wxID_FILE4 = wxc.wxID_FILE4
386wxID_FILE5 = wxc.wxID_FILE5
387wxID_FILE6 = wxc.wxID_FILE6
388wxID_FILE7 = wxc.wxID_FILE7
389wxID_FILE8 = wxc.wxID_FILE8
390wxID_FILE9 = wxc.wxID_FILE9
391wxID_OK = wxc.wxID_OK
392wxID_CANCEL = wxc.wxID_CANCEL
393wxID_APPLY = wxc.wxID_APPLY
394wxID_YES = wxc.wxID_YES
395wxID_NO = wxc.wxID_NO
cf694132 396wxID_STATIC = wxc.wxID_STATIC
471825d7
RD
397wxID_FORWARD = wxc.wxID_FORWARD
398wxID_BACKWARD = wxc.wxID_BACKWARD
49df1f52 399wxID_DEFAULT = wxc.wxID_DEFAULT
471825d7 400wxID_MORE = wxc.wxID_MORE
49df1f52
RD
401wxID_SETUP = wxc.wxID_SETUP
402wxID_RESET = wxc.wxID_RESET
403wxID_CONTEXT_HELP = wxc.wxID_CONTEXT_HELP
404wxID_YESTOALL = wxc.wxID_YESTOALL
405wxID_NOTOALL = wxc.wxID_NOTOALL
406wxID_ABORT = wxc.wxID_ABORT
407wxID_RETRY = wxc.wxID_RETRY
408wxID_IGNORE = wxc.wxID_IGNORE
b8b8dda7
RD
409wxOPEN = wxc.wxOPEN
410wxSAVE = wxc.wxSAVE
411wxHIDE_READONLY = wxc.wxHIDE_READONLY
412wxOVERWRITE_PROMPT = wxc.wxOVERWRITE_PROMPT
2abc0a0f 413wxFILE_MUST_EXIST = wxc.wxFILE_MUST_EXIST
f6bcfd97 414wxMULTIPLE = wxc.wxMULTIPLE
9c4165ad 415wxCHANGE_DIR = wxc.wxCHANGE_DIR
b8b8dda7
RD
416wxACCEL_ALT = wxc.wxACCEL_ALT
417wxACCEL_CTRL = wxc.wxACCEL_CTRL
418wxACCEL_SHIFT = wxc.wxACCEL_SHIFT
f6bcfd97 419wxACCEL_NORMAL = wxc.wxACCEL_NORMAL
bb0054cd
RD
420wxPD_AUTO_HIDE = wxc.wxPD_AUTO_HIDE
421wxPD_APP_MODAL = wxc.wxPD_APP_MODAL
422wxPD_CAN_ABORT = wxc.wxPD_CAN_ABORT
a08cbc01
RD
423wxPD_ELAPSED_TIME = wxc.wxPD_ELAPSED_TIME
424wxPD_ESTIMATED_TIME = wxc.wxPD_ESTIMATED_TIME
425wxPD_REMAINING_TIME = wxc.wxPD_REMAINING_TIME
301dfd67 426wxDD_NEW_DIR_BUTTON = wxc.wxDD_NEW_DIR_BUTTON
ef12d2e2 427wxDD_DEFAULT_STYLE = wxc.wxDD_DEFAULT_STYLE
8bf5d46e 428wxMENU_TEAROFF = wxc.wxMENU_TEAROFF
1afc06c2 429wxMB_DOCKABLE = wxc.wxMB_DOCKABLE
8bf5d46e 430wxNO_FULL_REPAINT_ON_RESIZE = wxc.wxNO_FULL_REPAINT_ON_RESIZE
1afc06c2
RD
431wxLEFT = wxc.wxLEFT
432wxRIGHT = wxc.wxRIGHT
433wxUP = wxc.wxUP
434wxDOWN = wxc.wxDOWN
435wxALL = wxc.wxALL
436wxTOP = wxc.wxTOP
437wxBOTTOM = wxc.wxBOTTOM
438wxNORTH = wxc.wxNORTH
439wxSOUTH = wxc.wxSOUTH
440wxEAST = wxc.wxEAST
441wxWEST = wxc.wxWEST
442wxSTRETCH_NOT = wxc.wxSTRETCH_NOT
443wxSHRINK = wxc.wxSHRINK
444wxGROW = wxc.wxGROW
445wxEXPAND = wxc.wxEXPAND
446wxNB_FIXEDWIDTH = wxc.wxNB_FIXEDWIDTH
f0261a72
RD
447wxNB_LEFT = wxc.wxNB_LEFT
448wxNB_RIGHT = wxc.wxNB_RIGHT
449wxNB_BOTTOM = wxc.wxNB_BOTTOM
2c8a649d 450wxNB_MULTILINE = wxc.wxNB_MULTILINE
1afc06c2
RD
451wxLI_HORIZONTAL = wxc.wxLI_HORIZONTAL
452wxLI_VERTICAL = wxc.wxLI_VERTICAL
2cd2fac8
RD
453wxJOYSTICK1 = wxc.wxJOYSTICK1
454wxJOYSTICK2 = wxc.wxJOYSTICK2
455wxJOY_BUTTON1 = wxc.wxJOY_BUTTON1
456wxJOY_BUTTON2 = wxc.wxJOY_BUTTON2
457wxJOY_BUTTON3 = wxc.wxJOY_BUTTON3
458wxJOY_BUTTON4 = wxc.wxJOY_BUTTON4
459wxJOY_BUTTON_ANY = wxc.wxJOY_BUTTON_ANY
7a446686 460wxWS_EX_VALIDATE_RECURSIVELY = wxc.wxWS_EX_VALIDATE_RECURSIVELY
0220cbc1 461wxWS_EX_BLOCK_EVENTS = wxc.wxWS_EX_BLOCK_EVENTS
74bcba0e 462wxWS_EX_TRANSIENT = wxc.wxWS_EX_TRANSIENT
32c988a3
RD
463wxMM_TEXT = wxc.wxMM_TEXT
464wxMM_LOMETRIC = wxc.wxMM_LOMETRIC
465wxMM_HIMETRIC = wxc.wxMM_HIMETRIC
466wxMM_LOENGLISH = wxc.wxMM_LOENGLISH
467wxMM_HIENGLISH = wxc.wxMM_HIENGLISH
468wxMM_TWIPS = wxc.wxMM_TWIPS
469wxMM_ISOTROPIC = wxc.wxMM_ISOTROPIC
470wxMM_ANISOTROPIC = wxc.wxMM_ANISOTROPIC
471wxMM_POINTS = wxc.wxMM_POINTS
472wxMM_METRIC = wxc.wxMM_METRIC
c8c000ef
RD
473wxTIMER_CONTINUOUS = wxc.wxTIMER_CONTINUOUS
474wxTIMER_ONE_SHOT = wxc.wxTIMER_ONE_SHOT
ba77f390
RD
475wxMOUSE_BTN_ANY = wxc.wxMOUSE_BTN_ANY
476wxMOUSE_BTN_NONE = wxc.wxMOUSE_BTN_NONE
477wxMOUSE_BTN_LEFT = wxc.wxMOUSE_BTN_LEFT
478wxMOUSE_BTN_MIDDLE = wxc.wxMOUSE_BTN_MIDDLE
479wxMOUSE_BTN_RIGHT = wxc.wxMOUSE_BTN_RIGHT
6e8a778a
RD
480wxBORDER_DEFAULT = wxc.wxBORDER_DEFAULT
481wxBORDER_NONE = wxc.wxBORDER_NONE
482wxBORDER_STATIC = wxc.wxBORDER_STATIC
483wxBORDER_SIMPLE = wxc.wxBORDER_SIMPLE
484wxBORDER_RAISED = wxc.wxBORDER_RAISED
485wxBORDER_SUNKEN = wxc.wxBORDER_SUNKEN
486wxBORDER_DOUBLE = wxc.wxBORDER_DOUBLE
487wxBORDER_MASK = wxc.wxBORDER_MASK
b8b8dda7
RD
488wxDEFAULT = wxc.wxDEFAULT
489wxDECORATIVE = wxc.wxDECORATIVE
490wxROMAN = wxc.wxROMAN
491wxSCRIPT = wxc.wxSCRIPT
492wxSWISS = wxc.wxSWISS
493wxMODERN = wxc.wxMODERN
494wxTELETYPE = wxc.wxTELETYPE
495wxVARIABLE = wxc.wxVARIABLE
496wxFIXED = wxc.wxFIXED
497wxNORMAL = wxc.wxNORMAL
498wxLIGHT = wxc.wxLIGHT
499wxBOLD = wxc.wxBOLD
500wxITALIC = wxc.wxITALIC
501wxSLANT = wxc.wxSLANT
502wxSOLID = wxc.wxSOLID
503wxDOT = wxc.wxDOT
504wxLONG_DASH = wxc.wxLONG_DASH
505wxSHORT_DASH = wxc.wxSHORT_DASH
506wxDOT_DASH = wxc.wxDOT_DASH
507wxUSER_DASH = wxc.wxUSER_DASH
508wxTRANSPARENT = wxc.wxTRANSPARENT
509wxSTIPPLE = wxc.wxSTIPPLE
510wxBDIAGONAL_HATCH = wxc.wxBDIAGONAL_HATCH
511wxCROSSDIAG_HATCH = wxc.wxCROSSDIAG_HATCH
512wxFDIAGONAL_HATCH = wxc.wxFDIAGONAL_HATCH
513wxCROSS_HATCH = wxc.wxCROSS_HATCH
514wxHORIZONTAL_HATCH = wxc.wxHORIZONTAL_HATCH
515wxVERTICAL_HATCH = wxc.wxVERTICAL_HATCH
516wxJOIN_BEVEL = wxc.wxJOIN_BEVEL
517wxJOIN_MITER = wxc.wxJOIN_MITER
518wxJOIN_ROUND = wxc.wxJOIN_ROUND
519wxCAP_ROUND = wxc.wxCAP_ROUND
520wxCAP_PROJECTING = wxc.wxCAP_PROJECTING
521wxCAP_BUTT = wxc.wxCAP_BUTT
522wxCLEAR = wxc.wxCLEAR
523wxXOR = wxc.wxXOR
524wxINVERT = wxc.wxINVERT
525wxOR_REVERSE = wxc.wxOR_REVERSE
526wxAND_REVERSE = wxc.wxAND_REVERSE
527wxCOPY = wxc.wxCOPY
528wxAND = wxc.wxAND
529wxAND_INVERT = wxc.wxAND_INVERT
530wxNO_OP = wxc.wxNO_OP
531wxNOR = wxc.wxNOR
532wxEQUIV = wxc.wxEQUIV
533wxSRC_INVERT = wxc.wxSRC_INVERT
534wxOR_INVERT = wxc.wxOR_INVERT
535wxNAND = wxc.wxNAND
536wxOR = wxc.wxOR
537wxSET = wxc.wxSET
b8b8dda7
RD
538WXK_BACK = wxc.WXK_BACK
539WXK_TAB = wxc.WXK_TAB
540WXK_RETURN = wxc.WXK_RETURN
541WXK_ESCAPE = wxc.WXK_ESCAPE
542WXK_SPACE = wxc.WXK_SPACE
543WXK_DELETE = wxc.WXK_DELETE
544WXK_START = wxc.WXK_START
545WXK_LBUTTON = wxc.WXK_LBUTTON
546WXK_RBUTTON = wxc.WXK_RBUTTON
547WXK_CANCEL = wxc.WXK_CANCEL
548WXK_MBUTTON = wxc.WXK_MBUTTON
549WXK_CLEAR = wxc.WXK_CLEAR
550WXK_SHIFT = wxc.WXK_SHIFT
32c988a3 551WXK_ALT = wxc.WXK_ALT
b8b8dda7
RD
552WXK_CONTROL = wxc.WXK_CONTROL
553WXK_MENU = wxc.WXK_MENU
554WXK_PAUSE = wxc.WXK_PAUSE
555WXK_CAPITAL = wxc.WXK_CAPITAL
556WXK_PRIOR = wxc.WXK_PRIOR
557WXK_NEXT = wxc.WXK_NEXT
558WXK_END = wxc.WXK_END
559WXK_HOME = wxc.WXK_HOME
560WXK_LEFT = wxc.WXK_LEFT
561WXK_UP = wxc.WXK_UP
562WXK_RIGHT = wxc.WXK_RIGHT
563WXK_DOWN = wxc.WXK_DOWN
564WXK_SELECT = wxc.WXK_SELECT
565WXK_PRINT = wxc.WXK_PRINT
566WXK_EXECUTE = wxc.WXK_EXECUTE
567WXK_SNAPSHOT = wxc.WXK_SNAPSHOT
568WXK_INSERT = wxc.WXK_INSERT
569WXK_HELP = wxc.WXK_HELP
570WXK_NUMPAD0 = wxc.WXK_NUMPAD0
571WXK_NUMPAD1 = wxc.WXK_NUMPAD1
572WXK_NUMPAD2 = wxc.WXK_NUMPAD2
573WXK_NUMPAD3 = wxc.WXK_NUMPAD3
574WXK_NUMPAD4 = wxc.WXK_NUMPAD4
575WXK_NUMPAD5 = wxc.WXK_NUMPAD5
576WXK_NUMPAD6 = wxc.WXK_NUMPAD6
577WXK_NUMPAD7 = wxc.WXK_NUMPAD7
578WXK_NUMPAD8 = wxc.WXK_NUMPAD8
579WXK_NUMPAD9 = wxc.WXK_NUMPAD9
580WXK_MULTIPLY = wxc.WXK_MULTIPLY
581WXK_ADD = wxc.WXK_ADD
582WXK_SEPARATOR = wxc.WXK_SEPARATOR
583WXK_SUBTRACT = wxc.WXK_SUBTRACT
584WXK_DECIMAL = wxc.WXK_DECIMAL
585WXK_DIVIDE = wxc.WXK_DIVIDE
586WXK_F1 = wxc.WXK_F1
587WXK_F2 = wxc.WXK_F2
588WXK_F3 = wxc.WXK_F3
589WXK_F4 = wxc.WXK_F4
590WXK_F5 = wxc.WXK_F5
591WXK_F6 = wxc.WXK_F6
592WXK_F7 = wxc.WXK_F7
593WXK_F8 = wxc.WXK_F8
594WXK_F9 = wxc.WXK_F9
595WXK_F10 = wxc.WXK_F10
596WXK_F11 = wxc.WXK_F11
597WXK_F12 = wxc.WXK_F12
598WXK_F13 = wxc.WXK_F13
599WXK_F14 = wxc.WXK_F14
600WXK_F15 = wxc.WXK_F15
601WXK_F16 = wxc.WXK_F16
602WXK_F17 = wxc.WXK_F17
603WXK_F18 = wxc.WXK_F18
604WXK_F19 = wxc.WXK_F19
605WXK_F20 = wxc.WXK_F20
606WXK_F21 = wxc.WXK_F21
607WXK_F22 = wxc.WXK_F22
608WXK_F23 = wxc.WXK_F23
609WXK_F24 = wxc.WXK_F24
610WXK_NUMLOCK = wxc.WXK_NUMLOCK
611WXK_SCROLL = wxc.WXK_SCROLL
612WXK_PAGEUP = wxc.WXK_PAGEUP
613WXK_PAGEDOWN = wxc.WXK_PAGEDOWN
32c988a3
RD
614WXK_NUMPAD_SPACE = wxc.WXK_NUMPAD_SPACE
615WXK_NUMPAD_TAB = wxc.WXK_NUMPAD_TAB
616WXK_NUMPAD_ENTER = wxc.WXK_NUMPAD_ENTER
617WXK_NUMPAD_F1 = wxc.WXK_NUMPAD_F1
618WXK_NUMPAD_F2 = wxc.WXK_NUMPAD_F2
619WXK_NUMPAD_F3 = wxc.WXK_NUMPAD_F3
620WXK_NUMPAD_F4 = wxc.WXK_NUMPAD_F4
621WXK_NUMPAD_HOME = wxc.WXK_NUMPAD_HOME
622WXK_NUMPAD_LEFT = wxc.WXK_NUMPAD_LEFT
623WXK_NUMPAD_UP = wxc.WXK_NUMPAD_UP
624WXK_NUMPAD_RIGHT = wxc.WXK_NUMPAD_RIGHT
625WXK_NUMPAD_DOWN = wxc.WXK_NUMPAD_DOWN
626WXK_NUMPAD_PRIOR = wxc.WXK_NUMPAD_PRIOR
627WXK_NUMPAD_PAGEUP = wxc.WXK_NUMPAD_PAGEUP
628WXK_NUMPAD_NEXT = wxc.WXK_NUMPAD_NEXT
629WXK_NUMPAD_PAGEDOWN = wxc.WXK_NUMPAD_PAGEDOWN
630WXK_NUMPAD_END = wxc.WXK_NUMPAD_END
631WXK_NUMPAD_BEGIN = wxc.WXK_NUMPAD_BEGIN
632WXK_NUMPAD_INSERT = wxc.WXK_NUMPAD_INSERT
633WXK_NUMPAD_DELETE = wxc.WXK_NUMPAD_DELETE
634WXK_NUMPAD_EQUAL = wxc.WXK_NUMPAD_EQUAL
635WXK_NUMPAD_MULTIPLY = wxc.WXK_NUMPAD_MULTIPLY
636WXK_NUMPAD_ADD = wxc.WXK_NUMPAD_ADD
637WXK_NUMPAD_SEPARATOR = wxc.WXK_NUMPAD_SEPARATOR
638WXK_NUMPAD_SUBTRACT = wxc.WXK_NUMPAD_SUBTRACT
639WXK_NUMPAD_DECIMAL = wxc.WXK_NUMPAD_DECIMAL
640WXK_NUMPAD_DIVIDE = wxc.WXK_NUMPAD_DIVIDE
7a446686
RD
641wxBITMAP_TYPE_INVALID = wxc.wxBITMAP_TYPE_INVALID
642wxBITMAP_TYPE_BMP = wxc.wxBITMAP_TYPE_BMP
643wxBITMAP_TYPE_BMP_RESOURCE = wxc.wxBITMAP_TYPE_BMP_RESOURCE
644wxBITMAP_TYPE_RESOURCE = wxc.wxBITMAP_TYPE_RESOURCE
645wxBITMAP_TYPE_ICO = wxc.wxBITMAP_TYPE_ICO
646wxBITMAP_TYPE_ICO_RESOURCE = wxc.wxBITMAP_TYPE_ICO_RESOURCE
647wxBITMAP_TYPE_CUR = wxc.wxBITMAP_TYPE_CUR
648wxBITMAP_TYPE_CUR_RESOURCE = wxc.wxBITMAP_TYPE_CUR_RESOURCE
649wxBITMAP_TYPE_XBM = wxc.wxBITMAP_TYPE_XBM
650wxBITMAP_TYPE_XBM_DATA = wxc.wxBITMAP_TYPE_XBM_DATA
651wxBITMAP_TYPE_XPM = wxc.wxBITMAP_TYPE_XPM
652wxBITMAP_TYPE_XPM_DATA = wxc.wxBITMAP_TYPE_XPM_DATA
653wxBITMAP_TYPE_TIF = wxc.wxBITMAP_TYPE_TIF
654wxBITMAP_TYPE_TIF_RESOURCE = wxc.wxBITMAP_TYPE_TIF_RESOURCE
655wxBITMAP_TYPE_GIF = wxc.wxBITMAP_TYPE_GIF
656wxBITMAP_TYPE_GIF_RESOURCE = wxc.wxBITMAP_TYPE_GIF_RESOURCE
657wxBITMAP_TYPE_PNG = wxc.wxBITMAP_TYPE_PNG
658wxBITMAP_TYPE_PNG_RESOURCE = wxc.wxBITMAP_TYPE_PNG_RESOURCE
659wxBITMAP_TYPE_JPEG = wxc.wxBITMAP_TYPE_JPEG
660wxBITMAP_TYPE_JPEG_RESOURCE = wxc.wxBITMAP_TYPE_JPEG_RESOURCE
661wxBITMAP_TYPE_PNM = wxc.wxBITMAP_TYPE_PNM
662wxBITMAP_TYPE_PNM_RESOURCE = wxc.wxBITMAP_TYPE_PNM_RESOURCE
663wxBITMAP_TYPE_PCX = wxc.wxBITMAP_TYPE_PCX
664wxBITMAP_TYPE_PCX_RESOURCE = wxc.wxBITMAP_TYPE_PCX_RESOURCE
665wxBITMAP_TYPE_PICT = wxc.wxBITMAP_TYPE_PICT
666wxBITMAP_TYPE_PICT_RESOURCE = wxc.wxBITMAP_TYPE_PICT_RESOURCE
667wxBITMAP_TYPE_ICON = wxc.wxBITMAP_TYPE_ICON
668wxBITMAP_TYPE_ICON_RESOURCE = wxc.wxBITMAP_TYPE_ICON_RESOURCE
db34b2d4 669wxBITMAP_TYPE_ANI = wxc.wxBITMAP_TYPE_ANI
85247b36 670wxBITMAP_TYPE_IFF = wxc.wxBITMAP_TYPE_IFF
7a446686
RD
671wxBITMAP_TYPE_MACCURSOR = wxc.wxBITMAP_TYPE_MACCURSOR
672wxBITMAP_TYPE_MACCURSOR_RESOURCE = wxc.wxBITMAP_TYPE_MACCURSOR_RESOURCE
673wxBITMAP_TYPE_ANY = wxc.wxBITMAP_TYPE_ANY
b8b8dda7
RD
674wxCURSOR_NONE = wxc.wxCURSOR_NONE
675wxCURSOR_ARROW = wxc.wxCURSOR_ARROW
a884bee5 676wxCURSOR_RIGHT_ARROW = wxc.wxCURSOR_RIGHT_ARROW
b8b8dda7
RD
677wxCURSOR_BULLSEYE = wxc.wxCURSOR_BULLSEYE
678wxCURSOR_CHAR = wxc.wxCURSOR_CHAR
679wxCURSOR_CROSS = wxc.wxCURSOR_CROSS
680wxCURSOR_HAND = wxc.wxCURSOR_HAND
681wxCURSOR_IBEAM = wxc.wxCURSOR_IBEAM
682wxCURSOR_LEFT_BUTTON = wxc.wxCURSOR_LEFT_BUTTON
683wxCURSOR_MAGNIFIER = wxc.wxCURSOR_MAGNIFIER
684wxCURSOR_MIDDLE_BUTTON = wxc.wxCURSOR_MIDDLE_BUTTON
685wxCURSOR_NO_ENTRY = wxc.wxCURSOR_NO_ENTRY
686wxCURSOR_PAINT_BRUSH = wxc.wxCURSOR_PAINT_BRUSH
687wxCURSOR_PENCIL = wxc.wxCURSOR_PENCIL
688wxCURSOR_POINT_LEFT = wxc.wxCURSOR_POINT_LEFT
689wxCURSOR_POINT_RIGHT = wxc.wxCURSOR_POINT_RIGHT
690wxCURSOR_QUESTION_ARROW = wxc.wxCURSOR_QUESTION_ARROW
691wxCURSOR_RIGHT_BUTTON = wxc.wxCURSOR_RIGHT_BUTTON
692wxCURSOR_SIZENESW = wxc.wxCURSOR_SIZENESW
693wxCURSOR_SIZENS = wxc.wxCURSOR_SIZENS
694wxCURSOR_SIZENWSE = wxc.wxCURSOR_SIZENWSE
695wxCURSOR_SIZEWE = wxc.wxCURSOR_SIZEWE
696wxCURSOR_SIZING = wxc.wxCURSOR_SIZING
697wxCURSOR_SPRAYCAN = wxc.wxCURSOR_SPRAYCAN
698wxCURSOR_WAIT = wxc.wxCURSOR_WAIT
699wxCURSOR_WATCH = wxc.wxCURSOR_WATCH
700wxCURSOR_BLANK = wxc.wxCURSOR_BLANK
7a446686
RD
701wxCURSOR_DEFAULT = wxc.wxCURSOR_DEFAULT
702wxCURSOR_ARROWWAIT = wxc.wxCURSOR_ARROWWAIT
703wxCURSOR_MAX = wxc.wxCURSOR_MAX
cf694132
RD
704wxPAPER_NONE = wxc.wxPAPER_NONE
705wxPAPER_LETTER = wxc.wxPAPER_LETTER
706wxPAPER_LEGAL = wxc.wxPAPER_LEGAL
707wxPAPER_A4 = wxc.wxPAPER_A4
708wxPAPER_CSHEET = wxc.wxPAPER_CSHEET
709wxPAPER_DSHEET = wxc.wxPAPER_DSHEET
710wxPAPER_ESHEET = wxc.wxPAPER_ESHEET
711wxPAPER_LETTERSMALL = wxc.wxPAPER_LETTERSMALL
712wxPAPER_TABLOID = wxc.wxPAPER_TABLOID
713wxPAPER_LEDGER = wxc.wxPAPER_LEDGER
714wxPAPER_STATEMENT = wxc.wxPAPER_STATEMENT
715wxPAPER_EXECUTIVE = wxc.wxPAPER_EXECUTIVE
716wxPAPER_A3 = wxc.wxPAPER_A3
717wxPAPER_A4SMALL = wxc.wxPAPER_A4SMALL
718wxPAPER_A5 = wxc.wxPAPER_A5
719wxPAPER_B4 = wxc.wxPAPER_B4
720wxPAPER_B5 = wxc.wxPAPER_B5
721wxPAPER_FOLIO = wxc.wxPAPER_FOLIO
722wxPAPER_QUARTO = wxc.wxPAPER_QUARTO
723wxPAPER_10X14 = wxc.wxPAPER_10X14
724wxPAPER_11X17 = wxc.wxPAPER_11X17
725wxPAPER_NOTE = wxc.wxPAPER_NOTE
726wxPAPER_ENV_9 = wxc.wxPAPER_ENV_9
727wxPAPER_ENV_10 = wxc.wxPAPER_ENV_10
728wxPAPER_ENV_11 = wxc.wxPAPER_ENV_11
729wxPAPER_ENV_12 = wxc.wxPAPER_ENV_12
730wxPAPER_ENV_14 = wxc.wxPAPER_ENV_14
731wxPAPER_ENV_DL = wxc.wxPAPER_ENV_DL
732wxPAPER_ENV_C5 = wxc.wxPAPER_ENV_C5
733wxPAPER_ENV_C3 = wxc.wxPAPER_ENV_C3
734wxPAPER_ENV_C4 = wxc.wxPAPER_ENV_C4
735wxPAPER_ENV_C6 = wxc.wxPAPER_ENV_C6
736wxPAPER_ENV_C65 = wxc.wxPAPER_ENV_C65
737wxPAPER_ENV_B4 = wxc.wxPAPER_ENV_B4
738wxPAPER_ENV_B5 = wxc.wxPAPER_ENV_B5
739wxPAPER_ENV_B6 = wxc.wxPAPER_ENV_B6
740wxPAPER_ENV_ITALY = wxc.wxPAPER_ENV_ITALY
741wxPAPER_ENV_MONARCH = wxc.wxPAPER_ENV_MONARCH
742wxPAPER_ENV_PERSONAL = wxc.wxPAPER_ENV_PERSONAL
743wxPAPER_FANFOLD_US = wxc.wxPAPER_FANFOLD_US
744wxPAPER_FANFOLD_STD_GERMAN = wxc.wxPAPER_FANFOLD_STD_GERMAN
745wxPAPER_FANFOLD_LGL_GERMAN = wxc.wxPAPER_FANFOLD_LGL_GERMAN
746wxPAPER_ISO_B4 = wxc.wxPAPER_ISO_B4
747wxPAPER_JAPANESE_POSTCARD = wxc.wxPAPER_JAPANESE_POSTCARD
748wxPAPER_9X11 = wxc.wxPAPER_9X11
749wxPAPER_10X11 = wxc.wxPAPER_10X11
750wxPAPER_15X11 = wxc.wxPAPER_15X11
751wxPAPER_ENV_INVITE = wxc.wxPAPER_ENV_INVITE
752wxPAPER_LETTER_EXTRA = wxc.wxPAPER_LETTER_EXTRA
753wxPAPER_LEGAL_EXTRA = wxc.wxPAPER_LEGAL_EXTRA
754wxPAPER_TABLOID_EXTRA = wxc.wxPAPER_TABLOID_EXTRA
755wxPAPER_A4_EXTRA = wxc.wxPAPER_A4_EXTRA
756wxPAPER_LETTER_TRANSVERSE = wxc.wxPAPER_LETTER_TRANSVERSE
757wxPAPER_A4_TRANSVERSE = wxc.wxPAPER_A4_TRANSVERSE
758wxPAPER_LETTER_EXTRA_TRANSVERSE = wxc.wxPAPER_LETTER_EXTRA_TRANSVERSE
759wxPAPER_A_PLUS = wxc.wxPAPER_A_PLUS
760wxPAPER_B_PLUS = wxc.wxPAPER_B_PLUS
761wxPAPER_LETTER_PLUS = wxc.wxPAPER_LETTER_PLUS
762wxPAPER_A4_PLUS = wxc.wxPAPER_A4_PLUS
763wxPAPER_A5_TRANSVERSE = wxc.wxPAPER_A5_TRANSVERSE
764wxPAPER_B5_TRANSVERSE = wxc.wxPAPER_B5_TRANSVERSE
765wxPAPER_A3_EXTRA = wxc.wxPAPER_A3_EXTRA
766wxPAPER_A5_EXTRA = wxc.wxPAPER_A5_EXTRA
767wxPAPER_B5_EXTRA = wxc.wxPAPER_B5_EXTRA
768wxPAPER_A2 = wxc.wxPAPER_A2
769wxPAPER_A3_TRANSVERSE = wxc.wxPAPER_A3_TRANSVERSE
770wxPAPER_A3_EXTRA_TRANSVERSE = wxc.wxPAPER_A3_EXTRA_TRANSVERSE
bb0054cd
RD
771wxDUPLEX_SIMPLEX = wxc.wxDUPLEX_SIMPLEX
772wxDUPLEX_HORIZONTAL = wxc.wxDUPLEX_HORIZONTAL
773wxDUPLEX_VERTICAL = wxc.wxDUPLEX_VERTICAL
546bfbea
VS
774wxITEM_SEPARATOR = wxc.wxITEM_SEPARATOR
775wxITEM_NORMAL = wxc.wxITEM_NORMAL
776wxITEM_CHECK = wxc.wxITEM_CHECK
777wxITEM_RADIO = wxc.wxITEM_RADIO
778wxITEM_MAX = wxc.wxITEM_MAX
8cb49012
RD
779wxHT_NOWHERE = wxc.wxHT_NOWHERE
780wxHT_SCROLLBAR_FIRST = wxc.wxHT_SCROLLBAR_FIRST
781wxHT_SCROLLBAR_ARROW_LINE_1 = wxc.wxHT_SCROLLBAR_ARROW_LINE_1
782wxHT_SCROLLBAR_ARROW_LINE_2 = wxc.wxHT_SCROLLBAR_ARROW_LINE_2
783wxHT_SCROLLBAR_ARROW_PAGE_1 = wxc.wxHT_SCROLLBAR_ARROW_PAGE_1
784wxHT_SCROLLBAR_ARROW_PAGE_2 = wxc.wxHT_SCROLLBAR_ARROW_PAGE_2
785wxHT_SCROLLBAR_THUMB = wxc.wxHT_SCROLLBAR_THUMB
786wxHT_SCROLLBAR_BAR_1 = wxc.wxHT_SCROLLBAR_BAR_1
787wxHT_SCROLLBAR_BAR_2 = wxc.wxHT_SCROLLBAR_BAR_2
788wxHT_SCROLLBAR_LAST = wxc.wxHT_SCROLLBAR_LAST
789wxHT_WINDOW_OUTSIDE = wxc.wxHT_WINDOW_OUTSIDE
790wxHT_WINDOW_INSIDE = wxc.wxHT_WINDOW_INSIDE
791wxHT_WINDOW_VERT_SCROLLBAR = wxc.wxHT_WINDOW_VERT_SCROLLBAR
792wxHT_WINDOW_HORZ_SCROLLBAR = wxc.wxHT_WINDOW_HORZ_SCROLLBAR
793wxHT_WINDOW_CORNER = wxc.wxHT_WINDOW_CORNER
794wxHT_MAX = wxc.wxHT_MAX
b8b8dda7
RD
795FALSE = wxc.FALSE
796false = wxc.false
797TRUE = wxc.TRUE
798true = wxc.true
799wxEVT_NULL = wxc.wxEVT_NULL
800wxEVT_FIRST = wxc.wxEVT_FIRST
801wxEVT_COMMAND_BUTTON_CLICKED = wxc.wxEVT_COMMAND_BUTTON_CLICKED
802wxEVT_COMMAND_CHECKBOX_CLICKED = wxc.wxEVT_COMMAND_CHECKBOX_CLICKED
803wxEVT_COMMAND_CHOICE_SELECTED = wxc.wxEVT_COMMAND_CHOICE_SELECTED
804wxEVT_COMMAND_LISTBOX_SELECTED = wxc.wxEVT_COMMAND_LISTBOX_SELECTED
805wxEVT_COMMAND_LISTBOX_DOUBLECLICKED = wxc.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
806wxEVT_COMMAND_CHECKLISTBOX_TOGGLED = wxc.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
3af4e610 807wxEVT_COMMAND_SPINCTRL_UPDATED = wxc.wxEVT_COMMAND_SPINCTRL_UPDATED
b8b8dda7
RD
808wxEVT_COMMAND_TEXT_UPDATED = wxc.wxEVT_COMMAND_TEXT_UPDATED
809wxEVT_COMMAND_TEXT_ENTER = wxc.wxEVT_COMMAND_TEXT_ENTER
059a841c
RD
810wxEVT_COMMAND_TEXT_URL = wxc.wxEVT_COMMAND_TEXT_URL
811wxEVT_COMMAND_TEXT_MAXLEN = wxc.wxEVT_COMMAND_TEXT_MAXLEN
b8b8dda7
RD
812wxEVT_COMMAND_MENU_SELECTED = wxc.wxEVT_COMMAND_MENU_SELECTED
813wxEVT_COMMAND_SLIDER_UPDATED = wxc.wxEVT_COMMAND_SLIDER_UPDATED
814wxEVT_COMMAND_RADIOBOX_SELECTED = wxc.wxEVT_COMMAND_RADIOBOX_SELECTED
815wxEVT_COMMAND_RADIOBUTTON_SELECTED = wxc.wxEVT_COMMAND_RADIOBUTTON_SELECTED
816wxEVT_COMMAND_SCROLLBAR_UPDATED = wxc.wxEVT_COMMAND_SCROLLBAR_UPDATED
817wxEVT_COMMAND_VLBOX_SELECTED = wxc.wxEVT_COMMAND_VLBOX_SELECTED
818wxEVT_COMMAND_COMBOBOX_SELECTED = wxc.wxEVT_COMMAND_COMBOBOX_SELECTED
819wxEVT_COMMAND_TOOL_CLICKED = wxc.wxEVT_COMMAND_TOOL_CLICKED
820wxEVT_COMMAND_TOOL_RCLICKED = wxc.wxEVT_COMMAND_TOOL_RCLICKED
821wxEVT_COMMAND_TOOL_ENTER = wxc.wxEVT_COMMAND_TOOL_ENTER
822wxEVT_SET_FOCUS = wxc.wxEVT_SET_FOCUS
823wxEVT_KILL_FOCUS = wxc.wxEVT_KILL_FOCUS
3e212503 824wxEVT_CHILD_FOCUS = wxc.wxEVT_CHILD_FOCUS
7a446686 825wxEVT_MOUSEWHEEL = wxc.wxEVT_MOUSEWHEEL
b8b8dda7
RD
826wxEVT_LEFT_DOWN = wxc.wxEVT_LEFT_DOWN
827wxEVT_LEFT_UP = wxc.wxEVT_LEFT_UP
828wxEVT_MIDDLE_DOWN = wxc.wxEVT_MIDDLE_DOWN
829wxEVT_MIDDLE_UP = wxc.wxEVT_MIDDLE_UP
830wxEVT_RIGHT_DOWN = wxc.wxEVT_RIGHT_DOWN
831wxEVT_RIGHT_UP = wxc.wxEVT_RIGHT_UP
832wxEVT_MOTION = wxc.wxEVT_MOTION
833wxEVT_ENTER_WINDOW = wxc.wxEVT_ENTER_WINDOW
834wxEVT_LEAVE_WINDOW = wxc.wxEVT_LEAVE_WINDOW
835wxEVT_LEFT_DCLICK = wxc.wxEVT_LEFT_DCLICK
836wxEVT_MIDDLE_DCLICK = wxc.wxEVT_MIDDLE_DCLICK
837wxEVT_RIGHT_DCLICK = wxc.wxEVT_RIGHT_DCLICK
94c16279 838wxEVT_MOUSE_CAPTURE_CHANGED = wxc.wxEVT_MOUSE_CAPTURE_CHANGED
b8b8dda7
RD
839wxEVT_NC_LEFT_DOWN = wxc.wxEVT_NC_LEFT_DOWN
840wxEVT_NC_LEFT_UP = wxc.wxEVT_NC_LEFT_UP
841wxEVT_NC_MIDDLE_DOWN = wxc.wxEVT_NC_MIDDLE_DOWN
842wxEVT_NC_MIDDLE_UP = wxc.wxEVT_NC_MIDDLE_UP
843wxEVT_NC_RIGHT_DOWN = wxc.wxEVT_NC_RIGHT_DOWN
844wxEVT_NC_RIGHT_UP = wxc.wxEVT_NC_RIGHT_UP
845wxEVT_NC_MOTION = wxc.wxEVT_NC_MOTION
846wxEVT_NC_ENTER_WINDOW = wxc.wxEVT_NC_ENTER_WINDOW
847wxEVT_NC_LEAVE_WINDOW = wxc.wxEVT_NC_LEAVE_WINDOW
848wxEVT_NC_LEFT_DCLICK = wxc.wxEVT_NC_LEFT_DCLICK
849wxEVT_NC_MIDDLE_DCLICK = wxc.wxEVT_NC_MIDDLE_DCLICK
850wxEVT_NC_RIGHT_DCLICK = wxc.wxEVT_NC_RIGHT_DCLICK
298ae144 851wxEVT_SET_CURSOR = wxc.wxEVT_SET_CURSOR
b8b8dda7 852wxEVT_CHAR = wxc.wxEVT_CHAR
8bf5d46e
RD
853wxEVT_KEY_DOWN = wxc.wxEVT_KEY_DOWN
854wxEVT_KEY_UP = wxc.wxEVT_KEY_UP
855wxEVT_CHAR_HOOK = wxc.wxEVT_CHAR_HOOK
b8b8dda7
RD
856wxEVT_SCROLL_TOP = wxc.wxEVT_SCROLL_TOP
857wxEVT_SCROLL_BOTTOM = wxc.wxEVT_SCROLL_BOTTOM
858wxEVT_SCROLL_LINEUP = wxc.wxEVT_SCROLL_LINEUP
859wxEVT_SCROLL_LINEDOWN = wxc.wxEVT_SCROLL_LINEDOWN
860wxEVT_SCROLL_PAGEUP = wxc.wxEVT_SCROLL_PAGEUP
861wxEVT_SCROLL_PAGEDOWN = wxc.wxEVT_SCROLL_PAGEDOWN
862wxEVT_SCROLL_THUMBTRACK = wxc.wxEVT_SCROLL_THUMBTRACK
26b9cf27 863wxEVT_SCROLL_THUMBRELEASE = wxc.wxEVT_SCROLL_THUMBRELEASE
123908fc 864wxEVT_SCROLL_ENDSCROLL = wxc.wxEVT_SCROLL_ENDSCROLL
bb0054cd
RD
865wxEVT_SCROLLWIN_TOP = wxc.wxEVT_SCROLLWIN_TOP
866wxEVT_SCROLLWIN_BOTTOM = wxc.wxEVT_SCROLLWIN_BOTTOM
867wxEVT_SCROLLWIN_LINEUP = wxc.wxEVT_SCROLLWIN_LINEUP
868wxEVT_SCROLLWIN_LINEDOWN = wxc.wxEVT_SCROLLWIN_LINEDOWN
869wxEVT_SCROLLWIN_PAGEUP = wxc.wxEVT_SCROLLWIN_PAGEUP
870wxEVT_SCROLLWIN_PAGEDOWN = wxc.wxEVT_SCROLLWIN_PAGEDOWN
871wxEVT_SCROLLWIN_THUMBTRACK = wxc.wxEVT_SCROLLWIN_THUMBTRACK
26b9cf27 872wxEVT_SCROLLWIN_THUMBRELEASE = wxc.wxEVT_SCROLLWIN_THUMBRELEASE
b8b8dda7
RD
873wxEVT_SIZE = wxc.wxEVT_SIZE
874wxEVT_MOVE = wxc.wxEVT_MOVE
875wxEVT_CLOSE_WINDOW = wxc.wxEVT_CLOSE_WINDOW
876wxEVT_END_SESSION = wxc.wxEVT_END_SESSION
877wxEVT_QUERY_END_SESSION = wxc.wxEVT_QUERY_END_SESSION
878wxEVT_ACTIVATE_APP = wxc.wxEVT_ACTIVATE_APP
879wxEVT_POWER = wxc.wxEVT_POWER
b8b8dda7
RD
880wxEVT_ACTIVATE = wxc.wxEVT_ACTIVATE
881wxEVT_CREATE = wxc.wxEVT_CREATE
882wxEVT_DESTROY = wxc.wxEVT_DESTROY
883wxEVT_SHOW = wxc.wxEVT_SHOW
884wxEVT_ICONIZE = wxc.wxEVT_ICONIZE
885wxEVT_MAXIMIZE = wxc.wxEVT_MAXIMIZE
b8b8dda7
RD
886wxEVT_PAINT = wxc.wxEVT_PAINT
887wxEVT_ERASE_BACKGROUND = wxc.wxEVT_ERASE_BACKGROUND
888wxEVT_NC_PAINT = wxc.wxEVT_NC_PAINT
889wxEVT_PAINT_ICON = wxc.wxEVT_PAINT_ICON
4152e8b9
RD
890wxEVT_MENU_OPEN = wxc.wxEVT_MENU_OPEN
891wxEVT_MENU_CLOSE = wxc.wxEVT_MENU_CLOSE
b8b8dda7 892wxEVT_MENU_HIGHLIGHT = wxc.wxEVT_MENU_HIGHLIGHT
f0972d1e 893wxEVT_CONTEXT_MENU = wxc.wxEVT_CONTEXT_MENU
b8b8dda7 894wxEVT_SYS_COLOUR_CHANGED = wxc.wxEVT_SYS_COLOUR_CHANGED
ef2060fa 895wxEVT_DISPLAY_CHANGED = wxc.wxEVT_DISPLAY_CHANGED
b8b8dda7
RD
896wxEVT_SETTING_CHANGED = wxc.wxEVT_SETTING_CHANGED
897wxEVT_QUERY_NEW_PALETTE = wxc.wxEVT_QUERY_NEW_PALETTE
898wxEVT_PALETTE_CHANGED = wxc.wxEVT_PALETTE_CHANGED
899wxEVT_JOY_BUTTON_DOWN = wxc.wxEVT_JOY_BUTTON_DOWN
900wxEVT_JOY_BUTTON_UP = wxc.wxEVT_JOY_BUTTON_UP
901wxEVT_JOY_MOVE = wxc.wxEVT_JOY_MOVE
902wxEVT_JOY_ZMOVE = wxc.wxEVT_JOY_ZMOVE
903wxEVT_DROP_FILES = wxc.wxEVT_DROP_FILES
904wxEVT_DRAW_ITEM = wxc.wxEVT_DRAW_ITEM
905wxEVT_MEASURE_ITEM = wxc.wxEVT_MEASURE_ITEM
906wxEVT_COMPARE_ITEM = wxc.wxEVT_COMPARE_ITEM
907wxEVT_INIT_DIALOG = wxc.wxEVT_INIT_DIALOG
908wxEVT_IDLE = wxc.wxEVT_IDLE
909wxEVT_UPDATE_UI = wxc.wxEVT_UPDATE_UI
910wxEVT_COMMAND_LEFT_CLICK = wxc.wxEVT_COMMAND_LEFT_CLICK
911wxEVT_COMMAND_LEFT_DCLICK = wxc.wxEVT_COMMAND_LEFT_DCLICK
912wxEVT_COMMAND_RIGHT_CLICK = wxc.wxEVT_COMMAND_RIGHT_CLICK
913wxEVT_COMMAND_RIGHT_DCLICK = wxc.wxEVT_COMMAND_RIGHT_DCLICK
914wxEVT_COMMAND_SET_FOCUS = wxc.wxEVT_COMMAND_SET_FOCUS
915wxEVT_COMMAND_KILL_FOCUS = wxc.wxEVT_COMMAND_KILL_FOCUS
916wxEVT_COMMAND_ENTER = wxc.wxEVT_COMMAND_ENTER
2f90df85 917wxEVT_NAVIGATION_KEY = wxc.wxEVT_NAVIGATION_KEY
f6bcfd97 918wxEVT_TIMER = wxc.wxEVT_TIMER
b8b8dda7
RD
919__version__ = wxc.__version__
920cvar = wxc.cvar
b68dc582
RD
921wxDefaultPosition = wxPointPtr(wxc.cvar.wxDefaultPosition)
922wxDefaultSize = wxSizePtr(wxc.cvar.wxDefaultSize)
b8b8dda7
RD
923
924
925#-------------- USER INCLUDE -----------------------
926
927#----------------------------------------------------------------------------
928# Name: _extra.py
929# Purpose: This file is appended to the shadow class file generated
930# by SWIG. We add some unSWIGable things here.
931#
932# Author: Robin Dunn
933#
934# Created: 6/30/97
b8b8dda7
RD
935# Copyright: (c) 1998 by Total Control Software
936# Licence: wxWindows license
937#----------------------------------------------------------------------------
938
939import sys
940
941#----------------------------------------------------------------------
942# This gives this module's dictionary to the C++ extension code...
943
944_wxSetDictionary(vars())
945
946
947#----------------------------------------------------------------------
948#----------------------------------------------------------------------
949# Helper function to link python methods to wxWindows virtual
950# functions by name.
951
952def _checkForCallback(obj, name, event, theID=-1):
953 try: cb = getattr(obj, name)
954 except: pass
955 else: obj.Connect(theID, -1, event, cb)
956
b8b8dda7
RD
957
958#----------------------------------------------------------------------
959#----------------------------------------------------------------------
960# functions that look and act like the C++ Macros of the same name
961
962
963# Miscellaneous
964def EVT_SIZE(win, func):
965 win.Connect(-1, -1, wxEVT_SIZE, func)
966
967def EVT_MOVE(win, func):
968 win.Connect(-1, -1, wxEVT_MOVE, func)
969
970def EVT_CLOSE(win, func):
971 win.Connect(-1, -1, wxEVT_CLOSE_WINDOW, func)
972
973def EVT_PAINT(win, func):
974 win.Connect(-1, -1, wxEVT_PAINT, func)
975
976def EVT_ERASE_BACKGROUND(win, func):
977 win.Connect(-1, -1, wxEVT_ERASE_BACKGROUND, func)
978
979def EVT_CHAR(win, func):
980 win.Connect(-1, -1, wxEVT_CHAR, func)
981
982def EVT_CHAR_HOOK(win, func):
983 win.Connect(-1, -1, wxEVT_CHAR_HOOK, func)
984
8bf5d46e
RD
985def EVT_KEY_DOWN(win, func):
986 win.Connect(-1, -1, wxEVT_KEY_DOWN, func)
987
988def EVT_KEY_UP(win, func):
989 win.Connect(-1, -1, wxEVT_KEY_UP, func)
990
4152e8b9
RD
991def EVT_MENU_OPEN(win, func):
992 win.Connect(-1, -1, wxEVT_MENU_OPEN, func)
993
994def EVT_MENU_CLOSE(win, func):
995 win.Connect(-1, -1, wxEVT_MENU_CLOSE, func)
996
b8b8dda7
RD
997def EVT_MENU_HIGHLIGHT(win, id, func):
998 win.Connect(id, -1, wxEVT_MENU_HIGHLIGHT, func)
999
1000def EVT_MENU_HIGHLIGHT_ALL(win, func):
1001 win.Connect(-1, -1, wxEVT_MENU_HIGHLIGHT, func)
1002
1003def EVT_SET_FOCUS(win, func):
1004 win.Connect(-1, -1, wxEVT_SET_FOCUS, func)
1005
1006def EVT_KILL_FOCUS(win, func):
1007 win.Connect(-1, -1, wxEVT_KILL_FOCUS, func)
1008
3e212503
RD
1009def EVT_CHILD_FOCUS(win, func):
1010 win.Connect(-1, -1, wxEVT_CHILD_FOCUS, func)
1011
b8b8dda7
RD
1012def EVT_ACTIVATE(win, func):
1013 win.Connect(-1, -1, wxEVT_ACTIVATE, func)
1014
1015def EVT_ACTIVATE_APP(win, func):
1016 win.Connect(-1, -1, wxEVT_ACTIVATE_APP, func)
1017
1018def EVT_END_SESSION(win, func):
1019 win.Connect(-1, -1, wxEVT_END_SESSION, func)
1020
1021def EVT_QUERY_END_SESSION(win, func):
1022 win.Connect(-1, -1, wxEVT_QUERY_END_SESSION, func)
1023
1024def EVT_DROP_FILES(win, func):
1025 win.Connect(-1, -1, wxEVT_DROP_FILES, func)
1026
1027def EVT_INIT_DIALOG(win, func):
1028 win.Connect(-1, -1, wxEVT_INIT_DIALOG, func)
1029
1030def EVT_SYS_COLOUR_CHANGED(win, func):
1031 win.Connect(-1, -1, wxEVT_SYS_COLOUR_CHANGED, func)
1032
ef2060fa
RD
1033def EVT_DISPLAY_CHANGED(win, func):
1034 win.Connect(-1, -1, wxEVT_DISPLAY_CHANGED, func)
1035
b8b8dda7
RD
1036def EVT_SHOW(win, func):
1037 win.Connect(-1, -1, wxEVT_SHOW, func)
1038
1039def EVT_MAXIMIZE(win, func):
1040 win.Connect(-1, -1, wxEVT_MAXIMIZE, func)
1041
1042def EVT_ICONIZE(win, func):
1043 win.Connect(-1, -1, wxEVT_ICONIZE, func)
1044
1045def EVT_NAVIGATION_KEY(win, func):
1046 win.Connect(-1, -1, wxEVT_NAVIGATION_KEY, func)
1047
3af4e610
RD
1048def EVT_PALETTE_CHANGED(win, func):
1049 win.Connect(-1, -1, wxEVT_PALETTE_CHANGED, func)
1050
1051def EVT_QUERY_NEW_PALETTE(win, func):
1052 win.Connect(-1, -1, wxEVT_QUERY_NEW_PALETTE, func)
1053
1054def EVT_WINDOW_CREATE(win, func):
b7e72427 1055 win.Connect(-1, -1, wxEVT_CREATE, func)
3af4e610
RD
1056
1057def EVT_WINDOW_DESTROY(win, func):
b7e72427 1058 win.Connect(-1, -1, wxEVT_DESTROY, func)
3af4e610 1059
298ae144
RD
1060def EVT_SET_CURSOR(win, func):
1061 win.Connect(-1, -1, wxEVT_SET_CURSOR, func)
1062
3af4e610
RD
1063
1064
cf694132
RD
1065def EVT_IDLE(win, func):
1066 win.Connect(-1, -1, wxEVT_IDLE, func)
1067
bb0054cd
RD
1068def EVT_UPDATE_UI(win, id, func):
1069 win.Connect(id, -1, wxEVT_UPDATE_UI, func)
1070
eb715945
RD
1071def EVT_UPDATE_UI_RANGE(win, id, id2, func):
1072 win.Connect(id, id2, wxEVT_UPDATE_UI, func)
1073
b8b8dda7
RD
1074
1075# Mouse Events
1076def EVT_LEFT_DOWN(win, func):
1077 win.Connect(-1, -1, wxEVT_LEFT_DOWN, func)
1078
1079def EVT_LEFT_UP(win, func):
1080 win.Connect(-1, -1, wxEVT_LEFT_UP, func)
1081
1082def EVT_MIDDLE_DOWN(win, func):
1083 win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func)
1084
1085def EVT_MIDDLE_UP(win, func):
1086 win.Connect(-1, -1, wxEVT_MIDDLE_UP, func)
1087
1088def EVT_RIGHT_DOWN(win, func):
1089 win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func)
1090
1091def EVT_RIGHT_UP(win, func):
1092 win.Connect(-1, -1, wxEVT_RIGHT_UP, func)
1093
1094def EVT_MOTION(win, func):
1095 win.Connect(-1, -1, wxEVT_MOTION, func)
1096
1097def EVT_LEFT_DCLICK(win, func):
1098 win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func)
1099
1100def EVT_MIDDLE_DCLICK(win, func):
1101 win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func)
1102
1103def EVT_RIGHT_DCLICK(win, func):
1104 win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func)
1105
1106def EVT_LEAVE_WINDOW(win, func):
1107 win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func)
1108
1109def EVT_ENTER_WINDOW(win, func):
1110 win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func)
1111
7a446686
RD
1112def EVT_MOUSEWHEEL(win, func):
1113 win.Connect(-1, -1, wxEVT_MOUSEWHEEL, func)
b8b8dda7
RD
1114
1115# all mouse events
1116def EVT_MOUSE_EVENTS(win, func):
1117 win.Connect(-1, -1, wxEVT_LEFT_DOWN, func)
1118 win.Connect(-1, -1, wxEVT_LEFT_UP, func)
1119 win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func)
1120 win.Connect(-1, -1, wxEVT_MIDDLE_UP, func)
1121 win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func)
1122 win.Connect(-1, -1, wxEVT_RIGHT_UP, func)
1123 win.Connect(-1, -1, wxEVT_MOTION, func)
1124 win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func)
1125 win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func)
1126 win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func)
1127 win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func)
1128 win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func)
1129
94c16279
RD
1130def EVT_MOUSE_CAPTURE_CHANGED(win, func):
1131 win.Connect(-1, -1, wxEVT_MOUSE_CAPTURE_CHANGED, func)
1132
b8b8dda7
RD
1133# EVT_COMMAND
1134def EVT_COMMAND(win, id, cmd, func):
1135 win.Connect(id, -1, cmd, func)
1136
1137def EVT_COMMAND_RANGE(win, id1, id2, cmd, func):
1138 win.Connect(id1, id2, cmd, func)
1139
26b9cf27 1140
b8b8dda7
RD
1141# Scrolling
1142def EVT_SCROLL(win, func):
123908fc
RD
1143 win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
1144 win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func)
1145 win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func)
1146 win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func)
1147 win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
1148 win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
1149 win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK, func)
26b9cf27 1150 win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE,func)
123908fc 1151 win.Connect(-1, -1, wxEVT_SCROLL_ENDSCROLL, func)
b8b8dda7
RD
1152
1153def EVT_SCROLL_TOP(win, func):
1154 win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
1155
1156def EVT_SCROLL_BOTTOM(win, func):
1157 win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func)
1158
1159def EVT_SCROLL_LINEUP(win, func):
1160 win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func)
1161
1162def EVT_SCROLL_LINEDOWN(win, func):
1163 win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func)
1164
1165def EVT_SCROLL_PAGEUP(win, func):
1166 win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
1167
1168def EVT_SCROLL_PAGEDOWN(win, func):
1169 win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
1170
1171def EVT_SCROLL_THUMBTRACK(win, func):
1172 win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK, func)
1173
26b9cf27
RD
1174def EVT_SCROLL_THUMBRELEASE(win, func):
1175 win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE, func)
1176
123908fc
RD
1177def EVT_SCROLL_ENDSCROLL(win, func):
1178 win.Connect(-1, -1, wxEVT_SCROLL_ENDSCROLL, func)
1179
b8b8dda7
RD
1180
1181
1182# Scrolling, with an id
1183def EVT_COMMAND_SCROLL(win, id, func):
1184 win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
1185 win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
1186 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
1187 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
1188 win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
1189 win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
1190 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
26b9cf27 1191 win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE,func)
123908fc 1192 win.Connect(-1, -1, wxEVT_SCROLL_ENDSCROLL, func)
b8b8dda7
RD
1193
1194def EVT_COMMAND_SCROLL_TOP(win, id, func):
1195 win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
1196
1197def EVT_COMMAND_SCROLL_BOTTOM(win, id, func):
1198 win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
1199
1200def EVT_COMMAND_SCROLL_LINEUP(win, id, func):
1201 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
1202
1203def EVT_COMMAND_SCROLL_LINEDOWN(win, id, func):
1204 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
1205
1206def EVT_COMMAND_SCROLL_PAGEUP(win, id, func):
1207 win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
1208
1209def EVT_COMMAND_SCROLL_PAGEDOWN(win, id, func):
1210 win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
1211
1212def EVT_COMMAND_SCROLL_THUMBTRACK(win, id, func):
1213 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK, func)
1214
26b9cf27
RD
1215def EVT_COMMAND_SCROLL_THUMBRELEASE(win, id, func):
1216 win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE, func)
1217
123908fc
RD
1218def EVT_COMMAND_SCROLL_ENDSCROLL(win, id, func):
1219 win.Connect(id, -1, wxEVT_SCROLL_ENDSCROLL, func)
1220
d426c97e
RD
1221#---
1222def EVT_SCROLLWIN(win, func):
26b9cf27
RD
1223 win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
1224 win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func)
1225 win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func)
1226 win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
1227 win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func)
1228 win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
1229 win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
1230 win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE,func)
d426c97e
RD
1231
1232def EVT_SCROLLWIN_TOP(win, func):
1233 win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
1234
1235def EVT_SCROLLWIN_BOTTOM(win, func):
1236 win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func)
1237
1238def EVT_SCROLLWIN_LINEUP(win, func):
1239 win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func)
1240
1241def EVT_SCROLLWIN_LINEDOWN(win, func):
1242 win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
1243
1244def EVT_SCROLLWIN_PAGEUP(win, func):
1245 win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func)
1246
1247def EVT_SCROLLWIN_PAGEDOWN(win, func):
1248 win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
1249
1250def EVT_SCROLLWIN_THUMBTRACK(win, func):
1251 win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
1252
26b9cf27
RD
1253def EVT_SCROLLWIN_THUMBRELEASE(win, func):
1254 win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func)
1255
d426c97e
RD
1256
1257
1258# Scrolling, with an id
1259def EVT_COMMAND_SCROLLWIN(win, id, func):
26b9cf27
RD
1260 win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
1261 win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func)
1262 win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func)
1263 win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
1264 win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func)
1265 win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
1266 win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
1267 win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE,func)
d426c97e
RD
1268
1269def EVT_COMMAND_SCROLLWIN_TOP(win, id, func):
1270 win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
1271
1272def EVT_COMMAND_SCROLLWIN_BOTTOM(win, id, func):
1273 win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func)
1274
1275def EVT_COMMAND_SCROLLWIN_LINEUP(win, id, func):
1276 win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func)
1277
1278def EVT_COMMAND_SCROLLWIN_LINEDOWN(win, id, func):
1279 win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
1280
1281def EVT_COMMAND_SCROLLWIN_PAGEUP(win, id, func):
1282 win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func)
1283
1284def EVT_COMMAND_SCROLLWIN_PAGEDOWN(win, id, func):
1285 win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
1286
1287def EVT_COMMAND_SCROLLWIN_THUMBTRACK(win, id, func):
1288 win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
b8b8dda7 1289
26b9cf27
RD
1290def EVT_COMMAND_SCROLLWIN_THUMBRELEASE(win, id, func):
1291 win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func)
1292
1293
b8b8dda7
RD
1294# Convenience commands
1295def EVT_BUTTON(win, id, func):
1296 win.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED, func)
1297
1298def EVT_CHECKBOX(win, id, func):
1299 win.Connect(id, -1, wxEVT_COMMAND_CHECKBOX_CLICKED, func)
1300
1301def EVT_CHOICE(win, id, func):
1302 win.Connect(id, -1, wxEVT_COMMAND_CHOICE_SELECTED, func)
1303
1304def EVT_LISTBOX(win, id, func):
1305 win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_SELECTED, func)
1306
1307def EVT_LISTBOX_DCLICK(win, id, func):
1308 win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, func)
1309
1310def EVT_TEXT(win, id, func):
1311 win.Connect(id, -1, wxEVT_COMMAND_TEXT_UPDATED, func)
1312
1313def EVT_TEXT_ENTER(win, id, func):
1314 win.Connect(id, -1, wxEVT_COMMAND_TEXT_ENTER, func)
1315
059a841c
RD
1316def EVT_TEXT_URL(win, id, func):
1317 win.Connect(id, -1, wxEVT_COMMAND_TEXT_URL, func)
1318
1319def EVT_TEXT_MAXLEN(win, id, func):
1320 win.Connect(id, -1, wxEVT_COMMAND_TEXT_MAXLEN, func)
1321
b8b8dda7
RD
1322def EVT_MENU(win, id, func):
1323 win.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED, func)
1324
1325def EVT_MENU_RANGE(win, id1, id2, func):
1326 win.Connect(id1, id2, wxEVT_COMMAND_MENU_SELECTED, func)
1327
1328def EVT_SLIDER(win, id, func):
1329 win.Connect(id, -1, wxEVT_COMMAND_SLIDER_UPDATED, func)
1330
1331def EVT_RADIOBOX(win, id, func):
1332 win.Connect(id, -1, wxEVT_COMMAND_RADIOBOX_SELECTED, func)
1333
1334def EVT_RADIOBUTTON(win, id, func):
1335 win.Connect(id, -1, wxEVT_COMMAND_RADIOBUTTON_SELECTED, func)
1336
1337def EVT_VLBOX(win, id, func):
1338 win.Connect(id, -1, wxEVT_COMMAND_VLBOX_SELECTED, func)
1339
1340def EVT_COMBOBOX(win, id, func):
1341 win.Connect(id, -1, wxEVT_COMMAND_COMBOBOX_SELECTED, func)
1342
1343def EVT_TOOL(win, id, func):
1344 win.Connect(id, -1, wxEVT_COMMAND_TOOL_CLICKED, func)
1345
3af4e610
RD
1346def EVT_TOOL_RANGE(win, id, id2, func):
1347 win.Connect(id, id2, wxEVT_COMMAND_TOOL_CLICKED, func)
1348
b8b8dda7
RD
1349def EVT_TOOL_RCLICKED(win, id, func):
1350 win.Connect(id, -1, wxEVT_COMMAND_TOOL_RCLICKED, func)
1351
3af4e610
RD
1352def EVT_TOOL_RCLICKED_RANGE(win, id, id2, func):
1353 win.Connect(id, id2, wxEVT_COMMAND_TOOL_RCLICKED, func)
1354
b8b8dda7
RD
1355def EVT_TOOL_ENTER(win, id, func):
1356 win.Connect(id, -1, wxEVT_COMMAND_TOOL_ENTER, func)
1357
1358def EVT_CHECKLISTBOX(win, id, func):
1359 win.Connect(id, -1, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, func)
1360
3af4e610
RD
1361def EVT_SPINCTRL(win, id, func):
1362 win.Connect(id, -1, wxEVT_COMMAND_SPINCTRL_UPDATED, func)
1363
1364
b8b8dda7
RD
1365
1366# Generic command events
1367
1368def EVT_COMMAND_LEFT_CLICK(win, id, func):
1369 win.Connect(id, -1, wxEVT_COMMAND_LEFT_CLICK, func)
1370
1371def EVT_COMMAND_LEFT_DCLICK(win, id, func):
1372 win.Connect(id, -1, wxEVT_COMMAND_LEFT_DCLICK, func)
1373
1374def EVT_COMMAND_RIGHT_CLICK(win, id, func):
1375 win.Connect(id, -1, wxEVT_COMMAND_RIGHT_CLICK, func)
1376
1377def EVT_COMMAND_RIGHT_DCLICK(win, id, func):
1378 win.Connect(id, -1, wxEVT_COMMAND_RIGHT_DCLICK, func)
1379
1380def EVT_COMMAND_SET_FOCUS(win, id, func):
1381 win.Connect(id, -1, wxEVT_COMMAND_SET_FOCUS, func)
1382
1383def EVT_COMMAND_KILL_FOCUS(win, id, func):
1384 win.Connect(id, -1, wxEVT_COMMAND_KILL_FOCUS, func)
1385
1386def EVT_COMMAND_ENTER(win, id, func):
1387 win.Connect(id, -1, wxEVT_COMMAND_ENTER, func)
1388
1389
1390# wxNotebook events
1391def EVT_NOTEBOOK_PAGE_CHANGED(win, id, func):
1392 win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, func)
1393
1394def EVT_NOTEBOOK_PAGE_CHANGING(win, id, func):
1395 win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, func)
1396
1397
b8b8dda7
RD
1398# wxSpinButton
1399def EVT_SPIN_UP(win, id, func):
1400 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
1401
1402def EVT_SPIN_DOWN(win, id, func):
f6bcfd97 1403 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
b8b8dda7
RD
1404
1405def EVT_SPIN(win, id, func):
b8b8dda7
RD
1406 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
1407
1408
b8b8dda7
RD
1409# wxTaskBarIcon
1410def EVT_TASKBAR_MOVE(win, func):
1411 win.Connect(-1, -1, wxEVT_TASKBAR_MOVE, func)
1412
1413def EVT_TASKBAR_LEFT_DOWN(win, func):
1414 win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DOWN, func)
1415
1416def EVT_TASKBAR_LEFT_UP(win, func):
1417 win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_UP, func)
1418
1419def EVT_TASKBAR_RIGHT_DOWN(win, func):
1420 win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DOWN, func)
1421
1422def EVT_TASKBAR_RIGHT_UP(win, func):
1423 win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_UP, func)
1424
1425def EVT_TASKBAR_LEFT_DCLICK(win, func):
1426 win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DCLICK, func)
1427
1428def EVT_TASKBAR_RIGHT_DCLICK(win, func):
1429 win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DCLICK, func)
1430
1431
08127323
RD
1432# wxSashWindow
1433def EVT_SASH_DRAGGED(win, id, func):
1434 win.Connect(id, -1, wxEVT_SASH_DRAGGED, func)
1435
1436def EVT_SASH_DRAGGED_RANGE(win, id1, id2, func):
1437 win.Connect(id1, id2, wxEVT_SASH_DRAGGED, func)
1438
1439def EVT_QUERY_LAYOUT_INFO(win, func):
1440 win.Connect(-1, -1, wxEVT_EVT_QUERY_LAYOUT_INFO, func)
1441
1442def EVT_CALCULATE_LAYOUT(win, func):
1443 win.Connect(-1, -1, wxEVT_EVT_CALCULATE_LAYOUT, func)
1444
1445
bb0054cd
RD
1446#wxSplitterWindow
1447def EVT_SPLITTER_SASH_POS_CHANGING(win, id, func):
1448 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, func)
1449
1450def EVT_SPLITTER_SASH_POS_CHANGED(win, id, func):
1451 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, func)
1452
1453def EVT_SPLITTER_UNSPLIT(win, id, func):
1454 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_UNSPLIT, func)
1455
1456def EVT_SPLITTER_DOUBLECLICKED(win, id, func):
1457 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, func)
1458
b8b8dda7 1459
f6bcfd97
BP
1460# wxTimer
1461def EVT_TIMER(win, id, func):
1462 win.Connect(id, -1, wxEVT_TIMER, func)
1463
c368d904
RD
1464# wxProcess
1465def EVT_END_PROCESS(eh, id, func):
1466 eh.Connect(id, -1, wxEVT_END_PROCESS, func)
f6bcfd97 1467
2cd2fac8
RD
1468
1469# wxJoyStick
1470def EVT_JOY_DOWN(win, func):
25d73e0f 1471 win.Connect(-1, -1, wxEVT_JOY_BUTTON_DOWN, func)
2cd2fac8
RD
1472
1473def EVT_JOY_UP(win, func):
25d73e0f 1474 win.Connect(-1, -1, wxEVT_JOY_BUTTON_UP, func)
2cd2fac8
RD
1475
1476def EVT_JOY_MOVE(win, func):
1477 win.Connect(-1, -1, wxEVT_JOY_MOVE, func)
1478
1479def EVT_JOY_ZMOVE(win, func):
1480 win.Connect(-1, -1, wxEVT_JOY_ZMOVE, func)
1481
1482def EVT_JOYSTICK_EVENTS(win, func):
25d73e0f
RD
1483 win.Connect(-1, -1, wxEVT_JOY_BUTTON_DOWN, func)
1484 win.Connect(-1, -1, wxEVT_JOY_BUTTON_UP, func)
2cd2fac8
RD
1485 win.Connect(-1, -1, wxEVT_JOY_MOVE, func)
1486 win.Connect(-1, -1, wxEVT_JOY_ZMOVE, func)
1487
7a446686
RD
1488
1489def EVT_TOGGLEBUTTON(win, id, func):
1490 win.Connect(id, -1, wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, func)
1491
1492
059a841c 1493
059a841c
RD
1494def EVT_CONTEXT_MENU(win, func):
1495 win.Connect(-1, -1, wxEVT_CONTEXT_MENU, func)
1496
1497
b8b8dda7
RD
1498#----------------------------------------------------------------------
1499
1500class wxTimer(wxPyTimer):
2cd2fac8
RD
1501 def __init__(self, evtHandler = None, id = -1):
1502 if evtHandler is None:
1503 wxPyTimer.__init__(self, self.Notify) # derived class must provide
1504 # Notify(self) method.
1505 else:
1506 wxPyTimer.__init__(self, None)
1507 self.SetOwner(evtHandler, id)
b8b8dda7 1508
b8b8dda7
RD
1509#----------------------------------------------------------------------
1510# aliases
1511
1512wxColor = wxColour
1513wxNamedColor = wxNamedColour
32c988a3 1514wxPen = wxPyPen
85247b36
RD
1515wxScrollbar = wxScrollBar
1516
11765138 1517
9b3d3bc4 1518# backwards compatibility
b68dc582
RD
1519wxNoRefBitmap = wxBitmap
1520wxPyDefaultPosition = wxDefaultPosition
1521wxPyDefaultSize = wxDefaultSize
db34b2d4
RD
1522NULL = None
1523wxSystemSettings_GetSystemColour = wxSystemSettings_GetColour
1524wxSystemSettings_GetSystemFont = wxSystemSettings_GetFont
1525wxSystemSettings_GetSystemMetric = wxSystemSettings_GetMetric
059a841c
RD
1526
1527#----------------------------------------------------------------------
1528# wxGTK sets the locale when initialized. Doing this at the Python
1529# level should set it up to match what GTK is doing at the C level.
85247b36
RD
1530if wxPlatform == "__WXGTK__":
1531 try:
1532 import locale
1533 locale.setlocale(locale.LC_ALL, "")
1534 except:
1535 pass
059a841c
RD
1536
1537
1538
1539#----------------------------------------------------------------------
1540# wxWindows version numbers. wxPython version is in __version__.
1541
1542wxMAJOR_VERSION = wxc.wxMAJOR_VERSION
1543wxMINOR_VERSION = wxc.wxMINOR_VERSION
1544wxRELEASE_NUMBER = wxc.wxRELEASE_NUMBER
1545wxVERSION_STRING = wxc.wxVERSION_STRING
1546wxVERSION_NUMBER = wxc.wxVERSION_NUMBER
1547
1548wxVERSION = (wxMAJOR_VERSION, wxMINOR_VERSION, wxRELEASE_NUMBER)
1549
1550
8bf5d46e
RD
1551#----------------------------------------------------------------------
1552# This helper function will take a wxPython object and convert it to
1553# another wxPython object type. This will not be able to create objects
f581a26d 1554# that are derived from wxPython classes by the user, only those that are
8bf5d46e
RD
1555# actually part of wxPython and directly corespond to C++ objects.
1556#
1557# This is useful in situations where some method returns a generic
1558# type such as wxWindow, but you know that it is actually some
1559# derived type such as a wxTextCtrl. You can't call wxTextCtrl specific
1560# methods on a wxWindow object, but you can use this function to
1561# create a wxTextCtrl object that will pass the same pointer to
1562# the C++ code. You use it like this:
1563#
1564# textCtrl = wxPyTypeCast(window, "wxTextCtrl")
1565#
1566#
1567# WARNING: Using this function to type cast objects into types that
1568# they are not is not recommended and is likely to cause your
1569# program to crash... Hard.
1570#
1571
1572def wxPyTypeCast(obj, typeStr):
c9482eba
RD
1573 if obj is None:
1574 return None
9df61a29
RD
1575 theClass = globals()[typeStr+"Ptr"]
1576 typeStr = __wxPyPtrTypeMap.get(typeStr, typeStr)
8bf5d46e 1577 if hasattr(obj, "this"):
5c0282d5
RD
1578 # if already the right type then just return it
1579 if isinstance(obj, theClass) or obj.__class__ is theClass:
9df61a29 1580 return obj
8bf5d46e
RD
1581 newPtr = ptrcast(obj.this, typeStr+"_p")
1582 else:
1583 newPtr = ptrcast(obj, typeStr+"_p")
8bf5d46e 1584 theObj = theClass(newPtr)
9b3d3bc4
RD
1585 if hasattr(obj, "this"):
1586 theObj.thisown = obj.thisown
8bf5d46e
RD
1587 return theObj
1588
1589
301dfd67 1590#----------------------------------------------------------------------------
8f8b0a8d
RD
1591_wxCallAfterId = None
1592
1593def wxCallAfter(callable, *args, **kw):
1594 """
1595 Call the specified function after the current and pending event
ba77f390
RD
1596 handlers have been completed. This is also good for making GUI
1597 method calls from non-GUI threads.
8f8b0a8d
RD
1598 """
1599 app = wxGetApp()
1600 assert app, 'No wxApp created yet'
1601
1602 global _wxCallAfterId
1603 if _wxCallAfterId is None:
1604 _wxCallAfterId = wxNewId()
1605 app.Connect(-1, -1, _wxCallAfterId,
1606 lambda event: apply(event.callable, event.args, event.kw) )
1607 evt = wxPyEvent()
1608 evt.SetEventType(_wxCallAfterId)
1609 evt.callable = callable
1610 evt.args = args
1611 evt.kw = kw
1612 wxPostEvent(app, evt)
1613
1614#----------------------------------------------------------------------
301dfd67
RD
1615
1616class wxPyDeadObjectError(AttributeError):
1617 pass
1618
1619class _wxPyDeadObject:
1620 """
1621 Instances of wx objects that are OOR capable will have their __class__
1622 changed to this class when the C++ object is deleted. This should help
1623 prevent crashes due to referencing a bogus C++ pointer.
1624 """
1625 reprStr = "wxPython wrapper for DELETED %s object! (The C++ object no longer exists.)"
94c16279 1626 attrStr = "The C++ part of the %s object has been deleted, attribute access no longer allowed."
301dfd67
RD
1627
1628 def __repr__( self ):
1629 if not hasattr(self, "_name"):
1630 self._name = "[unknown]"
1631 return self.reprStr % self._name
1632
1633 def __getattr__( self, *args ):
1634 if not hasattr(self, "_name"):
1635 self._name = "[unknown]"
1636 raise wxPyDeadObjectError( self.attrStr % self._name )
1637
1638 def __nonzero__(self):
1639 return 0
1640
1641
c9482eba 1642#----------------------------------------------------------------------
b8b8dda7
RD
1643#----------------------------------------------------------------------
1644
2f90df85
RD
1645class wxPyOnDemandOutputWindow:
1646 def __init__(self, title = "wxPython: stdout/stderr"):
1647 self.frame = None
1648 self.title = title
c9482eba 1649 self.parent = None
cf694132 1650
2f90df85
RD
1651 def SetParent(self, parent):
1652 self.parent = parent
b8b8dda7 1653
2f90df85
RD
1654 def OnCloseWindow(self, event):
1655 if self.frame != None:
1656 self.frame.Destroy()
1657 self.frame = None
1658 self.text = None
1659
471825d7 1660 # These methods provide the file-like output behaviour.
2f90df85 1661 def write(self, str):
471825d7
RD
1662 if not wxThread_IsMain():
1663 # Aquire the GUI mutex before making GUI calls. Mutex is released
7a446686 1664 # when locker is deleted at the end of this function.
471825d7
RD
1665 locker = wxMutexGuiLocker()
1666
2f90df85 1667 if not self.frame:
7a446686
RD
1668 self.frame = wxFrame(self.parent, -1, self.title,
1669 style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE)
2f90df85
RD
1670 self.text = wxTextCtrl(self.frame, -1, "",
1671 style = wxTE_MULTILINE|wxTE_READONLY)
1672 self.frame.SetSize(wxSize(450, 300))
1673 self.frame.Show(true)
1674 EVT_CLOSE(self.frame, self.OnCloseWindow)
1675 self.text.AppendText(str)
1676
1677 def close(self):
eec92d76 1678 if self.frame != None:
471825d7
RD
1679 if not wxThread_IsMain():
1680 locker = wxMutexGuiLocker()
c9482eba 1681 self.frame.Close()
b8b8dda7 1682
b8b8dda7 1683
298ae144 1684_defRedirect = (wxPlatform == '__WXMSW__' or wxPlatform == '__WXMAC__')
b8b8dda7
RD
1685
1686#----------------------------------------------------------------------
1687# The main application class. Derive from this and implement an OnInit
1688# method that creates a frame and then calls self.SetTopWindow(frame)
1689
1690class wxApp(wxPyApp):
1691 error = 'wxApp.error'
2f90df85 1692 outputWindowClass = wxPyOnDemandOutputWindow
b8b8dda7
RD
1693
1694 def __init__(self, redirect=_defRedirect, filename=None):
1695 wxPyApp.__init__(self)
1696 self.stdioWin = None
1697 self.saveStdio = (sys.stdout, sys.stderr)
1698 if redirect:
1699 self.RedirectStdio(filename)
b8b8dda7
RD
1700 # this initializes wxWindows and then calls our OnInit
1701 _wxStart(self.OnInit)
1702
1703
1704 def __del__(self):
1705 try:
1706 self.RestoreStdio()
1707 except:
1708 pass
1709
2f90df85
RD
1710
1711 def SetTopWindow(self, frame):
1712 if self.stdioWin:
1713 self.stdioWin.SetParent(frame)
2f90df85
RD
1714 wxPyApp.SetTopWindow(self, frame)
1715
eec92d76 1716
2f90df85
RD
1717 def MainLoop(self):
1718 wxPyApp.MainLoop(self)
1719 self.RestoreStdio()
1720
eec92d76 1721
b8b8dda7
RD
1722 def RedirectStdio(self, filename):
1723 if filename:
1724 sys.stdout = sys.stderr = open(filename, 'a')
1725 else:
2f90df85 1726 self.stdioWin = self.outputWindowClass() # wxPyOnDemandOutputWindow
c9482eba 1727 sys.stdout = sys.stderr = self.stdioWin
b8b8dda7 1728
eec92d76 1729
b8b8dda7
RD
1730 def RestoreStdio(self):
1731 sys.stdout, sys.stderr = self.saveStdio
c9482eba 1732
b8b8dda7 1733
9b3d3bc4
RD
1734#----------------------------------------------------------------------------
1735
1736class wxPySimpleApp(wxApp):
c9482eba
RD
1737 def __init__(self, flag=0):
1738 wxApp.__init__(self, flag)
9b3d3bc4 1739 def OnInit(self):
57ee4c3b 1740 wxInitAllImageHandlers()
9b3d3bc4 1741 return true
b8b8dda7 1742
2f90df85 1743
f6bcfd97
BP
1744class wxPyWidgetTester(wxApp):
1745 def __init__(self, size = (250, 100)):
1746 self.size = size
1747 wxApp.__init__(self, 0)
1748
1749 def OnInit(self):
1750 self.frame = wxFrame(None, -1, "Widget Tester", pos=(0,0), size=self.size)
1751 self.SetTopWindow(self.frame)
1752 return true
1753
1754 def SetWidget(self, widgetClass, *args):
1755 w = apply(widgetClass, (self.frame,) + args)
1756 self.frame.Show(true)
1757
b8b8dda7 1758#----------------------------------------------------------------------------
301dfd67
RD
1759# DO NOT hold any other references to this object. This is how we
1760# know when to cleanup system resources that wxWin is holding. When
1761# the sys module is unloaded, the refcount on sys.__wxPythonCleanup
1762# goes to zero and it calls the wxApp_CleanUp function.
b1462dfa
RD
1763
1764class __wxPyCleanup:
1765 def __init__(self):
1766 self.cleanup = wxc.wxApp_CleanUp
1767 def __del__(self):
1768 self.cleanup()
1769
ef2060fa
RD
1770sys.__wxPythonCleanup = __wxPyCleanup()
1771
1772## # another possible solution, but it gets called too early...
1773## if sys.version[0] == '2':
1774## import atexit
1775## atexit.register(wxc.wxApp_CleanUp)
1776## else:
1777## sys.exitfunc = wxc.wxApp_CleanUp
1778
9df61a29
RD
1779
1780#----------------------------------------------------------------------------
8bf5d46e 1781#----------------------------------------------------------------------------