]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/misc2.py
wxPython stuff:
[wxWidgets.git] / utils / wxPython / src / msw / misc2.py
1 # This file was created automatically by SWIG.
2 import misc2c
3
4 from windows import *
5
6 from misc import *
7
8 from gdi import *
9
10 from clip_dnd import *
11
12 from events import *
13 class wxToolTipPtr :
14 def __init__(self,this):
15 self.this = this
16 self.thisown = 0
17 def SetTip(self, *_args, **_kwargs):
18 val = apply(misc2c.wxToolTip_SetTip,(self,) + _args, _kwargs)
19 return val
20 def GetTip(self, *_args, **_kwargs):
21 val = apply(misc2c.wxToolTip_GetTip,(self,) + _args, _kwargs)
22 return val
23 def GetWindow(self, *_args, **_kwargs):
24 val = apply(misc2c.wxToolTip_GetWindow,(self,) + _args, _kwargs)
25 if val: val = wxWindowPtr(val)
26 return val
27 def __repr__(self):
28 return "<C wxToolTip instance at %s>" % (self.this,)
29 class wxToolTip(wxToolTipPtr):
30 def __init__(self,*_args,**_kwargs):
31 self.this = apply(misc2c.new_wxToolTip,_args,_kwargs)
32 self.thisown = 1
33
34
35
36
37 class wxCaretPtr :
38 def __init__(self,this):
39 self.this = this
40 self.thisown = 0
41 def __del__(self,misc2c=misc2c):
42 if self.thisown == 1 :
43 misc2c.delete_wxCaret(self)
44 def IsOk(self, *_args, **_kwargs):
45 val = apply(misc2c.wxCaret_IsOk,(self,) + _args, _kwargs)
46 return val
47 def IsVisible(self, *_args, **_kwargs):
48 val = apply(misc2c.wxCaret_IsVisible,(self,) + _args, _kwargs)
49 return val
50 def GetPositionTuple(self, *_args, **_kwargs):
51 val = apply(misc2c.wxCaret_GetPositionTuple,(self,) + _args, _kwargs)
52 return val
53 def GetPosition(self, *_args, **_kwargs):
54 val = apply(misc2c.wxCaret_GetPosition,(self,) + _args, _kwargs)
55 if val: val = wxPointPtr(val) ; val.thisown = 1
56 return val
57 def GetSizeTuple(self, *_args, **_kwargs):
58 val = apply(misc2c.wxCaret_GetSizeTuple,(self,) + _args, _kwargs)
59 return val
60 def GetSize(self, *_args, **_kwargs):
61 val = apply(misc2c.wxCaret_GetSize,(self,) + _args, _kwargs)
62 if val: val = wxSizePtr(val) ; val.thisown = 1
63 return val
64 def GetWindow(self, *_args, **_kwargs):
65 val = apply(misc2c.wxCaret_GetWindow,(self,) + _args, _kwargs)
66 if val: val = wxWindowPtr(val)
67 return val
68 def MoveXY(self, *_args, **_kwargs):
69 val = apply(misc2c.wxCaret_MoveXY,(self,) + _args, _kwargs)
70 return val
71 def Move(self, *_args, **_kwargs):
72 val = apply(misc2c.wxCaret_Move,(self,) + _args, _kwargs)
73 return val
74 def Show(self, *_args, **_kwargs):
75 val = apply(misc2c.wxCaret_Show,(self,) + _args, _kwargs)
76 return val
77 def Hide(self, *_args, **_kwargs):
78 val = apply(misc2c.wxCaret_Hide,(self,) + _args, _kwargs)
79 return val
80 def OnSetFocus(self, *_args, **_kwargs):
81 val = apply(misc2c.wxCaret_OnSetFocus,(self,) + _args, _kwargs)
82 return val
83 def OnKillFocus(self, *_args, **_kwargs):
84 val = apply(misc2c.wxCaret_OnKillFocus,(self,) + _args, _kwargs)
85 return val
86 def __repr__(self):
87 return "<C wxCaret instance at %s>" % (self.this,)
88 class wxCaret(wxCaretPtr):
89 def __init__(self,*_args,**_kwargs):
90 self.this = apply(misc2c.new_wxCaret,_args,_kwargs)
91 self.thisown = 1
92
93
94
95
96 class wxFontEnumeratorPtr :
97 def __init__(self,this):
98 self.this = this
99 self.thisown = 0
100 def __del__(self,misc2c=misc2c):
101 if self.thisown == 1 :
102 misc2c.delete_wxFontEnumerator(self)
103 def _setSelf(self, *_args, **_kwargs):
104 val = apply(misc2c.wxFontEnumerator__setSelf,(self,) + _args, _kwargs)
105 return val
106 def EnumerateFacenames(self, *_args, **_kwargs):
107 val = apply(misc2c.wxFontEnumerator_EnumerateFacenames,(self,) + _args, _kwargs)
108 return val
109 def EnumerateEncodings(self, *_args, **_kwargs):
110 val = apply(misc2c.wxFontEnumerator_EnumerateEncodings,(self,) + _args, _kwargs)
111 return val
112 def __repr__(self):
113 return "<C wxFontEnumerator instance at %s>" % (self.this,)
114 class wxFontEnumerator(wxFontEnumeratorPtr):
115 def __init__(self,*_args,**_kwargs):
116 self.this = apply(misc2c.new_wxFontEnumerator,_args,_kwargs)
117 self.thisown = 1
118 self._setSelf(self)
119
120
121
122
123 class wxBusyCursorPtr :
124 def __init__(self,this):
125 self.this = this
126 self.thisown = 0
127 def __del__(self,misc2c=misc2c):
128 if self.thisown == 1 :
129 misc2c.delete_wxBusyCursor(self)
130 def __repr__(self):
131 return "<C wxBusyCursor instance at %s>" % (self.this,)
132 class wxBusyCursor(wxBusyCursorPtr):
133 def __init__(self,*_args,**_kwargs):
134 self.this = apply(misc2c.new_wxBusyCursor,_args,_kwargs)
135 self.thisown = 1
136
137
138
139
140
141
142 #-------------- FUNCTION WRAPPERS ------------------
143
144 wxFileSelector = misc2c.wxFileSelector
145
146 wxGetTextFromUser = misc2c.wxGetTextFromUser
147
148 wxGetSingleChoice = misc2c.wxGetSingleChoice
149
150 wxGetSingleChoiceIndex = misc2c.wxGetSingleChoiceIndex
151
152 wxMessageBox = misc2c.wxMessageBox
153
154 wxGetNumberFromUser = misc2c.wxGetNumberFromUser
155
156 wxColourDisplay = misc2c.wxColourDisplay
157
158 wxDisplayDepth = misc2c.wxDisplayDepth
159
160 wxSetCursor = misc2c.wxSetCursor
161
162 def wxFindWindowByLabel(*_args, **_kwargs):
163 val = apply(misc2c.wxFindWindowByLabel,_args,_kwargs)
164 if val: val = wxWindowPtr(val)
165 return val
166
167 def wxFindWindowByName(*_args, **_kwargs):
168 val = apply(misc2c.wxFindWindowByName,_args,_kwargs)
169 if val: val = wxWindowPtr(val)
170 return val
171
172 wxBeginBusyCursor = misc2c.wxBeginBusyCursor
173
174 def wxGetActiveWindow(*_args, **_kwargs):
175 val = apply(misc2c.wxGetActiveWindow,_args,_kwargs)
176 if val: val = wxWindowPtr(val)
177 return val
178
179 wxResourceAddIdentifier = misc2c.wxResourceAddIdentifier
180
181 wxResourceClear = misc2c.wxResourceClear
182
183 def wxResourceCreateBitmap(*_args, **_kwargs):
184 val = apply(misc2c.wxResourceCreateBitmap,_args,_kwargs)
185 if val: val = wxBitmapPtr(val); val.thisown = 1
186 return val
187
188 def wxResourceCreateIcon(*_args, **_kwargs):
189 val = apply(misc2c.wxResourceCreateIcon,_args,_kwargs)
190 if val: val = wxIconPtr(val); val.thisown = 1
191 return val
192
193 def wxResourceCreateMenuBar(*_args, **_kwargs):
194 val = apply(misc2c.wxResourceCreateMenuBar,_args,_kwargs)
195 if val: val = wxMenuBarPtr(val)
196 return val
197
198 wxResourceGetIdentifier = misc2c.wxResourceGetIdentifier
199
200 wxResourceParseData = misc2c.wxResourceParseData
201
202 wxResourceParseFile = misc2c.wxResourceParseFile
203
204 wxResourceParseString = misc2c.wxResourceParseString
205
206 def wxSystemSettings_GetSystemColour(*_args, **_kwargs):
207 val = apply(misc2c.wxSystemSettings_GetSystemColour,_args,_kwargs)
208 if val: val = wxColourPtr(val); val.thisown = 1
209 return val
210
211 def wxSystemSettings_GetSystemFont(*_args, **_kwargs):
212 val = apply(misc2c.wxSystemSettings_GetSystemFont,_args,_kwargs)
213 if val: val = wxFontPtr(val); val.thisown = 1
214 return val
215
216 wxSystemSettings_GetSystemMetric = misc2c.wxSystemSettings_GetSystemMetric
217
218 wxToolTip_Enable = misc2c.wxToolTip_Enable
219
220 wxToolTip_SetDelay = misc2c.wxToolTip_SetDelay
221
222 wxCaret_GetBlinkTime = misc2c.wxCaret_GetBlinkTime
223
224 wxCaret_SetBlinkTime = misc2c.wxCaret_SetBlinkTime
225
226 wxPostEvent = misc2c.wxPostEvent
227
228
229
230 #-------------- VARIABLE WRAPPERS ------------------
231
232 wxSYS_WHITE_BRUSH = misc2c.wxSYS_WHITE_BRUSH
233 wxSYS_LTGRAY_BRUSH = misc2c.wxSYS_LTGRAY_BRUSH
234 wxSYS_GRAY_BRUSH = misc2c.wxSYS_GRAY_BRUSH
235 wxSYS_DKGRAY_BRUSH = misc2c.wxSYS_DKGRAY_BRUSH
236 wxSYS_BLACK_BRUSH = misc2c.wxSYS_BLACK_BRUSH
237 wxSYS_NULL_BRUSH = misc2c.wxSYS_NULL_BRUSH
238 wxSYS_HOLLOW_BRUSH = misc2c.wxSYS_HOLLOW_BRUSH
239 wxSYS_WHITE_PEN = misc2c.wxSYS_WHITE_PEN
240 wxSYS_BLACK_PEN = misc2c.wxSYS_BLACK_PEN
241 wxSYS_NULL_PEN = misc2c.wxSYS_NULL_PEN
242 wxSYS_OEM_FIXED_FONT = misc2c.wxSYS_OEM_FIXED_FONT
243 wxSYS_ANSI_FIXED_FONT = misc2c.wxSYS_ANSI_FIXED_FONT
244 wxSYS_ANSI_VAR_FONT = misc2c.wxSYS_ANSI_VAR_FONT
245 wxSYS_SYSTEM_FONT = misc2c.wxSYS_SYSTEM_FONT
246 wxSYS_DEVICE_DEFAULT_FONT = misc2c.wxSYS_DEVICE_DEFAULT_FONT
247 wxSYS_DEFAULT_PALETTE = misc2c.wxSYS_DEFAULT_PALETTE
248 wxSYS_SYSTEM_FIXED_FONT = misc2c.wxSYS_SYSTEM_FIXED_FONT
249 wxSYS_DEFAULT_GUI_FONT = misc2c.wxSYS_DEFAULT_GUI_FONT
250 wxSYS_COLOUR_SCROLLBAR = misc2c.wxSYS_COLOUR_SCROLLBAR
251 wxSYS_COLOUR_BACKGROUND = misc2c.wxSYS_COLOUR_BACKGROUND
252 wxSYS_COLOUR_ACTIVECAPTION = misc2c.wxSYS_COLOUR_ACTIVECAPTION
253 wxSYS_COLOUR_INACTIVECAPTION = misc2c.wxSYS_COLOUR_INACTIVECAPTION
254 wxSYS_COLOUR_MENU = misc2c.wxSYS_COLOUR_MENU
255 wxSYS_COLOUR_WINDOW = misc2c.wxSYS_COLOUR_WINDOW
256 wxSYS_COLOUR_WINDOWFRAME = misc2c.wxSYS_COLOUR_WINDOWFRAME
257 wxSYS_COLOUR_MENUTEXT = misc2c.wxSYS_COLOUR_MENUTEXT
258 wxSYS_COLOUR_WINDOWTEXT = misc2c.wxSYS_COLOUR_WINDOWTEXT
259 wxSYS_COLOUR_CAPTIONTEXT = misc2c.wxSYS_COLOUR_CAPTIONTEXT
260 wxSYS_COLOUR_ACTIVEBORDER = misc2c.wxSYS_COLOUR_ACTIVEBORDER
261 wxSYS_COLOUR_INACTIVEBORDER = misc2c.wxSYS_COLOUR_INACTIVEBORDER
262 wxSYS_COLOUR_APPWORKSPACE = misc2c.wxSYS_COLOUR_APPWORKSPACE
263 wxSYS_COLOUR_HIGHLIGHT = misc2c.wxSYS_COLOUR_HIGHLIGHT
264 wxSYS_COLOUR_HIGHLIGHTTEXT = misc2c.wxSYS_COLOUR_HIGHLIGHTTEXT
265 wxSYS_COLOUR_BTNFACE = misc2c.wxSYS_COLOUR_BTNFACE
266 wxSYS_COLOUR_BTNSHADOW = misc2c.wxSYS_COLOUR_BTNSHADOW
267 wxSYS_COLOUR_GRAYTEXT = misc2c.wxSYS_COLOUR_GRAYTEXT
268 wxSYS_COLOUR_BTNTEXT = misc2c.wxSYS_COLOUR_BTNTEXT
269 wxSYS_COLOUR_INACTIVECAPTIONTEXT = misc2c.wxSYS_COLOUR_INACTIVECAPTIONTEXT
270 wxSYS_COLOUR_BTNHIGHLIGHT = misc2c.wxSYS_COLOUR_BTNHIGHLIGHT
271 wxSYS_COLOUR_3DDKSHADOW = misc2c.wxSYS_COLOUR_3DDKSHADOW
272 wxSYS_COLOUR_3DLIGHT = misc2c.wxSYS_COLOUR_3DLIGHT
273 wxSYS_COLOUR_INFOTEXT = misc2c.wxSYS_COLOUR_INFOTEXT
274 wxSYS_COLOUR_INFOBK = misc2c.wxSYS_COLOUR_INFOBK
275 wxSYS_COLOUR_DESKTOP = misc2c.wxSYS_COLOUR_DESKTOP
276 wxSYS_COLOUR_3DFACE = misc2c.wxSYS_COLOUR_3DFACE
277 wxSYS_COLOUR_3DSHADOW = misc2c.wxSYS_COLOUR_3DSHADOW
278 wxSYS_COLOUR_3DHIGHLIGHT = misc2c.wxSYS_COLOUR_3DHIGHLIGHT
279 wxSYS_COLOUR_3DHILIGHT = misc2c.wxSYS_COLOUR_3DHILIGHT
280 wxSYS_COLOUR_BTNHILIGHT = misc2c.wxSYS_COLOUR_BTNHILIGHT
281 wxSYS_MOUSE_BUTTONS = misc2c.wxSYS_MOUSE_BUTTONS
282 wxSYS_BORDER_X = misc2c.wxSYS_BORDER_X
283 wxSYS_BORDER_Y = misc2c.wxSYS_BORDER_Y
284 wxSYS_CURSOR_X = misc2c.wxSYS_CURSOR_X
285 wxSYS_CURSOR_Y = misc2c.wxSYS_CURSOR_Y
286 wxSYS_DCLICK_X = misc2c.wxSYS_DCLICK_X
287 wxSYS_DCLICK_Y = misc2c.wxSYS_DCLICK_Y
288 wxSYS_DRAG_X = misc2c.wxSYS_DRAG_X
289 wxSYS_DRAG_Y = misc2c.wxSYS_DRAG_Y
290 wxSYS_EDGE_X = misc2c.wxSYS_EDGE_X
291 wxSYS_EDGE_Y = misc2c.wxSYS_EDGE_Y
292 wxSYS_HSCROLL_ARROW_X = misc2c.wxSYS_HSCROLL_ARROW_X
293 wxSYS_HSCROLL_ARROW_Y = misc2c.wxSYS_HSCROLL_ARROW_Y
294 wxSYS_HTHUMB_X = misc2c.wxSYS_HTHUMB_X
295 wxSYS_ICON_X = misc2c.wxSYS_ICON_X
296 wxSYS_ICON_Y = misc2c.wxSYS_ICON_Y
297 wxSYS_ICONSPACING_X = misc2c.wxSYS_ICONSPACING_X
298 wxSYS_ICONSPACING_Y = misc2c.wxSYS_ICONSPACING_Y
299 wxSYS_WINDOWMIN_X = misc2c.wxSYS_WINDOWMIN_X
300 wxSYS_WINDOWMIN_Y = misc2c.wxSYS_WINDOWMIN_Y
301 wxSYS_SCREEN_X = misc2c.wxSYS_SCREEN_X
302 wxSYS_SCREEN_Y = misc2c.wxSYS_SCREEN_Y
303 wxSYS_FRAMESIZE_X = misc2c.wxSYS_FRAMESIZE_X
304 wxSYS_FRAMESIZE_Y = misc2c.wxSYS_FRAMESIZE_Y
305 wxSYS_SMALLICON_X = misc2c.wxSYS_SMALLICON_X
306 wxSYS_SMALLICON_Y = misc2c.wxSYS_SMALLICON_Y
307 wxSYS_HSCROLL_Y = misc2c.wxSYS_HSCROLL_Y
308 wxSYS_VSCROLL_X = misc2c.wxSYS_VSCROLL_X
309 wxSYS_VSCROLL_ARROW_X = misc2c.wxSYS_VSCROLL_ARROW_X
310 wxSYS_VSCROLL_ARROW_Y = misc2c.wxSYS_VSCROLL_ARROW_Y
311 wxSYS_VTHUMB_Y = misc2c.wxSYS_VTHUMB_Y
312 wxSYS_CAPTION_Y = misc2c.wxSYS_CAPTION_Y
313 wxSYS_MENU_Y = misc2c.wxSYS_MENU_Y
314 wxSYS_NETWORK_PRESENT = misc2c.wxSYS_NETWORK_PRESENT
315 wxSYS_PENWINDOWS_PRESENT = misc2c.wxSYS_PENWINDOWS_PRESENT
316 wxSYS_SHOW_SOUNDS = misc2c.wxSYS_SHOW_SOUNDS
317 wxSYS_SWAP_BUTTONS = misc2c.wxSYS_SWAP_BUTTONS