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