]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/src/gtk/wx.py
Mention wxCURSOR_BLANK
[wxWidgets.git] / wxPython / src / gtk / wx.py
... / ...
CommitLineData
1# This file was created automatically by SWIG.
2import wxc
3
4from misc import *
5
6from misc2 import *
7
8from windows import *
9
10from gdi import *
11
12from clip_dnd import *
13
14from events import *
15
16from streams import *
17
18from utils import *
19
20from mdi import *
21
22from frames import *
23
24from stattool import *
25
26from controls import *
27
28from controls2 import *
29
30from windows2 import *
31
32from cmndlgs import *
33
34from windows3 import *
35
36from image import *
37
38from printfw import *
39
40from sizers import *
41
42from filesys import *
43class wxPyAppPtr(wxEvtHandlerPtr):
44 def __init__(self,this):
45 self.this = this
46 self.thisown = 0
47 def __del__(self,wxc=wxc):
48 if self.thisown == 1 :
49 wxc.delete_wxPyApp(self)
50 def GetAppName(self, *_args, **_kwargs):
51 val = apply(wxc.wxPyApp_GetAppName,(self,) + _args, _kwargs)
52 return val
53 def GetClassName(self, *_args, **_kwargs):
54 val = apply(wxc.wxPyApp_GetClassName,(self,) + _args, _kwargs)
55 return val
56 def GetExitOnFrameDelete(self, *_args, **_kwargs):
57 val = apply(wxc.wxPyApp_GetExitOnFrameDelete,(self,) + _args, _kwargs)
58 return val
59 def GetPrintMode(self, *_args, **_kwargs):
60 val = apply(wxc.wxPyApp_GetPrintMode,(self,) + _args, _kwargs)
61 return val
62 def GetTopWindow(self, *_args, **_kwargs):
63 val = apply(wxc.wxPyApp_GetTopWindow,(self,) + _args, _kwargs)
64 return val
65 def GetVendorName(self, *_args, **_kwargs):
66 val = apply(wxc.wxPyApp_GetVendorName,(self,) + _args, _kwargs)
67 return val
68 def GetUseBestVisual(self, *_args, **_kwargs):
69 val = apply(wxc.wxPyApp_GetUseBestVisual,(self,) + _args, _kwargs)
70 return val
71 def Dispatch(self, *_args, **_kwargs):
72 val = apply(wxc.wxPyApp_Dispatch,(self,) + _args, _kwargs)
73 return val
74 def ExitMainLoop(self, *_args, **_kwargs):
75 val = apply(wxc.wxPyApp_ExitMainLoop,(self,) + _args, _kwargs)
76 return val
77 def Initialized(self, *_args, **_kwargs):
78 val = apply(wxc.wxPyApp_Initialized,(self,) + _args, _kwargs)
79 return val
80 def MainLoop(self, *_args, **_kwargs):
81 val = apply(wxc.wxPyApp_MainLoop,(self,) + _args, _kwargs)
82 return val
83 def Pending(self, *_args, **_kwargs):
84 val = apply(wxc.wxPyApp_Pending,(self,) + _args, _kwargs)
85 return val
86 def ProcessIdle(self, *_args, **_kwargs):
87 val = apply(wxc.wxPyApp_ProcessIdle,(self,) + _args, _kwargs)
88 return val
89 def SetAppName(self, *_args, **_kwargs):
90 val = apply(wxc.wxPyApp_SetAppName,(self,) + _args, _kwargs)
91 return val
92 def SetClassName(self, *_args, **_kwargs):
93 val = apply(wxc.wxPyApp_SetClassName,(self,) + _args, _kwargs)
94 return val
95 def SetExitOnFrameDelete(self, *_args, **_kwargs):
96 val = apply(wxc.wxPyApp_SetExitOnFrameDelete,(self,) + _args, _kwargs)
97 return val
98 def SetPrintMode(self, *_args, **_kwargs):
99 val = apply(wxc.wxPyApp_SetPrintMode,(self,) + _args, _kwargs)
100 return val
101 def SetTopWindow(self, *_args, **_kwargs):
102 val = apply(wxc.wxPyApp_SetTopWindow,(self,) + _args, _kwargs)
103 return val
104 def SetVendorName(self, *_args, **_kwargs):
105 val = apply(wxc.wxPyApp_SetVendorName,(self,) + _args, _kwargs)
106 return val
107 def SetUseBestVisual(self, *_args, **_kwargs):
108 val = apply(wxc.wxPyApp_SetUseBestVisual,(self,) + _args, _kwargs)
109 return val
110 def __repr__(self):
111 return "<C wxPyApp instance at %s>" % (self.this,)
112class wxPyApp(wxPyAppPtr):
113 def __init__(self,*_args,**_kwargs):
114 self.this = apply(wxc.new_wxPyApp,_args,_kwargs)
115 self.thisown = 1
116
117
118
119
120
121
122#-------------- FUNCTION WRAPPERS ------------------
123
124ptrcast = wxc.ptrcast
125
126ptrvalue = wxc.ptrvalue
127
128ptrset = wxc.ptrset
129
130ptrcreate = wxc.ptrcreate
131
132ptrfree = wxc.ptrfree
133
134ptradd = wxc.ptradd
135
136ptrmap = wxc.ptrmap
137
138_wxStart = wxc._wxStart
139
140_wxSetDictionary = wxc._wxSetDictionary
141
142def wxGetApp(*_args, **_kwargs):
143 val = apply(wxc.wxGetApp,_args,_kwargs)
144 if val: val = wxPyAppPtr(val)
145 return val
146
147wxApp_CleanUp = wxc.wxApp_CleanUp
148
149
150
151#-------------- VARIABLE WRAPPERS ------------------
152
153wxMAJOR_VERSION = wxc.wxMAJOR_VERSION
154wxMINOR_VERSION = wxc.wxMINOR_VERSION
155wxRELEASE_NUMBER = wxc.wxRELEASE_NUMBER
156wxNOT_FOUND = wxc.wxNOT_FOUND
157wxVSCROLL = wxc.wxVSCROLL
158wxHSCROLL = wxc.wxHSCROLL
159wxCAPTION = wxc.wxCAPTION
160wxDOUBLE_BORDER = wxc.wxDOUBLE_BORDER
161wxSUNKEN_BORDER = wxc.wxSUNKEN_BORDER
162wxRAISED_BORDER = wxc.wxRAISED_BORDER
163wxBORDER = wxc.wxBORDER
164wxSIMPLE_BORDER = wxc.wxSIMPLE_BORDER
165wxSTATIC_BORDER = wxc.wxSTATIC_BORDER
166wxTRANSPARENT_WINDOW = wxc.wxTRANSPARENT_WINDOW
167wxNO_BORDER = wxc.wxNO_BORDER
168wxUSER_COLOURS = wxc.wxUSER_COLOURS
169wxNO_3D = wxc.wxNO_3D
170wxTAB_TRAVERSAL = wxc.wxTAB_TRAVERSAL
171wxWANTS_CHARS = wxc.wxWANTS_CHARS
172wxPOPUP_WINDOW = wxc.wxPOPUP_WINDOW
173wxHORIZONTAL = wxc.wxHORIZONTAL
174wxVERTICAL = wxc.wxVERTICAL
175wxBOTH = wxc.wxBOTH
176wxCENTER_FRAME = wxc.wxCENTER_FRAME
177wxCENTRE_ON_SCREEN = wxc.wxCENTRE_ON_SCREEN
178wxCENTER_ON_SCREEN = wxc.wxCENTER_ON_SCREEN
179wxSTAY_ON_TOP = wxc.wxSTAY_ON_TOP
180wxICONIZE = wxc.wxICONIZE
181wxMINIMIZE = wxc.wxMINIMIZE
182wxMAXIMIZE = wxc.wxMAXIMIZE
183wxTHICK_FRAME = wxc.wxTHICK_FRAME
184wxSYSTEM_MENU = wxc.wxSYSTEM_MENU
185wxMINIMIZE_BOX = wxc.wxMINIMIZE_BOX
186wxMAXIMIZE_BOX = wxc.wxMAXIMIZE_BOX
187wxTINY_CAPTION_HORIZ = wxc.wxTINY_CAPTION_HORIZ
188wxTINY_CAPTION_VERT = wxc.wxTINY_CAPTION_VERT
189wxRESIZE_BOX = wxc.wxRESIZE_BOX
190wxRESIZE_BORDER = wxc.wxRESIZE_BORDER
191wxDIALOG_MODAL = wxc.wxDIALOG_MODAL
192wxDIALOG_MODELESS = wxc.wxDIALOG_MODELESS
193wxDIALOG_NO_PARENT = wxc.wxDIALOG_NO_PARENT
194wxDEFAULT_FRAME_STYLE = wxc.wxDEFAULT_FRAME_STYLE
195wxDEFAULT_DIALOG_STYLE = wxc.wxDEFAULT_DIALOG_STYLE
196wxFRAME_TOOL_WINDOW = wxc.wxFRAME_TOOL_WINDOW
197wxFRAME_FLOAT_ON_PARENT = wxc.wxFRAME_FLOAT_ON_PARENT
198wxFRAME_NO_WINDOW_MENU = wxc.wxFRAME_NO_WINDOW_MENU
199wxFRAME_NO_TASKBAR = wxc.wxFRAME_NO_TASKBAR
200wxED_CLIENT_MARGIN = wxc.wxED_CLIENT_MARGIN
201wxED_BUTTONS_BOTTOM = wxc.wxED_BUTTONS_BOTTOM
202wxED_BUTTONS_RIGHT = wxc.wxED_BUTTONS_RIGHT
203wxED_STATIC_LINE = wxc.wxED_STATIC_LINE
204wxEXT_DIALOG_STYLE = wxc.wxEXT_DIALOG_STYLE
205wxCLIP_CHILDREN = wxc.wxCLIP_CHILDREN
206wxCLIP_SIBLINGS = wxc.wxCLIP_SIBLINGS
207wxRETAINED = wxc.wxRETAINED
208wxBACKINGSTORE = wxc.wxBACKINGSTORE
209wxTB_HORIZONTAL = wxc.wxTB_HORIZONTAL
210wxTB_VERTICAL = wxc.wxTB_VERTICAL
211wxTB_3DBUTTONS = wxc.wxTB_3DBUTTONS
212wxTB_FLAT = wxc.wxTB_FLAT
213wxTB_DOCKABLE = wxc.wxTB_DOCKABLE
214wxTB_NOICONS = wxc.wxTB_NOICONS
215wxTB_TEXT = wxc.wxTB_TEXT
216wxCOLOURED = wxc.wxCOLOURED
217wxFIXED_LENGTH = wxc.wxFIXED_LENGTH
218wxALIGN_LEFT = wxc.wxALIGN_LEFT
219wxALIGN_CENTER_HORIZONTAL = wxc.wxALIGN_CENTER_HORIZONTAL
220wxALIGN_CENTRE_HORIZONTAL = wxc.wxALIGN_CENTRE_HORIZONTAL
221wxALIGN_RIGHT = wxc.wxALIGN_RIGHT
222wxALIGN_BOTTOM = wxc.wxALIGN_BOTTOM
223wxALIGN_CENTER_VERTICAL = wxc.wxALIGN_CENTER_VERTICAL
224wxALIGN_CENTRE_VERTICAL = wxc.wxALIGN_CENTRE_VERTICAL
225wxALIGN_TOP = wxc.wxALIGN_TOP
226wxALIGN_CENTER = wxc.wxALIGN_CENTER
227wxALIGN_CENTRE = wxc.wxALIGN_CENTRE
228wxSHAPED = wxc.wxSHAPED
229wxADJUST_MINSIZE = wxc.wxADJUST_MINSIZE
230wxLB_NEEDED_SB = wxc.wxLB_NEEDED_SB
231wxLB_ALWAYS_SB = wxc.wxLB_ALWAYS_SB
232wxLB_SORT = wxc.wxLB_SORT
233wxLB_SINGLE = wxc.wxLB_SINGLE
234wxLB_MULTIPLE = wxc.wxLB_MULTIPLE
235wxLB_EXTENDED = wxc.wxLB_EXTENDED
236wxLB_OWNERDRAW = wxc.wxLB_OWNERDRAW
237wxLB_HSCROLL = wxc.wxLB_HSCROLL
238wxPROCESS_ENTER = wxc.wxPROCESS_ENTER
239wxPASSWORD = wxc.wxPASSWORD
240wxTE_READONLY = wxc.wxTE_READONLY
241wxTE_MULTILINE = wxc.wxTE_MULTILINE
242wxTE_PROCESS_TAB = wxc.wxTE_PROCESS_TAB
243wxTE_RICH = wxc.wxTE_RICH
244wxTE_RICH2 = wxc.wxTE_RICH2
245wxTE_NO_VSCROLL = wxc.wxTE_NO_VSCROLL
246wxTE_AUTO_SCROLL = wxc.wxTE_AUTO_SCROLL
247wxTE_PROCESS_ENTER = wxc.wxTE_PROCESS_ENTER
248wxTE_PASSWORD = wxc.wxTE_PASSWORD
249wxTE_AUTO_URL = wxc.wxTE_AUTO_URL
250wxTE_NOHIDESEL = wxc.wxTE_NOHIDESEL
251wxTE_DONTWRAP = wxc.wxTE_DONTWRAP
252wxTE_LINEWRAP = wxc.wxTE_LINEWRAP
253wxTE_WORDWRAP = wxc.wxTE_WORDWRAP
254wxCB_SIMPLE = wxc.wxCB_SIMPLE
255wxCB_DROPDOWN = wxc.wxCB_DROPDOWN
256wxCB_SORT = wxc.wxCB_SORT
257wxCB_READONLY = wxc.wxCB_READONLY
258wxRA_HORIZONTAL = wxc.wxRA_HORIZONTAL
259wxRA_VERTICAL = wxc.wxRA_VERTICAL
260wxRA_SPECIFY_ROWS = wxc.wxRA_SPECIFY_ROWS
261wxRA_SPECIFY_COLS = wxc.wxRA_SPECIFY_COLS
262wxRB_GROUP = wxc.wxRB_GROUP
263wxGA_PROGRESSBAR = wxc.wxGA_PROGRESSBAR
264wxGA_HORIZONTAL = wxc.wxGA_HORIZONTAL
265wxGA_VERTICAL = wxc.wxGA_VERTICAL
266wxGA_SMOOTH = wxc.wxGA_SMOOTH
267wxSL_HORIZONTAL = wxc.wxSL_HORIZONTAL
268wxSL_VERTICAL = wxc.wxSL_VERTICAL
269wxSL_AUTOTICKS = wxc.wxSL_AUTOTICKS
270wxSL_LABELS = wxc.wxSL_LABELS
271wxSL_LEFT = wxc.wxSL_LEFT
272wxSL_TOP = wxc.wxSL_TOP
273wxSL_RIGHT = wxc.wxSL_RIGHT
274wxSL_BOTTOM = wxc.wxSL_BOTTOM
275wxSL_BOTH = wxc.wxSL_BOTH
276wxSL_SELRANGE = wxc.wxSL_SELRANGE
277wxSB_HORIZONTAL = wxc.wxSB_HORIZONTAL
278wxSB_VERTICAL = wxc.wxSB_VERTICAL
279wxST_SIZEGRIP = wxc.wxST_SIZEGRIP
280wxST_NO_AUTORESIZE = wxc.wxST_NO_AUTORESIZE
281wxBU_AUTODRAW = wxc.wxBU_AUTODRAW
282wxBU_NOAUTODRAW = wxc.wxBU_NOAUTODRAW
283wxSP_VERTICAL = wxc.wxSP_VERTICAL
284wxSP_HORIZONTAL = wxc.wxSP_HORIZONTAL
285wxSP_ARROW_KEYS = wxc.wxSP_ARROW_KEYS
286wxSP_WRAP = wxc.wxSP_WRAP
287wxSP_NOBORDER = wxc.wxSP_NOBORDER
288wxSP_3D = wxc.wxSP_3D
289wxSP_3DSASH = wxc.wxSP_3DSASH
290wxSP_3DBORDER = wxc.wxSP_3DBORDER
291wxSP_FULLSASH = wxc.wxSP_FULLSASH
292wxSP_BORDER = wxc.wxSP_BORDER
293wxSP_LIVE_UPDATE = wxc.wxSP_LIVE_UPDATE
294wxSP_PERMIT_UNSPLIT = wxc.wxSP_PERMIT_UNSPLIT
295wxFLOOD_SURFACE = wxc.wxFLOOD_SURFACE
296wxFLOOD_BORDER = wxc.wxFLOOD_BORDER
297wxODDEVEN_RULE = wxc.wxODDEVEN_RULE
298wxWINDING_RULE = wxc.wxWINDING_RULE
299wxTOOL_TOP = wxc.wxTOOL_TOP
300wxTOOL_BOTTOM = wxc.wxTOOL_BOTTOM
301wxTOOL_LEFT = wxc.wxTOOL_LEFT
302wxTOOL_RIGHT = wxc.wxTOOL_RIGHT
303wxOK = wxc.wxOK
304wxYES_NO = wxc.wxYES_NO
305wxCANCEL = wxc.wxCANCEL
306wxYES = wxc.wxYES
307wxNO = wxc.wxNO
308wxNO_DEFAULT = wxc.wxNO_DEFAULT
309wxYES_DEFAULT = wxc.wxYES_DEFAULT
310wxICON_EXCLAMATION = wxc.wxICON_EXCLAMATION
311wxICON_HAND = wxc.wxICON_HAND
312wxICON_QUESTION = wxc.wxICON_QUESTION
313wxICON_INFORMATION = wxc.wxICON_INFORMATION
314wxICON_STOP = wxc.wxICON_STOP
315wxICON_ASTERISK = wxc.wxICON_ASTERISK
316wxICON_MASK = wxc.wxICON_MASK
317wxICON_WARNING = wxc.wxICON_WARNING
318wxICON_ERROR = wxc.wxICON_ERROR
319wxFORWARD = wxc.wxFORWARD
320wxBACKWARD = wxc.wxBACKWARD
321wxRESET = wxc.wxRESET
322wxHELP = wxc.wxHELP
323wxMORE = wxc.wxMORE
324wxSETUP = wxc.wxSETUP
325wxCENTRE = wxc.wxCENTRE
326wxCENTER = wxc.wxCENTER
327wxSIZE_AUTO_WIDTH = wxc.wxSIZE_AUTO_WIDTH
328wxSIZE_AUTO_HEIGHT = wxc.wxSIZE_AUTO_HEIGHT
329wxSIZE_AUTO = wxc.wxSIZE_AUTO
330wxSIZE_USE_EXISTING = wxc.wxSIZE_USE_EXISTING
331wxSIZE_ALLOW_MINUS_ONE = wxc.wxSIZE_ALLOW_MINUS_ONE
332wxPORTRAIT = wxc.wxPORTRAIT
333wxLANDSCAPE = wxc.wxLANDSCAPE
334wxPRINT_QUALITY_HIGH = wxc.wxPRINT_QUALITY_HIGH
335wxPRINT_QUALITY_MEDIUM = wxc.wxPRINT_QUALITY_MEDIUM
336wxPRINT_QUALITY_LOW = wxc.wxPRINT_QUALITY_LOW
337wxPRINT_QUALITY_DRAFT = wxc.wxPRINT_QUALITY_DRAFT
338wxID_OPEN = wxc.wxID_OPEN
339wxID_CLOSE = wxc.wxID_CLOSE
340wxID_NEW = wxc.wxID_NEW
341wxID_SAVE = wxc.wxID_SAVE
342wxID_SAVEAS = wxc.wxID_SAVEAS
343wxID_REVERT = wxc.wxID_REVERT
344wxID_EXIT = wxc.wxID_EXIT
345wxID_UNDO = wxc.wxID_UNDO
346wxID_REDO = wxc.wxID_REDO
347wxID_HELP = wxc.wxID_HELP
348wxID_PRINT = wxc.wxID_PRINT
349wxID_PRINT_SETUP = wxc.wxID_PRINT_SETUP
350wxID_PREVIEW = wxc.wxID_PREVIEW
351wxID_ABOUT = wxc.wxID_ABOUT
352wxID_HELP_CONTENTS = wxc.wxID_HELP_CONTENTS
353wxID_HELP_COMMANDS = wxc.wxID_HELP_COMMANDS
354wxID_HELP_PROCEDURES = wxc.wxID_HELP_PROCEDURES
355wxID_HELP_CONTEXT = wxc.wxID_HELP_CONTEXT
356wxID_CLOSE_ALL = wxc.wxID_CLOSE_ALL
357wxID_CUT = wxc.wxID_CUT
358wxID_COPY = wxc.wxID_COPY
359wxID_PASTE = wxc.wxID_PASTE
360wxID_CLEAR = wxc.wxID_CLEAR
361wxID_FIND = wxc.wxID_FIND
362wxID_DUPLICATE = wxc.wxID_DUPLICATE
363wxID_SELECTALL = wxc.wxID_SELECTALL
364wxID_FILE1 = wxc.wxID_FILE1
365wxID_FILE2 = wxc.wxID_FILE2
366wxID_FILE3 = wxc.wxID_FILE3
367wxID_FILE4 = wxc.wxID_FILE4
368wxID_FILE5 = wxc.wxID_FILE5
369wxID_FILE6 = wxc.wxID_FILE6
370wxID_FILE7 = wxc.wxID_FILE7
371wxID_FILE8 = wxc.wxID_FILE8
372wxID_FILE9 = wxc.wxID_FILE9
373wxID_OK = wxc.wxID_OK
374wxID_CANCEL = wxc.wxID_CANCEL
375wxID_APPLY = wxc.wxID_APPLY
376wxID_YES = wxc.wxID_YES
377wxID_NO = wxc.wxID_NO
378wxID_STATIC = wxc.wxID_STATIC
379wxID_FORWARD = wxc.wxID_FORWARD
380wxID_BACKWARD = wxc.wxID_BACKWARD
381wxID_DEFAULT = wxc.wxID_DEFAULT
382wxID_MORE = wxc.wxID_MORE
383wxID_SETUP = wxc.wxID_SETUP
384wxID_RESET = wxc.wxID_RESET
385wxID_CONTEXT_HELP = wxc.wxID_CONTEXT_HELP
386wxID_YESTOALL = wxc.wxID_YESTOALL
387wxID_NOTOALL = wxc.wxID_NOTOALL
388wxID_ABORT = wxc.wxID_ABORT
389wxID_RETRY = wxc.wxID_RETRY
390wxID_IGNORE = wxc.wxID_IGNORE
391wxOPEN = wxc.wxOPEN
392wxSAVE = wxc.wxSAVE
393wxHIDE_READONLY = wxc.wxHIDE_READONLY
394wxOVERWRITE_PROMPT = wxc.wxOVERWRITE_PROMPT
395wxFILE_MUST_EXIST = wxc.wxFILE_MUST_EXIST
396wxMULTIPLE = wxc.wxMULTIPLE
397wxCHANGE_DIR = wxc.wxCHANGE_DIR
398wxACCEL_ALT = wxc.wxACCEL_ALT
399wxACCEL_CTRL = wxc.wxACCEL_CTRL
400wxACCEL_SHIFT = wxc.wxACCEL_SHIFT
401wxACCEL_NORMAL = wxc.wxACCEL_NORMAL
402wxPD_AUTO_HIDE = wxc.wxPD_AUTO_HIDE
403wxPD_APP_MODAL = wxc.wxPD_APP_MODAL
404wxPD_CAN_ABORT = wxc.wxPD_CAN_ABORT
405wxPD_ELAPSED_TIME = wxc.wxPD_ELAPSED_TIME
406wxPD_ESTIMATED_TIME = wxc.wxPD_ESTIMATED_TIME
407wxPD_REMAINING_TIME = wxc.wxPD_REMAINING_TIME
408wxMENU_TEAROFF = wxc.wxMENU_TEAROFF
409wxMB_DOCKABLE = wxc.wxMB_DOCKABLE
410wxNO_FULL_REPAINT_ON_RESIZE = wxc.wxNO_FULL_REPAINT_ON_RESIZE
411wxLEFT = wxc.wxLEFT
412wxRIGHT = wxc.wxRIGHT
413wxUP = wxc.wxUP
414wxDOWN = wxc.wxDOWN
415wxALL = wxc.wxALL
416wxTOP = wxc.wxTOP
417wxBOTTOM = wxc.wxBOTTOM
418wxNORTH = wxc.wxNORTH
419wxSOUTH = wxc.wxSOUTH
420wxEAST = wxc.wxEAST
421wxWEST = wxc.wxWEST
422wxSTRETCH_NOT = wxc.wxSTRETCH_NOT
423wxSHRINK = wxc.wxSHRINK
424wxGROW = wxc.wxGROW
425wxEXPAND = wxc.wxEXPAND
426wxNB_FIXEDWIDTH = wxc.wxNB_FIXEDWIDTH
427wxNB_LEFT = wxc.wxNB_LEFT
428wxNB_RIGHT = wxc.wxNB_RIGHT
429wxNB_BOTTOM = wxc.wxNB_BOTTOM
430wxNB_MULTILINE = wxc.wxNB_MULTILINE
431wxLI_HORIZONTAL = wxc.wxLI_HORIZONTAL
432wxLI_VERTICAL = wxc.wxLI_VERTICAL
433wxJOYSTICK1 = wxc.wxJOYSTICK1
434wxJOYSTICK2 = wxc.wxJOYSTICK2
435wxJOY_BUTTON1 = wxc.wxJOY_BUTTON1
436wxJOY_BUTTON2 = wxc.wxJOY_BUTTON2
437wxJOY_BUTTON3 = wxc.wxJOY_BUTTON3
438wxJOY_BUTTON4 = wxc.wxJOY_BUTTON4
439wxJOY_BUTTON_ANY = wxc.wxJOY_BUTTON_ANY
440wxWS_EX_VALIDATE_RECURSIVELY = wxc.wxWS_EX_VALIDATE_RECURSIVELY
441wxWS_EX_BLOCK_EVENTS = wxc.wxWS_EX_BLOCK_EVENTS
442wxWS_EX_TRANSIENT = wxc.wxWS_EX_TRANSIENT
443wxMM_TEXT = wxc.wxMM_TEXT
444wxMM_LOMETRIC = wxc.wxMM_LOMETRIC
445wxMM_HIMETRIC = wxc.wxMM_HIMETRIC
446wxMM_LOENGLISH = wxc.wxMM_LOENGLISH
447wxMM_HIENGLISH = wxc.wxMM_HIENGLISH
448wxMM_TWIPS = wxc.wxMM_TWIPS
449wxMM_ISOTROPIC = wxc.wxMM_ISOTROPIC
450wxMM_ANISOTROPIC = wxc.wxMM_ANISOTROPIC
451wxMM_POINTS = wxc.wxMM_POINTS
452wxMM_METRIC = wxc.wxMM_METRIC
453wxBORDER_DEFAULT = wxc.wxBORDER_DEFAULT
454wxBORDER_NONE = wxc.wxBORDER_NONE
455wxBORDER_STATIC = wxc.wxBORDER_STATIC
456wxBORDER_SIMPLE = wxc.wxBORDER_SIMPLE
457wxBORDER_RAISED = wxc.wxBORDER_RAISED
458wxBORDER_SUNKEN = wxc.wxBORDER_SUNKEN
459wxBORDER_DOUBLE = wxc.wxBORDER_DOUBLE
460wxBORDER_MASK = wxc.wxBORDER_MASK
461wxDEFAULT = wxc.wxDEFAULT
462wxDECORATIVE = wxc.wxDECORATIVE
463wxROMAN = wxc.wxROMAN
464wxSCRIPT = wxc.wxSCRIPT
465wxSWISS = wxc.wxSWISS
466wxMODERN = wxc.wxMODERN
467wxTELETYPE = wxc.wxTELETYPE
468wxVARIABLE = wxc.wxVARIABLE
469wxFIXED = wxc.wxFIXED
470wxNORMAL = wxc.wxNORMAL
471wxLIGHT = wxc.wxLIGHT
472wxBOLD = wxc.wxBOLD
473wxITALIC = wxc.wxITALIC
474wxSLANT = wxc.wxSLANT
475wxSOLID = wxc.wxSOLID
476wxDOT = wxc.wxDOT
477wxLONG_DASH = wxc.wxLONG_DASH
478wxSHORT_DASH = wxc.wxSHORT_DASH
479wxDOT_DASH = wxc.wxDOT_DASH
480wxUSER_DASH = wxc.wxUSER_DASH
481wxTRANSPARENT = wxc.wxTRANSPARENT
482wxSTIPPLE = wxc.wxSTIPPLE
483wxBDIAGONAL_HATCH = wxc.wxBDIAGONAL_HATCH
484wxCROSSDIAG_HATCH = wxc.wxCROSSDIAG_HATCH
485wxFDIAGONAL_HATCH = wxc.wxFDIAGONAL_HATCH
486wxCROSS_HATCH = wxc.wxCROSS_HATCH
487wxHORIZONTAL_HATCH = wxc.wxHORIZONTAL_HATCH
488wxVERTICAL_HATCH = wxc.wxVERTICAL_HATCH
489wxJOIN_BEVEL = wxc.wxJOIN_BEVEL
490wxJOIN_MITER = wxc.wxJOIN_MITER
491wxJOIN_ROUND = wxc.wxJOIN_ROUND
492wxCAP_ROUND = wxc.wxCAP_ROUND
493wxCAP_PROJECTING = wxc.wxCAP_PROJECTING
494wxCAP_BUTT = wxc.wxCAP_BUTT
495wxCLEAR = wxc.wxCLEAR
496wxXOR = wxc.wxXOR
497wxINVERT = wxc.wxINVERT
498wxOR_REVERSE = wxc.wxOR_REVERSE
499wxAND_REVERSE = wxc.wxAND_REVERSE
500wxCOPY = wxc.wxCOPY
501wxAND = wxc.wxAND
502wxAND_INVERT = wxc.wxAND_INVERT
503wxNO_OP = wxc.wxNO_OP
504wxNOR = wxc.wxNOR
505wxEQUIV = wxc.wxEQUIV
506wxSRC_INVERT = wxc.wxSRC_INVERT
507wxOR_INVERT = wxc.wxOR_INVERT
508wxNAND = wxc.wxNAND
509wxOR = wxc.wxOR
510wxSET = wxc.wxSET
511WXK_BACK = wxc.WXK_BACK
512WXK_TAB = wxc.WXK_TAB
513WXK_RETURN = wxc.WXK_RETURN
514WXK_ESCAPE = wxc.WXK_ESCAPE
515WXK_SPACE = wxc.WXK_SPACE
516WXK_DELETE = wxc.WXK_DELETE
517WXK_START = wxc.WXK_START
518WXK_LBUTTON = wxc.WXK_LBUTTON
519WXK_RBUTTON = wxc.WXK_RBUTTON
520WXK_CANCEL = wxc.WXK_CANCEL
521WXK_MBUTTON = wxc.WXK_MBUTTON
522WXK_CLEAR = wxc.WXK_CLEAR
523WXK_SHIFT = wxc.WXK_SHIFT
524WXK_ALT = wxc.WXK_ALT
525WXK_CONTROL = wxc.WXK_CONTROL
526WXK_MENU = wxc.WXK_MENU
527WXK_PAUSE = wxc.WXK_PAUSE
528WXK_CAPITAL = wxc.WXK_CAPITAL
529WXK_PRIOR = wxc.WXK_PRIOR
530WXK_NEXT = wxc.WXK_NEXT
531WXK_END = wxc.WXK_END
532WXK_HOME = wxc.WXK_HOME
533WXK_LEFT = wxc.WXK_LEFT
534WXK_UP = wxc.WXK_UP
535WXK_RIGHT = wxc.WXK_RIGHT
536WXK_DOWN = wxc.WXK_DOWN
537WXK_SELECT = wxc.WXK_SELECT
538WXK_PRINT = wxc.WXK_PRINT
539WXK_EXECUTE = wxc.WXK_EXECUTE
540WXK_SNAPSHOT = wxc.WXK_SNAPSHOT
541WXK_INSERT = wxc.WXK_INSERT
542WXK_HELP = wxc.WXK_HELP
543WXK_NUMPAD0 = wxc.WXK_NUMPAD0
544WXK_NUMPAD1 = wxc.WXK_NUMPAD1
545WXK_NUMPAD2 = wxc.WXK_NUMPAD2
546WXK_NUMPAD3 = wxc.WXK_NUMPAD3
547WXK_NUMPAD4 = wxc.WXK_NUMPAD4
548WXK_NUMPAD5 = wxc.WXK_NUMPAD5
549WXK_NUMPAD6 = wxc.WXK_NUMPAD6
550WXK_NUMPAD7 = wxc.WXK_NUMPAD7
551WXK_NUMPAD8 = wxc.WXK_NUMPAD8
552WXK_NUMPAD9 = wxc.WXK_NUMPAD9
553WXK_MULTIPLY = wxc.WXK_MULTIPLY
554WXK_ADD = wxc.WXK_ADD
555WXK_SEPARATOR = wxc.WXK_SEPARATOR
556WXK_SUBTRACT = wxc.WXK_SUBTRACT
557WXK_DECIMAL = wxc.WXK_DECIMAL
558WXK_DIVIDE = wxc.WXK_DIVIDE
559WXK_F1 = wxc.WXK_F1
560WXK_F2 = wxc.WXK_F2
561WXK_F3 = wxc.WXK_F3
562WXK_F4 = wxc.WXK_F4
563WXK_F5 = wxc.WXK_F5
564WXK_F6 = wxc.WXK_F6
565WXK_F7 = wxc.WXK_F7
566WXK_F8 = wxc.WXK_F8
567WXK_F9 = wxc.WXK_F9
568WXK_F10 = wxc.WXK_F10
569WXK_F11 = wxc.WXK_F11
570WXK_F12 = wxc.WXK_F12
571WXK_F13 = wxc.WXK_F13
572WXK_F14 = wxc.WXK_F14
573WXK_F15 = wxc.WXK_F15
574WXK_F16 = wxc.WXK_F16
575WXK_F17 = wxc.WXK_F17
576WXK_F18 = wxc.WXK_F18
577WXK_F19 = wxc.WXK_F19
578WXK_F20 = wxc.WXK_F20
579WXK_F21 = wxc.WXK_F21
580WXK_F22 = wxc.WXK_F22
581WXK_F23 = wxc.WXK_F23
582WXK_F24 = wxc.WXK_F24
583WXK_NUMLOCK = wxc.WXK_NUMLOCK
584WXK_SCROLL = wxc.WXK_SCROLL
585WXK_PAGEUP = wxc.WXK_PAGEUP
586WXK_PAGEDOWN = wxc.WXK_PAGEDOWN
587WXK_NUMPAD_SPACE = wxc.WXK_NUMPAD_SPACE
588WXK_NUMPAD_TAB = wxc.WXK_NUMPAD_TAB
589WXK_NUMPAD_ENTER = wxc.WXK_NUMPAD_ENTER
590WXK_NUMPAD_F1 = wxc.WXK_NUMPAD_F1
591WXK_NUMPAD_F2 = wxc.WXK_NUMPAD_F2
592WXK_NUMPAD_F3 = wxc.WXK_NUMPAD_F3
593WXK_NUMPAD_F4 = wxc.WXK_NUMPAD_F4
594WXK_NUMPAD_HOME = wxc.WXK_NUMPAD_HOME
595WXK_NUMPAD_LEFT = wxc.WXK_NUMPAD_LEFT
596WXK_NUMPAD_UP = wxc.WXK_NUMPAD_UP
597WXK_NUMPAD_RIGHT = wxc.WXK_NUMPAD_RIGHT
598WXK_NUMPAD_DOWN = wxc.WXK_NUMPAD_DOWN
599WXK_NUMPAD_PRIOR = wxc.WXK_NUMPAD_PRIOR
600WXK_NUMPAD_PAGEUP = wxc.WXK_NUMPAD_PAGEUP
601WXK_NUMPAD_NEXT = wxc.WXK_NUMPAD_NEXT
602WXK_NUMPAD_PAGEDOWN = wxc.WXK_NUMPAD_PAGEDOWN
603WXK_NUMPAD_END = wxc.WXK_NUMPAD_END
604WXK_NUMPAD_BEGIN = wxc.WXK_NUMPAD_BEGIN
605WXK_NUMPAD_INSERT = wxc.WXK_NUMPAD_INSERT
606WXK_NUMPAD_DELETE = wxc.WXK_NUMPAD_DELETE
607WXK_NUMPAD_EQUAL = wxc.WXK_NUMPAD_EQUAL
608WXK_NUMPAD_MULTIPLY = wxc.WXK_NUMPAD_MULTIPLY
609WXK_NUMPAD_ADD = wxc.WXK_NUMPAD_ADD
610WXK_NUMPAD_SEPARATOR = wxc.WXK_NUMPAD_SEPARATOR
611WXK_NUMPAD_SUBTRACT = wxc.WXK_NUMPAD_SUBTRACT
612WXK_NUMPAD_DECIMAL = wxc.WXK_NUMPAD_DECIMAL
613WXK_NUMPAD_DIVIDE = wxc.WXK_NUMPAD_DIVIDE
614wxBITMAP_TYPE_INVALID = wxc.wxBITMAP_TYPE_INVALID
615wxBITMAP_TYPE_BMP = wxc.wxBITMAP_TYPE_BMP
616wxBITMAP_TYPE_BMP_RESOURCE = wxc.wxBITMAP_TYPE_BMP_RESOURCE
617wxBITMAP_TYPE_RESOURCE = wxc.wxBITMAP_TYPE_RESOURCE
618wxBITMAP_TYPE_ICO = wxc.wxBITMAP_TYPE_ICO
619wxBITMAP_TYPE_ICO_RESOURCE = wxc.wxBITMAP_TYPE_ICO_RESOURCE
620wxBITMAP_TYPE_CUR = wxc.wxBITMAP_TYPE_CUR
621wxBITMAP_TYPE_CUR_RESOURCE = wxc.wxBITMAP_TYPE_CUR_RESOURCE
622wxBITMAP_TYPE_XBM = wxc.wxBITMAP_TYPE_XBM
623wxBITMAP_TYPE_XBM_DATA = wxc.wxBITMAP_TYPE_XBM_DATA
624wxBITMAP_TYPE_XPM = wxc.wxBITMAP_TYPE_XPM
625wxBITMAP_TYPE_XPM_DATA = wxc.wxBITMAP_TYPE_XPM_DATA
626wxBITMAP_TYPE_TIF = wxc.wxBITMAP_TYPE_TIF
627wxBITMAP_TYPE_TIF_RESOURCE = wxc.wxBITMAP_TYPE_TIF_RESOURCE
628wxBITMAP_TYPE_GIF = wxc.wxBITMAP_TYPE_GIF
629wxBITMAP_TYPE_GIF_RESOURCE = wxc.wxBITMAP_TYPE_GIF_RESOURCE
630wxBITMAP_TYPE_PNG = wxc.wxBITMAP_TYPE_PNG
631wxBITMAP_TYPE_PNG_RESOURCE = wxc.wxBITMAP_TYPE_PNG_RESOURCE
632wxBITMAP_TYPE_JPEG = wxc.wxBITMAP_TYPE_JPEG
633wxBITMAP_TYPE_JPEG_RESOURCE = wxc.wxBITMAP_TYPE_JPEG_RESOURCE
634wxBITMAP_TYPE_PNM = wxc.wxBITMAP_TYPE_PNM
635wxBITMAP_TYPE_PNM_RESOURCE = wxc.wxBITMAP_TYPE_PNM_RESOURCE
636wxBITMAP_TYPE_PCX = wxc.wxBITMAP_TYPE_PCX
637wxBITMAP_TYPE_PCX_RESOURCE = wxc.wxBITMAP_TYPE_PCX_RESOURCE
638wxBITMAP_TYPE_PICT = wxc.wxBITMAP_TYPE_PICT
639wxBITMAP_TYPE_PICT_RESOURCE = wxc.wxBITMAP_TYPE_PICT_RESOURCE
640wxBITMAP_TYPE_ICON = wxc.wxBITMAP_TYPE_ICON
641wxBITMAP_TYPE_ICON_RESOURCE = wxc.wxBITMAP_TYPE_ICON_RESOURCE
642wxBITMAP_TYPE_ANI = wxc.wxBITMAP_TYPE_ANI
643wxBITMAP_TYPE_IFF = wxc.wxBITMAP_TYPE_IFF
644wxBITMAP_TYPE_MACCURSOR = wxc.wxBITMAP_TYPE_MACCURSOR
645wxBITMAP_TYPE_MACCURSOR_RESOURCE = wxc.wxBITMAP_TYPE_MACCURSOR_RESOURCE
646wxBITMAP_TYPE_ANY = wxc.wxBITMAP_TYPE_ANY
647wxCURSOR_NONE = wxc.wxCURSOR_NONE
648wxCURSOR_ARROW = wxc.wxCURSOR_ARROW
649wxCURSOR_RIGHT_ARROW = wxc.wxCURSOR_RIGHT_ARROW
650wxCURSOR_BULLSEYE = wxc.wxCURSOR_BULLSEYE
651wxCURSOR_CHAR = wxc.wxCURSOR_CHAR
652wxCURSOR_CROSS = wxc.wxCURSOR_CROSS
653wxCURSOR_HAND = wxc.wxCURSOR_HAND
654wxCURSOR_IBEAM = wxc.wxCURSOR_IBEAM
655wxCURSOR_LEFT_BUTTON = wxc.wxCURSOR_LEFT_BUTTON
656wxCURSOR_MAGNIFIER = wxc.wxCURSOR_MAGNIFIER
657wxCURSOR_MIDDLE_BUTTON = wxc.wxCURSOR_MIDDLE_BUTTON
658wxCURSOR_NO_ENTRY = wxc.wxCURSOR_NO_ENTRY
659wxCURSOR_PAINT_BRUSH = wxc.wxCURSOR_PAINT_BRUSH
660wxCURSOR_PENCIL = wxc.wxCURSOR_PENCIL
661wxCURSOR_POINT_LEFT = wxc.wxCURSOR_POINT_LEFT
662wxCURSOR_POINT_RIGHT = wxc.wxCURSOR_POINT_RIGHT
663wxCURSOR_QUESTION_ARROW = wxc.wxCURSOR_QUESTION_ARROW
664wxCURSOR_RIGHT_BUTTON = wxc.wxCURSOR_RIGHT_BUTTON
665wxCURSOR_SIZENESW = wxc.wxCURSOR_SIZENESW
666wxCURSOR_SIZENS = wxc.wxCURSOR_SIZENS
667wxCURSOR_SIZENWSE = wxc.wxCURSOR_SIZENWSE
668wxCURSOR_SIZEWE = wxc.wxCURSOR_SIZEWE
669wxCURSOR_SIZING = wxc.wxCURSOR_SIZING
670wxCURSOR_SPRAYCAN = wxc.wxCURSOR_SPRAYCAN
671wxCURSOR_WAIT = wxc.wxCURSOR_WAIT
672wxCURSOR_WATCH = wxc.wxCURSOR_WATCH
673wxCURSOR_BLANK = wxc.wxCURSOR_BLANK
674wxCURSOR_DEFAULT = wxc.wxCURSOR_DEFAULT
675wxCURSOR_ARROWWAIT = wxc.wxCURSOR_ARROWWAIT
676wxCURSOR_MAX = wxc.wxCURSOR_MAX
677wxPAPER_NONE = wxc.wxPAPER_NONE
678wxPAPER_LETTER = wxc.wxPAPER_LETTER
679wxPAPER_LEGAL = wxc.wxPAPER_LEGAL
680wxPAPER_A4 = wxc.wxPAPER_A4
681wxPAPER_CSHEET = wxc.wxPAPER_CSHEET
682wxPAPER_DSHEET = wxc.wxPAPER_DSHEET
683wxPAPER_ESHEET = wxc.wxPAPER_ESHEET
684wxPAPER_LETTERSMALL = wxc.wxPAPER_LETTERSMALL
685wxPAPER_TABLOID = wxc.wxPAPER_TABLOID
686wxPAPER_LEDGER = wxc.wxPAPER_LEDGER
687wxPAPER_STATEMENT = wxc.wxPAPER_STATEMENT
688wxPAPER_EXECUTIVE = wxc.wxPAPER_EXECUTIVE
689wxPAPER_A3 = wxc.wxPAPER_A3
690wxPAPER_A4SMALL = wxc.wxPAPER_A4SMALL
691wxPAPER_A5 = wxc.wxPAPER_A5
692wxPAPER_B4 = wxc.wxPAPER_B4
693wxPAPER_B5 = wxc.wxPAPER_B5
694wxPAPER_FOLIO = wxc.wxPAPER_FOLIO
695wxPAPER_QUARTO = wxc.wxPAPER_QUARTO
696wxPAPER_10X14 = wxc.wxPAPER_10X14
697wxPAPER_11X17 = wxc.wxPAPER_11X17
698wxPAPER_NOTE = wxc.wxPAPER_NOTE
699wxPAPER_ENV_9 = wxc.wxPAPER_ENV_9
700wxPAPER_ENV_10 = wxc.wxPAPER_ENV_10
701wxPAPER_ENV_11 = wxc.wxPAPER_ENV_11
702wxPAPER_ENV_12 = wxc.wxPAPER_ENV_12
703wxPAPER_ENV_14 = wxc.wxPAPER_ENV_14
704wxPAPER_ENV_DL = wxc.wxPAPER_ENV_DL
705wxPAPER_ENV_C5 = wxc.wxPAPER_ENV_C5
706wxPAPER_ENV_C3 = wxc.wxPAPER_ENV_C3
707wxPAPER_ENV_C4 = wxc.wxPAPER_ENV_C4
708wxPAPER_ENV_C6 = wxc.wxPAPER_ENV_C6
709wxPAPER_ENV_C65 = wxc.wxPAPER_ENV_C65
710wxPAPER_ENV_B4 = wxc.wxPAPER_ENV_B4
711wxPAPER_ENV_B5 = wxc.wxPAPER_ENV_B5
712wxPAPER_ENV_B6 = wxc.wxPAPER_ENV_B6
713wxPAPER_ENV_ITALY = wxc.wxPAPER_ENV_ITALY
714wxPAPER_ENV_MONARCH = wxc.wxPAPER_ENV_MONARCH
715wxPAPER_ENV_PERSONAL = wxc.wxPAPER_ENV_PERSONAL
716wxPAPER_FANFOLD_US = wxc.wxPAPER_FANFOLD_US
717wxPAPER_FANFOLD_STD_GERMAN = wxc.wxPAPER_FANFOLD_STD_GERMAN
718wxPAPER_FANFOLD_LGL_GERMAN = wxc.wxPAPER_FANFOLD_LGL_GERMAN
719wxPAPER_ISO_B4 = wxc.wxPAPER_ISO_B4
720wxPAPER_JAPANESE_POSTCARD = wxc.wxPAPER_JAPANESE_POSTCARD
721wxPAPER_9X11 = wxc.wxPAPER_9X11
722wxPAPER_10X11 = wxc.wxPAPER_10X11
723wxPAPER_15X11 = wxc.wxPAPER_15X11
724wxPAPER_ENV_INVITE = wxc.wxPAPER_ENV_INVITE
725wxPAPER_LETTER_EXTRA = wxc.wxPAPER_LETTER_EXTRA
726wxPAPER_LEGAL_EXTRA = wxc.wxPAPER_LEGAL_EXTRA
727wxPAPER_TABLOID_EXTRA = wxc.wxPAPER_TABLOID_EXTRA
728wxPAPER_A4_EXTRA = wxc.wxPAPER_A4_EXTRA
729wxPAPER_LETTER_TRANSVERSE = wxc.wxPAPER_LETTER_TRANSVERSE
730wxPAPER_A4_TRANSVERSE = wxc.wxPAPER_A4_TRANSVERSE
731wxPAPER_LETTER_EXTRA_TRANSVERSE = wxc.wxPAPER_LETTER_EXTRA_TRANSVERSE
732wxPAPER_A_PLUS = wxc.wxPAPER_A_PLUS
733wxPAPER_B_PLUS = wxc.wxPAPER_B_PLUS
734wxPAPER_LETTER_PLUS = wxc.wxPAPER_LETTER_PLUS
735wxPAPER_A4_PLUS = wxc.wxPAPER_A4_PLUS
736wxPAPER_A5_TRANSVERSE = wxc.wxPAPER_A5_TRANSVERSE
737wxPAPER_B5_TRANSVERSE = wxc.wxPAPER_B5_TRANSVERSE
738wxPAPER_A3_EXTRA = wxc.wxPAPER_A3_EXTRA
739wxPAPER_A5_EXTRA = wxc.wxPAPER_A5_EXTRA
740wxPAPER_B5_EXTRA = wxc.wxPAPER_B5_EXTRA
741wxPAPER_A2 = wxc.wxPAPER_A2
742wxPAPER_A3_TRANSVERSE = wxc.wxPAPER_A3_TRANSVERSE
743wxPAPER_A3_EXTRA_TRANSVERSE = wxc.wxPAPER_A3_EXTRA_TRANSVERSE
744wxDUPLEX_SIMPLEX = wxc.wxDUPLEX_SIMPLEX
745wxDUPLEX_HORIZONTAL = wxc.wxDUPLEX_HORIZONTAL
746wxDUPLEX_VERTICAL = wxc.wxDUPLEX_VERTICAL
747wxITEM_SEPARATOR = wxc.wxITEM_SEPARATOR
748wxITEM_NORMAL = wxc.wxITEM_NORMAL
749wxITEM_CHECK = wxc.wxITEM_CHECK
750wxITEM_RADIO = wxc.wxITEM_RADIO
751wxITEM_MAX = wxc.wxITEM_MAX
752wxHT_NOWHERE = wxc.wxHT_NOWHERE
753wxHT_SCROLLBAR_FIRST = wxc.wxHT_SCROLLBAR_FIRST
754wxHT_SCROLLBAR_ARROW_LINE_1 = wxc.wxHT_SCROLLBAR_ARROW_LINE_1
755wxHT_SCROLLBAR_ARROW_LINE_2 = wxc.wxHT_SCROLLBAR_ARROW_LINE_2
756wxHT_SCROLLBAR_ARROW_PAGE_1 = wxc.wxHT_SCROLLBAR_ARROW_PAGE_1
757wxHT_SCROLLBAR_ARROW_PAGE_2 = wxc.wxHT_SCROLLBAR_ARROW_PAGE_2
758wxHT_SCROLLBAR_THUMB = wxc.wxHT_SCROLLBAR_THUMB
759wxHT_SCROLLBAR_BAR_1 = wxc.wxHT_SCROLLBAR_BAR_1
760wxHT_SCROLLBAR_BAR_2 = wxc.wxHT_SCROLLBAR_BAR_2
761wxHT_SCROLLBAR_LAST = wxc.wxHT_SCROLLBAR_LAST
762wxHT_WINDOW_OUTSIDE = wxc.wxHT_WINDOW_OUTSIDE
763wxHT_WINDOW_INSIDE = wxc.wxHT_WINDOW_INSIDE
764wxHT_WINDOW_VERT_SCROLLBAR = wxc.wxHT_WINDOW_VERT_SCROLLBAR
765wxHT_WINDOW_HORZ_SCROLLBAR = wxc.wxHT_WINDOW_HORZ_SCROLLBAR
766wxHT_WINDOW_CORNER = wxc.wxHT_WINDOW_CORNER
767wxHT_MAX = wxc.wxHT_MAX
768FALSE = wxc.FALSE
769false = wxc.false
770TRUE = wxc.TRUE
771true = wxc.true
772wxEVT_NULL = wxc.wxEVT_NULL
773wxEVT_FIRST = wxc.wxEVT_FIRST
774wxEVT_COMMAND_BUTTON_CLICKED = wxc.wxEVT_COMMAND_BUTTON_CLICKED
775wxEVT_COMMAND_CHECKBOX_CLICKED = wxc.wxEVT_COMMAND_CHECKBOX_CLICKED
776wxEVT_COMMAND_CHOICE_SELECTED = wxc.wxEVT_COMMAND_CHOICE_SELECTED
777wxEVT_COMMAND_LISTBOX_SELECTED = wxc.wxEVT_COMMAND_LISTBOX_SELECTED
778wxEVT_COMMAND_LISTBOX_DOUBLECLICKED = wxc.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
779wxEVT_COMMAND_CHECKLISTBOX_TOGGLED = wxc.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
780wxEVT_COMMAND_SPINCTRL_UPDATED = wxc.wxEVT_COMMAND_SPINCTRL_UPDATED
781wxEVT_COMMAND_TEXT_UPDATED = wxc.wxEVT_COMMAND_TEXT_UPDATED
782wxEVT_COMMAND_TEXT_ENTER = wxc.wxEVT_COMMAND_TEXT_ENTER
783wxEVT_COMMAND_TEXT_URL = wxc.wxEVT_COMMAND_TEXT_URL
784wxEVT_COMMAND_TEXT_MAXLEN = wxc.wxEVT_COMMAND_TEXT_MAXLEN
785wxEVT_COMMAND_MENU_SELECTED = wxc.wxEVT_COMMAND_MENU_SELECTED
786wxEVT_COMMAND_SLIDER_UPDATED = wxc.wxEVT_COMMAND_SLIDER_UPDATED
787wxEVT_COMMAND_RADIOBOX_SELECTED = wxc.wxEVT_COMMAND_RADIOBOX_SELECTED
788wxEVT_COMMAND_RADIOBUTTON_SELECTED = wxc.wxEVT_COMMAND_RADIOBUTTON_SELECTED
789wxEVT_COMMAND_SCROLLBAR_UPDATED = wxc.wxEVT_COMMAND_SCROLLBAR_UPDATED
790wxEVT_COMMAND_VLBOX_SELECTED = wxc.wxEVT_COMMAND_VLBOX_SELECTED
791wxEVT_COMMAND_COMBOBOX_SELECTED = wxc.wxEVT_COMMAND_COMBOBOX_SELECTED
792wxEVT_COMMAND_TOOL_CLICKED = wxc.wxEVT_COMMAND_TOOL_CLICKED
793wxEVT_COMMAND_TOOL_RCLICKED = wxc.wxEVT_COMMAND_TOOL_RCLICKED
794wxEVT_COMMAND_TOOL_ENTER = wxc.wxEVT_COMMAND_TOOL_ENTER
795wxEVT_SET_FOCUS = wxc.wxEVT_SET_FOCUS
796wxEVT_KILL_FOCUS = wxc.wxEVT_KILL_FOCUS
797wxEVT_CHILD_FOCUS = wxc.wxEVT_CHILD_FOCUS
798wxEVT_MOUSEWHEEL = wxc.wxEVT_MOUSEWHEEL
799wxEVT_LEFT_DOWN = wxc.wxEVT_LEFT_DOWN
800wxEVT_LEFT_UP = wxc.wxEVT_LEFT_UP
801wxEVT_MIDDLE_DOWN = wxc.wxEVT_MIDDLE_DOWN
802wxEVT_MIDDLE_UP = wxc.wxEVT_MIDDLE_UP
803wxEVT_RIGHT_DOWN = wxc.wxEVT_RIGHT_DOWN
804wxEVT_RIGHT_UP = wxc.wxEVT_RIGHT_UP
805wxEVT_MOTION = wxc.wxEVT_MOTION
806wxEVT_ENTER_WINDOW = wxc.wxEVT_ENTER_WINDOW
807wxEVT_LEAVE_WINDOW = wxc.wxEVT_LEAVE_WINDOW
808wxEVT_LEFT_DCLICK = wxc.wxEVT_LEFT_DCLICK
809wxEVT_MIDDLE_DCLICK = wxc.wxEVT_MIDDLE_DCLICK
810wxEVT_RIGHT_DCLICK = wxc.wxEVT_RIGHT_DCLICK
811wxEVT_NC_LEFT_DOWN = wxc.wxEVT_NC_LEFT_DOWN
812wxEVT_NC_LEFT_UP = wxc.wxEVT_NC_LEFT_UP
813wxEVT_NC_MIDDLE_DOWN = wxc.wxEVT_NC_MIDDLE_DOWN
814wxEVT_NC_MIDDLE_UP = wxc.wxEVT_NC_MIDDLE_UP
815wxEVT_NC_RIGHT_DOWN = wxc.wxEVT_NC_RIGHT_DOWN
816wxEVT_NC_RIGHT_UP = wxc.wxEVT_NC_RIGHT_UP
817wxEVT_NC_MOTION = wxc.wxEVT_NC_MOTION
818wxEVT_NC_ENTER_WINDOW = wxc.wxEVT_NC_ENTER_WINDOW
819wxEVT_NC_LEAVE_WINDOW = wxc.wxEVT_NC_LEAVE_WINDOW
820wxEVT_NC_LEFT_DCLICK = wxc.wxEVT_NC_LEFT_DCLICK
821wxEVT_NC_MIDDLE_DCLICK = wxc.wxEVT_NC_MIDDLE_DCLICK
822wxEVT_NC_RIGHT_DCLICK = wxc.wxEVT_NC_RIGHT_DCLICK
823wxEVT_CHAR = wxc.wxEVT_CHAR
824wxEVT_KEY_DOWN = wxc.wxEVT_KEY_DOWN
825wxEVT_KEY_UP = wxc.wxEVT_KEY_UP
826wxEVT_CHAR_HOOK = wxc.wxEVT_CHAR_HOOK
827wxEVT_SCROLL_TOP = wxc.wxEVT_SCROLL_TOP
828wxEVT_SCROLL_BOTTOM = wxc.wxEVT_SCROLL_BOTTOM
829wxEVT_SCROLL_LINEUP = wxc.wxEVT_SCROLL_LINEUP
830wxEVT_SCROLL_LINEDOWN = wxc.wxEVT_SCROLL_LINEDOWN
831wxEVT_SCROLL_PAGEUP = wxc.wxEVT_SCROLL_PAGEUP
832wxEVT_SCROLL_PAGEDOWN = wxc.wxEVT_SCROLL_PAGEDOWN
833wxEVT_SCROLL_THUMBTRACK = wxc.wxEVT_SCROLL_THUMBTRACK
834wxEVT_SCROLL_THUMBRELEASE = wxc.wxEVT_SCROLL_THUMBRELEASE
835wxEVT_SCROLLWIN_TOP = wxc.wxEVT_SCROLLWIN_TOP
836wxEVT_SCROLLWIN_BOTTOM = wxc.wxEVT_SCROLLWIN_BOTTOM
837wxEVT_SCROLLWIN_LINEUP = wxc.wxEVT_SCROLLWIN_LINEUP
838wxEVT_SCROLLWIN_LINEDOWN = wxc.wxEVT_SCROLLWIN_LINEDOWN
839wxEVT_SCROLLWIN_PAGEUP = wxc.wxEVT_SCROLLWIN_PAGEUP
840wxEVT_SCROLLWIN_PAGEDOWN = wxc.wxEVT_SCROLLWIN_PAGEDOWN
841wxEVT_SCROLLWIN_THUMBTRACK = wxc.wxEVT_SCROLLWIN_THUMBTRACK
842wxEVT_SCROLLWIN_THUMBRELEASE = wxc.wxEVT_SCROLLWIN_THUMBRELEASE
843wxEVT_SIZE = wxc.wxEVT_SIZE
844wxEVT_MOVE = wxc.wxEVT_MOVE
845wxEVT_CLOSE_WINDOW = wxc.wxEVT_CLOSE_WINDOW
846wxEVT_END_SESSION = wxc.wxEVT_END_SESSION
847wxEVT_QUERY_END_SESSION = wxc.wxEVT_QUERY_END_SESSION
848wxEVT_ACTIVATE_APP = wxc.wxEVT_ACTIVATE_APP
849wxEVT_POWER = wxc.wxEVT_POWER
850wxEVT_ACTIVATE = wxc.wxEVT_ACTIVATE
851wxEVT_CREATE = wxc.wxEVT_CREATE
852wxEVT_DESTROY = wxc.wxEVT_DESTROY
853wxEVT_SHOW = wxc.wxEVT_SHOW
854wxEVT_ICONIZE = wxc.wxEVT_ICONIZE
855wxEVT_MAXIMIZE = wxc.wxEVT_MAXIMIZE
856wxEVT_MOUSE_CAPTURE_CHANGED = wxc.wxEVT_MOUSE_CAPTURE_CHANGED
857wxEVT_PAINT = wxc.wxEVT_PAINT
858wxEVT_ERASE_BACKGROUND = wxc.wxEVT_ERASE_BACKGROUND
859wxEVT_NC_PAINT = wxc.wxEVT_NC_PAINT
860wxEVT_PAINT_ICON = wxc.wxEVT_PAINT_ICON
861wxEVT_MENU_OPEN = wxc.wxEVT_MENU_OPEN
862wxEVT_MENU_CLOSE = wxc.wxEVT_MENU_CLOSE
863wxEVT_MENU_HIGHLIGHT = wxc.wxEVT_MENU_HIGHLIGHT
864wxEVT_CONTEXT_MENU = wxc.wxEVT_CONTEXT_MENU
865wxEVT_SYS_COLOUR_CHANGED = wxc.wxEVT_SYS_COLOUR_CHANGED
866wxEVT_DISPLAY_CHANGED = wxc.wxEVT_DISPLAY_CHANGED
867wxEVT_SETTING_CHANGED = wxc.wxEVT_SETTING_CHANGED
868wxEVT_QUERY_NEW_PALETTE = wxc.wxEVT_QUERY_NEW_PALETTE
869wxEVT_PALETTE_CHANGED = wxc.wxEVT_PALETTE_CHANGED
870wxEVT_JOY_BUTTON_DOWN = wxc.wxEVT_JOY_BUTTON_DOWN
871wxEVT_JOY_BUTTON_UP = wxc.wxEVT_JOY_BUTTON_UP
872wxEVT_JOY_MOVE = wxc.wxEVT_JOY_MOVE
873wxEVT_JOY_ZMOVE = wxc.wxEVT_JOY_ZMOVE
874wxEVT_DROP_FILES = wxc.wxEVT_DROP_FILES
875wxEVT_DRAW_ITEM = wxc.wxEVT_DRAW_ITEM
876wxEVT_MEASURE_ITEM = wxc.wxEVT_MEASURE_ITEM
877wxEVT_COMPARE_ITEM = wxc.wxEVT_COMPARE_ITEM
878wxEVT_INIT_DIALOG = wxc.wxEVT_INIT_DIALOG
879wxEVT_IDLE = wxc.wxEVT_IDLE
880wxEVT_UPDATE_UI = wxc.wxEVT_UPDATE_UI
881wxEVT_COMMAND_LEFT_CLICK = wxc.wxEVT_COMMAND_LEFT_CLICK
882wxEVT_COMMAND_LEFT_DCLICK = wxc.wxEVT_COMMAND_LEFT_DCLICK
883wxEVT_COMMAND_RIGHT_CLICK = wxc.wxEVT_COMMAND_RIGHT_CLICK
884wxEVT_COMMAND_RIGHT_DCLICK = wxc.wxEVT_COMMAND_RIGHT_DCLICK
885wxEVT_COMMAND_SET_FOCUS = wxc.wxEVT_COMMAND_SET_FOCUS
886wxEVT_COMMAND_KILL_FOCUS = wxc.wxEVT_COMMAND_KILL_FOCUS
887wxEVT_COMMAND_ENTER = wxc.wxEVT_COMMAND_ENTER
888wxEVT_NAVIGATION_KEY = wxc.wxEVT_NAVIGATION_KEY
889wxEVT_TIMER = wxc.wxEVT_TIMER
890__version__ = wxc.__version__
891cvar = wxc.cvar
892wxDefaultPosition = wxPointPtr(wxc.cvar.wxDefaultPosition)
893wxDefaultSize = wxSizePtr(wxc.cvar.wxDefaultSize)
894
895
896#-------------- USER INCLUDE -----------------------
897
898#----------------------------------------------------------------------------
899# Name: _extra.py
900# Purpose: This file is appended to the shadow class file generated
901# by SWIG. We add some unSWIGable things here.
902#
903# Author: Robin Dunn
904#
905# Created: 6/30/97
906# Copyright: (c) 1998 by Total Control Software
907# Licence: wxWindows license
908#----------------------------------------------------------------------------
909
910import sys
911
912#----------------------------------------------------------------------
913# This gives this module's dictionary to the C++ extension code...
914
915_wxSetDictionary(vars())
916
917
918#----------------------------------------------------------------------
919#----------------------------------------------------------------------
920# Helper function to link python methods to wxWindows virtual
921# functions by name.
922
923def _checkForCallback(obj, name, event, theID=-1):
924 try: cb = getattr(obj, name)
925 except: pass
926 else: obj.Connect(theID, -1, event, cb)
927
928
929#----------------------------------------------------------------------
930#----------------------------------------------------------------------
931# functions that look and act like the C++ Macros of the same name
932
933
934# Miscellaneous
935def EVT_SIZE(win, func):
936 win.Connect(-1, -1, wxEVT_SIZE, func)
937
938def EVT_MOVE(win, func):
939 win.Connect(-1, -1, wxEVT_MOVE, func)
940
941def EVT_CLOSE(win, func):
942 win.Connect(-1, -1, wxEVT_CLOSE_WINDOW, func)
943
944def EVT_PAINT(win, func):
945 win.Connect(-1, -1, wxEVT_PAINT, func)
946
947def EVT_ERASE_BACKGROUND(win, func):
948 win.Connect(-1, -1, wxEVT_ERASE_BACKGROUND, func)
949
950def EVT_CHAR(win, func):
951 win.Connect(-1, -1, wxEVT_CHAR, func)
952
953def EVT_CHAR_HOOK(win, func):
954 win.Connect(-1, -1, wxEVT_CHAR_HOOK, func)
955
956def EVT_KEY_DOWN(win, func):
957 win.Connect(-1, -1, wxEVT_KEY_DOWN, func)
958
959def EVT_KEY_UP(win, func):
960 win.Connect(-1, -1, wxEVT_KEY_UP, func)
961
962def EVT_MENU_OPEN(win, func):
963 win.Connect(-1, -1, wxEVT_MENU_OPEN, func)
964
965def EVT_MENU_CLOSE(win, func):
966 win.Connect(-1, -1, wxEVT_MENU_CLOSE, func)
967
968def EVT_MENU_HIGHLIGHT(win, id, func):
969 win.Connect(id, -1, wxEVT_MENU_HIGHLIGHT, func)
970
971def EVT_MENU_HIGHLIGHT_ALL(win, func):
972 win.Connect(-1, -1, wxEVT_MENU_HIGHLIGHT, func)
973
974def EVT_SET_FOCUS(win, func):
975 win.Connect(-1, -1, wxEVT_SET_FOCUS, func)
976
977def EVT_KILL_FOCUS(win, func):
978 win.Connect(-1, -1, wxEVT_KILL_FOCUS, func)
979
980def EVT_CHILD_FOCUS(win, func):
981 win.Connect(-1, -1, wxEVT_CHILD_FOCUS, func)
982
983def EVT_ACTIVATE(win, func):
984 win.Connect(-1, -1, wxEVT_ACTIVATE, func)
985
986def EVT_ACTIVATE_APP(win, func):
987 win.Connect(-1, -1, wxEVT_ACTIVATE_APP, func)
988
989def EVT_END_SESSION(win, func):
990 win.Connect(-1, -1, wxEVT_END_SESSION, func)
991
992def EVT_QUERY_END_SESSION(win, func):
993 win.Connect(-1, -1, wxEVT_QUERY_END_SESSION, func)
994
995def EVT_DROP_FILES(win, func):
996 win.Connect(-1, -1, wxEVT_DROP_FILES, func)
997
998def EVT_INIT_DIALOG(win, func):
999 win.Connect(-1, -1, wxEVT_INIT_DIALOG, func)
1000
1001def EVT_SYS_COLOUR_CHANGED(win, func):
1002 win.Connect(-1, -1, wxEVT_SYS_COLOUR_CHANGED, func)
1003
1004def EVT_DISPLAY_CHANGED(win, func):
1005 win.Connect(-1, -1, wxEVT_DISPLAY_CHANGED, func)
1006
1007def EVT_SHOW(win, func):
1008 win.Connect(-1, -1, wxEVT_SHOW, func)
1009
1010def EVT_MAXIMIZE(win, func):
1011 win.Connect(-1, -1, wxEVT_MAXIMIZE, func)
1012
1013def EVT_ICONIZE(win, func):
1014 win.Connect(-1, -1, wxEVT_ICONIZE, func)
1015
1016def EVT_NAVIGATION_KEY(win, func):
1017 win.Connect(-1, -1, wxEVT_NAVIGATION_KEY, func)
1018
1019def EVT_PALETTE_CHANGED(win, func):
1020 win.Connect(-1, -1, wxEVT_PALETTE_CHANGED, func)
1021
1022def EVT_QUERY_NEW_PALETTE(win, func):
1023 win.Connect(-1, -1, wxEVT_QUERY_NEW_PALETTE, func)
1024
1025def EVT_WINDOW_CREATE(win, func):
1026 win.Connect(-1, -1, wxEVT_CREATE, func)
1027
1028def EVT_WINDOW_DESTROY(win, func):
1029 win.Connect(-1, -1, wxEVT_DESTROY, func)
1030
1031
1032
1033def EVT_IDLE(win, func):
1034 win.Connect(-1, -1, wxEVT_IDLE, func)
1035
1036def EVT_UPDATE_UI(win, id, func):
1037 win.Connect(id, -1, wxEVT_UPDATE_UI, func)
1038
1039def EVT_UPDATE_UI_RANGE(win, id, id2, func):
1040 win.Connect(id, id2, wxEVT_UPDATE_UI, func)
1041
1042
1043# Mouse Events
1044def EVT_LEFT_DOWN(win, func):
1045 win.Connect(-1, -1, wxEVT_LEFT_DOWN, func)
1046
1047def EVT_LEFT_UP(win, func):
1048 win.Connect(-1, -1, wxEVT_LEFT_UP, func)
1049
1050def EVT_MIDDLE_DOWN(win, func):
1051 win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func)
1052
1053def EVT_MIDDLE_UP(win, func):
1054 win.Connect(-1, -1, wxEVT_MIDDLE_UP, func)
1055
1056def EVT_RIGHT_DOWN(win, func):
1057 win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func)
1058
1059def EVT_RIGHT_UP(win, func):
1060 win.Connect(-1, -1, wxEVT_RIGHT_UP, func)
1061
1062def EVT_MOTION(win, func):
1063 win.Connect(-1, -1, wxEVT_MOTION, func)
1064
1065def EVT_LEFT_DCLICK(win, func):
1066 win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func)
1067
1068def EVT_MIDDLE_DCLICK(win, func):
1069 win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func)
1070
1071def EVT_RIGHT_DCLICK(win, func):
1072 win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func)
1073
1074def EVT_LEAVE_WINDOW(win, func):
1075 win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func)
1076
1077def EVT_ENTER_WINDOW(win, func):
1078 win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func)
1079
1080def EVT_MOUSEWHEEL(win, func):
1081 win.Connect(-1, -1, wxEVT_MOUSEWHEEL, func)
1082
1083# all mouse events
1084def EVT_MOUSE_EVENTS(win, func):
1085 win.Connect(-1, -1, wxEVT_LEFT_DOWN, func)
1086 win.Connect(-1, -1, wxEVT_LEFT_UP, func)
1087 win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func)
1088 win.Connect(-1, -1, wxEVT_MIDDLE_UP, func)
1089 win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func)
1090 win.Connect(-1, -1, wxEVT_RIGHT_UP, func)
1091 win.Connect(-1, -1, wxEVT_MOTION, func)
1092 win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func)
1093 win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func)
1094 win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func)
1095 win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func)
1096 win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func)
1097
1098# EVT_COMMAND
1099def EVT_COMMAND(win, id, cmd, func):
1100 win.Connect(id, -1, cmd, func)
1101
1102def EVT_COMMAND_RANGE(win, id1, id2, cmd, func):
1103 win.Connect(id1, id2, cmd, func)
1104
1105
1106# Scrolling
1107def EVT_SCROLL(win, func):
1108 win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
1109 win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func)
1110 win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func)
1111 win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func)
1112 win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
1113 win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
1114 win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK,func)
1115 win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE,func)
1116
1117def EVT_SCROLL_TOP(win, func):
1118 win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
1119
1120def EVT_SCROLL_BOTTOM(win, func):
1121 win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func)
1122
1123def EVT_SCROLL_LINEUP(win, func):
1124 win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func)
1125
1126def EVT_SCROLL_LINEDOWN(win, func):
1127 win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func)
1128
1129def EVT_SCROLL_PAGEUP(win, func):
1130 win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
1131
1132def EVT_SCROLL_PAGEDOWN(win, func):
1133 win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
1134
1135def EVT_SCROLL_THUMBTRACK(win, func):
1136 win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK, func)
1137
1138def EVT_SCROLL_THUMBRELEASE(win, func):
1139 win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE, func)
1140
1141
1142
1143# Scrolling, with an id
1144def EVT_COMMAND_SCROLL(win, id, func):
1145 win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
1146 win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
1147 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
1148 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
1149 win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
1150 win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
1151 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
1152 win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE,func)
1153
1154def EVT_COMMAND_SCROLL_TOP(win, id, func):
1155 win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
1156
1157def EVT_COMMAND_SCROLL_BOTTOM(win, id, func):
1158 win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
1159
1160def EVT_COMMAND_SCROLL_LINEUP(win, id, func):
1161 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
1162
1163def EVT_COMMAND_SCROLL_LINEDOWN(win, id, func):
1164 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
1165
1166def EVT_COMMAND_SCROLL_PAGEUP(win, id, func):
1167 win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
1168
1169def EVT_COMMAND_SCROLL_PAGEDOWN(win, id, func):
1170 win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
1171
1172def EVT_COMMAND_SCROLL_THUMBTRACK(win, id, func):
1173 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK, func)
1174
1175def EVT_COMMAND_SCROLL_THUMBRELEASE(win, id, func):
1176 win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE, func)
1177
1178#---
1179def EVT_SCROLLWIN(win, func):
1180 win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
1181 win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func)
1182 win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func)
1183 win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
1184 win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func)
1185 win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
1186 win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
1187 win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE,func)
1188
1189def EVT_SCROLLWIN_TOP(win, func):
1190 win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
1191
1192def EVT_SCROLLWIN_BOTTOM(win, func):
1193 win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func)
1194
1195def EVT_SCROLLWIN_LINEUP(win, func):
1196 win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func)
1197
1198def EVT_SCROLLWIN_LINEDOWN(win, func):
1199 win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
1200
1201def EVT_SCROLLWIN_PAGEUP(win, func):
1202 win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func)
1203
1204def EVT_SCROLLWIN_PAGEDOWN(win, func):
1205 win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
1206
1207def EVT_SCROLLWIN_THUMBTRACK(win, func):
1208 win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
1209
1210def EVT_SCROLLWIN_THUMBRELEASE(win, func):
1211 win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func)
1212
1213
1214
1215# Scrolling, with an id
1216def EVT_COMMAND_SCROLLWIN(win, id, func):
1217 win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
1218 win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func)
1219 win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func)
1220 win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
1221 win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func)
1222 win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
1223 win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
1224 win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE,func)
1225
1226def EVT_COMMAND_SCROLLWIN_TOP(win, id, func):
1227 win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
1228
1229def EVT_COMMAND_SCROLLWIN_BOTTOM(win, id, func):
1230 win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func)
1231
1232def EVT_COMMAND_SCROLLWIN_LINEUP(win, id, func):
1233 win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func)
1234
1235def EVT_COMMAND_SCROLLWIN_LINEDOWN(win, id, func):
1236 win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
1237
1238def EVT_COMMAND_SCROLLWIN_PAGEUP(win, id, func):
1239 win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func)
1240
1241def EVT_COMMAND_SCROLLWIN_PAGEDOWN(win, id, func):
1242 win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
1243
1244def EVT_COMMAND_SCROLLWIN_THUMBTRACK(win, id, func):
1245 win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
1246
1247def EVT_COMMAND_SCROLLWIN_THUMBRELEASE(win, id, func):
1248 win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func)
1249
1250
1251# Convenience commands
1252def EVT_BUTTON(win, id, func):
1253 win.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED, func)
1254
1255def EVT_CHECKBOX(win, id, func):
1256 win.Connect(id, -1, wxEVT_COMMAND_CHECKBOX_CLICKED, func)
1257
1258def EVT_CHOICE(win, id, func):
1259 win.Connect(id, -1, wxEVT_COMMAND_CHOICE_SELECTED, func)
1260
1261def EVT_LISTBOX(win, id, func):
1262 win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_SELECTED, func)
1263
1264def EVT_LISTBOX_DCLICK(win, id, func):
1265 win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, func)
1266
1267def EVT_TEXT(win, id, func):
1268 win.Connect(id, -1, wxEVT_COMMAND_TEXT_UPDATED, func)
1269
1270def EVT_TEXT_ENTER(win, id, func):
1271 win.Connect(id, -1, wxEVT_COMMAND_TEXT_ENTER, func)
1272
1273def EVT_TEXT_URL(win, id, func):
1274 win.Connect(id, -1, wxEVT_COMMAND_TEXT_URL, func)
1275
1276def EVT_TEXT_MAXLEN(win, id, func):
1277 win.Connect(id, -1, wxEVT_COMMAND_TEXT_MAXLEN, func)
1278
1279def EVT_MENU(win, id, func):
1280 win.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED, func)
1281
1282def EVT_MENU_RANGE(win, id1, id2, func):
1283 win.Connect(id1, id2, wxEVT_COMMAND_MENU_SELECTED, func)
1284
1285def EVT_SLIDER(win, id, func):
1286 win.Connect(id, -1, wxEVT_COMMAND_SLIDER_UPDATED, func)
1287
1288def EVT_RADIOBOX(win, id, func):
1289 win.Connect(id, -1, wxEVT_COMMAND_RADIOBOX_SELECTED, func)
1290
1291def EVT_RADIOBUTTON(win, id, func):
1292 win.Connect(id, -1, wxEVT_COMMAND_RADIOBUTTON_SELECTED, func)
1293
1294def EVT_VLBOX(win, id, func):
1295 win.Connect(id, -1, wxEVT_COMMAND_VLBOX_SELECTED, func)
1296
1297def EVT_COMBOBOX(win, id, func):
1298 win.Connect(id, -1, wxEVT_COMMAND_COMBOBOX_SELECTED, func)
1299
1300def EVT_TOOL(win, id, func):
1301 win.Connect(id, -1, wxEVT_COMMAND_TOOL_CLICKED, func)
1302
1303def EVT_TOOL_RANGE(win, id, id2, func):
1304 win.Connect(id, id2, wxEVT_COMMAND_TOOL_CLICKED, func)
1305
1306def EVT_TOOL_RCLICKED(win, id, func):
1307 win.Connect(id, -1, wxEVT_COMMAND_TOOL_RCLICKED, func)
1308
1309def EVT_TOOL_RCLICKED_RANGE(win, id, id2, func):
1310 win.Connect(id, id2, wxEVT_COMMAND_TOOL_RCLICKED, func)
1311
1312def EVT_TOOL_ENTER(win, id, func):
1313 win.Connect(id, -1, wxEVT_COMMAND_TOOL_ENTER, func)
1314
1315def EVT_CHECKLISTBOX(win, id, func):
1316 win.Connect(id, -1, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, func)
1317
1318def EVT_SPINCTRL(win, id, func):
1319 win.Connect(id, -1, wxEVT_COMMAND_SPINCTRL_UPDATED, func)
1320
1321
1322
1323# Generic command events
1324
1325def EVT_COMMAND_LEFT_CLICK(win, id, func):
1326 win.Connect(id, -1, wxEVT_COMMAND_LEFT_CLICK, func)
1327
1328def EVT_COMMAND_LEFT_DCLICK(win, id, func):
1329 win.Connect(id, -1, wxEVT_COMMAND_LEFT_DCLICK, func)
1330
1331def EVT_COMMAND_RIGHT_CLICK(win, id, func):
1332 win.Connect(id, -1, wxEVT_COMMAND_RIGHT_CLICK, func)
1333
1334def EVT_COMMAND_RIGHT_DCLICK(win, id, func):
1335 win.Connect(id, -1, wxEVT_COMMAND_RIGHT_DCLICK, func)
1336
1337def EVT_COMMAND_SET_FOCUS(win, id, func):
1338 win.Connect(id, -1, wxEVT_COMMAND_SET_FOCUS, func)
1339
1340def EVT_COMMAND_KILL_FOCUS(win, id, func):
1341 win.Connect(id, -1, wxEVT_COMMAND_KILL_FOCUS, func)
1342
1343def EVT_COMMAND_ENTER(win, id, func):
1344 win.Connect(id, -1, wxEVT_COMMAND_ENTER, func)
1345
1346
1347# wxNotebook events
1348def EVT_NOTEBOOK_PAGE_CHANGED(win, id, func):
1349 win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, func)
1350
1351def EVT_NOTEBOOK_PAGE_CHANGING(win, id, func):
1352 win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, func)
1353
1354
1355# wxSpinButton
1356def EVT_SPIN_UP(win, id, func):
1357 win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
1358
1359def EVT_SPIN_DOWN(win, id, func):
1360 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
1361
1362def EVT_SPIN(win, id, func):
1363 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
1364
1365
1366# wxTaskBarIcon
1367def EVT_TASKBAR_MOVE(win, func):
1368 win.Connect(-1, -1, wxEVT_TASKBAR_MOVE, func)
1369
1370def EVT_TASKBAR_LEFT_DOWN(win, func):
1371 win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DOWN, func)
1372
1373def EVT_TASKBAR_LEFT_UP(win, func):
1374 win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_UP, func)
1375
1376def EVT_TASKBAR_RIGHT_DOWN(win, func):
1377 win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DOWN, func)
1378
1379def EVT_TASKBAR_RIGHT_UP(win, func):
1380 win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_UP, func)
1381
1382def EVT_TASKBAR_LEFT_DCLICK(win, func):
1383 win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DCLICK, func)
1384
1385def EVT_TASKBAR_RIGHT_DCLICK(win, func):
1386 win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DCLICK, func)
1387
1388
1389# wxSashWindow
1390def EVT_SASH_DRAGGED(win, id, func):
1391 win.Connect(id, -1, wxEVT_SASH_DRAGGED, func)
1392
1393def EVT_SASH_DRAGGED_RANGE(win, id1, id2, func):
1394 win.Connect(id1, id2, wxEVT_SASH_DRAGGED, func)
1395
1396def EVT_QUERY_LAYOUT_INFO(win, func):
1397 win.Connect(-1, -1, wxEVT_EVT_QUERY_LAYOUT_INFO, func)
1398
1399def EVT_CALCULATE_LAYOUT(win, func):
1400 win.Connect(-1, -1, wxEVT_EVT_CALCULATE_LAYOUT, func)
1401
1402
1403#wxSplitterWindow
1404def EVT_SPLITTER_SASH_POS_CHANGING(win, id, func):
1405 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, func)
1406
1407def EVT_SPLITTER_SASH_POS_CHANGED(win, id, func):
1408 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, func)
1409
1410def EVT_SPLITTER_UNSPLIT(win, id, func):
1411 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_UNSPLIT, func)
1412
1413def EVT_SPLITTER_DOUBLECLICKED(win, id, func):
1414 win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, func)
1415
1416
1417# wxTimer
1418def EVT_TIMER(win, id, func):
1419 win.Connect(id, -1, wxEVT_TIMER, func)
1420
1421# wxProcess
1422def EVT_END_PROCESS(eh, id, func):
1423 eh.Connect(id, -1, wxEVT_END_PROCESS, func)
1424
1425
1426# wxJoyStick
1427def EVT_JOY_DOWN(win, func):
1428 win.Connect(-1, -1, wxEVT_JOY_BUTTON_DOWN, func)
1429
1430def EVT_JOY_UP(win, func):
1431 win.Connect(-1, -1, wxEVT_JOY_BUTTON_UP, func)
1432
1433def EVT_JOY_MOVE(win, func):
1434 win.Connect(-1, -1, wxEVT_JOY_MOVE, func)
1435
1436def EVT_JOY_ZMOVE(win, func):
1437 win.Connect(-1, -1, wxEVT_JOY_ZMOVE, func)
1438
1439def EVT_JOYSTICK_EVENTS(win, func):
1440 win.Connect(-1, -1, wxEVT_JOY_BUTTON_DOWN, func)
1441 win.Connect(-1, -1, wxEVT_JOY_BUTTON_UP, func)
1442 win.Connect(-1, -1, wxEVT_JOY_MOVE, func)
1443 win.Connect(-1, -1, wxEVT_JOY_ZMOVE, func)
1444
1445
1446def EVT_TOGGLEBUTTON(win, id, func):
1447 win.Connect(id, -1, wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, func)
1448
1449
1450
1451def EVT_CONTEXT_MENU(win, func):
1452 win.Connect(-1, -1, wxEVT_CONTEXT_MENU, func)
1453
1454
1455#----------------------------------------------------------------------
1456
1457class wxTimer(wxPyTimer):
1458 def __init__(self, evtHandler = None, id = -1):
1459 if evtHandler is None:
1460 wxPyTimer.__init__(self, self.Notify) # derived class must provide
1461 # Notify(self) method.
1462 else:
1463 wxPyTimer.__init__(self, None)
1464 self.SetOwner(evtHandler, id)
1465
1466#----------------------------------------------------------------------
1467# aliases
1468
1469wxColor = wxColour
1470wxNamedColor = wxNamedColour
1471wxPen = wxPyPen
1472wxScrollbar = wxScrollBar
1473
1474
1475# backwards compatibility
1476wxNoRefBitmap = wxBitmap
1477wxPyDefaultPosition = wxDefaultPosition
1478wxPyDefaultSize = wxDefaultSize
1479NULL = None
1480wxSystemSettings_GetSystemColour = wxSystemSettings_GetColour
1481wxSystemSettings_GetSystemFont = wxSystemSettings_GetFont
1482wxSystemSettings_GetSystemMetric = wxSystemSettings_GetMetric
1483
1484#----------------------------------------------------------------------
1485# wxGTK sets the locale when initialized. Doing this at the Python
1486# level should set it up to match what GTK is doing at the C level.
1487if wxPlatform == "__WXGTK__":
1488 try:
1489 import locale
1490 locale.setlocale(locale.LC_ALL, "")
1491 except:
1492 pass
1493
1494
1495
1496#----------------------------------------------------------------------
1497# wxWindows version numbers. wxPython version is in __version__.
1498
1499wxMAJOR_VERSION = wxc.wxMAJOR_VERSION
1500wxMINOR_VERSION = wxc.wxMINOR_VERSION
1501wxRELEASE_NUMBER = wxc.wxRELEASE_NUMBER
1502wxVERSION_STRING = wxc.wxVERSION_STRING
1503wxVERSION_NUMBER = wxc.wxVERSION_NUMBER
1504
1505wxVERSION = (wxMAJOR_VERSION, wxMINOR_VERSION, wxRELEASE_NUMBER)
1506
1507
1508#----------------------------------------------------------------------
1509# This helper function will take a wxPython object and convert it to
1510# another wxPython object type. This will not be able to create objects
1511# that are derived from wxPython classes by the user, only those that are
1512# actually part of wxPython and directly corespond to C++ objects.
1513#
1514# This is useful in situations where some method returns a generic
1515# type such as wxWindow, but you know that it is actually some
1516# derived type such as a wxTextCtrl. You can't call wxTextCtrl specific
1517# methods on a wxWindow object, but you can use this function to
1518# create a wxTextCtrl object that will pass the same pointer to
1519# the C++ code. You use it like this:
1520#
1521# textCtrl = wxPyTypeCast(window, "wxTextCtrl")
1522#
1523#
1524# WARNING: Using this function to type cast objects into types that
1525# they are not is not recommended and is likely to cause your
1526# program to crash... Hard.
1527#
1528
1529def wxPyTypeCast(obj, typeStr):
1530 if obj is None:
1531 return None
1532 theClass = globals()[typeStr+"Ptr"]
1533 typeStr = __wxPyPtrTypeMap.get(typeStr, typeStr)
1534 if hasattr(obj, "this"):
1535 # if already the right type then just return it
1536 if isinstance(obj, theClass) or obj.__class__ is theClass:
1537 return obj
1538 newPtr = ptrcast(obj.this, typeStr+"_p")
1539 else:
1540 newPtr = ptrcast(obj, typeStr+"_p")
1541 theObj = theClass(newPtr)
1542 if hasattr(obj, "this"):
1543 theObj.thisown = obj.thisown
1544 return theObj
1545
1546
1547#----------------------------------------------------------------------
1548#----------------------------------------------------------------------
1549
1550class wxPyOnDemandOutputWindow:
1551 def __init__(self, title = "wxPython: stdout/stderr"):
1552 self.frame = None
1553 self.title = title
1554 self.parent = None
1555
1556 def SetParent(self, parent):
1557 self.parent = parent
1558
1559 def OnCloseWindow(self, event):
1560 if self.frame != None:
1561 self.frame.Destroy()
1562 self.frame = None
1563 self.text = None
1564
1565 # These methods provide the file-like output behaviour.
1566 def write(self, str):
1567 if not wxThread_IsMain():
1568 # Aquire the GUI mutex before making GUI calls. Mutex is released
1569 # when locker is deleted at the end of this function.
1570 locker = wxMutexGuiLocker()
1571
1572 if not self.frame:
1573 self.frame = wxFrame(self.parent, -1, self.title,
1574 style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE)
1575 self.text = wxTextCtrl(self.frame, -1, "",
1576 style = wxTE_MULTILINE|wxTE_READONLY)
1577 self.frame.SetSize(wxSize(450, 300))
1578 self.frame.Show(true)
1579 EVT_CLOSE(self.frame, self.OnCloseWindow)
1580 self.text.AppendText(str)
1581
1582 def close(self):
1583 if self.frame != None:
1584 if not wxThread_IsMain():
1585 locker = wxMutexGuiLocker()
1586 self.frame.Close()
1587
1588
1589_defRedirect = (wxPlatform == '__WXMSW__')
1590
1591#----------------------------------------------------------------------
1592# The main application class. Derive from this and implement an OnInit
1593# method that creates a frame and then calls self.SetTopWindow(frame)
1594
1595class wxApp(wxPyApp):
1596 error = 'wxApp.error'
1597 outputWindowClass = wxPyOnDemandOutputWindow
1598
1599 def __init__(self, redirect=_defRedirect, filename=None):
1600 wxPyApp.__init__(self)
1601 self.stdioWin = None
1602 self.saveStdio = (sys.stdout, sys.stderr)
1603 if redirect:
1604 self.RedirectStdio(filename)
1605 # this initializes wxWindows and then calls our OnInit
1606 _wxStart(self.OnInit)
1607
1608
1609 def __del__(self):
1610 try:
1611 self.RestoreStdio()
1612 except:
1613 pass
1614
1615
1616 def SetTopWindow(self, frame):
1617 if self.stdioWin:
1618 self.stdioWin.SetParent(frame)
1619 wxPyApp.SetTopWindow(self, frame)
1620
1621
1622 def MainLoop(self):
1623 wxPyApp.MainLoop(self)
1624 self.RestoreStdio()
1625
1626
1627 def RedirectStdio(self, filename):
1628 if filename:
1629 sys.stdout = sys.stderr = open(filename, 'a')
1630 else:
1631 self.stdioWin = self.outputWindowClass() # wxPyOnDemandOutputWindow
1632 sys.stdout = sys.stderr = self.stdioWin
1633
1634
1635 def RestoreStdio(self):
1636 sys.stdout, sys.stderr = self.saveStdio
1637
1638
1639#----------------------------------------------------------------------------
1640
1641class wxPySimpleApp(wxApp):
1642 def __init__(self, flag=0):
1643 wxApp.__init__(self, flag)
1644 def OnInit(self):
1645 return true
1646
1647
1648class wxPyWidgetTester(wxApp):
1649 def __init__(self, size = (250, 100)):
1650 self.size = size
1651 wxApp.__init__(self, 0)
1652
1653 def OnInit(self):
1654 self.frame = wxFrame(None, -1, "Widget Tester", pos=(0,0), size=self.size)
1655 self.SetTopWindow(self.frame)
1656 return true
1657
1658 def SetWidget(self, widgetClass, *args):
1659 w = apply(widgetClass, (self.frame,) + args)
1660 self.frame.Show(true)
1661
1662#----------------------------------------------------------------------------
1663# DO NOT hold any other references to this object. This is how we know when
1664# to cleanup system resources that wxWin is holding. When this module is
1665# unloaded, the refcount on __cleanMeUp goes to zero and it calls the
1666# wxApp_CleanUp function.
1667
1668class __wxPyCleanup:
1669 def __init__(self):
1670 self.cleanup = wxc.wxApp_CleanUp
1671 def __del__(self):
1672 self.cleanup()
1673
1674sys.__wxPythonCleanup = __wxPyCleanup()
1675
1676## # another possible solution, but it gets called too early...
1677## if sys.version[0] == '2':
1678## import atexit
1679## atexit.register(wxc.wxApp_CleanUp)
1680## else:
1681## sys.exitfunc = wxc.wxApp_CleanUp
1682
1683
1684#----------------------------------------------------------------------------
1685#----------------------------------------------------------------------------