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