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