]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/gtk/wxp.py
1. log::save works with wxGTK
[wxWidgets.git] / utils / wxPython / src / gtk / wxp.py
CommitLineData
70551f47
RD
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
b26e2dc4
RD
14from frames import *
15
16from stattool import *
17
70551f47
RD
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
b26e2dc4 149wxTB_FLAT = wxpc.wxTB_FLAT
70551f47
RD
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
78bba745 196wxTR_LINES_AT_ROOT = wxpc.wxTR_LINES_AT_ROOT
70551f47
RD
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
faf3cb35
RD
319wxACCEL_ALT = wxpc.wxACCEL_ALT
320wxACCEL_CTRL = wxpc.wxACCEL_CTRL
321wxACCEL_SHIFT = wxpc.wxACCEL_SHIFT
70551f47
RD
322ERR_PARAM = wxpc.ERR_PARAM
323ERR_NODATA = wxpc.ERR_NODATA
324ERR_CANCEL = wxpc.ERR_CANCEL
325ERR_SUCCESS = wxpc.ERR_SUCCESS
326wxDEFAULT = wxpc.wxDEFAULT
327wxDECORATIVE = wxpc.wxDECORATIVE
328wxROMAN = wxpc.wxROMAN
329wxSCRIPT = wxpc.wxSCRIPT
330wxSWISS = wxpc.wxSWISS
331wxMODERN = wxpc.wxMODERN
332wxTELETYPE = wxpc.wxTELETYPE
333wxVARIABLE = wxpc.wxVARIABLE
334wxFIXED = wxpc.wxFIXED
335wxNORMAL = wxpc.wxNORMAL
336wxLIGHT = wxpc.wxLIGHT
337wxBOLD = wxpc.wxBOLD
338wxITALIC = wxpc.wxITALIC
339wxSLANT = wxpc.wxSLANT
340wxSOLID = wxpc.wxSOLID
341wxDOT = wxpc.wxDOT
342wxLONG_DASH = wxpc.wxLONG_DASH
343wxSHORT_DASH = wxpc.wxSHORT_DASH
344wxDOT_DASH = wxpc.wxDOT_DASH
345wxUSER_DASH = wxpc.wxUSER_DASH
346wxTRANSPARENT = wxpc.wxTRANSPARENT
347wxSTIPPLE = wxpc.wxSTIPPLE
348wxBDIAGONAL_HATCH = wxpc.wxBDIAGONAL_HATCH
349wxCROSSDIAG_HATCH = wxpc.wxCROSSDIAG_HATCH
350wxFDIAGONAL_HATCH = wxpc.wxFDIAGONAL_HATCH
351wxCROSS_HATCH = wxpc.wxCROSS_HATCH
352wxHORIZONTAL_HATCH = wxpc.wxHORIZONTAL_HATCH
353wxVERTICAL_HATCH = wxpc.wxVERTICAL_HATCH
354wxJOIN_BEVEL = wxpc.wxJOIN_BEVEL
355wxJOIN_MITER = wxpc.wxJOIN_MITER
356wxJOIN_ROUND = wxpc.wxJOIN_ROUND
357wxCAP_ROUND = wxpc.wxCAP_ROUND
358wxCAP_PROJECTING = wxpc.wxCAP_PROJECTING
359wxCAP_BUTT = wxpc.wxCAP_BUTT
360wxCLEAR = wxpc.wxCLEAR
361wxXOR = wxpc.wxXOR
362wxINVERT = wxpc.wxINVERT
363wxOR_REVERSE = wxpc.wxOR_REVERSE
364wxAND_REVERSE = wxpc.wxAND_REVERSE
365wxCOPY = wxpc.wxCOPY
366wxAND = wxpc.wxAND
367wxAND_INVERT = wxpc.wxAND_INVERT
368wxNO_OP = wxpc.wxNO_OP
369wxNOR = wxpc.wxNOR
370wxEQUIV = wxpc.wxEQUIV
371wxSRC_INVERT = wxpc.wxSRC_INVERT
372wxOR_INVERT = wxpc.wxOR_INVERT
373wxNAND = wxpc.wxNAND
374wxOR = wxpc.wxOR
375wxSET = wxpc.wxSET
376wxSRC_OR = wxpc.wxSRC_OR
377wxSRC_AND = wxpc.wxSRC_AND
378WXK_BACK = wxpc.WXK_BACK
379WXK_TAB = wxpc.WXK_TAB
380WXK_RETURN = wxpc.WXK_RETURN
381WXK_ESCAPE = wxpc.WXK_ESCAPE
382WXK_SPACE = wxpc.WXK_SPACE
383WXK_DELETE = wxpc.WXK_DELETE
384WXK_START = wxpc.WXK_START
385WXK_LBUTTON = wxpc.WXK_LBUTTON
386WXK_RBUTTON = wxpc.WXK_RBUTTON
387WXK_CANCEL = wxpc.WXK_CANCEL
388WXK_MBUTTON = wxpc.WXK_MBUTTON
389WXK_CLEAR = wxpc.WXK_CLEAR
390WXK_SHIFT = wxpc.WXK_SHIFT
391WXK_CONTROL = wxpc.WXK_CONTROL
392WXK_MENU = wxpc.WXK_MENU
393WXK_PAUSE = wxpc.WXK_PAUSE
394WXK_CAPITAL = wxpc.WXK_CAPITAL
395WXK_PRIOR = wxpc.WXK_PRIOR
396WXK_NEXT = wxpc.WXK_NEXT
397WXK_END = wxpc.WXK_END
398WXK_HOME = wxpc.WXK_HOME
399WXK_LEFT = wxpc.WXK_LEFT
400WXK_UP = wxpc.WXK_UP
401WXK_RIGHT = wxpc.WXK_RIGHT
402WXK_DOWN = wxpc.WXK_DOWN
403WXK_SELECT = wxpc.WXK_SELECT
404WXK_PRINT = wxpc.WXK_PRINT
405WXK_EXECUTE = wxpc.WXK_EXECUTE
406WXK_SNAPSHOT = wxpc.WXK_SNAPSHOT
407WXK_INSERT = wxpc.WXK_INSERT
408WXK_HELP = wxpc.WXK_HELP
409WXK_NUMPAD0 = wxpc.WXK_NUMPAD0
410WXK_NUMPAD1 = wxpc.WXK_NUMPAD1
411WXK_NUMPAD2 = wxpc.WXK_NUMPAD2
412WXK_NUMPAD3 = wxpc.WXK_NUMPAD3
413WXK_NUMPAD4 = wxpc.WXK_NUMPAD4
414WXK_NUMPAD5 = wxpc.WXK_NUMPAD5
415WXK_NUMPAD6 = wxpc.WXK_NUMPAD6
416WXK_NUMPAD7 = wxpc.WXK_NUMPAD7
417WXK_NUMPAD8 = wxpc.WXK_NUMPAD8
418WXK_NUMPAD9 = wxpc.WXK_NUMPAD9
419WXK_MULTIPLY = wxpc.WXK_MULTIPLY
420WXK_ADD = wxpc.WXK_ADD
421WXK_SEPARATOR = wxpc.WXK_SEPARATOR
422WXK_SUBTRACT = wxpc.WXK_SUBTRACT
423WXK_DECIMAL = wxpc.WXK_DECIMAL
424WXK_DIVIDE = wxpc.WXK_DIVIDE
425WXK_F1 = wxpc.WXK_F1
426WXK_F2 = wxpc.WXK_F2
427WXK_F3 = wxpc.WXK_F3
428WXK_F4 = wxpc.WXK_F4
429WXK_F5 = wxpc.WXK_F5
430WXK_F6 = wxpc.WXK_F6
431WXK_F7 = wxpc.WXK_F7
432WXK_F8 = wxpc.WXK_F8
433WXK_F9 = wxpc.WXK_F9
434WXK_F10 = wxpc.WXK_F10
435WXK_F11 = wxpc.WXK_F11
436WXK_F12 = wxpc.WXK_F12
437WXK_F13 = wxpc.WXK_F13
438WXK_F14 = wxpc.WXK_F14
439WXK_F15 = wxpc.WXK_F15
440WXK_F16 = wxpc.WXK_F16
441WXK_F17 = wxpc.WXK_F17
442WXK_F18 = wxpc.WXK_F18
443WXK_F19 = wxpc.WXK_F19
444WXK_F20 = wxpc.WXK_F20
445WXK_F21 = wxpc.WXK_F21
446WXK_F22 = wxpc.WXK_F22
447WXK_F23 = wxpc.WXK_F23
448WXK_F24 = wxpc.WXK_F24
449WXK_NUMLOCK = wxpc.WXK_NUMLOCK
450WXK_SCROLL = wxpc.WXK_SCROLL
451WXK_PAGEUP = wxpc.WXK_PAGEUP
452WXK_PAGEDOWN = wxpc.WXK_PAGEDOWN
b26e2dc4 453wxCURSOR_NONE = wxpc.wxCURSOR_NONE
70551f47
RD
454wxCURSOR_ARROW = wxpc.wxCURSOR_ARROW
455wxCURSOR_BULLSEYE = wxpc.wxCURSOR_BULLSEYE
456wxCURSOR_CHAR = wxpc.wxCURSOR_CHAR
457wxCURSOR_CROSS = wxpc.wxCURSOR_CROSS
458wxCURSOR_HAND = wxpc.wxCURSOR_HAND
459wxCURSOR_IBEAM = wxpc.wxCURSOR_IBEAM
460wxCURSOR_LEFT_BUTTON = wxpc.wxCURSOR_LEFT_BUTTON
461wxCURSOR_MAGNIFIER = wxpc.wxCURSOR_MAGNIFIER
462wxCURSOR_MIDDLE_BUTTON = wxpc.wxCURSOR_MIDDLE_BUTTON
463wxCURSOR_NO_ENTRY = wxpc.wxCURSOR_NO_ENTRY
464wxCURSOR_PAINT_BRUSH = wxpc.wxCURSOR_PAINT_BRUSH
465wxCURSOR_PENCIL = wxpc.wxCURSOR_PENCIL
466wxCURSOR_POINT_LEFT = wxpc.wxCURSOR_POINT_LEFT
467wxCURSOR_POINT_RIGHT = wxpc.wxCURSOR_POINT_RIGHT
468wxCURSOR_QUESTION_ARROW = wxpc.wxCURSOR_QUESTION_ARROW
469wxCURSOR_RIGHT_BUTTON = wxpc.wxCURSOR_RIGHT_BUTTON
470wxCURSOR_SIZENESW = wxpc.wxCURSOR_SIZENESW
471wxCURSOR_SIZENS = wxpc.wxCURSOR_SIZENS
472wxCURSOR_SIZENWSE = wxpc.wxCURSOR_SIZENWSE
473wxCURSOR_SIZEWE = wxpc.wxCURSOR_SIZEWE
474wxCURSOR_SIZING = wxpc.wxCURSOR_SIZING
475wxCURSOR_SPRAYCAN = wxpc.wxCURSOR_SPRAYCAN
476wxCURSOR_WAIT = wxpc.wxCURSOR_WAIT
477wxCURSOR_WATCH = wxpc.wxCURSOR_WATCH
478wxCURSOR_BLANK = wxpc.wxCURSOR_BLANK
479FALSE = wxpc.FALSE
480false = wxpc.false
481TRUE = wxpc.TRUE
482true = wxpc.true
483wxEVT_NULL = wxpc.wxEVT_NULL
484wxEVT_FIRST = wxpc.wxEVT_FIRST
485wxEVT_COMMAND_BUTTON_CLICKED = wxpc.wxEVT_COMMAND_BUTTON_CLICKED
486wxEVT_COMMAND_CHECKBOX_CLICKED = wxpc.wxEVT_COMMAND_CHECKBOX_CLICKED
487wxEVT_COMMAND_CHOICE_SELECTED = wxpc.wxEVT_COMMAND_CHOICE_SELECTED
488wxEVT_COMMAND_LISTBOX_SELECTED = wxpc.wxEVT_COMMAND_LISTBOX_SELECTED
489wxEVT_COMMAND_LISTBOX_DOUBLECLICKED = wxpc.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
490wxEVT_COMMAND_CHECKLISTBOX_TOGGLED = wxpc.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
491wxEVT_COMMAND_TEXT_UPDATED = wxpc.wxEVT_COMMAND_TEXT_UPDATED
492wxEVT_COMMAND_TEXT_ENTER = wxpc.wxEVT_COMMAND_TEXT_ENTER
493wxEVT_COMMAND_MENU_SELECTED = wxpc.wxEVT_COMMAND_MENU_SELECTED
494wxEVT_COMMAND_SLIDER_UPDATED = wxpc.wxEVT_COMMAND_SLIDER_UPDATED
495wxEVT_COMMAND_RADIOBOX_SELECTED = wxpc.wxEVT_COMMAND_RADIOBOX_SELECTED
496wxEVT_COMMAND_RADIOBUTTON_SELECTED = wxpc.wxEVT_COMMAND_RADIOBUTTON_SELECTED
497wxEVT_COMMAND_SCROLLBAR_UPDATED = wxpc.wxEVT_COMMAND_SCROLLBAR_UPDATED
498wxEVT_COMMAND_VLBOX_SELECTED = wxpc.wxEVT_COMMAND_VLBOX_SELECTED
499wxEVT_COMMAND_COMBOBOX_SELECTED = wxpc.wxEVT_COMMAND_COMBOBOX_SELECTED
500wxEVT_COMMAND_TOOL_CLICKED = wxpc.wxEVT_COMMAND_TOOL_CLICKED
501wxEVT_COMMAND_TOOL_RCLICKED = wxpc.wxEVT_COMMAND_TOOL_RCLICKED
502wxEVT_COMMAND_TOOL_ENTER = wxpc.wxEVT_COMMAND_TOOL_ENTER
503wxEVT_SET_FOCUS = wxpc.wxEVT_SET_FOCUS
504wxEVT_KILL_FOCUS = wxpc.wxEVT_KILL_FOCUS
505wxEVT_LEFT_DOWN = wxpc.wxEVT_LEFT_DOWN
506wxEVT_LEFT_UP = wxpc.wxEVT_LEFT_UP
507wxEVT_MIDDLE_DOWN = wxpc.wxEVT_MIDDLE_DOWN
508wxEVT_MIDDLE_UP = wxpc.wxEVT_MIDDLE_UP
509wxEVT_RIGHT_DOWN = wxpc.wxEVT_RIGHT_DOWN
510wxEVT_RIGHT_UP = wxpc.wxEVT_RIGHT_UP
511wxEVT_MOTION = wxpc.wxEVT_MOTION
512wxEVT_ENTER_WINDOW = wxpc.wxEVT_ENTER_WINDOW
513wxEVT_LEAVE_WINDOW = wxpc.wxEVT_LEAVE_WINDOW
514wxEVT_LEFT_DCLICK = wxpc.wxEVT_LEFT_DCLICK
515wxEVT_MIDDLE_DCLICK = wxpc.wxEVT_MIDDLE_DCLICK
516wxEVT_RIGHT_DCLICK = wxpc.wxEVT_RIGHT_DCLICK
517wxEVT_NC_LEFT_DOWN = wxpc.wxEVT_NC_LEFT_DOWN
518wxEVT_NC_LEFT_UP = wxpc.wxEVT_NC_LEFT_UP
519wxEVT_NC_MIDDLE_DOWN = wxpc.wxEVT_NC_MIDDLE_DOWN
520wxEVT_NC_MIDDLE_UP = wxpc.wxEVT_NC_MIDDLE_UP
521wxEVT_NC_RIGHT_DOWN = wxpc.wxEVT_NC_RIGHT_DOWN
522wxEVT_NC_RIGHT_UP = wxpc.wxEVT_NC_RIGHT_UP
523wxEVT_NC_MOTION = wxpc.wxEVT_NC_MOTION
524wxEVT_NC_ENTER_WINDOW = wxpc.wxEVT_NC_ENTER_WINDOW
525wxEVT_NC_LEAVE_WINDOW = wxpc.wxEVT_NC_LEAVE_WINDOW
526wxEVT_NC_LEFT_DCLICK = wxpc.wxEVT_NC_LEFT_DCLICK
527wxEVT_NC_MIDDLE_DCLICK = wxpc.wxEVT_NC_MIDDLE_DCLICK
528wxEVT_NC_RIGHT_DCLICK = wxpc.wxEVT_NC_RIGHT_DCLICK
529wxEVT_CHAR = wxpc.wxEVT_CHAR
530wxEVT_SCROLL_TOP = wxpc.wxEVT_SCROLL_TOP
531wxEVT_SCROLL_BOTTOM = wxpc.wxEVT_SCROLL_BOTTOM
532wxEVT_SCROLL_LINEUP = wxpc.wxEVT_SCROLL_LINEUP
533wxEVT_SCROLL_LINEDOWN = wxpc.wxEVT_SCROLL_LINEDOWN
534wxEVT_SCROLL_PAGEUP = wxpc.wxEVT_SCROLL_PAGEUP
535wxEVT_SCROLL_PAGEDOWN = wxpc.wxEVT_SCROLL_PAGEDOWN
536wxEVT_SCROLL_THUMBTRACK = wxpc.wxEVT_SCROLL_THUMBTRACK
537wxEVT_SIZE = wxpc.wxEVT_SIZE
538wxEVT_MOVE = wxpc.wxEVT_MOVE
539wxEVT_CLOSE_WINDOW = wxpc.wxEVT_CLOSE_WINDOW
540wxEVT_END_SESSION = wxpc.wxEVT_END_SESSION
541wxEVT_QUERY_END_SESSION = wxpc.wxEVT_QUERY_END_SESSION
542wxEVT_ACTIVATE_APP = wxpc.wxEVT_ACTIVATE_APP
543wxEVT_POWER = wxpc.wxEVT_POWER
544wxEVT_CHAR_HOOK = wxpc.wxEVT_CHAR_HOOK
545wxEVT_KEY_UP = wxpc.wxEVT_KEY_UP
546wxEVT_ACTIVATE = wxpc.wxEVT_ACTIVATE
547wxEVT_CREATE = wxpc.wxEVT_CREATE
548wxEVT_DESTROY = wxpc.wxEVT_DESTROY
549wxEVT_SHOW = wxpc.wxEVT_SHOW
550wxEVT_ICONIZE = wxpc.wxEVT_ICONIZE
551wxEVT_MAXIMIZE = wxpc.wxEVT_MAXIMIZE
552wxEVT_MOUSE_CAPTURE_CHANGED = wxpc.wxEVT_MOUSE_CAPTURE_CHANGED
553wxEVT_PAINT = wxpc.wxEVT_PAINT
554wxEVT_ERASE_BACKGROUND = wxpc.wxEVT_ERASE_BACKGROUND
555wxEVT_NC_PAINT = wxpc.wxEVT_NC_PAINT
556wxEVT_PAINT_ICON = wxpc.wxEVT_PAINT_ICON
557wxEVT_MENU_CHAR = wxpc.wxEVT_MENU_CHAR
558wxEVT_MENU_INIT = wxpc.wxEVT_MENU_INIT
559wxEVT_MENU_HIGHLIGHT = wxpc.wxEVT_MENU_HIGHLIGHT
560wxEVT_POPUP_MENU_INIT = wxpc.wxEVT_POPUP_MENU_INIT
561wxEVT_CONTEXT_MENU = wxpc.wxEVT_CONTEXT_MENU
562wxEVT_SYS_COLOUR_CHANGED = wxpc.wxEVT_SYS_COLOUR_CHANGED
563wxEVT_SETTING_CHANGED = wxpc.wxEVT_SETTING_CHANGED
564wxEVT_QUERY_NEW_PALETTE = wxpc.wxEVT_QUERY_NEW_PALETTE
565wxEVT_PALETTE_CHANGED = wxpc.wxEVT_PALETTE_CHANGED
566wxEVT_JOY_BUTTON_DOWN = wxpc.wxEVT_JOY_BUTTON_DOWN
567wxEVT_JOY_BUTTON_UP = wxpc.wxEVT_JOY_BUTTON_UP
568wxEVT_JOY_MOVE = wxpc.wxEVT_JOY_MOVE
569wxEVT_JOY_ZMOVE = wxpc.wxEVT_JOY_ZMOVE
570wxEVT_DROP_FILES = wxpc.wxEVT_DROP_FILES
571wxEVT_DRAW_ITEM = wxpc.wxEVT_DRAW_ITEM
572wxEVT_MEASURE_ITEM = wxpc.wxEVT_MEASURE_ITEM
573wxEVT_COMPARE_ITEM = wxpc.wxEVT_COMPARE_ITEM
574wxEVT_INIT_DIALOG = wxpc.wxEVT_INIT_DIALOG
575wxEVT_IDLE = wxpc.wxEVT_IDLE
576wxEVT_UPDATE_UI = wxpc.wxEVT_UPDATE_UI
577wxEVT_COMMAND_LEFT_CLICK = wxpc.wxEVT_COMMAND_LEFT_CLICK
578wxEVT_COMMAND_LEFT_DCLICK = wxpc.wxEVT_COMMAND_LEFT_DCLICK
579wxEVT_COMMAND_RIGHT_CLICK = wxpc.wxEVT_COMMAND_RIGHT_CLICK
580wxEVT_COMMAND_RIGHT_DCLICK = wxpc.wxEVT_COMMAND_RIGHT_DCLICK
581wxEVT_COMMAND_SET_FOCUS = wxpc.wxEVT_COMMAND_SET_FOCUS
582wxEVT_COMMAND_KILL_FOCUS = wxpc.wxEVT_COMMAND_KILL_FOCUS
583wxEVT_COMMAND_ENTER = wxpc.wxEVT_COMMAND_ENTER
584wxEVT_COMMAND_TREE_BEGIN_DRAG = wxpc.wxEVT_COMMAND_TREE_BEGIN_DRAG
585wxEVT_COMMAND_TREE_BEGIN_RDRAG = wxpc.wxEVT_COMMAND_TREE_BEGIN_RDRAG
586wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT = wxpc.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
587wxEVT_COMMAND_TREE_END_LABEL_EDIT = wxpc.wxEVT_COMMAND_TREE_END_LABEL_EDIT
588wxEVT_COMMAND_TREE_DELETE_ITEM = wxpc.wxEVT_COMMAND_TREE_DELETE_ITEM
589wxEVT_COMMAND_TREE_GET_INFO = wxpc.wxEVT_COMMAND_TREE_GET_INFO
590wxEVT_COMMAND_TREE_SET_INFO = wxpc.wxEVT_COMMAND_TREE_SET_INFO
591wxEVT_COMMAND_TREE_ITEM_EXPANDED = wxpc.wxEVT_COMMAND_TREE_ITEM_EXPANDED
592wxEVT_COMMAND_TREE_ITEM_EXPANDING = wxpc.wxEVT_COMMAND_TREE_ITEM_EXPANDING
60e05667
RD
593wxEVT_COMMAND_TREE_ITEM_COLLAPSED = wxpc.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
594wxEVT_COMMAND_TREE_ITEM_COLLAPSING = wxpc.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
70551f47
RD
595wxEVT_COMMAND_TREE_SEL_CHANGED = wxpc.wxEVT_COMMAND_TREE_SEL_CHANGED
596wxEVT_COMMAND_TREE_SEL_CHANGING = wxpc.wxEVT_COMMAND_TREE_SEL_CHANGING
597wxEVT_COMMAND_TREE_KEY_DOWN = wxpc.wxEVT_COMMAND_TREE_KEY_DOWN
598wxEVT_COMMAND_LIST_BEGIN_DRAG = wxpc.wxEVT_COMMAND_LIST_BEGIN_DRAG
599wxEVT_COMMAND_LIST_BEGIN_RDRAG = wxpc.wxEVT_COMMAND_LIST_BEGIN_RDRAG
600wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT = wxpc.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
601wxEVT_COMMAND_LIST_END_LABEL_EDIT = wxpc.wxEVT_COMMAND_LIST_END_LABEL_EDIT
602wxEVT_COMMAND_LIST_DELETE_ITEM = wxpc.wxEVT_COMMAND_LIST_DELETE_ITEM
603wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS = wxpc.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
604wxEVT_COMMAND_LIST_GET_INFO = wxpc.wxEVT_COMMAND_LIST_GET_INFO
605wxEVT_COMMAND_LIST_SET_INFO = wxpc.wxEVT_COMMAND_LIST_SET_INFO
606wxEVT_COMMAND_LIST_ITEM_SELECTED = wxpc.wxEVT_COMMAND_LIST_ITEM_SELECTED
607wxEVT_COMMAND_LIST_ITEM_DESELECTED = wxpc.wxEVT_COMMAND_LIST_ITEM_DESELECTED
608wxEVT_COMMAND_LIST_KEY_DOWN = wxpc.wxEVT_COMMAND_LIST_KEY_DOWN
609wxEVT_COMMAND_LIST_INSERT_ITEM = wxpc.wxEVT_COMMAND_LIST_INSERT_ITEM
610wxEVT_COMMAND_LIST_COL_CLICK = wxpc.wxEVT_COMMAND_LIST_COL_CLICK
611wxEVT_COMMAND_TAB_SEL_CHANGED = wxpc.wxEVT_COMMAND_TAB_SEL_CHANGED
612wxEVT_COMMAND_TAB_SEL_CHANGING = wxpc.wxEVT_COMMAND_TAB_SEL_CHANGING
613wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = wxpc.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
614wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = wxpc.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
615__version__ = wxpc.__version__
616cvar = wxpc.cvar
617wxPyDefaultPosition = wxPointPtr(wxpc.cvar.wxPyDefaultPosition)
618wxPyDefaultSize = wxSizePtr(wxpc.cvar.wxPyDefaultSize)
619
620
621#-------------- USER INCLUDE -----------------------
622
623#----------------------------------------------------------------------------
624# Name: _extra.py
625# Purpose: This file is appended to the shadow class file generated
626# by SWIG. We add some unSWIGable things here.
627#
628# Author: Robin Dunn
629#
630# Created: 6/30/97
631# RCS-ID: $Id$
632# Copyright: (c) 1998 by Total Control Software
633# Licence: wxWindows license
634#----------------------------------------------------------------------------
635
636import sys
637
638#----------------------------------------------------------------------
639# This gives this module's dictionary to the C++ extension code...
640
641_wxSetDictionary(vars())
642
643
644#----------------------------------------------------------------------
645#----------------------------------------------------------------------
646# Helper function to link python methods to wxWindows virtual
647# functions by name.
648
649def _checkForCallback(obj, name, event, theID=-1):
650 try: cb = getattr(obj, name)
651 except: pass
652 else: obj.Connect(theID, -1, event, cb)
653
654def _StdWindowCallbacks(win):
655 _checkForCallback(win, "OnChar", wxEVT_CHAR)
656 _checkForCallback(win, "OnSize", wxEVT_SIZE)
657 _checkForCallback(win, "OnEraseBackground", wxEVT_ERASE_BACKGROUND)
658 _checkForCallback(win, "OnSysColourChanged", wxEVT_SYS_COLOUR_CHANGED)
659 _checkForCallback(win, "OnInitDialog", wxEVT_INIT_DIALOG)
660 _checkForCallback(win, "OnIdle", wxEVT_IDLE)
661 _checkForCallback(win, "OnPaint", wxEVT_PAINT)
662
663def _StdFrameCallbacks(win):
664 _StdWindowCallbacks(win)
665 _checkForCallback(win, "OnActivate", wxEVT_ACTIVATE)
666 _checkForCallback(win, "OnMenuHighlight", wxEVT_MENU_HIGHLIGHT)
667 _checkForCallback(win, "OnCloseWindow", wxEVT_CLOSE_WINDOW)
668
669
b26e2dc4
RD
670def _StdDialogCallbacks(win):
671 _StdWindowCallbacks(win)
672 _checkForCallback(win, "OnOk", wxEVT_COMMAND_BUTTON_CLICKED, wxID_OK)
673 _checkForCallback(win, "OnApply", wxEVT_COMMAND_BUTTON_CLICKED, wxID_APPLY)
674 _checkForCallback(win, "OnCancel", wxEVT_COMMAND_BUTTON_CLICKED, wxID_CANCEL)
675 _checkForCallback(win, "OnCloseWindow", wxEVT_CLOSE_WINDOW)
676 _checkForCallback(win, "OnCharHook", wxEVT_CHAR_HOOK)
677
678
70551f47
RD
679def _StdOnScrollCallback(win):
680 try: cb = getattr(win, "OnScroll")
681 except: pass
682 else: EVT_SCROLL(win, cb)
683
684
685
686#----------------------------------------------------------------------
687#----------------------------------------------------------------------
688# functions that look and act like the C++ Macros of the same name
689
690
691# Miscellaneous
692def EVT_SIZE(win, func):
693 win.Connect(-1, -1, wxEVT_SIZE, func)
694
695def EVT_MOVE(win, func):
696 win.Connect(-1, -1, wxEVT_MOVE, func)
697
698def EVT_CLOSE(win, func):
699 win.Connect(-1, -1, wxEVT_CLOSE_WINDOW, func)
700
701def EVT_PAINT(win, func):
702 win.Connect(-1, -1, wxEVT_PAINT, func)
703
704def EVT_ERASE_BACKGROUND(win, func):
705 win.Connect(-1, -1, wxEVT_ERASE_BACKGROUND, func)
706
707def EVT_CHAR(win, func):
708 win.Connect(-1, -1, wxEVT_CHAR, func)
709
710def EVT_CHAR_HOOK(win, func):
711 win.Connect(-1, -1, wxEVT_CHAR_HOOK, func)
712
713def EVT_MENU_HIGHLIGHT(win, id, func):
714 win.Connect(id, -1, wxEVT_MENU_HIGHLIGHT, func)
715
716def EVT_MENU_HIGHLIGHT_ALL(win, func):
717 win.Connect(-1, -1, wxEVT_MENU_HIGHLIGHT, func)
718
719def EVT_SET_FOCUS(win, func):
720 win.Connect(-1, -1, wxEVT_SET_FOCUS, func)
721
722def EVT_KILL_FOCUS(win, func):
723 win.Connect(-1, -1, wxEVT_KILL_FOCUS, func)
724
725def EVT_ACTIVATE(win, func):
726 win.Connect(-1, -1, wxEVT_ACTIVATE, func)
727
728def EVT_ACTIVATE_APP(win, func):
729 win.Connect(-1, -1, wxEVT_ACTIVATE_APP, func)
730
731def EVT_END_SESSION(win, func):
732 win.Connect(-1, -1, wxEVT_END_SESSION, func)
733
734def EVT_QUERY_END_SESSION(win, func):
735 win.Connect(-1, -1, wxEVT_QUERY_END_SESSION, func)
736
737def EVT_DROP_FILES(win, func):
738 win.Connect(-1, -1, wxEVT_DROP_FILES, func)
739
740def EVT_INIT_DIALOG(win, func):
741 win.Connect(-1, -1, wxEVT_INIT_DIALOG, func)
742
743def EVT_SYS_COLOUR_CHANGED(win, func):
744 win.Connect(-1, -1, wxEVT_SYS_COLOUR_CHANGED, func)
745
746def EVT_SHOW(win, func):
747 win.Connect(-1, -1, wxEVT_SHOW, func)
748
749def EVT_MAXIMIZE(win, func):
750 win.Connect(-1, -1, wxEVT_MAXIMIZE, func)
751
752def EVT_ICONIZE(win, func):
753 win.Connect(-1, -1, wxEVT_ICONIZE, func)
754
755def EVT_NAVIGATION_KEY(win, func):
756 win.Connect(-1, -1, wxEVT_NAVIGATION_KEY, func)
757
758
759# Mouse Events
760def EVT_LEFT_DOWN(win, func):
761 win.Connect(-1, -1, wxEVT_LEFT_DOWN, func)
762
763def EVT_LEFT_UP(win, func):
764 win.Connect(-1, -1, wxEVT_LEFT_UP, func)
765
766def EVT_MIDDLE_DOWN(win, func):
767 win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func)
768
769def EVT_MIDDLE_UP(win, func):
770 win.Connect(-1, -1, wxEVT_MIDDLE_UP, func)
771
772def EVT_RIGHT_DOWN(win, func):
773 win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func)
774
775def EVT_RIGHT_UP(win, func):
776 win.Connect(-1, -1, wxEVT_RIGHT_UP, func)
777
778def EVT_MOTION(win, func):
779 win.Connect(-1, -1, wxEVT_MOTION, func)
780
781def EVT_LEFT_DCLICK(win, func):
782 win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func)
783
784def EVT_MIDDLE_DCLICK(win, func):
785 win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func)
786
787def EVT_RIGHT_DCLICK(win, func):
788 win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func)
789
790def EVT_LEAVE_WINDOW(win, func):
791 win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func)
792
793def EVT_ENTER_WINDOW(win, func):
794 win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func)
795
796
797# all mouse events
798def EVT_MOUSE_EVENTS(win, func):
799 win.Connect(-1, -1, wxEVT_LEFT_DOWN, func)
800 win.Connect(-1, -1, wxEVT_LEFT_UP, func)
801 win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func)
802 win.Connect(-1, -1, wxEVT_MIDDLE_UP, func)
803 win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func)
804 win.Connect(-1, -1, wxEVT_RIGHT_UP, func)
805 win.Connect(-1, -1, wxEVT_MOTION, func)
806 win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func)
807 win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func)
808 win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func)
809 win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func)
810 win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func)
811
812# EVT_COMMAND
813def EVT_COMMAND(win, id, cmd, func):
814 win.Connect(id, -1, cmd, func)
815
816def EVT_COMMAND_RANGE(win, id1, id2, cmd, func):
817 win.Connect(id1, id2, cmd, func)
818
819# Scrolling
820def EVT_SCROLL(win, func):
821 win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
822 win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func)
823 win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func)
824 win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func)
825 win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
826 win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
827 win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK,func)
828
829def EVT_SCROLL_TOP(win, func):
830 win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
831
832def EVT_SCROLL_BOTTOM(win, func):
833 win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func)
834
835def EVT_SCROLL_LINEUP(win, func):
836 win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func)
837
838def EVT_SCROLL_LINEDOWN(win, func):
839 win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func)
840
841def EVT_SCROLL_PAGEUP(win, func):
842 win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
843
844def EVT_SCROLL_PAGEDOWN(win, func):
845 win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
846
847def EVT_SCROLL_THUMBTRACK(win, func):
848 win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK, func)
849
850
851
852# Scrolling, with an id
853def EVT_COMMAND_SCROLL(win, id, func):
854 win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
855 win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
856 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
857 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
858 win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
859 win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
860 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
861
862def EVT_COMMAND_SCROLL_TOP(win, id, func):
863 win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
864
865def EVT_COMMAND_SCROLL_BOTTOM(win, id, func):
866 win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
867
868def EVT_COMMAND_SCROLL_LINEUP(win, id, func):
869 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
870
871def EVT_COMMAND_SCROLL_LINEDOWN(win, id, func):
872 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
873
874def EVT_COMMAND_SCROLL_PAGEUP(win, id, func):
875 win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
876
877def EVT_COMMAND_SCROLL_PAGEDOWN(win, id, func):
878 win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
879
880def EVT_COMMAND_SCROLL_THUMBTRACK(win, id, func):
881 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK, func)
882
883
884# Convenience commands
885def EVT_BUTTON(win, id, func):
886 win.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED, func)
887
888def EVT_CHECKBOX(win, id, func):
889 win.Connect(id, -1, wxEVT_COMMAND_CHECKBOX_CLICKED, func)
890
891def EVT_CHOICE(win, id, func):
892 win.Connect(id, -1, wxEVT_COMMAND_CHOICE_SELECTED, func)
893
894def EVT_LISTBOX(win, id, func):
895 win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_SELECTED, func)
896
897def EVT_LISTBOX_DCLICK(win, id, func):
898 win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, func)
899
900def EVT_TEXT(win, id, func):
901 win.Connect(id, -1, wxEVT_COMMAND_TEXT_UPDATED, func)
902
903def EVT_TEXT_ENTER(win, id, func):
904 win.Connect(id, -1, wxEVT_COMMAND_TEXT_ENTER, func)
905
906def EVT_MENU(win, id, func):
907 win.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED, func)
908
909def EVT_MENU_RANGE(win, id1, id2, func):
910 win.Connect(id1, id2, wxEVT_COMMAND_MENU_SELECTED, func)
911
912def EVT_SLIDER(win, id, func):
913 win.Connect(id, -1, wxEVT_COMMAND_SLIDER_UPDATED, func)
914
915def EVT_RADIOBOX(win, id, func):
916 win.Connect(id, -1, wxEVT_COMMAND_RADIOBOX_SELECTED, func)
917
918def EVT_RADIOBUTTON(win, id, func):
919 win.Connect(id, -1, wxEVT_COMMAND_RADIOBUTTON_SELECTED, func)
920
921def EVT_VLBOX(win, id, func):
922 win.Connect(id, -1, wxEVT_COMMAND_VLBOX_SELECTED, func)
923
924def EVT_COMBOBOX(win, id, func):
925 win.Connect(id, -1, wxEVT_COMMAND_COMBOBOX_SELECTED, func)
926
927def EVT_TOOL(win, id, func):
928 win.Connect(id, -1, wxEVT_COMMAND_TOOL_CLICKED, func)
929
930def EVT_TOOL_RCLICKED(win, id, func):
931 win.Connect(id, -1, wxEVT_COMMAND_TOOL_RCLICKED, func)
932
933def EVT_TOOL_ENTER(win, id, func):
934 win.Connect(id, -1, wxEVT_COMMAND_TOOL_ENTER, func)
935
936def EVT_CHECKLISTBOX(win, id, func):
937 win.Connect(id, -1, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, func)
938
939
940# Generic command events
941
942def EVT_COMMAND_LEFT_CLICK(win, id, func):
943 win.Connect(id, -1, wxEVT_COMMAND_LEFT_CLICK, func)
944
945def EVT_COMMAND_LEFT_DCLICK(win, id, func):
946 win.Connect(id, -1, wxEVT_COMMAND_LEFT_DCLICK, func)
947
948def EVT_COMMAND_RIGHT_CLICK(win, id, func):
949 win.Connect(id, -1, wxEVT_COMMAND_RIGHT_CLICK, func)
950
951def EVT_COMMAND_RIGHT_DCLICK(win, id, func):
952 win.Connect(id, -1, wxEVT_COMMAND_RIGHT_DCLICK, func)
953
954def EVT_COMMAND_SET_FOCUS(win, id, func):
955 win.Connect(id, -1, wxEVT_COMMAND_SET_FOCUS, func)
956
957def EVT_COMMAND_KILL_FOCUS(win, id, func):
958 win.Connect(id, -1, wxEVT_COMMAND_KILL_FOCUS, func)
959
960def EVT_COMMAND_ENTER(win, id, func):
961 win.Connect(id, -1, wxEVT_COMMAND_ENTER, func)
962
963
78bba745 964# wxNotebook events
70551f47
RD
965def EVT_NOTEBOOK_PAGE_CHANGED(win, id, func):
966 win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, func)
967
968def EVT_NOTEBOOK_PAGE_CHANGING(win, id, func):
969 win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, func)
970
971
78bba745
RD
972#wxTreeCtrl events
973def EVT_TREE_BEGIN_DRAG(win, id, func):
974 win.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_DRAG, func)
975
976def EVT_TREE_BEGIN_RDRAG(win, id, func):
977 win.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_RDRAG, func)
978
979def EVT_TREE_BEGIN_LABEL_EDIT(win, id, func):
980 win.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, func)
981
982def EVT_TREE_END_LABEL_EDIT(win, id, func):
983 win.Connect(id, -1, wxEVT_COMMAND_TREE_END_LABEL_EDIT, func)
984
985def EVT_TREE_GET_INFO(win, id, func):
986 win.Connect(id, -1, wxEVT_COMMAND_TREE_GET_INFO, func)
987
988def EVT_TREE_SET_INFO(win, id, func):
989 win.Connect(id, -1, wxEVT_COMMAND_TREE_SET_INFO, func)
990
991def EVT_TREE_ITEM_EXPANDED(win, id, func):
992 win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_EXPANDED, func)
993
994def EVT_TREE_ITEM_EXPANDING(win, id, func):
995 win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_EXPANDING, func)
996
997def EVT_TREE_ITEM_COLLAPSED(win, id, func):
998 win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_COLLAPSED, func)
999
1000def EVT_TREE_ITEM_COLLAPSING(win, id, func):
1001 win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_COLLAPSING, func)
1002
1003def EVT_TREE_SEL_CHANGED(win, id, func):
1004 win.Connect(id, -1, wxEVT_COMMAND_TREE_SEL_CHANGED, func)
1005
1006def EVT_TREE_SEL_CHANGING(win, id, func):
1007 win.Connect(id, -1, wxEVT_COMMAND_TREE_SEL_CHANGING, func)
1008
1009def EVT_TREE_KEY_DOWN(win, id, func):
1010 win.Connect(id, -1, wxEVT_COMMAND_TREE_KEY_DOWN, func)
1011
1012def EVT_TREE_DELETE_ITEM(win, id, func):
1013 win.Connect(id, -1, wxEVT_COMMAND_TREE_DELETE_ITEM, func)
1014
1015
70551f47 1016
62bd0874
RD
1017def EVT_SPIN_UP(win, id, func):
1018 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
1019
1020def EVT_SPIN_DOWN(win, id, func):
1021 win.Connect(id, -1,wxEVT_SCROLL_LINEDOWN, func)
1022
1023def EVT_SPIN(win, id, func):
1024 win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
1025 win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
1026 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
1027 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
1028 win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
1029 win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
1030 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
1031
1032
70551f47 1033
b26e2dc4 1034#----------------------------------------------------------------------
70551f47
RD
1035
1036class wxTimer(wxPyTimer):
1037 def __init__(self):
1038 wxPyTimer.__init__(self, self.Notify) # derived class must provide
1039 # Notify(self) method.
1040
1041#----------------------------------------------------------------------
1042# Some wxWin methods can take "NULL" as parameters, but the shadow classes
1043# expect an object with the SWIG pointer as a 'this' member. This class
1044# and instance fools the shadow into passing the NULL pointer.
1045
1046class NullObj:
1047 this = 'NULL' # SWIG converts this to (void*)0
1048
1049NULL = NullObj()
1050
1051
1052#----------------------------------------------------------------------
1053# aliases
1054
1055wxColor = wxColour
1056wxNamedColor = wxNamedColour
1057
1058wxPyDefaultPosition.Set(-1,-1)
1059wxPyDefaultSize.Set(-1,-1)
1060
1061#----------------------------------------------------------------------
1062
1063## class wxPyStdOutWindow(wxFrame):
1064## def __init__(self, title = "wxPython: stdout/stderr"):
1065## wxFrame.__init__(self, NULL, title)
1066## self.title = title
1067## self.text = wxTextWindow(self)
1068## self.text.SetFont(wxFont(10, wxMODERN, wxNORMAL, wxBOLD))
1069## self.SetSize(-1,-1,400,200)
1070## self.Show(false)
1071## self.isShown = false
1072
1073## def write(self, str): # with this method,
1074## if not self.isShown:
1075## self.Show(true)
1076## self.isShown = true
1077## self.text.WriteText(str)
1078
1079## def OnCloseWindow(self, event): # doesn't allow the window to close, just hides it
1080## self.Show(false)
1081## self.isShown = false
1082
1083
1084_defRedirect = (wxPlatform == '__WXMSW__')
1085
1086#----------------------------------------------------------------------
1087# The main application class. Derive from this and implement an OnInit
1088# method that creates a frame and then calls self.SetTopWindow(frame)
1089
1090class wxApp(wxPyApp):
1091 error = 'wxApp.error'
1092
1093 def __init__(self, redirect=_defRedirect, filename=None):
1094 wxPyApp.__init__(self)
1095 self.stdioWin = None
1096 self.saveStdio = (sys.stdout, sys.stderr)
1097 if redirect:
1098 self.RedirectStdio(filename)
1099
1100 # this initializes wxWindows and then calls our OnInit
1101 _wxStart(self.OnInit)
1102
1103
1104 def __del__(self):
1105 try:
1106 self.RestoreStdio()
1107 except:
1108 pass
1109
1110 def RedirectStdio(self, filename):
1111 if filename:
1112 sys.stdout = sys.stderr = open(filename, 'a')
1113 else:
1114 raise self.error, 'wxPyStdOutWindow not yet implemented.'
1115 #self.stdioWin = sys.stdout = sys.stderr = wxPyStdOutWindow()
1116
1117 def RestoreStdio(self):
1118 sys.stdout, sys.stderr = self.saveStdio
1119 if self.stdioWin != None:
1120 self.stdioWin.Show(false)
1121 self.stdioWin.Destroy()
1122 self.stdioWin = None
1123
1124
1125#----------------------------------------------------------------------------
1126#
1127# $Log$
62bd0874
RD
1128# Revision 1.9 1998/11/16 00:01:43 RD
1129# Generic treectrl for wxPython/GTK compiles...
60e05667
RD
1130#
1131# Revision 1.5 1998/10/20 07:38:02 RD
1132# bug fix
78bba745
RD
1133#
1134# Revision 1.4 1998/10/20 06:43:54 RD
1135# New wxTreeCtrl wrappers (untested)
1136# some changes in helpers
1137# etc.
b26e2dc4
RD
1138#
1139# Revision 1.3 1998/10/02 06:40:33 RD
1140#
1141# Version 0.4 of wxPython for MSW.
70551f47
RD
1142#
1143# Revision 1.2 1998/08/18 19:48:12 RD
1144# more wxGTK compatibility things.
1145#
1146# It builds now but there are serious runtime problems...
1147#
1148# Revision 1.1 1998/08/09 08:25:49 RD
1149# Initial version
1150#
1151#
1152