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