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