]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/wx.py
Mention wxCURSOR_BLANK
[wxWidgets.git] / wxPython / src / gtk / wx.py
CommitLineData
b8b8dda7
RD
1# This file was created automatically by SWIG.
2import wxc
3
4from misc import *
5
bb0054cd
RD
6from misc2 import *
7
b8b8dda7
RD
8from windows import *
9
10from gdi import *
11
b1462dfa
RD
12from clip_dnd import *
13
b8b8dda7
RD
14from events import *
15
c368d904
RD
16from streams import *
17
08da19d7
RD
18from utils import *
19
b8b8dda7
RD
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
08127323
RD
34from windows3 import *
35
cf694132 36from image import *
bb0054cd
RD
37
38from printfw import *
2f90df85
RD
39
40from sizers import *
c368d904
RD
41
42from filesys import *
b8b8dda7
RD
43class wxPyAppPtr(wxEvtHandlerPtr):
44 def __init__(self,this):
45 self.this = this
46 self.thisown = 0
1d99702e 47 def __del__(self,wxc=wxc):
8bf5d46e 48 if self.thisown == 1 :
1d99702e
RD
49 wxc.delete_wxPyApp(self)
50 def GetAppName(self, *_args, **_kwargs):
51 val = apply(wxc.wxPyApp_GetAppName,(self,) + _args, _kwargs)
b8b8dda7 52 return val
1d99702e
RD
53 def GetClassName(self, *_args, **_kwargs):
54 val = apply(wxc.wxPyApp_GetClassName,(self,) + _args, _kwargs)
b8b8dda7 55 return val
1d99702e
RD
56 def GetExitOnFrameDelete(self, *_args, **_kwargs):
57 val = apply(wxc.wxPyApp_GetExitOnFrameDelete,(self,) + _args, _kwargs)
b8b8dda7 58 return val
1d99702e
RD
59 def GetPrintMode(self, *_args, **_kwargs):
60 val = apply(wxc.wxPyApp_GetPrintMode,(self,) + _args, _kwargs)
b8b8dda7 61 return val
1d99702e
RD
62 def GetTopWindow(self, *_args, **_kwargs):
63 val = apply(wxc.wxPyApp_GetTopWindow,(self,) + _args, _kwargs)
b8b8dda7 64 return val
1d99702e
RD
65 def GetVendorName(self, *_args, **_kwargs):
66 val = apply(wxc.wxPyApp_GetVendorName,(self,) + _args, _kwargs)
b8b8dda7 67 return val
f6bcfd97
BP
68 def GetUseBestVisual(self, *_args, **_kwargs):
69 val = apply(wxc.wxPyApp_GetUseBestVisual,(self,) + _args, _kwargs)
70 return val
1d99702e
RD
71 def Dispatch(self, *_args, **_kwargs):
72 val = apply(wxc.wxPyApp_Dispatch,(self,) + _args, _kwargs)
b8b8dda7 73 return val
1d99702e
RD
74 def ExitMainLoop(self, *_args, **_kwargs):
75 val = apply(wxc.wxPyApp_ExitMainLoop,(self,) + _args, _kwargs)
b8b8dda7 76 return val
1d99702e
RD
77 def Initialized(self, *_args, **_kwargs):
78 val = apply(wxc.wxPyApp_Initialized,(self,) + _args, _kwargs)
b8b8dda7 79 return val
1d99702e
RD
80 def MainLoop(self, *_args, **_kwargs):
81 val = apply(wxc.wxPyApp_MainLoop,(self,) + _args, _kwargs)
b8b8dda7 82 return val
1d99702e
RD
83 def Pending(self, *_args, **_kwargs):
84 val = apply(wxc.wxPyApp_Pending,(self,) + _args, _kwargs)
b8b8dda7 85 return val
1d99702e
RD
86 def ProcessIdle(self, *_args, **_kwargs):
87 val = apply(wxc.wxPyApp_ProcessIdle,(self,) + _args, _kwargs)
8bf5d46e 88 return val
1d99702e
RD
89 def SetAppName(self, *_args, **_kwargs):
90 val = apply(wxc.wxPyApp_SetAppName,(self,) + _args, _kwargs)
b8b8dda7 91 return val
1d99702e
RD
92 def SetClassName(self, *_args, **_kwargs):
93 val = apply(wxc.wxPyApp_SetClassName,(self,) + _args, _kwargs)
b8b8dda7 94 return val
1d99702e
RD
95 def SetExitOnFrameDelete(self, *_args, **_kwargs):
96 val = apply(wxc.wxPyApp_SetExitOnFrameDelete,(self,) + _args, _kwargs)
b8b8dda7 97 return val
1d99702e
RD
98 def SetPrintMode(self, *_args, **_kwargs):
99 val = apply(wxc.wxPyApp_SetPrintMode,(self,) + _args, _kwargs)
b8b8dda7 100 return val
1d99702e
RD
101 def SetTopWindow(self, *_args, **_kwargs):
102 val = apply(wxc.wxPyApp_SetTopWindow,(self,) + _args, _kwargs)
b8b8dda7 103 return val
1d99702e
RD
104 def SetVendorName(self, *_args, **_kwargs):
105 val = apply(wxc.wxPyApp_SetVendorName,(self,) + _args, _kwargs)
b8b8dda7 106 return val
f6bcfd97
BP
107 def SetUseBestVisual(self, *_args, **_kwargs):
108 val = apply(wxc.wxPyApp_SetUseBestVisual,(self,) + _args, _kwargs)
109 return val
b8b8dda7 110 def __repr__(self):
1d99702e 111 return "<C wxPyApp instance at %s>" % (self.this,)
b8b8dda7 112class wxPyApp(wxPyAppPtr):
1d99702e
RD
113 def __init__(self,*_args,**_kwargs):
114 self.this = apply(wxc.new_wxPyApp,_args,_kwargs)
b8b8dda7
RD
115 self.thisown = 1
116
117
118
119
120
121
122#-------------- FUNCTION WRAPPERS ------------------
123
8bf5d46e
RD
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
b8b8dda7
RD
138_wxStart = wxc._wxStart
139
140_wxSetDictionary = wxc._wxSetDictionary
141
c368d904
RD
142def wxGetApp(*_args, **_kwargs):
143 val = apply(wxc.wxGetApp,_args,_kwargs)
144 if val: val = wxPyAppPtr(val)
145 return val
146
b1462dfa
RD
147wxApp_CleanUp = wxc.wxApp_CleanUp
148
b8b8dda7
RD
149
150
151#-------------- VARIABLE WRAPPERS ------------------
152
153wxMAJOR_VERSION = wxc.wxMAJOR_VERSION
154wxMINOR_VERSION = wxc.wxMINOR_VERSION
155wxRELEASE_NUMBER = wxc.wxRELEASE_NUMBER
08127323 156wxNOT_FOUND = wxc.wxNOT_FOUND
b8b8dda7
RD
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
1afc06c2 171wxWANTS_CHARS = wxc.wxWANTS_CHARS
0220cbc1 172wxPOPUP_WINDOW = wxc.wxPOPUP_WINDOW
b8b8dda7
RD
173wxHORIZONTAL = wxc.wxHORIZONTAL
174wxVERTICAL = wxc.wxVERTICAL
175wxBOTH = wxc.wxBOTH
176wxCENTER_FRAME = wxc.wxCENTER_FRAME
1afc06c2
RD
177wxCENTRE_ON_SCREEN = wxc.wxCENTRE_ON_SCREEN
178wxCENTER_ON_SCREEN = wxc.wxCENTER_ON_SCREEN
b8b8dda7
RD
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
2c8a649d 193wxDIALOG_NO_PARENT = wxc.wxDIALOG_NO_PARENT
b8b8dda7
RD
194wxDEFAULT_FRAME_STYLE = wxc.wxDEFAULT_FRAME_STYLE
195wxDEFAULT_DIALOG_STYLE = wxc.wxDEFAULT_DIALOG_STYLE
196wxFRAME_TOOL_WINDOW = wxc.wxFRAME_TOOL_WINDOW
bb0054cd 197wxFRAME_FLOAT_ON_PARENT = wxc.wxFRAME_FLOAT_ON_PARENT
4c9993c3 198wxFRAME_NO_WINDOW_MENU = wxc.wxFRAME_NO_WINDOW_MENU
9c4165ad 199wxFRAME_NO_TASKBAR = wxc.wxFRAME_NO_TASKBAR
1afc06c2
RD
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
08127323 205wxCLIP_CHILDREN = wxc.wxCLIP_CHILDREN
2c8a649d 206wxCLIP_SIBLINGS = wxc.wxCLIP_SIBLINGS
b8b8dda7
RD
207wxRETAINED = wxc.wxRETAINED
208wxBACKINGSTORE = wxc.wxBACKINGSTORE
b8b8dda7
RD
209wxTB_HORIZONTAL = wxc.wxTB_HORIZONTAL
210wxTB_VERTICAL = wxc.wxTB_VERTICAL
be86ffe3 211wxTB_3DBUTTONS = wxc.wxTB_3DBUTTONS
b8b8dda7 212wxTB_FLAT = wxc.wxTB_FLAT
f0261a72 213wxTB_DOCKABLE = wxc.wxTB_DOCKABLE
be86ffe3
RD
214wxTB_NOICONS = wxc.wxTB_NOICONS
215wxTB_TEXT = wxc.wxTB_TEXT
b8b8dda7
RD
216wxCOLOURED = wxc.wxCOLOURED
217wxFIXED_LENGTH = wxc.wxFIXED_LENGTH
218wxALIGN_LEFT = wxc.wxALIGN_LEFT
694759cf
RD
219wxALIGN_CENTER_HORIZONTAL = wxc.wxALIGN_CENTER_HORIZONTAL
220wxALIGN_CENTRE_HORIZONTAL = wxc.wxALIGN_CENTRE_HORIZONTAL
b8b8dda7 221wxALIGN_RIGHT = wxc.wxALIGN_RIGHT
2f90df85 222wxALIGN_BOTTOM = wxc.wxALIGN_BOTTOM
694759cf
RD
223wxALIGN_CENTER_VERTICAL = wxc.wxALIGN_CENTER_VERTICAL
224wxALIGN_CENTRE_VERTICAL = wxc.wxALIGN_CENTRE_VERTICAL
2f90df85 225wxALIGN_TOP = wxc.wxALIGN_TOP
694759cf
RD
226wxALIGN_CENTER = wxc.wxALIGN_CENTER
227wxALIGN_CENTRE = wxc.wxALIGN_CENTRE
228wxSHAPED = wxc.wxSHAPED
9c4165ad 229wxADJUST_MINSIZE = wxc.wxADJUST_MINSIZE
b8b8dda7
RD
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
b8b8dda7
RD
240wxTE_READONLY = wxc.wxTE_READONLY
241wxTE_MULTILINE = wxc.wxTE_MULTILINE
7a9b33db
RD
242wxTE_PROCESS_TAB = wxc.wxTE_PROCESS_TAB
243wxTE_RICH = wxc.wxTE_RICH
db34b2d4 244wxTE_RICH2 = wxc.wxTE_RICH2
06c0fba4 245wxTE_NO_VSCROLL = wxc.wxTE_NO_VSCROLL
7a9b33db
RD
246wxTE_AUTO_SCROLL = wxc.wxTE_AUTO_SCROLL
247wxTE_PROCESS_ENTER = wxc.wxTE_PROCESS_ENTER
248wxTE_PASSWORD = wxc.wxTE_PASSWORD
059a841c 249wxTE_AUTO_URL = wxc.wxTE_AUTO_URL
c20da257 250wxTE_NOHIDESEL = wxc.wxTE_NOHIDESEL
7a9b33db
RD
251wxTE_DONTWRAP = wxc.wxTE_DONTWRAP
252wxTE_LINEWRAP = wxc.wxTE_LINEWRAP
253wxTE_WORDWRAP = wxc.wxTE_WORDWRAP
b8b8dda7
RD
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
62abd41e
RD
260wxRA_SPECIFY_ROWS = wxc.wxRA_SPECIFY_ROWS
261wxRA_SPECIFY_COLS = wxc.wxRA_SPECIFY_COLS
b8b8dda7
RD
262wxRB_GROUP = wxc.wxRB_GROUP
263wxGA_PROGRESSBAR = wxc.wxGA_PROGRESSBAR
264wxGA_HORIZONTAL = wxc.wxGA_HORIZONTAL
265wxGA_VERTICAL = wxc.wxGA_VERTICAL
bb0054cd 266wxGA_SMOOTH = wxc.wxGA_SMOOTH
b8b8dda7
RD
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
cf694132 279wxST_SIZEGRIP = wxc.wxST_SIZEGRIP
2abc0a0f 280wxST_NO_AUTORESIZE = wxc.wxST_NO_AUTORESIZE
b8b8dda7
RD
281wxBU_AUTODRAW = wxc.wxBU_AUTODRAW
282wxBU_NOAUTODRAW = wxc.wxBU_NOAUTODRAW
b8b8dda7
RD
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
1b62f00d
RD
289wxSP_3DSASH = wxc.wxSP_3DSASH
290wxSP_3DBORDER = wxc.wxSP_3DBORDER
291wxSP_FULLSASH = wxc.wxSP_FULLSASH
b8b8dda7 292wxSP_BORDER = wxc.wxSP_BORDER
9d8bd15f
RD
293wxSP_LIVE_UPDATE = wxc.wxSP_LIVE_UPDATE
294wxSP_PERMIT_UNSPLIT = wxc.wxSP_PERMIT_UNSPLIT
b8b8dda7
RD
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
1afc06c2
RD
308wxNO_DEFAULT = wxc.wxNO_DEFAULT
309wxYES_DEFAULT = wxc.wxYES_DEFAULT
b8b8dda7
RD
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
1afc06c2
RD
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
b8b8dda7
RD
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
b8b8dda7
RD
332wxPORTRAIT = wxc.wxPORTRAIT
333wxLANDSCAPE = wxc.wxLANDSCAPE
bb0054cd
RD
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
b8b8dda7
RD
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
1893b029 356wxID_CLOSE_ALL = wxc.wxID_CLOSE_ALL
b8b8dda7
RD
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
2c8a649d
RD
362wxID_DUPLICATE = wxc.wxID_DUPLICATE
363wxID_SELECTALL = wxc.wxID_SELECTALL
b8b8dda7
RD
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
cf694132 378wxID_STATIC = wxc.wxID_STATIC
471825d7
RD
379wxID_FORWARD = wxc.wxID_FORWARD
380wxID_BACKWARD = wxc.wxID_BACKWARD
49df1f52 381wxID_DEFAULT = wxc.wxID_DEFAULT
471825d7 382wxID_MORE = wxc.wxID_MORE
49df1f52
RD
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
b8b8dda7
RD
391wxOPEN = wxc.wxOPEN
392wxSAVE = wxc.wxSAVE
393wxHIDE_READONLY = wxc.wxHIDE_READONLY
394wxOVERWRITE_PROMPT = wxc.wxOVERWRITE_PROMPT
2abc0a0f 395wxFILE_MUST_EXIST = wxc.wxFILE_MUST_EXIST
f6bcfd97 396wxMULTIPLE = wxc.wxMULTIPLE
9c4165ad 397wxCHANGE_DIR = wxc.wxCHANGE_DIR
b8b8dda7
RD
398wxACCEL_ALT = wxc.wxACCEL_ALT
399wxACCEL_CTRL = wxc.wxACCEL_CTRL
400wxACCEL_SHIFT = wxc.wxACCEL_SHIFT
f6bcfd97 401wxACCEL_NORMAL = wxc.wxACCEL_NORMAL
bb0054cd
RD
402wxPD_AUTO_HIDE = wxc.wxPD_AUTO_HIDE
403wxPD_APP_MODAL = wxc.wxPD_APP_MODAL
404wxPD_CAN_ABORT = wxc.wxPD_CAN_ABORT
a08cbc01
RD
405wxPD_ELAPSED_TIME = wxc.wxPD_ELAPSED_TIME
406wxPD_ESTIMATED_TIME = wxc.wxPD_ESTIMATED_TIME
407wxPD_REMAINING_TIME = wxc.wxPD_REMAINING_TIME
8bf5d46e 408wxMENU_TEAROFF = wxc.wxMENU_TEAROFF
1afc06c2 409wxMB_DOCKABLE = wxc.wxMB_DOCKABLE
8bf5d46e 410wxNO_FULL_REPAINT_ON_RESIZE = wxc.wxNO_FULL_REPAINT_ON_RESIZE
1afc06c2
RD
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
f0261a72
RD
427wxNB_LEFT = wxc.wxNB_LEFT
428wxNB_RIGHT = wxc.wxNB_RIGHT
429wxNB_BOTTOM = wxc.wxNB_BOTTOM
2c8a649d 430wxNB_MULTILINE = wxc.wxNB_MULTILINE
1afc06c2
RD
431wxLI_HORIZONTAL = wxc.wxLI_HORIZONTAL
432wxLI_VERTICAL = wxc.wxLI_VERTICAL
2cd2fac8
RD
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
7a446686 440wxWS_EX_VALIDATE_RECURSIVELY = wxc.wxWS_EX_VALIDATE_RECURSIVELY
0220cbc1 441wxWS_EX_BLOCK_EVENTS = wxc.wxWS_EX_BLOCK_EVENTS
74bcba0e 442wxWS_EX_TRANSIENT = wxc.wxWS_EX_TRANSIENT
32c988a3
RD
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
6e8a778a
RD
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
b8b8dda7
RD
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
b8b8dda7
RD
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
32c988a3 524WXK_ALT = wxc.WXK_ALT
b8b8dda7
RD
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
32c988a3
RD
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
7a446686
RD
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
db34b2d4 642wxBITMAP_TYPE_ANI = wxc.wxBITMAP_TYPE_ANI
85247b36 643wxBITMAP_TYPE_IFF = wxc.wxBITMAP_TYPE_IFF
7a446686
RD
644wxBITMAP_TYPE_MACCURSOR = wxc.wxBITMAP_TYPE_MACCURSOR
645wxBITMAP_TYPE_MACCURSOR_RESOURCE = wxc.wxBITMAP_TYPE_MACCURSOR_RESOURCE
646wxBITMAP_TYPE_ANY = wxc.wxBITMAP_TYPE_ANY
b8b8dda7
RD
647wxCURSOR_NONE = wxc.wxCURSOR_NONE
648wxCURSOR_ARROW = wxc.wxCURSOR_ARROW
a884bee5 649wxCURSOR_RIGHT_ARROW = wxc.wxCURSOR_RIGHT_ARROW
b8b8dda7
RD
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
7a446686
RD
674wxCURSOR_DEFAULT = wxc.wxCURSOR_DEFAULT
675wxCURSOR_ARROWWAIT = wxc.wxCURSOR_ARROWWAIT
676wxCURSOR_MAX = wxc.wxCURSOR_MAX
cf694132
RD
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
bb0054cd
RD
744wxDUPLEX_SIMPLEX = wxc.wxDUPLEX_SIMPLEX
745wxDUPLEX_HORIZONTAL = wxc.wxDUPLEX_HORIZONTAL
746wxDUPLEX_VERTICAL = wxc.wxDUPLEX_VERTICAL
546bfbea
VS
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
8cb49012
RD
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
b8b8dda7
RD
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
3af4e610 780wxEVT_COMMAND_SPINCTRL_UPDATED = wxc.wxEVT_COMMAND_SPINCTRL_UPDATED
b8b8dda7
RD
781wxEVT_COMMAND_TEXT_UPDATED = wxc.wxEVT_COMMAND_TEXT_UPDATED
782wxEVT_COMMAND_TEXT_ENTER = wxc.wxEVT_COMMAND_TEXT_ENTER
059a841c
RD
783wxEVT_COMMAND_TEXT_URL = wxc.wxEVT_COMMAND_TEXT_URL
784wxEVT_COMMAND_TEXT_MAXLEN = wxc.wxEVT_COMMAND_TEXT_MAXLEN
b8b8dda7
RD
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
3e212503 797wxEVT_CHILD_FOCUS = wxc.wxEVT_CHILD_FOCUS
7a446686 798wxEVT_MOUSEWHEEL = wxc.wxEVT_MOUSEWHEEL
b8b8dda7
RD
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
8bf5d46e
RD
824wxEVT_KEY_DOWN = wxc.wxEVT_KEY_DOWN
825wxEVT_KEY_UP = wxc.wxEVT_KEY_UP
826wxEVT_CHAR_HOOK = wxc.wxEVT_CHAR_HOOK
b8b8dda7
RD
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
26b9cf27 834wxEVT_SCROLL_THUMBRELEASE = wxc.wxEVT_SCROLL_THUMBRELEASE
bb0054cd
RD
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
26b9cf27 842wxEVT_SCROLLWIN_THUMBRELEASE = wxc.wxEVT_SCROLLWIN_THUMBRELEASE
b8b8dda7
RD
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
b8b8dda7
RD
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
4152e8b9
RD
861wxEVT_MENU_OPEN = wxc.wxEVT_MENU_OPEN
862wxEVT_MENU_CLOSE = wxc.wxEVT_MENU_CLOSE
b8b8dda7 863wxEVT_MENU_HIGHLIGHT = wxc.wxEVT_MENU_HIGHLIGHT
f0972d1e 864wxEVT_CONTEXT_MENU = wxc.wxEVT_CONTEXT_MENU
b8b8dda7 865wxEVT_SYS_COLOUR_CHANGED = wxc.wxEVT_SYS_COLOUR_CHANGED
ef2060fa 866wxEVT_DISPLAY_CHANGED = wxc.wxEVT_DISPLAY_CHANGED
b8b8dda7
RD
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
2f90df85 888wxEVT_NAVIGATION_KEY = wxc.wxEVT_NAVIGATION_KEY
f6bcfd97 889wxEVT_TIMER = wxc.wxEVT_TIMER
b8b8dda7
RD
890__version__ = wxc.__version__
891cvar = wxc.cvar
b68dc582
RD
892wxDefaultPosition = wxPointPtr(wxc.cvar.wxDefaultPosition)
893wxDefaultSize = wxSizePtr(wxc.cvar.wxDefaultSize)
b8b8dda7
RD
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
b8b8dda7
RD
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
b8b8dda7
RD
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
8bf5d46e
RD
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
4152e8b9
RD
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
b8b8dda7
RD
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
3e212503
RD
980def EVT_CHILD_FOCUS(win, func):
981 win.Connect(-1, -1, wxEVT_CHILD_FOCUS, func)
982
b8b8dda7
RD
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
ef2060fa
RD
1004def EVT_DISPLAY_CHANGED(win, func):
1005 win.Connect(-1, -1, wxEVT_DISPLAY_CHANGED, func)
1006
b8b8dda7
RD
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
3af4e610
RD
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):
b7e72427 1026 win.Connect(-1, -1, wxEVT_CREATE, func)
3af4e610
RD
1027
1028def EVT_WINDOW_DESTROY(win, func):
b7e72427 1029 win.Connect(-1, -1, wxEVT_DESTROY, func)
3af4e610
RD
1030
1031
1032
cf694132
RD
1033def EVT_IDLE(win, func):
1034 win.Connect(-1, -1, wxEVT_IDLE, func)
1035
bb0054cd
RD
1036def EVT_UPDATE_UI(win, id, func):
1037 win.Connect(id, -1, wxEVT_UPDATE_UI, func)
1038
eb715945
RD
1039def EVT_UPDATE_UI_RANGE(win, id, id2, func):
1040 win.Connect(id, id2, wxEVT_UPDATE_UI, func)
1041
b8b8dda7
RD
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
7a446686
RD
1080def EVT_MOUSEWHEEL(win, func):
1081 win.Connect(-1, -1, wxEVT_MOUSEWHEEL, func)
b8b8dda7
RD
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
26b9cf27 1105
b8b8dda7
RD
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)
26b9cf27 1115 win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE,func)
b8b8dda7
RD
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
26b9cf27
RD
1138def EVT_SCROLL_THUMBRELEASE(win, func):
1139 win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE, func)
1140
b8b8dda7
RD
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)
26b9cf27 1152 win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE,func)
b8b8dda7
RD
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
26b9cf27
RD
1175def EVT_COMMAND_SCROLL_THUMBRELEASE(win, id, func):
1176 win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE, func)
1177
d426c97e
RD
1178#---
1179def EVT_SCROLLWIN(win, func):
26b9cf27
RD
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)
d426c97e
RD
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
26b9cf27
RD
1210def EVT_SCROLLWIN_THUMBRELEASE(win, func):
1211 win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func)
1212
d426c97e
RD
1213
1214
1215# Scrolling, with an id
1216def EVT_COMMAND_SCROLLWIN(win, id, func):
26b9cf27
RD
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)
d426c97e
RD
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)
b8b8dda7 1246
26b9cf27
RD
1247def EVT_COMMAND_SCROLLWIN_THUMBRELEASE(win, id, func):
1248 win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func)
1249
1250
b8b8dda7
RD
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
059a841c
RD
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
b8b8dda7
RD
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
3af4e610
RD
1303def EVT_TOOL_RANGE(win, id, id2, func):
1304 win.Connect(id, id2, wxEVT_COMMAND_TOOL_CLICKED, func)
1305
b8b8dda7
RD
1306def EVT_TOOL_RCLICKED(win, id, func):
1307 win.Connect(id, -1, wxEVT_COMMAND_TOOL_RCLICKED, func)
1308
3af4e610
RD
1309def EVT_TOOL_RCLICKED_RANGE(win, id, id2, func):
1310 win.Connect(id, id2, wxEVT_COMMAND_TOOL_RCLICKED, func)
1311
b8b8dda7
RD
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
3af4e610
RD
1318def EVT_SPINCTRL(win, id, func):
1319 win.Connect(id, -1, wxEVT_COMMAND_SPINCTRL_UPDATED, func)
1320
1321
b8b8dda7
RD
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
b8b8dda7
RD
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):
f6bcfd97 1360 win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
b8b8dda7
RD
1361
1362def EVT_SPIN(win, id, func):
b8b8dda7
RD
1363 win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
1364
1365
b8b8dda7
RD
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
08127323
RD
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
bb0054cd
RD
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
b8b8dda7 1416
f6bcfd97
BP
1417# wxTimer
1418def EVT_TIMER(win, id, func):
1419 win.Connect(id, -1, wxEVT_TIMER, func)
1420
c368d904
RD
1421# wxProcess
1422def EVT_END_PROCESS(eh, id, func):
1423 eh.Connect(id, -1, wxEVT_END_PROCESS, func)
f6bcfd97 1424
2cd2fac8
RD
1425
1426# wxJoyStick
1427def EVT_JOY_DOWN(win, func):
25d73e0f 1428 win.Connect(-1, -1, wxEVT_JOY_BUTTON_DOWN, func)
2cd2fac8
RD
1429
1430def EVT_JOY_UP(win, func):
25d73e0f 1431 win.Connect(-1, -1, wxEVT_JOY_BUTTON_UP, func)
2cd2fac8
RD
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):
25d73e0f
RD
1440 win.Connect(-1, -1, wxEVT_JOY_BUTTON_DOWN, func)
1441 win.Connect(-1, -1, wxEVT_JOY_BUTTON_UP, func)
2cd2fac8
RD
1442 win.Connect(-1, -1, wxEVT_JOY_MOVE, func)
1443 win.Connect(-1, -1, wxEVT_JOY_ZMOVE, func)
1444
7a446686
RD
1445
1446def EVT_TOGGLEBUTTON(win, id, func):
1447 win.Connect(id, -1, wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, func)
1448
1449
059a841c 1450
059a841c
RD
1451def EVT_CONTEXT_MENU(win, func):
1452 win.Connect(-1, -1, wxEVT_CONTEXT_MENU, func)
1453
1454
b8b8dda7
RD
1455#----------------------------------------------------------------------
1456
1457class wxTimer(wxPyTimer):
2cd2fac8
RD
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)
b8b8dda7 1465
b8b8dda7
RD
1466#----------------------------------------------------------------------
1467# aliases
1468
1469wxColor = wxColour
1470wxNamedColor = wxNamedColour
32c988a3 1471wxPen = wxPyPen
85247b36
RD
1472wxScrollbar = wxScrollBar
1473
11765138 1474
9b3d3bc4 1475# backwards compatibility
b68dc582
RD
1476wxNoRefBitmap = wxBitmap
1477wxPyDefaultPosition = wxDefaultPosition
1478wxPyDefaultSize = wxDefaultSize
db34b2d4
RD
1479NULL = None
1480wxSystemSettings_GetSystemColour = wxSystemSettings_GetColour
1481wxSystemSettings_GetSystemFont = wxSystemSettings_GetFont
1482wxSystemSettings_GetSystemMetric = wxSystemSettings_GetMetric
059a841c
RD
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.
85247b36
RD
1487if wxPlatform == "__WXGTK__":
1488 try:
1489 import locale
1490 locale.setlocale(locale.LC_ALL, "")
1491 except:
1492 pass
059a841c
RD
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
8bf5d46e
RD
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
f581a26d 1511# that are derived from wxPython classes by the user, only those that are
8bf5d46e
RD
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):
c9482eba
RD
1530 if obj is None:
1531 return None
9df61a29
RD
1532 theClass = globals()[typeStr+"Ptr"]
1533 typeStr = __wxPyPtrTypeMap.get(typeStr, typeStr)
8bf5d46e 1534 if hasattr(obj, "this"):
5c0282d5
RD
1535 # if already the right type then just return it
1536 if isinstance(obj, theClass) or obj.__class__ is theClass:
9df61a29 1537 return obj
8bf5d46e
RD
1538 newPtr = ptrcast(obj.this, typeStr+"_p")
1539 else:
1540 newPtr = ptrcast(obj, typeStr+"_p")
8bf5d46e 1541 theObj = theClass(newPtr)
9b3d3bc4
RD
1542 if hasattr(obj, "this"):
1543 theObj.thisown = obj.thisown
8bf5d46e
RD
1544 return theObj
1545
1546
c9482eba 1547#----------------------------------------------------------------------
b8b8dda7
RD
1548#----------------------------------------------------------------------
1549
2f90df85
RD
1550class wxPyOnDemandOutputWindow:
1551 def __init__(self, title = "wxPython: stdout/stderr"):
1552 self.frame = None
1553 self.title = title
c9482eba 1554 self.parent = None
cf694132 1555
2f90df85
RD
1556 def SetParent(self, parent):
1557 self.parent = parent
b8b8dda7 1558
2f90df85
RD
1559 def OnCloseWindow(self, event):
1560 if self.frame != None:
1561 self.frame.Destroy()
1562 self.frame = None
1563 self.text = None
1564
471825d7 1565 # These methods provide the file-like output behaviour.
2f90df85 1566 def write(self, str):
471825d7
RD
1567 if not wxThread_IsMain():
1568 # Aquire the GUI mutex before making GUI calls. Mutex is released
7a446686 1569 # when locker is deleted at the end of this function.
471825d7
RD
1570 locker = wxMutexGuiLocker()
1571
2f90df85 1572 if not self.frame:
7a446686
RD
1573 self.frame = wxFrame(self.parent, -1, self.title,
1574 style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE)
2f90df85
RD
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):
eec92d76 1583 if self.frame != None:
471825d7
RD
1584 if not wxThread_IsMain():
1585 locker = wxMutexGuiLocker()
c9482eba 1586 self.frame.Close()
b8b8dda7 1587
b8b8dda7 1588
b8b8dda7
RD
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'
2f90df85 1597 outputWindowClass = wxPyOnDemandOutputWindow
b8b8dda7
RD
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)
b8b8dda7
RD
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
2f90df85
RD
1615
1616 def SetTopWindow(self, frame):
1617 if self.stdioWin:
1618 self.stdioWin.SetParent(frame)
2f90df85
RD
1619 wxPyApp.SetTopWindow(self, frame)
1620
eec92d76 1621
2f90df85
RD
1622 def MainLoop(self):
1623 wxPyApp.MainLoop(self)
1624 self.RestoreStdio()
1625
eec92d76 1626
b8b8dda7
RD
1627 def RedirectStdio(self, filename):
1628 if filename:
1629 sys.stdout = sys.stderr = open(filename, 'a')
1630 else:
2f90df85 1631 self.stdioWin = self.outputWindowClass() # wxPyOnDemandOutputWindow
c9482eba 1632 sys.stdout = sys.stderr = self.stdioWin
b8b8dda7 1633
eec92d76 1634
b8b8dda7
RD
1635 def RestoreStdio(self):
1636 sys.stdout, sys.stderr = self.saveStdio
c9482eba 1637
b8b8dda7 1638
9b3d3bc4
RD
1639#----------------------------------------------------------------------------
1640
1641class wxPySimpleApp(wxApp):
c9482eba
RD
1642 def __init__(self, flag=0):
1643 wxApp.__init__(self, flag)
9b3d3bc4
RD
1644 def OnInit(self):
1645 return true
b8b8dda7 1646
2f90df85 1647
f6bcfd97
BP
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
b8b8dda7 1662#----------------------------------------------------------------------------
8bf5d46e 1663# DO NOT hold any other references to this object. This is how we know when
b1462dfa
RD
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
ef2060fa
RD
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
9df61a29
RD
1683
1684#----------------------------------------------------------------------------
8bf5d46e 1685#----------------------------------------------------------------------------