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