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