]>
Commit | Line | Data |
---|---|---|
32fe5131 | 1 | # This file was created automatically by SWIG 1.3.27. |
d14a1e28 | 2 | # Don't modify this file, modify the SWIG interface instead. |
8ab979d7 | 3 | |
54f9ee45 | 4 | import _windows_ |
8ab979d7 | 5 | |
093d3ff1 RD |
6 | def _swig_setattr_nondynamic(self,class_type,name,value,static=1): |
7 | if (name == "this"): | |
8 | if isinstance(value, class_type): | |
9 | self.__dict__[name] = value.this | |
10 | if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown | |
11 | del value.thisown | |
12 | return | |
13 | method = class_type.__swig_setmethods__.get(name,None) | |
14 | if method: return method(self,value) | |
15 | if (not static) or hasattr(self,name) or (name == "thisown"): | |
16 | self.__dict__[name] = value | |
17 | else: | |
18 | raise AttributeError("You cannot add attributes to %s" % self) | |
19 | ||
20 | def _swig_setattr(self,class_type,name,value): | |
21 | return _swig_setattr_nondynamic(self,class_type,name,value,0) | |
22 | ||
23 | def _swig_getattr(self,class_type,name): | |
24 | method = class_type.__swig_getmethods__.get(name,None) | |
25 | if method: return method(self) | |
26 | raise AttributeError,name | |
27 | ||
28 | import types | |
29 | try: | |
30 | _object = types.ObjectType | |
31 | _newclass = 1 | |
32 | except AttributeError: | |
33 | class _object : pass | |
34 | _newclass = 0 | |
35 | del types | |
36 | ||
37 | ||
38 | def _swig_setattr_nondynamic_method(set): | |
39 | def set_attr(self,name,value): | |
40 | if hasattr(self,name) or (name in ("this", "thisown")): | |
41 | set(self,name,value) | |
42 | else: | |
43 | raise AttributeError("You cannot add attributes to %s" % self) | |
44 | return set_attr | |
45 | ||
46 | ||
54f9ee45 RD |
47 | import _core |
48 | wx = _core | |
d14a1e28 | 49 | #--------------------------------------------------------------------------- |
b1462dfa | 50 | |
54f9ee45 | 51 | class Panel(_core.Window): |
093d3ff1 | 52 | """Proxy of C++ Panel class""" |
e811c8ce RD |
53 | def __repr__(self): |
54 | return "<%s.%s; proxy of C++ wxPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 55 | def __init__(self, *args, **kwargs): |
0df68c9f | 56 | """ |
a95a7133 | 57 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 58 | Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, |
196addbf | 59 | String name=PanelNameStr) -> Panel |
0df68c9f | 60 | """ |
54f9ee45 | 61 | newobj = _windows_.new_Panel(*args, **kwargs) |
d14a1e28 RD |
62 | self.this = newobj.this |
63 | self.thisown = 1 | |
64 | del newobj.thisown | |
65 | self._setOORInfo(self) | |
e811c8ce RD |
66 | |
67 | def Create(*args, **kwargs): | |
0df68c9f | 68 | """ |
a95a7133 | 69 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
cfe5e918 | 70 | Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, |
196addbf | 71 | String name=PanelNameStr) -> bool |
b94aea93 RD |
72 | |
73 | Create the GUI part of the Window for 2-phase creation mode. | |
0df68c9f | 74 | """ |
54f9ee45 | 75 | return _windows_.Panel_Create(*args, **kwargs) |
e811c8ce RD |
76 | |
77 | def InitDialog(*args, **kwargs): | |
74a57fcd | 78 | """ |
a95a7133 | 79 | InitDialog(self) |
74a57fcd | 80 | |
41e2b43e RD |
81 | Sends an EVT_INIT_DIALOG event, whose handler usually transfers data |
82 | to the dialog via validators. | |
74a57fcd | 83 | """ |
54f9ee45 | 84 | return _windows_.Panel_InitDialog(*args, **kwargs) |
e811c8ce | 85 | |
5cbf236d RD |
86 | def SetFocus(*args, **kwargs): |
87 | """ | |
88 | SetFocus(self) | |
89 | ||
90 | Overrides `wx.Window.SetFocus`. This method uses the (undocumented) | |
91 | mix-in class wxControlContainer which manages the focus and TAB logic | |
92 | for controls which usually have child controls. In practice, if you | |
93 | call this method and the panel has at least one child window, then the | |
94 | focus will be given to the child window. | |
95 | """ | |
96 | return _windows_.Panel_SetFocus(*args, **kwargs) | |
97 | ||
98 | def SetFocusIgnoringChildren(*args, **kwargs): | |
99 | """ | |
100 | SetFocusIgnoringChildren(self) | |
101 | ||
102 | In contrast to `SetFocus` (see above) this will set the focus to the | |
103 | panel even of there are child windows in the panel. This is only | |
104 | rarely needed. | |
105 | """ | |
106 | return _windows_.Panel_SetFocusIgnoringChildren(*args, **kwargs) | |
107 | ||
22bfe96c RD |
108 | def GetClassDefaultAttributes(*args, **kwargs): |
109 | """ | |
110 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
111 | ||
41e2b43e RD |
112 | Get the default attributes for this class. This is useful if you want |
113 | to use the same font or colour in your own control as in a standard | |
114 | control -- which is a much better idea than hard coding specific | |
db3e571a RD |
115 | colours or fonts which might look completely out of place on the |
116 | user's system, especially if it uses themes. | |
22bfe96c RD |
117 | |
118 | The variant parameter is only relevant under Mac currently and is | |
41e2b43e | 119 | ignore under other platforms. Under Mac, it will change the size of |
db3e571a RD |
120 | the returned font. See `wx.Window.SetWindowVariant` for more about |
121 | this. | |
22bfe96c RD |
122 | """ |
123 | return _windows_.Panel_GetClassDefaultAttributes(*args, **kwargs) | |
124 | ||
125 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
a323d3bd | 126 | |
d14a1e28 RD |
127 | class PanelPtr(Panel): |
128 | def __init__(self, this): | |
129 | self.this = this | |
130 | if not hasattr(self,"thisown"): self.thisown = 0 | |
131 | self.__class__ = Panel | |
54f9ee45 | 132 | _windows_.Panel_swigregister(PanelPtr) |
b8b8dda7 | 133 | |
d14a1e28 | 134 | def PrePanel(*args, **kwargs): |
e811c8ce | 135 | """PrePanel() -> Panel""" |
54f9ee45 | 136 | val = _windows_.new_PrePanel(*args, **kwargs) |
d14a1e28 RD |
137 | val.thisown = 1 |
138 | return val | |
b8b8dda7 | 139 | |
22bfe96c RD |
140 | def Panel_GetClassDefaultAttributes(*args, **kwargs): |
141 | """ | |
142 | Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
143 | ||
41e2b43e RD |
144 | Get the default attributes for this class. This is useful if you want |
145 | to use the same font or colour in your own control as in a standard | |
146 | control -- which is a much better idea than hard coding specific | |
db3e571a RD |
147 | colours or fonts which might look completely out of place on the |
148 | user's system, especially if it uses themes. | |
22bfe96c RD |
149 | |
150 | The variant parameter is only relevant under Mac currently and is | |
41e2b43e | 151 | ignore under other platforms. Under Mac, it will change the size of |
db3e571a RD |
152 | the returned font. See `wx.Window.SetWindowVariant` for more about |
153 | this. | |
22bfe96c RD |
154 | """ |
155 | return _windows_.Panel_GetClassDefaultAttributes(*args, **kwargs) | |
156 | ||
d14a1e28 | 157 | #--------------------------------------------------------------------------- |
b8b8dda7 | 158 | |
d14a1e28 | 159 | class ScrolledWindow(Panel): |
093d3ff1 | 160 | """Proxy of C++ ScrolledWindow class""" |
e811c8ce RD |
161 | def __repr__(self): |
162 | return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 163 | def __init__(self, *args, **kwargs): |
0df68c9f | 164 | """ |
a95a7133 | 165 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 166 | Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL, |
196addbf | 167 | String name=PanelNameStr) -> ScrolledWindow |
0df68c9f | 168 | """ |
54f9ee45 | 169 | newobj = _windows_.new_ScrolledWindow(*args, **kwargs) |
d14a1e28 RD |
170 | self.this = newobj.this |
171 | self.thisown = 1 | |
172 | del newobj.thisown | |
173 | self._setOORInfo(self) | |
e811c8ce RD |
174 | |
175 | def Create(*args, **kwargs): | |
0df68c9f | 176 | """ |
a95a7133 | 177 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 178 | Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL, |
196addbf | 179 | String name=PanelNameStr) -> bool |
b94aea93 RD |
180 | |
181 | Create the GUI part of the Window for 2-phase creation mode. | |
0df68c9f | 182 | """ |
54f9ee45 | 183 | return _windows_.ScrolledWindow_Create(*args, **kwargs) |
e811c8ce RD |
184 | |
185 | def SetScrollbars(*args, **kwargs): | |
0df68c9f | 186 | """ |
a95a7133 | 187 | SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX, |
0df68c9f RD |
188 | int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False) |
189 | """ | |
54f9ee45 | 190 | return _windows_.ScrolledWindow_SetScrollbars(*args, **kwargs) |
e811c8ce RD |
191 | |
192 | def Scroll(*args, **kwargs): | |
a95a7133 | 193 | """Scroll(self, int x, int y)""" |
54f9ee45 | 194 | return _windows_.ScrolledWindow_Scroll(*args, **kwargs) |
e811c8ce RD |
195 | |
196 | def GetScrollPageSize(*args, **kwargs): | |
a95a7133 | 197 | """GetScrollPageSize(self, int orient) -> int""" |
54f9ee45 | 198 | return _windows_.ScrolledWindow_GetScrollPageSize(*args, **kwargs) |
e811c8ce RD |
199 | |
200 | def SetScrollPageSize(*args, **kwargs): | |
a95a7133 | 201 | """SetScrollPageSize(self, int orient, int pageSize)""" |
54f9ee45 | 202 | return _windows_.ScrolledWindow_SetScrollPageSize(*args, **kwargs) |
e811c8ce RD |
203 | |
204 | def SetScrollRate(*args, **kwargs): | |
a95a7133 | 205 | """SetScrollRate(self, int xstep, int ystep)""" |
54f9ee45 | 206 | return _windows_.ScrolledWindow_SetScrollRate(*args, **kwargs) |
e811c8ce RD |
207 | |
208 | def GetScrollPixelsPerUnit(*args, **kwargs): | |
fd2dc343 RD |
209 | """ |
210 | GetScrollPixelsPerUnit() -> (xUnit, yUnit) | |
211 | ||
212 | Get the size of one logical unit in physical units. | |
213 | """ | |
54f9ee45 | 214 | return _windows_.ScrolledWindow_GetScrollPixelsPerUnit(*args, **kwargs) |
e811c8ce RD |
215 | |
216 | def EnableScrolling(*args, **kwargs): | |
a95a7133 | 217 | """EnableScrolling(self, bool x_scrolling, bool y_scrolling)""" |
54f9ee45 | 218 | return _windows_.ScrolledWindow_EnableScrolling(*args, **kwargs) |
e811c8ce RD |
219 | |
220 | def GetViewStart(*args, **kwargs): | |
fd2dc343 RD |
221 | """ |
222 | GetViewStart() -> (x,y) | |
223 | ||
224 | Get the view start | |
225 | """ | |
54f9ee45 | 226 | return _windows_.ScrolledWindow_GetViewStart(*args, **kwargs) |
e811c8ce RD |
227 | |
228 | def SetScale(*args, **kwargs): | |
a95a7133 | 229 | """SetScale(self, double xs, double ys)""" |
54f9ee45 | 230 | return _windows_.ScrolledWindow_SetScale(*args, **kwargs) |
e811c8ce RD |
231 | |
232 | def GetScaleX(*args, **kwargs): | |
a95a7133 | 233 | """GetScaleX(self) -> double""" |
54f9ee45 | 234 | return _windows_.ScrolledWindow_GetScaleX(*args, **kwargs) |
e811c8ce RD |
235 | |
236 | def GetScaleY(*args, **kwargs): | |
a95a7133 | 237 | """GetScaleY(self) -> double""" |
54f9ee45 | 238 | return _windows_.ScrolledWindow_GetScaleY(*args, **kwargs) |
e811c8ce RD |
239 | |
240 | def CalcScrolledPosition(*args): | |
0df68c9f | 241 | """ |
a95a7133 | 242 | CalcScrolledPosition(self, Point pt) -> Point |
0df68c9f | 243 | CalcScrolledPosition(int x, int y) -> (sx, sy) |
322913ce | 244 | |
0df68c9f RD |
245 | Translate between scrolled and unscrolled coordinates. |
246 | """ | |
54f9ee45 | 247 | return _windows_.ScrolledWindow_CalcScrolledPosition(*args) |
e811c8ce RD |
248 | |
249 | def CalcUnscrolledPosition(*args): | |
0df68c9f | 250 | """ |
a95a7133 | 251 | CalcUnscrolledPosition(self, Point pt) -> Point |
0df68c9f | 252 | CalcUnscrolledPosition(int x, int y) -> (ux, uy) |
322913ce | 253 | |
0df68c9f RD |
254 | Translate between scrolled and unscrolled coordinates. |
255 | """ | |
54f9ee45 | 256 | return _windows_.ScrolledWindow_CalcUnscrolledPosition(*args) |
e811c8ce RD |
257 | |
258 | def AdjustScrollbars(*args, **kwargs): | |
a95a7133 | 259 | """AdjustScrollbars(self)""" |
54f9ee45 | 260 | return _windows_.ScrolledWindow_AdjustScrollbars(*args, **kwargs) |
e811c8ce RD |
261 | |
262 | def CalcScrollInc(*args, **kwargs): | |
a95a7133 | 263 | """CalcScrollInc(self, ScrollWinEvent event) -> int""" |
54f9ee45 | 264 | return _windows_.ScrolledWindow_CalcScrollInc(*args, **kwargs) |
e811c8ce RD |
265 | |
266 | def SetTargetWindow(*args, **kwargs): | |
a95a7133 | 267 | """SetTargetWindow(self, Window target)""" |
54f9ee45 | 268 | return _windows_.ScrolledWindow_SetTargetWindow(*args, **kwargs) |
e811c8ce RD |
269 | |
270 | def GetTargetWindow(*args, **kwargs): | |
a95a7133 | 271 | """GetTargetWindow(self) -> Window""" |
54f9ee45 | 272 | return _windows_.ScrolledWindow_GetTargetWindow(*args, **kwargs) |
e811c8ce | 273 | |
f5b96ee1 RD |
274 | def DoPrepareDC(*args, **kwargs): |
275 | """ | |
276 | DoPrepareDC(self, DC dc) | |
277 | ||
278 | Normally what is called by `PrepareDC`. | |
279 | """ | |
280 | return _windows_.ScrolledWindow_DoPrepareDC(*args, **kwargs) | |
281 | ||
22bfe96c RD |
282 | def GetClassDefaultAttributes(*args, **kwargs): |
283 | """ | |
284 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
285 | ||
41e2b43e RD |
286 | Get the default attributes for this class. This is useful if you want |
287 | to use the same font or colour in your own control as in a standard | |
288 | control -- which is a much better idea than hard coding specific | |
db3e571a RD |
289 | colours or fonts which might look completely out of place on the |
290 | user's system, especially if it uses themes. | |
22bfe96c RD |
291 | |
292 | The variant parameter is only relevant under Mac currently and is | |
41e2b43e | 293 | ignore under other platforms. Under Mac, it will change the size of |
db3e571a RD |
294 | the returned font. See `wx.Window.SetWindowVariant` for more about |
295 | this. | |
22bfe96c RD |
296 | """ |
297 | return _windows_.ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs) | |
298 | ||
299 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
d14a1e28 RD |
300 | |
301 | class ScrolledWindowPtr(ScrolledWindow): | |
302 | def __init__(self, this): | |
303 | self.this = this | |
304 | if not hasattr(self,"thisown"): self.thisown = 0 | |
305 | self.__class__ = ScrolledWindow | |
54f9ee45 | 306 | _windows_.ScrolledWindow_swigregister(ScrolledWindowPtr) |
d14a1e28 RD |
307 | |
308 | def PreScrolledWindow(*args, **kwargs): | |
e811c8ce | 309 | """PreScrolledWindow() -> ScrolledWindow""" |
54f9ee45 | 310 | val = _windows_.new_PreScrolledWindow(*args, **kwargs) |
d14a1e28 RD |
311 | val.thisown = 1 |
312 | return val | |
313 | ||
22bfe96c RD |
314 | def ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs): |
315 | """ | |
316 | ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
317 | ||
41e2b43e RD |
318 | Get the default attributes for this class. This is useful if you want |
319 | to use the same font or colour in your own control as in a standard | |
320 | control -- which is a much better idea than hard coding specific | |
db3e571a RD |
321 | colours or fonts which might look completely out of place on the |
322 | user's system, especially if it uses themes. | |
22bfe96c RD |
323 | |
324 | The variant parameter is only relevant under Mac currently and is | |
41e2b43e | 325 | ignore under other platforms. Under Mac, it will change the size of |
db3e571a RD |
326 | the returned font. See `wx.Window.SetWindowVariant` for more about |
327 | this. | |
22bfe96c RD |
328 | """ |
329 | return _windows_.ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs) | |
330 | ||
d14a1e28 RD |
331 | #--------------------------------------------------------------------------- |
332 | ||
54f9ee45 RD |
333 | STAY_ON_TOP = _windows_.STAY_ON_TOP |
334 | ICONIZE = _windows_.ICONIZE | |
335 | MINIMIZE = _windows_.MINIMIZE | |
336 | MAXIMIZE = _windows_.MAXIMIZE | |
337 | CLOSE_BOX = _windows_.CLOSE_BOX | |
338 | THICK_FRAME = _windows_.THICK_FRAME | |
339 | SYSTEM_MENU = _windows_.SYSTEM_MENU | |
340 | MINIMIZE_BOX = _windows_.MINIMIZE_BOX | |
341 | MAXIMIZE_BOX = _windows_.MAXIMIZE_BOX | |
342 | TINY_CAPTION_HORIZ = _windows_.TINY_CAPTION_HORIZ | |
343 | TINY_CAPTION_VERT = _windows_.TINY_CAPTION_VERT | |
344 | RESIZE_BOX = _windows_.RESIZE_BOX | |
345 | RESIZE_BORDER = _windows_.RESIZE_BORDER | |
346 | DIALOG_NO_PARENT = _windows_.DIALOG_NO_PARENT | |
347 | DEFAULT_FRAME_STYLE = _windows_.DEFAULT_FRAME_STYLE | |
348 | DEFAULT_DIALOG_STYLE = _windows_.DEFAULT_DIALOG_STYLE | |
349 | FRAME_TOOL_WINDOW = _windows_.FRAME_TOOL_WINDOW | |
350 | FRAME_FLOAT_ON_PARENT = _windows_.FRAME_FLOAT_ON_PARENT | |
351 | FRAME_NO_WINDOW_MENU = _windows_.FRAME_NO_WINDOW_MENU | |
352 | FRAME_NO_TASKBAR = _windows_.FRAME_NO_TASKBAR | |
353 | FRAME_SHAPED = _windows_.FRAME_SHAPED | |
ae8162c8 | 354 | FRAME_DRAWER = _windows_.FRAME_DRAWER |
8f4d7c19 RD |
355 | FRAME_EX_METAL = _windows_.FRAME_EX_METAL |
356 | DIALOG_EX_METAL = _windows_.DIALOG_EX_METAL | |
54f9ee45 RD |
357 | DIALOG_MODAL = _windows_.DIALOG_MODAL |
358 | DIALOG_MODELESS = _windows_.DIALOG_MODELESS | |
359 | USER_COLOURS = _windows_.USER_COLOURS | |
360 | NO_3D = _windows_.NO_3D | |
361 | FULLSCREEN_NOMENUBAR = _windows_.FULLSCREEN_NOMENUBAR | |
362 | FULLSCREEN_NOTOOLBAR = _windows_.FULLSCREEN_NOTOOLBAR | |
363 | FULLSCREEN_NOSTATUSBAR = _windows_.FULLSCREEN_NOSTATUSBAR | |
364 | FULLSCREEN_NOBORDER = _windows_.FULLSCREEN_NOBORDER | |
365 | FULLSCREEN_NOCAPTION = _windows_.FULLSCREEN_NOCAPTION | |
366 | FULLSCREEN_ALL = _windows_.FULLSCREEN_ALL | |
367 | TOPLEVEL_EX_DIALOG = _windows_.TOPLEVEL_EX_DIALOG | |
c32bde28 RD |
368 | USER_ATTENTION_INFO = _windows_.USER_ATTENTION_INFO |
369 | USER_ATTENTION_ERROR = _windows_.USER_ATTENTION_ERROR | |
54f9ee45 | 370 | class TopLevelWindow(_core.Window): |
093d3ff1 | 371 | """Proxy of C++ TopLevelWindow class""" |
d14a1e28 RD |
372 | def __init__(self): raise RuntimeError, "No constructor defined" |
373 | def __repr__(self): | |
374 | return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
e811c8ce | 375 | def Maximize(*args, **kwargs): |
a95a7133 | 376 | """Maximize(self, bool maximize=True)""" |
54f9ee45 | 377 | return _windows_.TopLevelWindow_Maximize(*args, **kwargs) |
e811c8ce RD |
378 | |
379 | def Restore(*args, **kwargs): | |
a95a7133 | 380 | """Restore(self)""" |
54f9ee45 | 381 | return _windows_.TopLevelWindow_Restore(*args, **kwargs) |
e811c8ce RD |
382 | |
383 | def Iconize(*args, **kwargs): | |
a95a7133 | 384 | """Iconize(self, bool iconize=True)""" |
54f9ee45 | 385 | return _windows_.TopLevelWindow_Iconize(*args, **kwargs) |
e811c8ce RD |
386 | |
387 | def IsMaximized(*args, **kwargs): | |
a95a7133 | 388 | """IsMaximized(self) -> bool""" |
54f9ee45 | 389 | return _windows_.TopLevelWindow_IsMaximized(*args, **kwargs) |
e811c8ce RD |
390 | |
391 | def IsIconized(*args, **kwargs): | |
a95a7133 | 392 | """IsIconized(self) -> bool""" |
54f9ee45 | 393 | return _windows_.TopLevelWindow_IsIconized(*args, **kwargs) |
e811c8ce RD |
394 | |
395 | def GetIcon(*args, **kwargs): | |
a95a7133 | 396 | """GetIcon(self) -> Icon""" |
54f9ee45 | 397 | return _windows_.TopLevelWindow_GetIcon(*args, **kwargs) |
e811c8ce RD |
398 | |
399 | def SetIcon(*args, **kwargs): | |
a95a7133 | 400 | """SetIcon(self, Icon icon)""" |
54f9ee45 | 401 | return _windows_.TopLevelWindow_SetIcon(*args, **kwargs) |
e811c8ce RD |
402 | |
403 | def SetIcons(*args, **kwargs): | |
a95a7133 | 404 | """SetIcons(self, wxIconBundle icons)""" |
54f9ee45 | 405 | return _windows_.TopLevelWindow_SetIcons(*args, **kwargs) |
e811c8ce RD |
406 | |
407 | def ShowFullScreen(*args, **kwargs): | |
a95a7133 | 408 | """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool""" |
54f9ee45 | 409 | return _windows_.TopLevelWindow_ShowFullScreen(*args, **kwargs) |
e811c8ce RD |
410 | |
411 | def IsFullScreen(*args, **kwargs): | |
a95a7133 | 412 | """IsFullScreen(self) -> bool""" |
54f9ee45 | 413 | return _windows_.TopLevelWindow_IsFullScreen(*args, **kwargs) |
e811c8ce RD |
414 | |
415 | def SetTitle(*args, **kwargs): | |
943e8dfd | 416 | """SetTitle(self, String title)""" |
54f9ee45 | 417 | return _windows_.TopLevelWindow_SetTitle(*args, **kwargs) |
e811c8ce RD |
418 | |
419 | def GetTitle(*args, **kwargs): | |
943e8dfd | 420 | """GetTitle(self) -> String""" |
54f9ee45 | 421 | return _windows_.TopLevelWindow_GetTitle(*args, **kwargs) |
e811c8ce RD |
422 | |
423 | def SetShape(*args, **kwargs): | |
a95a7133 | 424 | """SetShape(self, Region region) -> bool""" |
54f9ee45 | 425 | return _windows_.TopLevelWindow_SetShape(*args, **kwargs) |
e811c8ce | 426 | |
c32bde28 RD |
427 | def RequestUserAttention(*args, **kwargs): |
428 | """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)""" | |
429 | return _windows_.TopLevelWindow_RequestUserAttention(*args, **kwargs) | |
430 | ||
b6294124 RD |
431 | def IsActive(*args, **kwargs): |
432 | """IsActive(self) -> bool""" | |
433 | return _windows_.TopLevelWindow_IsActive(*args, **kwargs) | |
434 | ||
84f85550 RD |
435 | def MacSetMetalAppearance(*args, **kwargs): |
436 | """MacSetMetalAppearance(self, bool on)""" | |
437 | return _windows_.TopLevelWindow_MacSetMetalAppearance(*args, **kwargs) | |
438 | ||
439 | def MacGetMetalAppearance(*args, **kwargs): | |
440 | """MacGetMetalAppearance(self) -> bool""" | |
441 | return _windows_.TopLevelWindow_MacGetMetalAppearance(*args, **kwargs) | |
442 | ||
8ab979d7 | 443 | |
d14a1e28 RD |
444 | class TopLevelWindowPtr(TopLevelWindow): |
445 | def __init__(self, this): | |
446 | self.this = this | |
447 | if not hasattr(self,"thisown"): self.thisown = 0 | |
448 | self.__class__ = TopLevelWindow | |
54f9ee45 RD |
449 | _windows_.TopLevelWindow_swigregister(TopLevelWindowPtr) |
450 | cvar = _windows_.cvar | |
b2dc1044 RD |
451 | FrameNameStr = cvar.FrameNameStr |
452 | DialogNameStr = cvar.DialogNameStr | |
453 | StatusLineNameStr = cvar.StatusLineNameStr | |
454 | ToolBarNameStr = cvar.ToolBarNameStr | |
d14a1e28 RD |
455 | |
456 | #--------------------------------------------------------------------------- | |
457 | ||
458 | class Frame(TopLevelWindow): | |
093d3ff1 | 459 | """Proxy of C++ Frame class""" |
e811c8ce RD |
460 | def __repr__(self): |
461 | return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 462 | def __init__(self, *args, **kwargs): |
0df68c9f | 463 | """ |
248ed943 RD |
464 | __init__(self, Window parent, int id=-1, String title=EmptyString, |
465 | Point pos=DefaultPosition, Size size=DefaultSize, | |
466 | long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame | |
0df68c9f | 467 | """ |
54f9ee45 | 468 | newobj = _windows_.new_Frame(*args, **kwargs) |
d14a1e28 RD |
469 | self.this = newobj.this |
470 | self.thisown = 1 | |
471 | del newobj.thisown | |
472 | self._setOORInfo(self) | |
e811c8ce RD |
473 | |
474 | def Create(*args, **kwargs): | |
0df68c9f | 475 | """ |
248ed943 RD |
476 | Create(self, Window parent, int id=-1, String title=EmptyString, |
477 | Point pos=DefaultPosition, Size size=DefaultSize, | |
478 | long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool | |
0df68c9f | 479 | """ |
54f9ee45 | 480 | return _windows_.Frame_Create(*args, **kwargs) |
e811c8ce RD |
481 | |
482 | def GetClientAreaOrigin(*args, **kwargs): | |
15afbcd0 | 483 | """ |
a95a7133 | 484 | GetClientAreaOrigin(self) -> Point |
15afbcd0 RD |
485 | |
486 | Get the origin of the client area of the window relative to the | |
487 | window's top left corner (the client area may be shifted because of | |
488 | the borders, scrollbars, other decorations...) | |
489 | """ | |
54f9ee45 | 490 | return _windows_.Frame_GetClientAreaOrigin(*args, **kwargs) |
e811c8ce RD |
491 | |
492 | def SendSizeEvent(*args, **kwargs): | |
a95a7133 | 493 | """SendSizeEvent(self)""" |
54f9ee45 | 494 | return _windows_.Frame_SendSizeEvent(*args, **kwargs) |
e811c8ce RD |
495 | |
496 | def SetMenuBar(*args, **kwargs): | |
a95a7133 | 497 | """SetMenuBar(self, MenuBar menubar)""" |
54f9ee45 | 498 | return _windows_.Frame_SetMenuBar(*args, **kwargs) |
e811c8ce RD |
499 | |
500 | def GetMenuBar(*args, **kwargs): | |
a95a7133 | 501 | """GetMenuBar(self) -> MenuBar""" |
54f9ee45 | 502 | return _windows_.Frame_GetMenuBar(*args, **kwargs) |
e811c8ce RD |
503 | |
504 | def ProcessCommand(*args, **kwargs): | |
a95a7133 | 505 | """ProcessCommand(self, int winid) -> bool""" |
54f9ee45 | 506 | return _windows_.Frame_ProcessCommand(*args, **kwargs) |
e811c8ce | 507 | |
d14a1e28 | 508 | Command = ProcessCommand |
e811c8ce | 509 | def CreateStatusBar(*args, **kwargs): |
0df68c9f | 510 | """ |
b6b0383e RD |
511 | CreateStatusBar(self, int number=1, long style=DEFAULT_STATUSBAR_STYLE, int winid=0, |
512 | String name=StatusLineNameStr) -> StatusBar | |
0df68c9f | 513 | """ |
54f9ee45 | 514 | return _windows_.Frame_CreateStatusBar(*args, **kwargs) |
e811c8ce RD |
515 | |
516 | def GetStatusBar(*args, **kwargs): | |
a95a7133 | 517 | """GetStatusBar(self) -> StatusBar""" |
54f9ee45 | 518 | return _windows_.Frame_GetStatusBar(*args, **kwargs) |
e811c8ce RD |
519 | |
520 | def SetStatusBar(*args, **kwargs): | |
a95a7133 | 521 | """SetStatusBar(self, StatusBar statBar)""" |
54f9ee45 | 522 | return _windows_.Frame_SetStatusBar(*args, **kwargs) |
e811c8ce RD |
523 | |
524 | def SetStatusText(*args, **kwargs): | |
a95a7133 | 525 | """SetStatusText(self, String text, int number=0)""" |
54f9ee45 | 526 | return _windows_.Frame_SetStatusText(*args, **kwargs) |
e811c8ce RD |
527 | |
528 | def SetStatusWidths(*args, **kwargs): | |
093d3ff1 | 529 | """SetStatusWidths(self, int widths)""" |
54f9ee45 | 530 | return _windows_.Frame_SetStatusWidths(*args, **kwargs) |
e811c8ce RD |
531 | |
532 | def PushStatusText(*args, **kwargs): | |
a95a7133 | 533 | """PushStatusText(self, String text, int number=0)""" |
54f9ee45 | 534 | return _windows_.Frame_PushStatusText(*args, **kwargs) |
e811c8ce RD |
535 | |
536 | def PopStatusText(*args, **kwargs): | |
a95a7133 | 537 | """PopStatusText(self, int number=0)""" |
54f9ee45 | 538 | return _windows_.Frame_PopStatusText(*args, **kwargs) |
e811c8ce RD |
539 | |
540 | def SetStatusBarPane(*args, **kwargs): | |
a95a7133 | 541 | """SetStatusBarPane(self, int n)""" |
54f9ee45 | 542 | return _windows_.Frame_SetStatusBarPane(*args, **kwargs) |
e811c8ce RD |
543 | |
544 | def GetStatusBarPane(*args, **kwargs): | |
a95a7133 | 545 | """GetStatusBarPane(self) -> int""" |
54f9ee45 | 546 | return _windows_.Frame_GetStatusBarPane(*args, **kwargs) |
e811c8ce RD |
547 | |
548 | def CreateToolBar(*args, **kwargs): | |
a95a7133 | 549 | """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar""" |
54f9ee45 | 550 | return _windows_.Frame_CreateToolBar(*args, **kwargs) |
e811c8ce RD |
551 | |
552 | def GetToolBar(*args, **kwargs): | |
a95a7133 | 553 | """GetToolBar(self) -> wxToolBar""" |
54f9ee45 | 554 | return _windows_.Frame_GetToolBar(*args, **kwargs) |
e811c8ce RD |
555 | |
556 | def SetToolBar(*args, **kwargs): | |
a95a7133 | 557 | """SetToolBar(self, wxToolBar toolbar)""" |
54f9ee45 | 558 | return _windows_.Frame_SetToolBar(*args, **kwargs) |
e811c8ce RD |
559 | |
560 | def DoGiveHelp(*args, **kwargs): | |
a95a7133 | 561 | """DoGiveHelp(self, String text, bool show)""" |
54f9ee45 | 562 | return _windows_.Frame_DoGiveHelp(*args, **kwargs) |
e811c8ce RD |
563 | |
564 | def DoMenuUpdates(*args, **kwargs): | |
a95a7133 | 565 | """DoMenuUpdates(self, Menu menu=None)""" |
54f9ee45 | 566 | return _windows_.Frame_DoMenuUpdates(*args, **kwargs) |
e811c8ce | 567 | |
22bfe96c RD |
568 | def GetClassDefaultAttributes(*args, **kwargs): |
569 | """ | |
570 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
571 | ||
41e2b43e RD |
572 | Get the default attributes for this class. This is useful if you want |
573 | to use the same font or colour in your own control as in a standard | |
574 | control -- which is a much better idea than hard coding specific | |
db3e571a RD |
575 | colours or fonts which might look completely out of place on the |
576 | user's system, especially if it uses themes. | |
22bfe96c RD |
577 | |
578 | The variant parameter is only relevant under Mac currently and is | |
41e2b43e | 579 | ignore under other platforms. Under Mac, it will change the size of |
db3e571a RD |
580 | the returned font. See `wx.Window.SetWindowVariant` for more about |
581 | this. | |
22bfe96c RD |
582 | """ |
583 | return _windows_.Frame_GetClassDefaultAttributes(*args, **kwargs) | |
584 | ||
585 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
8ab979d7 | 586 | |
d14a1e28 RD |
587 | class FramePtr(Frame): |
588 | def __init__(self, this): | |
2f90df85 | 589 | self.this = this |
d14a1e28 RD |
590 | if not hasattr(self,"thisown"): self.thisown = 0 |
591 | self.__class__ = Frame | |
54f9ee45 | 592 | _windows_.Frame_swigregister(FramePtr) |
d14a1e28 RD |
593 | |
594 | def PreFrame(*args, **kwargs): | |
e811c8ce | 595 | """PreFrame() -> Frame""" |
54f9ee45 | 596 | val = _windows_.new_PreFrame(*args, **kwargs) |
d14a1e28 RD |
597 | val.thisown = 1 |
598 | return val | |
599 | ||
22bfe96c RD |
600 | def Frame_GetClassDefaultAttributes(*args, **kwargs): |
601 | """ | |
602 | Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
603 | ||
41e2b43e RD |
604 | Get the default attributes for this class. This is useful if you want |
605 | to use the same font or colour in your own control as in a standard | |
606 | control -- which is a much better idea than hard coding specific | |
db3e571a RD |
607 | colours or fonts which might look completely out of place on the |
608 | user's system, especially if it uses themes. | |
22bfe96c RD |
609 | |
610 | The variant parameter is only relevant under Mac currently and is | |
41e2b43e | 611 | ignore under other platforms. Under Mac, it will change the size of |
db3e571a RD |
612 | the returned font. See `wx.Window.SetWindowVariant` for more about |
613 | this. | |
22bfe96c RD |
614 | """ |
615 | return _windows_.Frame_GetClassDefaultAttributes(*args, **kwargs) | |
616 | ||
d14a1e28 RD |
617 | #--------------------------------------------------------------------------- |
618 | ||
619 | class Dialog(TopLevelWindow): | |
093d3ff1 | 620 | """Proxy of C++ Dialog class""" |
e811c8ce RD |
621 | def __repr__(self): |
622 | return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
32fe5131 | 623 | ButtonSizerFlags = _windows_.Dialog_ButtonSizerFlags |
d14a1e28 | 624 | def __init__(self, *args, **kwargs): |
0df68c9f | 625 | """ |
248ed943 RD |
626 | __init__(self, Window parent, int id=-1, String title=EmptyString, |
627 | Point pos=DefaultPosition, Size size=DefaultSize, | |
628 | long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog | |
0df68c9f | 629 | """ |
54f9ee45 | 630 | newobj = _windows_.new_Dialog(*args, **kwargs) |
d14a1e28 RD |
631 | self.this = newobj.this |
632 | self.thisown = 1 | |
633 | del newobj.thisown | |
634 | self._setOORInfo(self) | |
e811c8ce RD |
635 | |
636 | def Create(*args, **kwargs): | |
0df68c9f | 637 | """ |
248ed943 RD |
638 | Create(self, Window parent, int id=-1, String title=EmptyString, |
639 | Point pos=DefaultPosition, Size size=DefaultSize, | |
640 | long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool | |
0df68c9f | 641 | """ |
54f9ee45 | 642 | return _windows_.Dialog_Create(*args, **kwargs) |
e811c8ce RD |
643 | |
644 | def SetReturnCode(*args, **kwargs): | |
a95a7133 | 645 | """SetReturnCode(self, int returnCode)""" |
54f9ee45 | 646 | return _windows_.Dialog_SetReturnCode(*args, **kwargs) |
e811c8ce RD |
647 | |
648 | def GetReturnCode(*args, **kwargs): | |
a95a7133 | 649 | """GetReturnCode(self) -> int""" |
54f9ee45 | 650 | return _windows_.Dialog_GetReturnCode(*args, **kwargs) |
e811c8ce RD |
651 | |
652 | def CreateTextSizer(*args, **kwargs): | |
a95a7133 | 653 | """CreateTextSizer(self, String message) -> Sizer""" |
54f9ee45 | 654 | return _windows_.Dialog_CreateTextSizer(*args, **kwargs) |
e811c8ce RD |
655 | |
656 | def CreateButtonSizer(*args, **kwargs): | |
32fe5131 | 657 | """CreateButtonSizer(self, long flags, bool separated=False, int distance=0) -> Sizer""" |
54f9ee45 | 658 | return _windows_.Dialog_CreateButtonSizer(*args, **kwargs) |
e811c8ce | 659 | |
e505d15e RD |
660 | def CreateStdDialogButtonSizer(*args, **kwargs): |
661 | """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer""" | |
662 | return _windows_.Dialog_CreateStdDialogButtonSizer(*args, **kwargs) | |
663 | ||
e811c8ce | 664 | def IsModal(*args, **kwargs): |
a95a7133 | 665 | """IsModal(self) -> bool""" |
54f9ee45 | 666 | return _windows_.Dialog_IsModal(*args, **kwargs) |
e811c8ce RD |
667 | |
668 | def ShowModal(*args, **kwargs): | |
a95a7133 | 669 | """ShowModal(self) -> int""" |
54f9ee45 | 670 | return _windows_.Dialog_ShowModal(*args, **kwargs) |
e811c8ce RD |
671 | |
672 | def EndModal(*args, **kwargs): | |
a95a7133 | 673 | """EndModal(self, int retCode)""" |
54f9ee45 | 674 | return _windows_.Dialog_EndModal(*args, **kwargs) |
e811c8ce | 675 | |
22bfe96c RD |
676 | def GetClassDefaultAttributes(*args, **kwargs): |
677 | """ | |
678 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
679 | ||
41e2b43e RD |
680 | Get the default attributes for this class. This is useful if you want |
681 | to use the same font or colour in your own control as in a standard | |
682 | control -- which is a much better idea than hard coding specific | |
db3e571a RD |
683 | colours or fonts which might look completely out of place on the |
684 | user's system, especially if it uses themes. | |
22bfe96c RD |
685 | |
686 | The variant parameter is only relevant under Mac currently and is | |
41e2b43e | 687 | ignore under other platforms. Under Mac, it will change the size of |
db3e571a RD |
688 | the returned font. See `wx.Window.SetWindowVariant` for more about |
689 | this. | |
22bfe96c RD |
690 | """ |
691 | return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs) | |
692 | ||
693 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
d14a1e28 RD |
694 | |
695 | class DialogPtr(Dialog): | |
696 | def __init__(self, this): | |
697 | self.this = this | |
698 | if not hasattr(self,"thisown"): self.thisown = 0 | |
699 | self.__class__ = Dialog | |
54f9ee45 | 700 | _windows_.Dialog_swigregister(DialogPtr) |
d14a1e28 RD |
701 | |
702 | def PreDialog(*args, **kwargs): | |
e811c8ce | 703 | """PreDialog() -> Dialog""" |
54f9ee45 | 704 | val = _windows_.new_PreDialog(*args, **kwargs) |
d14a1e28 RD |
705 | val.thisown = 1 |
706 | return val | |
707 | ||
22bfe96c RD |
708 | def Dialog_GetClassDefaultAttributes(*args, **kwargs): |
709 | """ | |
710 | Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
711 | ||
41e2b43e RD |
712 | Get the default attributes for this class. This is useful if you want |
713 | to use the same font or colour in your own control as in a standard | |
714 | control -- which is a much better idea than hard coding specific | |
db3e571a RD |
715 | colours or fonts which might look completely out of place on the |
716 | user's system, especially if it uses themes. | |
22bfe96c RD |
717 | |
718 | The variant parameter is only relevant under Mac currently and is | |
41e2b43e | 719 | ignore under other platforms. Under Mac, it will change the size of |
db3e571a RD |
720 | the returned font. See `wx.Window.SetWindowVariant` for more about |
721 | this. | |
22bfe96c RD |
722 | """ |
723 | return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs) | |
724 | ||
d14a1e28 RD |
725 | #--------------------------------------------------------------------------- |
726 | ||
727 | class MiniFrame(Frame): | |
093d3ff1 | 728 | """Proxy of C++ MiniFrame class""" |
e811c8ce RD |
729 | def __repr__(self): |
730 | return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 731 | def __init__(self, *args, **kwargs): |
0df68c9f | 732 | """ |
248ed943 RD |
733 | __init__(self, Window parent, int id=-1, String title=EmptyString, |
734 | Point pos=DefaultPosition, Size size=DefaultSize, | |
735 | long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame | |
0df68c9f | 736 | """ |
54f9ee45 | 737 | newobj = _windows_.new_MiniFrame(*args, **kwargs) |
d14a1e28 | 738 | self.this = newobj.this |
2f90df85 | 739 | self.thisown = 1 |
d14a1e28 | 740 | del newobj.thisown |
0220cbc1 | 741 | self._setOORInfo(self) |
e811c8ce RD |
742 | |
743 | def Create(*args, **kwargs): | |
0df68c9f | 744 | """ |
248ed943 RD |
745 | Create(self, Window parent, int id=-1, String title=EmptyString, |
746 | Point pos=DefaultPosition, Size size=DefaultSize, | |
747 | long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool | |
0df68c9f | 748 | """ |
54f9ee45 | 749 | return _windows_.MiniFrame_Create(*args, **kwargs) |
e811c8ce | 750 | |
2f90df85 | 751 | |
d14a1e28 RD |
752 | class MiniFramePtr(MiniFrame): |
753 | def __init__(self, this): | |
754 | self.this = this | |
755 | if not hasattr(self,"thisown"): self.thisown = 0 | |
756 | self.__class__ = MiniFrame | |
54f9ee45 | 757 | _windows_.MiniFrame_swigregister(MiniFramePtr) |
2f90df85 | 758 | |
d14a1e28 | 759 | def PreMiniFrame(*args, **kwargs): |
e811c8ce | 760 | """PreMiniFrame() -> MiniFrame""" |
54f9ee45 | 761 | val = _windows_.new_PreMiniFrame(*args, **kwargs) |
d14a1e28 RD |
762 | val.thisown = 1 |
763 | return val | |
2f90df85 | 764 | |
d14a1e28 RD |
765 | #--------------------------------------------------------------------------- |
766 | ||
54f9ee45 RD |
767 | SPLASH_CENTRE_ON_PARENT = _windows_.SPLASH_CENTRE_ON_PARENT |
768 | SPLASH_CENTRE_ON_SCREEN = _windows_.SPLASH_CENTRE_ON_SCREEN | |
769 | SPLASH_NO_CENTRE = _windows_.SPLASH_NO_CENTRE | |
770 | SPLASH_TIMEOUT = _windows_.SPLASH_TIMEOUT | |
771 | SPLASH_NO_TIMEOUT = _windows_.SPLASH_NO_TIMEOUT | |
772 | class SplashScreenWindow(_core.Window): | |
093d3ff1 | 773 | """Proxy of C++ SplashScreenWindow class""" |
e811c8ce RD |
774 | def __repr__(self): |
775 | return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 776 | def __init__(self, *args, **kwargs): |
0df68c9f | 777 | """ |
a95a7133 | 778 | __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition, |
0df68c9f RD |
779 | Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow |
780 | """ | |
54f9ee45 | 781 | newobj = _windows_.new_SplashScreenWindow(*args, **kwargs) |
d14a1e28 RD |
782 | self.this = newobj.this |
783 | self.thisown = 1 | |
784 | del newobj.thisown | |
785 | self._setOORInfo(self) | |
e811c8ce RD |
786 | |
787 | def SetBitmap(*args, **kwargs): | |
a95a7133 | 788 | """SetBitmap(self, Bitmap bitmap)""" |
54f9ee45 | 789 | return _windows_.SplashScreenWindow_SetBitmap(*args, **kwargs) |
e811c8ce RD |
790 | |
791 | def GetBitmap(*args, **kwargs): | |
a95a7133 | 792 | """GetBitmap(self) -> Bitmap""" |
54f9ee45 | 793 | return _windows_.SplashScreenWindow_GetBitmap(*args, **kwargs) |
e811c8ce | 794 | |
2f90df85 | 795 | |
d14a1e28 RD |
796 | class SplashScreenWindowPtr(SplashScreenWindow): |
797 | def __init__(self, this): | |
2f90df85 | 798 | self.this = this |
d14a1e28 RD |
799 | if not hasattr(self,"thisown"): self.thisown = 0 |
800 | self.__class__ = SplashScreenWindow | |
54f9ee45 | 801 | _windows_.SplashScreenWindow_swigregister(SplashScreenWindowPtr) |
d14a1e28 RD |
802 | |
803 | class SplashScreen(Frame): | |
093d3ff1 | 804 | """Proxy of C++ SplashScreen class""" |
e811c8ce RD |
805 | def __repr__(self): |
806 | return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 807 | def __init__(self, *args, **kwargs): |
0df68c9f | 808 | """ |
a95a7133 | 809 | __init__(self, Bitmap bitmap, long splashStyle, int milliseconds, |
248ed943 | 810 | Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f RD |
811 | Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen |
812 | """ | |
54f9ee45 | 813 | newobj = _windows_.new_SplashScreen(*args, **kwargs) |
d14a1e28 RD |
814 | self.this = newobj.this |
815 | self.thisown = 1 | |
816 | del newobj.thisown | |
817 | self._setOORInfo(self) | |
e811c8ce RD |
818 | |
819 | def GetSplashStyle(*args, **kwargs): | |
a95a7133 | 820 | """GetSplashStyle(self) -> long""" |
54f9ee45 | 821 | return _windows_.SplashScreen_GetSplashStyle(*args, **kwargs) |
e811c8ce RD |
822 | |
823 | def GetSplashWindow(*args, **kwargs): | |
a95a7133 | 824 | """GetSplashWindow(self) -> SplashScreenWindow""" |
54f9ee45 | 825 | return _windows_.SplashScreen_GetSplashWindow(*args, **kwargs) |
e811c8ce RD |
826 | |
827 | def GetTimeout(*args, **kwargs): | |
a95a7133 | 828 | """GetTimeout(self) -> int""" |
54f9ee45 | 829 | return _windows_.SplashScreen_GetTimeout(*args, **kwargs) |
e811c8ce | 830 | |
d14a1e28 RD |
831 | |
832 | class SplashScreenPtr(SplashScreen): | |
833 | def __init__(self, this): | |
834 | self.this = this | |
835 | if not hasattr(self,"thisown"): self.thisown = 0 | |
836 | self.__class__ = SplashScreen | |
54f9ee45 | 837 | _windows_.SplashScreen_swigregister(SplashScreenPtr) |
d14a1e28 RD |
838 | |
839 | #--------------------------------------------------------------------------- | |
840 | ||
f16ab95d RD |
841 | SB_NORMAL = _windows_.SB_NORMAL |
842 | SB_FLAT = _windows_.SB_FLAT | |
843 | SB_RAISED = _windows_.SB_RAISED | |
54f9ee45 | 844 | class StatusBar(_core.Window): |
093d3ff1 | 845 | """Proxy of C++ StatusBar class""" |
e811c8ce RD |
846 | def __repr__(self): |
847 | return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 848 | def __init__(self, *args, **kwargs): |
4276dc52 | 849 | """ |
b6b0383e | 850 | __init__(self, Window parent, int id=-1, long style=DEFAULT_STATUSBAR_STYLE, |
4276dc52 RD |
851 | String name=StatusLineNameStr) -> StatusBar |
852 | """ | |
54f9ee45 | 853 | newobj = _windows_.new_StatusBar(*args, **kwargs) |
d14a1e28 | 854 | self.this = newobj.this |
2f90df85 | 855 | self.thisown = 1 |
d14a1e28 | 856 | del newobj.thisown |
0220cbc1 | 857 | self._setOORInfo(self) |
e811c8ce RD |
858 | |
859 | def Create(*args, **kwargs): | |
248ed943 | 860 | """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool""" |
54f9ee45 | 861 | return _windows_.StatusBar_Create(*args, **kwargs) |
e811c8ce RD |
862 | |
863 | def SetFieldsCount(*args, **kwargs): | |
a95a7133 | 864 | """SetFieldsCount(self, int number=1)""" |
54f9ee45 | 865 | return _windows_.StatusBar_SetFieldsCount(*args, **kwargs) |
e811c8ce RD |
866 | |
867 | def GetFieldsCount(*args, **kwargs): | |
a95a7133 | 868 | """GetFieldsCount(self) -> int""" |
54f9ee45 | 869 | return _windows_.StatusBar_GetFieldsCount(*args, **kwargs) |
e811c8ce RD |
870 | |
871 | def SetStatusText(*args, **kwargs): | |
a95a7133 | 872 | """SetStatusText(self, String text, int number=0)""" |
54f9ee45 | 873 | return _windows_.StatusBar_SetStatusText(*args, **kwargs) |
e811c8ce RD |
874 | |
875 | def GetStatusText(*args, **kwargs): | |
a95a7133 | 876 | """GetStatusText(self, int number=0) -> String""" |
54f9ee45 | 877 | return _windows_.StatusBar_GetStatusText(*args, **kwargs) |
e811c8ce RD |
878 | |
879 | def PushStatusText(*args, **kwargs): | |
a95a7133 | 880 | """PushStatusText(self, String text, int number=0)""" |
54f9ee45 | 881 | return _windows_.StatusBar_PushStatusText(*args, **kwargs) |
e811c8ce RD |
882 | |
883 | def PopStatusText(*args, **kwargs): | |
a95a7133 | 884 | """PopStatusText(self, int number=0)""" |
54f9ee45 | 885 | return _windows_.StatusBar_PopStatusText(*args, **kwargs) |
e811c8ce RD |
886 | |
887 | def SetStatusWidths(*args, **kwargs): | |
093d3ff1 | 888 | """SetStatusWidths(self, int widths)""" |
54f9ee45 | 889 | return _windows_.StatusBar_SetStatusWidths(*args, **kwargs) |
e811c8ce | 890 | |
f16ab95d | 891 | def SetStatusStyles(*args, **kwargs): |
093d3ff1 | 892 | """SetStatusStyles(self, int styles)""" |
f16ab95d RD |
893 | return _windows_.StatusBar_SetStatusStyles(*args, **kwargs) |
894 | ||
e811c8ce | 895 | def GetFieldRect(*args, **kwargs): |
a95a7133 | 896 | """GetFieldRect(self, int i) -> Rect""" |
54f9ee45 | 897 | return _windows_.StatusBar_GetFieldRect(*args, **kwargs) |
e811c8ce RD |
898 | |
899 | def SetMinHeight(*args, **kwargs): | |
a95a7133 | 900 | """SetMinHeight(self, int height)""" |
54f9ee45 | 901 | return _windows_.StatusBar_SetMinHeight(*args, **kwargs) |
e811c8ce RD |
902 | |
903 | def GetBorderX(*args, **kwargs): | |
a95a7133 | 904 | """GetBorderX(self) -> int""" |
54f9ee45 | 905 | return _windows_.StatusBar_GetBorderX(*args, **kwargs) |
e811c8ce RD |
906 | |
907 | def GetBorderY(*args, **kwargs): | |
a95a7133 | 908 | """GetBorderY(self) -> int""" |
54f9ee45 | 909 | return _windows_.StatusBar_GetBorderY(*args, **kwargs) |
e811c8ce | 910 | |
22bfe96c RD |
911 | def GetClassDefaultAttributes(*args, **kwargs): |
912 | """ | |
913 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
914 | ||
41e2b43e RD |
915 | Get the default attributes for this class. This is useful if you want |
916 | to use the same font or colour in your own control as in a standard | |
917 | control -- which is a much better idea than hard coding specific | |
db3e571a RD |
918 | colours or fonts which might look completely out of place on the |
919 | user's system, especially if it uses themes. | |
22bfe96c RD |
920 | |
921 | The variant parameter is only relevant under Mac currently and is | |
41e2b43e | 922 | ignore under other platforms. Under Mac, it will change the size of |
db3e571a RD |
923 | the returned font. See `wx.Window.SetWindowVariant` for more about |
924 | this. | |
22bfe96c RD |
925 | """ |
926 | return _windows_.StatusBar_GetClassDefaultAttributes(*args, **kwargs) | |
927 | ||
928 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2f90df85 | 929 | |
d14a1e28 RD |
930 | class StatusBarPtr(StatusBar): |
931 | def __init__(self, this): | |
932 | self.this = this | |
933 | if not hasattr(self,"thisown"): self.thisown = 0 | |
934 | self.__class__ = StatusBar | |
54f9ee45 | 935 | _windows_.StatusBar_swigregister(StatusBarPtr) |
2f90df85 | 936 | |
d14a1e28 | 937 | def PreStatusBar(*args, **kwargs): |
e811c8ce | 938 | """PreStatusBar() -> StatusBar""" |
54f9ee45 | 939 | val = _windows_.new_PreStatusBar(*args, **kwargs) |
d14a1e28 RD |
940 | val.thisown = 1 |
941 | return val | |
2f90df85 | 942 | |
22bfe96c RD |
943 | def StatusBar_GetClassDefaultAttributes(*args, **kwargs): |
944 | """ | |
945 | StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
946 | ||
41e2b43e RD |
947 | Get the default attributes for this class. This is useful if you want |
948 | to use the same font or colour in your own control as in a standard | |
949 | control -- which is a much better idea than hard coding specific | |
db3e571a RD |
950 | colours or fonts which might look completely out of place on the |
951 | user's system, especially if it uses themes. | |
22bfe96c RD |
952 | |
953 | The variant parameter is only relevant under Mac currently and is | |
41e2b43e | 954 | ignore under other platforms. Under Mac, it will change the size of |
db3e571a RD |
955 | the returned font. See `wx.Window.SetWindowVariant` for more about |
956 | this. | |
22bfe96c RD |
957 | """ |
958 | return _windows_.StatusBar_GetClassDefaultAttributes(*args, **kwargs) | |
959 | ||
d14a1e28 RD |
960 | #--------------------------------------------------------------------------- |
961 | ||
54f9ee45 RD |
962 | SP_NOBORDER = _windows_.SP_NOBORDER |
963 | SP_NOSASH = _windows_.SP_NOSASH | |
964 | SP_PERMIT_UNSPLIT = _windows_.SP_PERMIT_UNSPLIT | |
965 | SP_LIVE_UPDATE = _windows_.SP_LIVE_UPDATE | |
966 | SP_3DSASH = _windows_.SP_3DSASH | |
967 | SP_3DBORDER = _windows_.SP_3DBORDER | |
968 | SP_NO_XP_THEME = _windows_.SP_NO_XP_THEME | |
969 | SP_BORDER = _windows_.SP_BORDER | |
970 | SP_3D = _windows_.SP_3D | |
971 | SPLIT_HORIZONTAL = _windows_.SPLIT_HORIZONTAL | |
972 | SPLIT_VERTICAL = _windows_.SPLIT_VERTICAL | |
973 | SPLIT_DRAG_NONE = _windows_.SPLIT_DRAG_NONE | |
974 | SPLIT_DRAG_DRAGGING = _windows_.SPLIT_DRAG_DRAGGING | |
975 | SPLIT_DRAG_LEFT_DOWN = _windows_.SPLIT_DRAG_LEFT_DOWN | |
976 | class SplitterWindow(_core.Window): | |
d00d1b88 | 977 | """ |
41e2b43e RD |
978 | wx.SplitterWindow manages up to two subwindows or panes, with an |
979 | optional vertical or horizontal split which can be used with the mouse | |
980 | or programmatically. | |
d00d1b88 | 981 | """ |
e811c8ce RD |
982 | def __repr__(self): |
983 | return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 984 | def __init__(self, *args, **kwargs): |
0df68c9f | 985 | """ |
a95a7133 | 986 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
74a57fcd | 987 | Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow |
d00d1b88 RD |
988 | |
989 | Constructor. Creates and shows a SplitterWindow. | |
0df68c9f | 990 | """ |
69223c70 | 991 | if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point'] |
54f9ee45 | 992 | newobj = _windows_.new_SplitterWindow(*args, **kwargs) |
d14a1e28 RD |
993 | self.this = newobj.this |
994 | self.thisown = 1 | |
995 | del newobj.thisown | |
996 | self._setOORInfo(self) | |
e811c8ce RD |
997 | |
998 | def Create(*args, **kwargs): | |
0df68c9f | 999 | """ |
a95a7133 | 1000 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
74a57fcd | 1001 | Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool |
d00d1b88 RD |
1002 | |
1003 | Create the GUI part of the SplitterWindow for the 2-phase create. | |
0df68c9f | 1004 | """ |
54f9ee45 | 1005 | return _windows_.SplitterWindow_Create(*args, **kwargs) |
e811c8ce RD |
1006 | |
1007 | def GetWindow1(*args, **kwargs): | |
d00d1b88 | 1008 | """ |
a95a7133 | 1009 | GetWindow1(self) -> Window |
d00d1b88 RD |
1010 | |
1011 | Gets the only or left/top pane. | |
1012 | """ | |
54f9ee45 | 1013 | return _windows_.SplitterWindow_GetWindow1(*args, **kwargs) |
e811c8ce RD |
1014 | |
1015 | def GetWindow2(*args, **kwargs): | |
d00d1b88 | 1016 | """ |
a95a7133 | 1017 | GetWindow2(self) -> Window |
d00d1b88 RD |
1018 | |
1019 | Gets the right/bottom pane. | |
1020 | """ | |
54f9ee45 | 1021 | return _windows_.SplitterWindow_GetWindow2(*args, **kwargs) |
e811c8ce RD |
1022 | |
1023 | def SetSplitMode(*args, **kwargs): | |
d00d1b88 | 1024 | """ |
a95a7133 | 1025 | SetSplitMode(self, int mode) |
d00d1b88 RD |
1026 | |
1027 | Sets the split mode. The mode can be wx.SPLIT_VERTICAL or | |
41e2b43e RD |
1028 | wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not |
1029 | update the display. | |
d00d1b88 | 1030 | """ |
54f9ee45 | 1031 | return _windows_.SplitterWindow_SetSplitMode(*args, **kwargs) |
e811c8ce RD |
1032 | |
1033 | def GetSplitMode(*args, **kwargs): | |
d00d1b88 | 1034 | """ |
a95a7133 | 1035 | GetSplitMode(self) -> int |
d00d1b88 RD |
1036 | |
1037 | Gets the split mode | |
1038 | """ | |
54f9ee45 | 1039 | return _windows_.SplitterWindow_GetSplitMode(*args, **kwargs) |
e811c8ce RD |
1040 | |
1041 | def Initialize(*args, **kwargs): | |
d00d1b88 | 1042 | """ |
a95a7133 | 1043 | Initialize(self, Window window) |
d00d1b88 | 1044 | |
41e2b43e RD |
1045 | Initializes the splitter window to have one pane. This should be |
1046 | called if you wish to initially view only a single pane in the | |
51b83b37 | 1047 | splitter window. The child window is shown if it is currently hidden. |
d00d1b88 | 1048 | """ |
54f9ee45 | 1049 | return _windows_.SplitterWindow_Initialize(*args, **kwargs) |
e811c8ce RD |
1050 | |
1051 | def SplitVertically(*args, **kwargs): | |
d00d1b88 | 1052 | """ |
a95a7133 | 1053 | SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool |
d00d1b88 | 1054 | |
51b83b37 RD |
1055 | Initializes the left and right panes of the splitter window. The |
1056 | child windows are shown if they are currently hidden. | |
d00d1b88 | 1057 | """ |
54f9ee45 | 1058 | return _windows_.SplitterWindow_SplitVertically(*args, **kwargs) |
e811c8ce RD |
1059 | |
1060 | def SplitHorizontally(*args, **kwargs): | |
d00d1b88 | 1061 | """ |
a95a7133 | 1062 | SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool |
d00d1b88 | 1063 | |
51b83b37 RD |
1064 | Initializes the top and bottom panes of the splitter window. The |
1065 | child windows are shown if they are currently hidden. | |
d00d1b88 | 1066 | """ |
54f9ee45 | 1067 | return _windows_.SplitterWindow_SplitHorizontally(*args, **kwargs) |
e811c8ce RD |
1068 | |
1069 | def Unsplit(*args, **kwargs): | |
d00d1b88 | 1070 | """ |
a95a7133 | 1071 | Unsplit(self, Window toRemove=None) -> bool |
d00d1b88 | 1072 | |
41e2b43e RD |
1073 | Unsplits the window. Pass the pane to remove, or None to remove the |
1074 | right or bottom pane. Returns True if successful, False otherwise (the | |
1075 | window was not split). | |
d00d1b88 RD |
1076 | |
1077 | This function will not actually delete the pane being | |
1078 | removed; it sends EVT_SPLITTER_UNSPLIT which can be handled | |
1079 | for the desired behaviour. By default, the pane being | |
1080 | removed is only hidden. | |
1081 | """ | |
54f9ee45 | 1082 | return _windows_.SplitterWindow_Unsplit(*args, **kwargs) |
e811c8ce RD |
1083 | |
1084 | def ReplaceWindow(*args, **kwargs): | |
d00d1b88 | 1085 | """ |
a95a7133 | 1086 | ReplaceWindow(self, Window winOld, Window winNew) -> bool |
d00d1b88 RD |
1087 | |
1088 | This function replaces one of the windows managed by the | |
41e2b43e RD |
1089 | SplitterWindow with another one. It is in general better to use it |
1090 | instead of calling Unsplit() and then resplitting the window back | |
1091 | because it will provoke much less flicker. It is valid to call this | |
1092 | function whether the splitter has two windows or only one. | |
1093 | ||
1094 | Both parameters should be non-None and winOld must specify one of the | |
1095 | windows managed by the splitter. If the parameters are incorrect or | |
1096 | the window couldn't be replaced, False is returned. Otherwise the | |
1097 | function will return True, but please notice that it will not Destroy | |
1098 | the replaced window and you may wish to do it yourself. | |
d00d1b88 | 1099 | """ |
54f9ee45 | 1100 | return _windows_.SplitterWindow_ReplaceWindow(*args, **kwargs) |
e811c8ce | 1101 | |
d00d1b88 RD |
1102 | def UpdateSize(*args, **kwargs): |
1103 | """ | |
a95a7133 | 1104 | UpdateSize(self) |
d00d1b88 | 1105 | |
41e2b43e RD |
1106 | Causes any pending sizing of the sash and child panes to take place |
1107 | immediately. | |
d00d1b88 | 1108 | |
41e2b43e RD |
1109 | Such resizing normally takes place in idle time, in order to wait for |
1110 | layout to be completed. However, this can cause unacceptable flicker | |
1111 | as the panes are resized after the window has been shown. To work | |
1112 | around this, you can perform window layout (for example by sending a | |
1113 | size event to the parent window), and then call this function, before | |
1114 | showing the top-level window. | |
d00d1b88 | 1115 | """ |
54f9ee45 | 1116 | return _windows_.SplitterWindow_UpdateSize(*args, **kwargs) |
d00d1b88 | 1117 | |
e811c8ce | 1118 | def IsSplit(*args, **kwargs): |
d00d1b88 | 1119 | """ |
a95a7133 | 1120 | IsSplit(self) -> bool |
d00d1b88 RD |
1121 | |
1122 | Is the window split? | |
1123 | """ | |
54f9ee45 | 1124 | return _windows_.SplitterWindow_IsSplit(*args, **kwargs) |
e811c8ce RD |
1125 | |
1126 | def SetSashSize(*args, **kwargs): | |
d00d1b88 | 1127 | """ |
a95a7133 | 1128 | SetSashSize(self, int width) |
d00d1b88 | 1129 | |
88c6b281 | 1130 | Sets the sash size. |
d00d1b88 | 1131 | """ |
54f9ee45 | 1132 | return _windows_.SplitterWindow_SetSashSize(*args, **kwargs) |
e811c8ce RD |
1133 | |
1134 | def SetBorderSize(*args, **kwargs): | |
d00d1b88 | 1135 | """ |
a95a7133 | 1136 | SetBorderSize(self, int width) |
d00d1b88 | 1137 | |
8ac8dba0 | 1138 | Sets the border size. Currently a NOP. |
d00d1b88 | 1139 | """ |
54f9ee45 | 1140 | return _windows_.SplitterWindow_SetBorderSize(*args, **kwargs) |
e811c8ce RD |
1141 | |
1142 | def GetSashSize(*args, **kwargs): | |
d00d1b88 | 1143 | """ |
a95a7133 | 1144 | GetSashSize(self) -> int |
d00d1b88 RD |
1145 | |
1146 | Gets the sash size | |
1147 | """ | |
54f9ee45 | 1148 | return _windows_.SplitterWindow_GetSashSize(*args, **kwargs) |
e811c8ce RD |
1149 | |
1150 | def GetBorderSize(*args, **kwargs): | |
d00d1b88 | 1151 | """ |
a95a7133 | 1152 | GetBorderSize(self) -> int |
d00d1b88 RD |
1153 | |
1154 | Gets the border size | |
1155 | """ | |
54f9ee45 | 1156 | return _windows_.SplitterWindow_GetBorderSize(*args, **kwargs) |
e811c8ce RD |
1157 | |
1158 | def SetSashPosition(*args, **kwargs): | |
d00d1b88 | 1159 | """ |
a95a7133 | 1160 | SetSashPosition(self, int position, bool redraw=True) |
d00d1b88 | 1161 | |
41e2b43e RD |
1162 | Sets the sash position, in pixels. If redraw is Ttrue then the panes |
1163 | are resized and the sash and border are redrawn. | |
d00d1b88 | 1164 | """ |
54f9ee45 | 1165 | return _windows_.SplitterWindow_SetSashPosition(*args, **kwargs) |
e811c8ce RD |
1166 | |
1167 | def GetSashPosition(*args, **kwargs): | |
d00d1b88 | 1168 | """ |
a95a7133 | 1169 | GetSashPosition(self) -> int |
d00d1b88 RD |
1170 | |
1171 | Returns the surrent sash position. | |
1172 | """ | |
54f9ee45 | 1173 | return _windows_.SplitterWindow_GetSashPosition(*args, **kwargs) |
e811c8ce | 1174 | |
5cbf236d RD |
1175 | def SetSashGravity(*args, **kwargs): |
1176 | """ | |
1177 | SetSashGravity(self, double gravity) | |
1178 | ||
1179 | Set the sash gravity. Gravity is a floating-point factor between 0.0 | |
1180 | and 1.0 which controls position of sash while resizing the | |
1181 | `wx.SplitterWindow`. The gravity specifies how much the left/top | |
1182 | window will grow while resizing. | |
1183 | """ | |
1184 | return _windows_.SplitterWindow_SetSashGravity(*args, **kwargs) | |
1185 | ||
1186 | def GetSashGravity(*args, **kwargs): | |
1187 | """ | |
1188 | GetSashGravity(self) -> double | |
1189 | ||
1190 | Gets the sash gravity. | |
1191 | ||
1192 | :see: `SetSashGravity` | |
1193 | ||
1194 | """ | |
1195 | return _windows_.SplitterWindow_GetSashGravity(*args, **kwargs) | |
1196 | ||
e811c8ce | 1197 | def SetMinimumPaneSize(*args, **kwargs): |
d00d1b88 | 1198 | """ |
a95a7133 | 1199 | SetMinimumPaneSize(self, int min) |
d00d1b88 RD |
1200 | |
1201 | Sets the minimum pane size in pixels. | |
1202 | ||
41e2b43e RD |
1203 | The default minimum pane size is zero, which means that either pane |
1204 | can be reduced to zero by dragging the sash, thus removing one of the | |
1205 | panes. To prevent this behaviour (and veto out-of-range sash | |
1206 | dragging), set a minimum size, for example 20 pixels. If the | |
1207 | wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created, | |
1208 | the window may be unsplit even if minimum size is non-zero. | |
d00d1b88 | 1209 | """ |
54f9ee45 | 1210 | return _windows_.SplitterWindow_SetMinimumPaneSize(*args, **kwargs) |
e811c8ce RD |
1211 | |
1212 | def GetMinimumPaneSize(*args, **kwargs): | |
d00d1b88 | 1213 | """ |
a95a7133 | 1214 | GetMinimumPaneSize(self) -> int |
d00d1b88 RD |
1215 | |
1216 | Gets the minimum pane size in pixels. | |
1217 | """ | |
54f9ee45 | 1218 | return _windows_.SplitterWindow_GetMinimumPaneSize(*args, **kwargs) |
e811c8ce RD |
1219 | |
1220 | def SashHitTest(*args, **kwargs): | |
d00d1b88 | 1221 | """ |
a95a7133 | 1222 | SashHitTest(self, int x, int y, int tolerance=5) -> bool |
d00d1b88 RD |
1223 | |
1224 | Tests for x, y over the sash | |
1225 | """ | |
54f9ee45 | 1226 | return _windows_.SplitterWindow_SashHitTest(*args, **kwargs) |
e811c8ce RD |
1227 | |
1228 | def SizeWindows(*args, **kwargs): | |
d00d1b88 | 1229 | """ |
a95a7133 | 1230 | SizeWindows(self) |
d00d1b88 RD |
1231 | |
1232 | Resizes subwindows | |
1233 | """ | |
54f9ee45 | 1234 | return _windows_.SplitterWindow_SizeWindows(*args, **kwargs) |
e811c8ce RD |
1235 | |
1236 | def SetNeedUpdating(*args, **kwargs): | |
a95a7133 | 1237 | """SetNeedUpdating(self, bool needUpdating)""" |
54f9ee45 | 1238 | return _windows_.SplitterWindow_SetNeedUpdating(*args, **kwargs) |
e811c8ce RD |
1239 | |
1240 | def GetNeedUpdating(*args, **kwargs): | |
a95a7133 | 1241 | """GetNeedUpdating(self) -> bool""" |
54f9ee45 | 1242 | return _windows_.SplitterWindow_GetNeedUpdating(*args, **kwargs) |
e811c8ce | 1243 | |
22bfe96c RD |
1244 | def GetClassDefaultAttributes(*args, **kwargs): |
1245 | """ | |
1246 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
1247 | ||
41e2b43e RD |
1248 | Get the default attributes for this class. This is useful if you want |
1249 | to use the same font or colour in your own control as in a standard | |
1250 | control -- which is a much better idea than hard coding specific | |
db3e571a RD |
1251 | colours or fonts which might look completely out of place on the |
1252 | user's system, especially if it uses themes. | |
22bfe96c RD |
1253 | |
1254 | The variant parameter is only relevant under Mac currently and is | |
41e2b43e | 1255 | ignore under other platforms. Under Mac, it will change the size of |
db3e571a RD |
1256 | the returned font. See `wx.Window.SetWindowVariant` for more about |
1257 | this. | |
22bfe96c RD |
1258 | """ |
1259 | return _windows_.SplitterWindow_GetClassDefaultAttributes(*args, **kwargs) | |
1260 | ||
1261 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2f90df85 | 1262 | |
d14a1e28 RD |
1263 | class SplitterWindowPtr(SplitterWindow): |
1264 | def __init__(self, this): | |
8ab979d7 | 1265 | self.this = this |
d14a1e28 RD |
1266 | if not hasattr(self,"thisown"): self.thisown = 0 |
1267 | self.__class__ = SplitterWindow | |
54f9ee45 | 1268 | _windows_.SplitterWindow_swigregister(SplitterWindowPtr) |
b2dc1044 | 1269 | SplitterNameStr = cvar.SplitterNameStr |
d14a1e28 RD |
1270 | |
1271 | def PreSplitterWindow(*args, **kwargs): | |
d00d1b88 RD |
1272 | """ |
1273 | PreSplitterWindow() -> SplitterWindow | |
1274 | ||
1275 | Precreate a SplitterWindow for 2-phase creation. | |
1276 | """ | |
54f9ee45 | 1277 | val = _windows_.new_PreSplitterWindow(*args, **kwargs) |
d14a1e28 RD |
1278 | val.thisown = 1 |
1279 | return val | |
1280 | ||
22bfe96c RD |
1281 | def SplitterWindow_GetClassDefaultAttributes(*args, **kwargs): |
1282 | """ | |
1283 | SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
1284 | ||
41e2b43e RD |
1285 | Get the default attributes for this class. This is useful if you want |
1286 | to use the same font or colour in your own control as in a standard | |
1287 | control -- which is a much better idea than hard coding specific | |
db3e571a RD |
1288 | colours or fonts which might look completely out of place on the |
1289 | user's system, especially if it uses themes. | |
22bfe96c RD |
1290 | |
1291 | The variant parameter is only relevant under Mac currently and is | |
41e2b43e | 1292 | ignore under other platforms. Under Mac, it will change the size of |
db3e571a RD |
1293 | the returned font. See `wx.Window.SetWindowVariant` for more about |
1294 | this. | |
22bfe96c RD |
1295 | """ |
1296 | return _windows_.SplitterWindow_GetClassDefaultAttributes(*args, **kwargs) | |
1297 | ||
54f9ee45 | 1298 | class SplitterEvent(_core.NotifyEvent): |
d00d1b88 | 1299 | """This class represents the events generated by a splitter control.""" |
e811c8ce RD |
1300 | def __repr__(self): |
1301 | return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1302 | def __init__(self, *args, **kwargs): |
d00d1b88 | 1303 | """ |
a95a7133 | 1304 | __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent |
d00d1b88 RD |
1305 | |
1306 | This class represents the events generated by a splitter control. | |
1307 | """ | |
54f9ee45 | 1308 | newobj = _windows_.new_SplitterEvent(*args, **kwargs) |
d14a1e28 RD |
1309 | self.this = newobj.this |
1310 | self.thisown = 1 | |
1311 | del newobj.thisown | |
e811c8ce | 1312 | def SetSashPosition(*args, **kwargs): |
d00d1b88 | 1313 | """ |
a95a7133 | 1314 | SetSashPosition(self, int pos) |
d00d1b88 | 1315 | |
51b83b37 | 1316 | This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING |
41e2b43e RD |
1317 | and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED |
1318 | events, sets the the new sash position. In the case of _CHANGING | |
1319 | events, sets the new tracking bar position so visual feedback during | |
1320 | dragging will represent that change that will actually take place. Set | |
1321 | to -1 from the event handler code to prevent repositioning. | |
d00d1b88 | 1322 | """ |
54f9ee45 | 1323 | return _windows_.SplitterEvent_SetSashPosition(*args, **kwargs) |
e811c8ce RD |
1324 | |
1325 | def GetSashPosition(*args, **kwargs): | |
d00d1b88 | 1326 | """ |
a95a7133 | 1327 | GetSashPosition(self) -> int |
d00d1b88 | 1328 | |
41e2b43e RD |
1329 | Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING |
1330 | and EVT_SPLITTER_SASH_POS_CHANGED events. | |
d00d1b88 | 1331 | """ |
54f9ee45 | 1332 | return _windows_.SplitterEvent_GetSashPosition(*args, **kwargs) |
e811c8ce RD |
1333 | |
1334 | def GetWindowBeingRemoved(*args, **kwargs): | |
d00d1b88 | 1335 | """ |
a95a7133 | 1336 | GetWindowBeingRemoved(self) -> Window |
d00d1b88 | 1337 | |
41e2b43e RD |
1338 | Returns a pointer to the window being removed when a splitter window |
1339 | is unsplit. | |
d00d1b88 | 1340 | """ |
54f9ee45 | 1341 | return _windows_.SplitterEvent_GetWindowBeingRemoved(*args, **kwargs) |
e811c8ce RD |
1342 | |
1343 | def GetX(*args, **kwargs): | |
d00d1b88 | 1344 | """ |
a95a7133 | 1345 | GetX(self) -> int |
d00d1b88 RD |
1346 | |
1347 | Returns the x coordinate of the double-click point in a | |
1348 | EVT_SPLITTER_DCLICK event. | |
1349 | """ | |
54f9ee45 | 1350 | return _windows_.SplitterEvent_GetX(*args, **kwargs) |
e811c8ce RD |
1351 | |
1352 | def GetY(*args, **kwargs): | |
d00d1b88 | 1353 | """ |
a95a7133 | 1354 | GetY(self) -> int |
d00d1b88 RD |
1355 | |
1356 | Returns the y coordinate of the double-click point in a | |
1357 | EVT_SPLITTER_DCLICK event. | |
1358 | """ | |
54f9ee45 | 1359 | return _windows_.SplitterEvent_GetY(*args, **kwargs) |
e811c8ce | 1360 | |
d14a1e28 RD |
1361 | |
1362 | class SplitterEventPtr(SplitterEvent): | |
1363 | def __init__(self, this): | |
1364 | self.this = this | |
1365 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1366 | self.__class__ = SplitterEvent | |
54f9ee45 | 1367 | _windows_.SplitterEvent_swigregister(SplitterEventPtr) |
d14a1e28 | 1368 | |
54f9ee45 RD |
1369 | wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = _windows_.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED |
1370 | wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = _windows_.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING | |
1371 | wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = _windows_.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED | |
1372 | wxEVT_COMMAND_SPLITTER_UNSPLIT = _windows_.wxEVT_COMMAND_SPLITTER_UNSPLIT | |
d14a1e28 RD |
1373 | EVT_SPLITTER_SASH_POS_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, 1 ) |
1374 | EVT_SPLITTER_SASH_POS_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, 1 ) | |
1375 | EVT_SPLITTER_DOUBLECLICKED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, 1 ) | |
1376 | EVT_SPLITTER_UNSPLIT = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT, 1 ) | |
4f89f6a3 | 1377 | EVT_SPLITTER_DCLICK = EVT_SPLITTER_DOUBLECLICKED |
d14a1e28 RD |
1378 | |
1379 | #--------------------------------------------------------------------------- | |
1380 | ||
54f9ee45 RD |
1381 | SASH_DRAG_NONE = _windows_.SASH_DRAG_NONE |
1382 | SASH_DRAG_DRAGGING = _windows_.SASH_DRAG_DRAGGING | |
1383 | SASH_DRAG_LEFT_DOWN = _windows_.SASH_DRAG_LEFT_DOWN | |
1384 | SW_NOBORDER = _windows_.SW_NOBORDER | |
1385 | SW_BORDER = _windows_.SW_BORDER | |
1386 | SW_3DSASH = _windows_.SW_3DSASH | |
1387 | SW_3DBORDER = _windows_.SW_3DBORDER | |
1388 | SW_3D = _windows_.SW_3D | |
1389 | SASH_TOP = _windows_.SASH_TOP | |
1390 | SASH_RIGHT = _windows_.SASH_RIGHT | |
1391 | SASH_BOTTOM = _windows_.SASH_BOTTOM | |
1392 | SASH_LEFT = _windows_.SASH_LEFT | |
1393 | SASH_NONE = _windows_.SASH_NONE | |
1394 | class SashWindow(_core.Window): | |
093d3ff1 | 1395 | """Proxy of C++ SashWindow class""" |
e811c8ce RD |
1396 | def __repr__(self): |
1397 | return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1398 | def __init__(self, *args, **kwargs): |
0df68c9f | 1399 | """ |
248ed943 RD |
1400 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1401 | Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D, | |
b2dc1044 | 1402 | String name=SashNameStr) -> SashWindow |
0df68c9f | 1403 | """ |
54f9ee45 | 1404 | newobj = _windows_.new_SashWindow(*args, **kwargs) |
d14a1e28 | 1405 | self.this = newobj.this |
8ab979d7 | 1406 | self.thisown = 1 |
d14a1e28 | 1407 | del newobj.thisown |
0220cbc1 | 1408 | self._setOORInfo(self) |
e811c8ce RD |
1409 | |
1410 | def Create(*args, **kwargs): | |
0df68c9f | 1411 | """ |
248ed943 RD |
1412 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1413 | Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D, | |
b2dc1044 | 1414 | String name=SashNameStr) -> bool |
0df68c9f | 1415 | """ |
54f9ee45 | 1416 | return _windows_.SashWindow_Create(*args, **kwargs) |
e811c8ce RD |
1417 | |
1418 | def SetSashVisible(*args, **kwargs): | |
a95a7133 | 1419 | """SetSashVisible(self, int edge, bool sash)""" |
54f9ee45 | 1420 | return _windows_.SashWindow_SetSashVisible(*args, **kwargs) |
e811c8ce RD |
1421 | |
1422 | def GetSashVisible(*args, **kwargs): | |
a95a7133 | 1423 | """GetSashVisible(self, int edge) -> bool""" |
54f9ee45 | 1424 | return _windows_.SashWindow_GetSashVisible(*args, **kwargs) |
e811c8ce RD |
1425 | |
1426 | def SetSashBorder(*args, **kwargs): | |
a95a7133 | 1427 | """SetSashBorder(self, int edge, bool border)""" |
54f9ee45 | 1428 | return _windows_.SashWindow_SetSashBorder(*args, **kwargs) |
e811c8ce RD |
1429 | |
1430 | def HasBorder(*args, **kwargs): | |
a95a7133 | 1431 | """HasBorder(self, int edge) -> bool""" |
54f9ee45 | 1432 | return _windows_.SashWindow_HasBorder(*args, **kwargs) |
e811c8ce RD |
1433 | |
1434 | def GetEdgeMargin(*args, **kwargs): | |
a95a7133 | 1435 | """GetEdgeMargin(self, int edge) -> int""" |
54f9ee45 | 1436 | return _windows_.SashWindow_GetEdgeMargin(*args, **kwargs) |
e811c8ce RD |
1437 | |
1438 | def SetDefaultBorderSize(*args, **kwargs): | |
a95a7133 | 1439 | """SetDefaultBorderSize(self, int width)""" |
54f9ee45 | 1440 | return _windows_.SashWindow_SetDefaultBorderSize(*args, **kwargs) |
e811c8ce RD |
1441 | |
1442 | def GetDefaultBorderSize(*args, **kwargs): | |
a95a7133 | 1443 | """GetDefaultBorderSize(self) -> int""" |
54f9ee45 | 1444 | return _windows_.SashWindow_GetDefaultBorderSize(*args, **kwargs) |
e811c8ce RD |
1445 | |
1446 | def SetExtraBorderSize(*args, **kwargs): | |
a95a7133 | 1447 | """SetExtraBorderSize(self, int width)""" |
54f9ee45 | 1448 | return _windows_.SashWindow_SetExtraBorderSize(*args, **kwargs) |
e811c8ce RD |
1449 | |
1450 | def GetExtraBorderSize(*args, **kwargs): | |
a95a7133 | 1451 | """GetExtraBorderSize(self) -> int""" |
54f9ee45 | 1452 | return _windows_.SashWindow_GetExtraBorderSize(*args, **kwargs) |
e811c8ce RD |
1453 | |
1454 | def SetMinimumSizeX(*args, **kwargs): | |
a95a7133 | 1455 | """SetMinimumSizeX(self, int min)""" |
54f9ee45 | 1456 | return _windows_.SashWindow_SetMinimumSizeX(*args, **kwargs) |
e811c8ce RD |
1457 | |
1458 | def SetMinimumSizeY(*args, **kwargs): | |
a95a7133 | 1459 | """SetMinimumSizeY(self, int min)""" |
54f9ee45 | 1460 | return _windows_.SashWindow_SetMinimumSizeY(*args, **kwargs) |
e811c8ce RD |
1461 | |
1462 | def GetMinimumSizeX(*args, **kwargs): | |
a95a7133 | 1463 | """GetMinimumSizeX(self) -> int""" |
54f9ee45 | 1464 | return _windows_.SashWindow_GetMinimumSizeX(*args, **kwargs) |
e811c8ce RD |
1465 | |
1466 | def GetMinimumSizeY(*args, **kwargs): | |
a95a7133 | 1467 | """GetMinimumSizeY(self) -> int""" |
54f9ee45 | 1468 | return _windows_.SashWindow_GetMinimumSizeY(*args, **kwargs) |
e811c8ce RD |
1469 | |
1470 | def SetMaximumSizeX(*args, **kwargs): | |
a95a7133 | 1471 | """SetMaximumSizeX(self, int max)""" |
54f9ee45 | 1472 | return _windows_.SashWindow_SetMaximumSizeX(*args, **kwargs) |
e811c8ce RD |
1473 | |
1474 | def SetMaximumSizeY(*args, **kwargs): | |
a95a7133 | 1475 | """SetMaximumSizeY(self, int max)""" |
54f9ee45 | 1476 | return _windows_.SashWindow_SetMaximumSizeY(*args, **kwargs) |
e811c8ce RD |
1477 | |
1478 | def GetMaximumSizeX(*args, **kwargs): | |
a95a7133 | 1479 | """GetMaximumSizeX(self) -> int""" |
54f9ee45 | 1480 | return _windows_.SashWindow_GetMaximumSizeX(*args, **kwargs) |
e811c8ce RD |
1481 | |
1482 | def GetMaximumSizeY(*args, **kwargs): | |
a95a7133 | 1483 | """GetMaximumSizeY(self) -> int""" |
54f9ee45 | 1484 | return _windows_.SashWindow_GetMaximumSizeY(*args, **kwargs) |
e811c8ce RD |
1485 | |
1486 | def SashHitTest(*args, **kwargs): | |
a95a7133 | 1487 | """SashHitTest(self, int x, int y, int tolerance=2) -> int""" |
54f9ee45 | 1488 | return _windows_.SashWindow_SashHitTest(*args, **kwargs) |
e811c8ce RD |
1489 | |
1490 | def SizeWindows(*args, **kwargs): | |
a95a7133 | 1491 | """SizeWindows(self)""" |
54f9ee45 | 1492 | return _windows_.SashWindow_SizeWindows(*args, **kwargs) |
e811c8ce | 1493 | |
8ab979d7 | 1494 | |
d14a1e28 RD |
1495 | class SashWindowPtr(SashWindow): |
1496 | def __init__(self, this): | |
1497 | self.this = this | |
1498 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1499 | self.__class__ = SashWindow | |
54f9ee45 | 1500 | _windows_.SashWindow_swigregister(SashWindowPtr) |
b2dc1044 RD |
1501 | SashNameStr = cvar.SashNameStr |
1502 | SashLayoutNameStr = cvar.SashLayoutNameStr | |
8ab979d7 | 1503 | |
d14a1e28 | 1504 | def PreSashWindow(*args, **kwargs): |
e811c8ce | 1505 | """PreSashWindow() -> SashWindow""" |
54f9ee45 | 1506 | val = _windows_.new_PreSashWindow(*args, **kwargs) |
aa2a5b86 RD |
1507 | val.thisown = 1 |
1508 | return val | |
1509 | ||
54f9ee45 RD |
1510 | SASH_STATUS_OK = _windows_.SASH_STATUS_OK |
1511 | SASH_STATUS_OUT_OF_RANGE = _windows_.SASH_STATUS_OUT_OF_RANGE | |
1512 | class SashEvent(_core.CommandEvent): | |
093d3ff1 | 1513 | """Proxy of C++ SashEvent class""" |
e811c8ce RD |
1514 | def __repr__(self): |
1515 | return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1516 | def __init__(self, *args, **kwargs): |
a95a7133 | 1517 | """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent""" |
54f9ee45 | 1518 | newobj = _windows_.new_SashEvent(*args, **kwargs) |
d14a1e28 RD |
1519 | self.this = newobj.this |
1520 | self.thisown = 1 | |
1521 | del newobj.thisown | |
e811c8ce | 1522 | def SetEdge(*args, **kwargs): |
a95a7133 | 1523 | """SetEdge(self, int edge)""" |
54f9ee45 | 1524 | return _windows_.SashEvent_SetEdge(*args, **kwargs) |
e811c8ce RD |
1525 | |
1526 | def GetEdge(*args, **kwargs): | |
a95a7133 | 1527 | """GetEdge(self) -> int""" |
54f9ee45 | 1528 | return _windows_.SashEvent_GetEdge(*args, **kwargs) |
e811c8ce RD |
1529 | |
1530 | def SetDragRect(*args, **kwargs): | |
a95a7133 | 1531 | """SetDragRect(self, Rect rect)""" |
54f9ee45 | 1532 | return _windows_.SashEvent_SetDragRect(*args, **kwargs) |
e811c8ce RD |
1533 | |
1534 | def GetDragRect(*args, **kwargs): | |
a95a7133 | 1535 | """GetDragRect(self) -> Rect""" |
54f9ee45 | 1536 | return _windows_.SashEvent_GetDragRect(*args, **kwargs) |
e811c8ce RD |
1537 | |
1538 | def SetDragStatus(*args, **kwargs): | |
a95a7133 | 1539 | """SetDragStatus(self, int status)""" |
54f9ee45 | 1540 | return _windows_.SashEvent_SetDragStatus(*args, **kwargs) |
e811c8ce RD |
1541 | |
1542 | def GetDragStatus(*args, **kwargs): | |
a95a7133 | 1543 | """GetDragStatus(self) -> int""" |
54f9ee45 | 1544 | return _windows_.SashEvent_GetDragStatus(*args, **kwargs) |
e811c8ce | 1545 | |
8ab979d7 | 1546 | |
d14a1e28 RD |
1547 | class SashEventPtr(SashEvent): |
1548 | def __init__(self, this): | |
8ab979d7 | 1549 | self.this = this |
d14a1e28 RD |
1550 | if not hasattr(self,"thisown"): self.thisown = 0 |
1551 | self.__class__ = SashEvent | |
54f9ee45 | 1552 | _windows_.SashEvent_swigregister(SashEventPtr) |
d14a1e28 | 1553 | |
54f9ee45 | 1554 | wxEVT_SASH_DRAGGED = _windows_.wxEVT_SASH_DRAGGED |
d14a1e28 RD |
1555 | EVT_SASH_DRAGGED = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 1 ) |
1556 | EVT_SASH_DRAGGED_RANGE = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 2 ) | |
1557 | ||
1558 | #--------------------------------------------------------------------------- | |
1559 | ||
54f9ee45 RD |
1560 | LAYOUT_HORIZONTAL = _windows_.LAYOUT_HORIZONTAL |
1561 | LAYOUT_VERTICAL = _windows_.LAYOUT_VERTICAL | |
1562 | LAYOUT_NONE = _windows_.LAYOUT_NONE | |
1563 | LAYOUT_TOP = _windows_.LAYOUT_TOP | |
1564 | LAYOUT_LEFT = _windows_.LAYOUT_LEFT | |
1565 | LAYOUT_RIGHT = _windows_.LAYOUT_RIGHT | |
1566 | LAYOUT_BOTTOM = _windows_.LAYOUT_BOTTOM | |
1567 | LAYOUT_LENGTH_Y = _windows_.LAYOUT_LENGTH_Y | |
1568 | LAYOUT_LENGTH_X = _windows_.LAYOUT_LENGTH_X | |
1569 | LAYOUT_MRU_LENGTH = _windows_.LAYOUT_MRU_LENGTH | |
1570 | LAYOUT_QUERY = _windows_.LAYOUT_QUERY | |
1571 | wxEVT_QUERY_LAYOUT_INFO = _windows_.wxEVT_QUERY_LAYOUT_INFO | |
1572 | wxEVT_CALCULATE_LAYOUT = _windows_.wxEVT_CALCULATE_LAYOUT | |
1573 | class QueryLayoutInfoEvent(_core.Event): | |
093d3ff1 | 1574 | """Proxy of C++ QueryLayoutInfoEvent class""" |
e811c8ce RD |
1575 | def __repr__(self): |
1576 | return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1577 | def __init__(self, *args, **kwargs): |
a95a7133 | 1578 | """__init__(self, int id=0) -> QueryLayoutInfoEvent""" |
54f9ee45 | 1579 | newobj = _windows_.new_QueryLayoutInfoEvent(*args, **kwargs) |
d14a1e28 RD |
1580 | self.this = newobj.this |
1581 | self.thisown = 1 | |
1582 | del newobj.thisown | |
e811c8ce | 1583 | def SetRequestedLength(*args, **kwargs): |
a95a7133 | 1584 | """SetRequestedLength(self, int length)""" |
54f9ee45 | 1585 | return _windows_.QueryLayoutInfoEvent_SetRequestedLength(*args, **kwargs) |
e811c8ce RD |
1586 | |
1587 | def GetRequestedLength(*args, **kwargs): | |
a95a7133 | 1588 | """GetRequestedLength(self) -> int""" |
54f9ee45 | 1589 | return _windows_.QueryLayoutInfoEvent_GetRequestedLength(*args, **kwargs) |
e811c8ce RD |
1590 | |
1591 | def SetFlags(*args, **kwargs): | |
a95a7133 | 1592 | """SetFlags(self, int flags)""" |
54f9ee45 | 1593 | return _windows_.QueryLayoutInfoEvent_SetFlags(*args, **kwargs) |
e811c8ce RD |
1594 | |
1595 | def GetFlags(*args, **kwargs): | |
a95a7133 | 1596 | """GetFlags(self) -> int""" |
54f9ee45 | 1597 | return _windows_.QueryLayoutInfoEvent_GetFlags(*args, **kwargs) |
e811c8ce RD |
1598 | |
1599 | def SetSize(*args, **kwargs): | |
a95a7133 | 1600 | """SetSize(self, Size size)""" |
54f9ee45 | 1601 | return _windows_.QueryLayoutInfoEvent_SetSize(*args, **kwargs) |
e811c8ce RD |
1602 | |
1603 | def GetSize(*args, **kwargs): | |
a95a7133 | 1604 | """GetSize(self) -> Size""" |
54f9ee45 | 1605 | return _windows_.QueryLayoutInfoEvent_GetSize(*args, **kwargs) |
e811c8ce RD |
1606 | |
1607 | def SetOrientation(*args, **kwargs): | |
a95a7133 | 1608 | """SetOrientation(self, int orient)""" |
54f9ee45 | 1609 | return _windows_.QueryLayoutInfoEvent_SetOrientation(*args, **kwargs) |
e811c8ce RD |
1610 | |
1611 | def GetOrientation(*args, **kwargs): | |
a95a7133 | 1612 | """GetOrientation(self) -> int""" |
54f9ee45 | 1613 | return _windows_.QueryLayoutInfoEvent_GetOrientation(*args, **kwargs) |
e811c8ce RD |
1614 | |
1615 | def SetAlignment(*args, **kwargs): | |
a95a7133 | 1616 | """SetAlignment(self, int align)""" |
54f9ee45 | 1617 | return _windows_.QueryLayoutInfoEvent_SetAlignment(*args, **kwargs) |
e811c8ce RD |
1618 | |
1619 | def GetAlignment(*args, **kwargs): | |
a95a7133 | 1620 | """GetAlignment(self) -> int""" |
54f9ee45 | 1621 | return _windows_.QueryLayoutInfoEvent_GetAlignment(*args, **kwargs) |
e811c8ce | 1622 | |
d14a1e28 RD |
1623 | |
1624 | class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent): | |
1625 | def __init__(self, this): | |
1626 | self.this = this | |
1627 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1628 | self.__class__ = QueryLayoutInfoEvent | |
54f9ee45 | 1629 | _windows_.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr) |
d14a1e28 | 1630 | |
54f9ee45 | 1631 | class CalculateLayoutEvent(_core.Event): |
093d3ff1 | 1632 | """Proxy of C++ CalculateLayoutEvent class""" |
e811c8ce RD |
1633 | def __repr__(self): |
1634 | return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1635 | def __init__(self, *args, **kwargs): |
a95a7133 | 1636 | """__init__(self, int id=0) -> CalculateLayoutEvent""" |
54f9ee45 | 1637 | newobj = _windows_.new_CalculateLayoutEvent(*args, **kwargs) |
d14a1e28 | 1638 | self.this = newobj.this |
8ab979d7 | 1639 | self.thisown = 1 |
d14a1e28 | 1640 | del newobj.thisown |
e811c8ce | 1641 | def SetFlags(*args, **kwargs): |
a95a7133 | 1642 | """SetFlags(self, int flags)""" |
54f9ee45 | 1643 | return _windows_.CalculateLayoutEvent_SetFlags(*args, **kwargs) |
e811c8ce RD |
1644 | |
1645 | def GetFlags(*args, **kwargs): | |
a95a7133 | 1646 | """GetFlags(self) -> int""" |
54f9ee45 | 1647 | return _windows_.CalculateLayoutEvent_GetFlags(*args, **kwargs) |
e811c8ce RD |
1648 | |
1649 | def SetRect(*args, **kwargs): | |
a95a7133 | 1650 | """SetRect(self, Rect rect)""" |
54f9ee45 | 1651 | return _windows_.CalculateLayoutEvent_SetRect(*args, **kwargs) |
e811c8ce RD |
1652 | |
1653 | def GetRect(*args, **kwargs): | |
a95a7133 | 1654 | """GetRect(self) -> Rect""" |
54f9ee45 | 1655 | return _windows_.CalculateLayoutEvent_GetRect(*args, **kwargs) |
e811c8ce | 1656 | |
d14a1e28 RD |
1657 | |
1658 | class CalculateLayoutEventPtr(CalculateLayoutEvent): | |
1659 | def __init__(self, this): | |
1660 | self.this = this | |
1661 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1662 | self.__class__ = CalculateLayoutEvent | |
54f9ee45 | 1663 | _windows_.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr) |
8ab979d7 | 1664 | |
d14a1e28 RD |
1665 | EVT_QUERY_LAYOUT_INFO = wx.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO ) |
1666 | EVT_CALCULATE_LAYOUT = wx.PyEventBinder( wxEVT_CALCULATE_LAYOUT ) | |
8ab979d7 | 1667 | |
d14a1e28 | 1668 | class SashLayoutWindow(SashWindow): |
093d3ff1 | 1669 | """Proxy of C++ SashLayoutWindow class""" |
e811c8ce RD |
1670 | def __repr__(self): |
1671 | return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1672 | def __init__(self, *args, **kwargs): |
0df68c9f | 1673 | """ |
248ed943 RD |
1674 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1675 | Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D, | |
b2dc1044 | 1676 | String name=SashLayoutNameStr) -> SashLayoutWindow |
0df68c9f | 1677 | """ |
54f9ee45 | 1678 | newobj = _windows_.new_SashLayoutWindow(*args, **kwargs) |
d14a1e28 RD |
1679 | self.this = newobj.this |
1680 | self.thisown = 1 | |
1681 | del newobj.thisown | |
1682 | self._setOORInfo(self) | |
e811c8ce RD |
1683 | |
1684 | def Create(*args, **kwargs): | |
0df68c9f | 1685 | """ |
248ed943 RD |
1686 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1687 | Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D, | |
b2dc1044 | 1688 | String name=SashLayoutNameStr) -> bool |
0df68c9f | 1689 | """ |
54f9ee45 | 1690 | return _windows_.SashLayoutWindow_Create(*args, **kwargs) |
e811c8ce RD |
1691 | |
1692 | def GetAlignment(*args, **kwargs): | |
a95a7133 | 1693 | """GetAlignment(self) -> int""" |
54f9ee45 | 1694 | return _windows_.SashLayoutWindow_GetAlignment(*args, **kwargs) |
e811c8ce RD |
1695 | |
1696 | def GetOrientation(*args, **kwargs): | |
a95a7133 | 1697 | """GetOrientation(self) -> int""" |
54f9ee45 | 1698 | return _windows_.SashLayoutWindow_GetOrientation(*args, **kwargs) |
e811c8ce RD |
1699 | |
1700 | def SetAlignment(*args, **kwargs): | |
a95a7133 | 1701 | """SetAlignment(self, int alignment)""" |
54f9ee45 | 1702 | return _windows_.SashLayoutWindow_SetAlignment(*args, **kwargs) |
e811c8ce RD |
1703 | |
1704 | def SetDefaultSize(*args, **kwargs): | |
a95a7133 | 1705 | """SetDefaultSize(self, Size size)""" |
54f9ee45 | 1706 | return _windows_.SashLayoutWindow_SetDefaultSize(*args, **kwargs) |
e811c8ce RD |
1707 | |
1708 | def SetOrientation(*args, **kwargs): | |
a95a7133 | 1709 | """SetOrientation(self, int orientation)""" |
54f9ee45 | 1710 | return _windows_.SashLayoutWindow_SetOrientation(*args, **kwargs) |
e811c8ce | 1711 | |
8ab979d7 | 1712 | |
d14a1e28 RD |
1713 | class SashLayoutWindowPtr(SashLayoutWindow): |
1714 | def __init__(self, this): | |
1715 | self.this = this | |
1716 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1717 | self.__class__ = SashLayoutWindow | |
54f9ee45 | 1718 | _windows_.SashLayoutWindow_swigregister(SashLayoutWindowPtr) |
d14a1e28 RD |
1719 | |
1720 | def PreSashLayoutWindow(*args, **kwargs): | |
e811c8ce | 1721 | """PreSashLayoutWindow() -> SashLayoutWindow""" |
54f9ee45 | 1722 | val = _windows_.new_PreSashLayoutWindow(*args, **kwargs) |
aa2a5b86 RD |
1723 | val.thisown = 1 |
1724 | return val | |
1725 | ||
54f9ee45 | 1726 | class LayoutAlgorithm(_core.Object): |
093d3ff1 | 1727 | """Proxy of C++ LayoutAlgorithm class""" |
e811c8ce RD |
1728 | def __repr__(self): |
1729 | return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1730 | def __init__(self, *args, **kwargs): |
a95a7133 | 1731 | """__init__(self) -> LayoutAlgorithm""" |
54f9ee45 | 1732 | newobj = _windows_.new_LayoutAlgorithm(*args, **kwargs) |
d14a1e28 RD |
1733 | self.this = newobj.this |
1734 | self.thisown = 1 | |
1735 | del newobj.thisown | |
54f9ee45 | 1736 | def __del__(self, destroy=_windows_.delete_LayoutAlgorithm): |
a95a7133 | 1737 | """__del__(self)""" |
d14a1e28 RD |
1738 | try: |
1739 | if self.thisown: destroy(self) | |
1740 | except: pass | |
e811c8ce RD |
1741 | |
1742 | def LayoutMDIFrame(*args, **kwargs): | |
a95a7133 | 1743 | """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool""" |
54f9ee45 | 1744 | return _windows_.LayoutAlgorithm_LayoutMDIFrame(*args, **kwargs) |
e811c8ce RD |
1745 | |
1746 | def LayoutFrame(*args, **kwargs): | |
a95a7133 | 1747 | """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool""" |
54f9ee45 | 1748 | return _windows_.LayoutAlgorithm_LayoutFrame(*args, **kwargs) |
e811c8ce RD |
1749 | |
1750 | def LayoutWindow(*args, **kwargs): | |
a95a7133 | 1751 | """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool""" |
54f9ee45 | 1752 | return _windows_.LayoutAlgorithm_LayoutWindow(*args, **kwargs) |
e811c8ce | 1753 | |
d14a1e28 RD |
1754 | |
1755 | class LayoutAlgorithmPtr(LayoutAlgorithm): | |
1756 | def __init__(self, this): | |
1757 | self.this = this | |
1758 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1759 | self.__class__ = LayoutAlgorithm | |
54f9ee45 | 1760 | _windows_.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr) |
d14a1e28 RD |
1761 | |
1762 | #--------------------------------------------------------------------------- | |
1763 | ||
54f9ee45 | 1764 | class PopupWindow(_core.Window): |
093d3ff1 | 1765 | """Proxy of C++ PopupWindow class""" |
e811c8ce RD |
1766 | def __repr__(self): |
1767 | return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1768 | def __init__(self, *args, **kwargs): |
a95a7133 | 1769 | """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow""" |
54f9ee45 | 1770 | newobj = _windows_.new_PopupWindow(*args, **kwargs) |
d14a1e28 RD |
1771 | self.this = newobj.this |
1772 | self.thisown = 1 | |
1773 | del newobj.thisown | |
1774 | self._setOORInfo(self) | |
e811c8ce RD |
1775 | |
1776 | def Create(*args, **kwargs): | |
a95a7133 | 1777 | """Create(self, Window parent, int flags=BORDER_NONE) -> bool""" |
54f9ee45 | 1778 | return _windows_.PopupWindow_Create(*args, **kwargs) |
e811c8ce RD |
1779 | |
1780 | def Position(*args, **kwargs): | |
a95a7133 | 1781 | """Position(self, Point ptOrigin, Size size)""" |
54f9ee45 | 1782 | return _windows_.PopupWindow_Position(*args, **kwargs) |
e811c8ce | 1783 | |
8ab979d7 | 1784 | |
d14a1e28 RD |
1785 | class PopupWindowPtr(PopupWindow): |
1786 | def __init__(self, this): | |
8ab979d7 | 1787 | self.this = this |
d14a1e28 RD |
1788 | if not hasattr(self,"thisown"): self.thisown = 0 |
1789 | self.__class__ = PopupWindow | |
54f9ee45 | 1790 | _windows_.PopupWindow_swigregister(PopupWindowPtr) |
d14a1e28 RD |
1791 | |
1792 | def PrePopupWindow(*args, **kwargs): | |
e811c8ce | 1793 | """PrePopupWindow() -> PopupWindow""" |
54f9ee45 | 1794 | val = _windows_.new_PrePopupWindow(*args, **kwargs) |
d14a1e28 RD |
1795 | val.thisown = 1 |
1796 | return val | |
1797 | ||
1798 | #--------------------------------------------------------------------------- | |
1799 | ||
1800 | class PopupTransientWindow(PopupWindow): | |
093d3ff1 | 1801 | """Proxy of C++ PopupTransientWindow class""" |
e811c8ce RD |
1802 | def __repr__(self): |
1803 | return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1804 | def __init__(self, *args, **kwargs): |
a95a7133 | 1805 | """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow""" |
54f9ee45 | 1806 | newobj = _windows_.new_PopupTransientWindow(*args, **kwargs) |
d14a1e28 RD |
1807 | self.this = newobj.this |
1808 | self.thisown = 1 | |
1809 | del newobj.thisown | |
1810 | self._setOORInfo(self);self._setCallbackInfo(self, PopupTransientWindow) | |
e811c8ce RD |
1811 | |
1812 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 1813 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 1814 | return _windows_.PopupTransientWindow__setCallbackInfo(*args, **kwargs) |
e811c8ce RD |
1815 | |
1816 | def Popup(*args, **kwargs): | |
a95a7133 | 1817 | """Popup(self, Window focus=None)""" |
54f9ee45 | 1818 | return _windows_.PopupTransientWindow_Popup(*args, **kwargs) |
e811c8ce RD |
1819 | |
1820 | def Dismiss(*args, **kwargs): | |
a95a7133 | 1821 | """Dismiss(self)""" |
54f9ee45 | 1822 | return _windows_.PopupTransientWindow_Dismiss(*args, **kwargs) |
e811c8ce | 1823 | |
d14a1e28 RD |
1824 | |
1825 | class PopupTransientWindowPtr(PopupTransientWindow): | |
1826 | def __init__(self, this): | |
1827 | self.this = this | |
1828 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1829 | self.__class__ = PopupTransientWindow | |
54f9ee45 | 1830 | _windows_.PopupTransientWindow_swigregister(PopupTransientWindowPtr) |
d14a1e28 RD |
1831 | |
1832 | def PrePopupTransientWindow(*args, **kwargs): | |
e811c8ce | 1833 | """PrePopupTransientWindow() -> PopupTransientWindow""" |
54f9ee45 | 1834 | val = _windows_.new_PrePopupTransientWindow(*args, **kwargs) |
d14a1e28 RD |
1835 | val.thisown = 1 |
1836 | return val | |
1837 | ||
1838 | #--------------------------------------------------------------------------- | |
1839 | ||
1840 | class TipWindow(PopupTransientWindow): | |
093d3ff1 | 1841 | """Proxy of C++ TipWindow class""" |
e811c8ce RD |
1842 | def __repr__(self): |
1843 | return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1844 | def __init__(self, *args, **kwargs): |
a95a7133 | 1845 | """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow""" |
54f9ee45 | 1846 | newobj = _windows_.new_TipWindow(*args, **kwargs) |
d14a1e28 | 1847 | self.this = newobj.this |
8ab979d7 | 1848 | self.thisown = 1 |
d14a1e28 | 1849 | del newobj.thisown |
0220cbc1 | 1850 | self._setOORInfo(self) |
e811c8ce RD |
1851 | |
1852 | def SetBoundingRect(*args, **kwargs): | |
a95a7133 | 1853 | """SetBoundingRect(self, Rect rectBound)""" |
54f9ee45 | 1854 | return _windows_.TipWindow_SetBoundingRect(*args, **kwargs) |
e811c8ce RD |
1855 | |
1856 | def Close(*args, **kwargs): | |
093d3ff1 RD |
1857 | """ |
1858 | Close(self) | |
1859 | ||
1860 | This function simply generates a EVT_CLOSE event whose handler usually | |
1861 | tries to close the window. It doesn't close the window itself, | |
1862 | however. If force is False (the default) then the window's close | |
1863 | handler will be allowed to veto the destruction of the window. | |
1864 | """ | |
54f9ee45 | 1865 | return _windows_.TipWindow_Close(*args, **kwargs) |
e811c8ce | 1866 | |
8ab979d7 | 1867 | |
d14a1e28 RD |
1868 | class TipWindowPtr(TipWindow): |
1869 | def __init__(self, this): | |
1870 | self.this = this | |
1871 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1872 | self.__class__ = TipWindow | |
54f9ee45 | 1873 | _windows_.TipWindow_swigregister(TipWindowPtr) |
8ab979d7 | 1874 | |
d14a1e28 | 1875 | #--------------------------------------------------------------------------- |
8ab979d7 | 1876 | |
d14a1e28 | 1877 | class VScrolledWindow(Panel): |
093d3ff1 | 1878 | """Proxy of C++ VScrolledWindow class""" |
e811c8ce RD |
1879 | def __repr__(self): |
1880 | return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1881 | def __init__(self, *args, **kwargs): |
0df68c9f | 1882 | """ |
a95a7133 | 1883 | __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, |
196addbf | 1884 | Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow |
0df68c9f | 1885 | """ |
54f9ee45 | 1886 | newobj = _windows_.new_VScrolledWindow(*args, **kwargs) |
d14a1e28 RD |
1887 | self.this = newobj.this |
1888 | self.thisown = 1 | |
1889 | del newobj.thisown | |
1890 | self._setOORInfo(self); self._setCallbackInfo(self, VScrolledWindow) | |
e811c8ce RD |
1891 | |
1892 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 1893 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 1894 | return _windows_.VScrolledWindow__setCallbackInfo(*args, **kwargs) |
e811c8ce RD |
1895 | |
1896 | def Create(*args, **kwargs): | |
0df68c9f | 1897 | """ |
a95a7133 | 1898 | Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, |
196addbf | 1899 | Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool |
0df68c9f | 1900 | """ |
54f9ee45 | 1901 | return _windows_.VScrolledWindow_Create(*args, **kwargs) |
e811c8ce RD |
1902 | |
1903 | def SetLineCount(*args, **kwargs): | |
a95a7133 | 1904 | """SetLineCount(self, size_t count)""" |
54f9ee45 | 1905 | return _windows_.VScrolledWindow_SetLineCount(*args, **kwargs) |
e811c8ce RD |
1906 | |
1907 | def ScrollToLine(*args, **kwargs): | |
a95a7133 | 1908 | """ScrollToLine(self, size_t line) -> bool""" |
54f9ee45 | 1909 | return _windows_.VScrolledWindow_ScrollToLine(*args, **kwargs) |
e811c8ce RD |
1910 | |
1911 | def ScrollLines(*args, **kwargs): | |
b94aea93 RD |
1912 | """ |
1913 | ScrollLines(self, int lines) -> bool | |
1914 | ||
1915 | If the platform and window class supports it, scrolls the window by | |
1916 | the given number of lines down, if lines is positive, or up if lines | |
1917 | is negative. Returns True if the window was scrolled, False if it was | |
1918 | already on top/bottom and nothing was done. | |
1919 | """ | |
54f9ee45 | 1920 | return _windows_.VScrolledWindow_ScrollLines(*args, **kwargs) |
e811c8ce RD |
1921 | |
1922 | def ScrollPages(*args, **kwargs): | |
15afbcd0 | 1923 | """ |
a95a7133 | 1924 | ScrollPages(self, int pages) -> bool |
15afbcd0 | 1925 | |
41e2b43e | 1926 | If the platform and window class supports it, scrolls the window by |
15afbcd0 RD |
1927 | the given number of pages down, if pages is positive, or up if pages |
1928 | is negative. Returns True if the window was scrolled, False if it was | |
1929 | already on top/bottom and nothing was done. | |
1930 | """ | |
54f9ee45 | 1931 | return _windows_.VScrolledWindow_ScrollPages(*args, **kwargs) |
e811c8ce RD |
1932 | |
1933 | def RefreshLine(*args, **kwargs): | |
a95a7133 | 1934 | """RefreshLine(self, size_t line)""" |
54f9ee45 | 1935 | return _windows_.VScrolledWindow_RefreshLine(*args, **kwargs) |
e811c8ce RD |
1936 | |
1937 | def RefreshLines(*args, **kwargs): | |
a95a7133 | 1938 | """RefreshLines(self, size_t from, size_t to)""" |
54f9ee45 | 1939 | return _windows_.VScrolledWindow_RefreshLines(*args, **kwargs) |
e811c8ce | 1940 | |
354693ff RD |
1941 | def HitTestXY(*args, **kwargs): |
1942 | """ | |
1943 | HitTestXY(self, int x, int y) -> int | |
1944 | ||
1945 | Test where the given (in client coords) point lies | |
1946 | """ | |
1947 | return _windows_.VScrolledWindow_HitTestXY(*args, **kwargs) | |
e811c8ce RD |
1948 | |
1949 | def HitTest(*args, **kwargs): | |
354693ff RD |
1950 | """ |
1951 | HitTest(self, Point pt) -> int | |
1952 | ||
1953 | Test where the given (in client coords) point lies | |
1954 | """ | |
54f9ee45 | 1955 | return _windows_.VScrolledWindow_HitTest(*args, **kwargs) |
e811c8ce RD |
1956 | |
1957 | def RefreshAll(*args, **kwargs): | |
a95a7133 | 1958 | """RefreshAll(self)""" |
54f9ee45 | 1959 | return _windows_.VScrolledWindow_RefreshAll(*args, **kwargs) |
e811c8ce RD |
1960 | |
1961 | def GetLineCount(*args, **kwargs): | |
a95a7133 | 1962 | """GetLineCount(self) -> size_t""" |
54f9ee45 | 1963 | return _windows_.VScrolledWindow_GetLineCount(*args, **kwargs) |
e811c8ce | 1964 | |
70b7a5fe RD |
1965 | def GetVisibleBegin(*args, **kwargs): |
1966 | """GetVisibleBegin(self) -> size_t""" | |
1967 | return _windows_.VScrolledWindow_GetVisibleBegin(*args, **kwargs) | |
1968 | ||
1969 | def GetVisibleEnd(*args, **kwargs): | |
1970 | """GetVisibleEnd(self) -> size_t""" | |
1971 | return _windows_.VScrolledWindow_GetVisibleEnd(*args, **kwargs) | |
1972 | ||
1973 | def IsVisible(*args, **kwargs): | |
1974 | """IsVisible(self, size_t line) -> bool""" | |
1975 | return _windows_.VScrolledWindow_IsVisible(*args, **kwargs) | |
1976 | ||
e811c8ce | 1977 | def GetFirstVisibleLine(*args, **kwargs): |
a95a7133 | 1978 | """GetFirstVisibleLine(self) -> size_t""" |
54f9ee45 | 1979 | return _windows_.VScrolledWindow_GetFirstVisibleLine(*args, **kwargs) |
e811c8ce RD |
1980 | |
1981 | def GetLastVisibleLine(*args, **kwargs): | |
a95a7133 | 1982 | """GetLastVisibleLine(self) -> size_t""" |
54f9ee45 | 1983 | return _windows_.VScrolledWindow_GetLastVisibleLine(*args, **kwargs) |
e811c8ce | 1984 | |
d14a1e28 RD |
1985 | |
1986 | class VScrolledWindowPtr(VScrolledWindow): | |
1987 | def __init__(self, this): | |
1988 | self.this = this | |
1989 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1990 | self.__class__ = VScrolledWindow | |
54f9ee45 | 1991 | _windows_.VScrolledWindow_swigregister(VScrolledWindowPtr) |
d14a1e28 RD |
1992 | |
1993 | def PreVScrolledWindow(*args, **kwargs): | |
e811c8ce | 1994 | """PreVScrolledWindow() -> VScrolledWindow""" |
54f9ee45 | 1995 | val = _windows_.new_PreVScrolledWindow(*args, **kwargs) |
aa2a5b86 RD |
1996 | val.thisown = 1 |
1997 | return val | |
1998 | ||
d14a1e28 | 1999 | class VListBox(VScrolledWindow): |
093d3ff1 | 2000 | """Proxy of C++ VListBox class""" |
e811c8ce RD |
2001 | def __repr__(self): |
2002 | return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2003 | def __init__(self, *args, **kwargs): |
0df68c9f | 2004 | """ |
a95a7133 | 2005 | __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, |
b2dc1044 | 2006 | Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox |
0df68c9f | 2007 | """ |
54f9ee45 | 2008 | newobj = _windows_.new_VListBox(*args, **kwargs) |
d14a1e28 RD |
2009 | self.this = newobj.this |
2010 | self.thisown = 1 | |
2011 | del newobj.thisown | |
2012 | self._setOORInfo(self);self._setCallbackInfo(self, VListBox) | |
e811c8ce RD |
2013 | |
2014 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 2015 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 2016 | return _windows_.VListBox__setCallbackInfo(*args, **kwargs) |
e811c8ce RD |
2017 | |
2018 | def Create(*args, **kwargs): | |
0df68c9f | 2019 | """ |
a95a7133 | 2020 | Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, |
b2dc1044 | 2021 | Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool |
0df68c9f | 2022 | """ |
54f9ee45 | 2023 | return _windows_.VListBox_Create(*args, **kwargs) |
e811c8ce RD |
2024 | |
2025 | def GetItemCount(*args, **kwargs): | |
a95a7133 | 2026 | """GetItemCount(self) -> size_t""" |
54f9ee45 | 2027 | return _windows_.VListBox_GetItemCount(*args, **kwargs) |
e811c8ce RD |
2028 | |
2029 | def HasMultipleSelection(*args, **kwargs): | |
a95a7133 | 2030 | """HasMultipleSelection(self) -> bool""" |
54f9ee45 | 2031 | return _windows_.VListBox_HasMultipleSelection(*args, **kwargs) |
e811c8ce RD |
2032 | |
2033 | def GetSelection(*args, **kwargs): | |
a95a7133 | 2034 | """GetSelection(self) -> int""" |
54f9ee45 | 2035 | return _windows_.VListBox_GetSelection(*args, **kwargs) |
e811c8ce RD |
2036 | |
2037 | def IsCurrent(*args, **kwargs): | |
a95a7133 | 2038 | """IsCurrent(self, size_t item) -> bool""" |
54f9ee45 | 2039 | return _windows_.VListBox_IsCurrent(*args, **kwargs) |
e811c8ce RD |
2040 | |
2041 | def IsSelected(*args, **kwargs): | |
a95a7133 | 2042 | """IsSelected(self, size_t item) -> bool""" |
54f9ee45 | 2043 | return _windows_.VListBox_IsSelected(*args, **kwargs) |
e811c8ce RD |
2044 | |
2045 | def GetSelectedCount(*args, **kwargs): | |
a95a7133 | 2046 | """GetSelectedCount(self) -> size_t""" |
54f9ee45 | 2047 | return _windows_.VListBox_GetSelectedCount(*args, **kwargs) |
e811c8ce RD |
2048 | |
2049 | def GetFirstSelected(*args, **kwargs): | |
09c21d3b | 2050 | """GetFirstSelected(self) -> PyObject""" |
54f9ee45 | 2051 | return _windows_.VListBox_GetFirstSelected(*args, **kwargs) |
e811c8ce RD |
2052 | |
2053 | def GetNextSelected(*args, **kwargs): | |
09c21d3b | 2054 | """GetNextSelected(self, unsigned long cookie) -> PyObject""" |
54f9ee45 | 2055 | return _windows_.VListBox_GetNextSelected(*args, **kwargs) |
e811c8ce RD |
2056 | |
2057 | def GetMargins(*args, **kwargs): | |
a95a7133 | 2058 | """GetMargins(self) -> Point""" |
54f9ee45 | 2059 | return _windows_.VListBox_GetMargins(*args, **kwargs) |
e811c8ce RD |
2060 | |
2061 | def GetSelectionBackground(*args, **kwargs): | |
a95a7133 | 2062 | """GetSelectionBackground(self) -> Colour""" |
54f9ee45 | 2063 | return _windows_.VListBox_GetSelectionBackground(*args, **kwargs) |
e811c8ce RD |
2064 | |
2065 | def SetItemCount(*args, **kwargs): | |
a95a7133 | 2066 | """SetItemCount(self, size_t count)""" |
54f9ee45 | 2067 | return _windows_.VListBox_SetItemCount(*args, **kwargs) |
e811c8ce RD |
2068 | |
2069 | def Clear(*args, **kwargs): | |
a95a7133 | 2070 | """Clear(self)""" |
54f9ee45 | 2071 | return _windows_.VListBox_Clear(*args, **kwargs) |
e811c8ce RD |
2072 | |
2073 | def SetSelection(*args, **kwargs): | |
a95a7133 | 2074 | """SetSelection(self, int selection)""" |
54f9ee45 | 2075 | return _windows_.VListBox_SetSelection(*args, **kwargs) |
e811c8ce RD |
2076 | |
2077 | def Select(*args, **kwargs): | |
a95a7133 | 2078 | """Select(self, size_t item, bool select=True) -> bool""" |
54f9ee45 | 2079 | return _windows_.VListBox_Select(*args, **kwargs) |
e811c8ce RD |
2080 | |
2081 | def SelectRange(*args, **kwargs): | |
a95a7133 | 2082 | """SelectRange(self, size_t from, size_t to) -> bool""" |
54f9ee45 | 2083 | return _windows_.VListBox_SelectRange(*args, **kwargs) |
e811c8ce RD |
2084 | |
2085 | def Toggle(*args, **kwargs): | |
a95a7133 | 2086 | """Toggle(self, size_t item)""" |
54f9ee45 | 2087 | return _windows_.VListBox_Toggle(*args, **kwargs) |
e811c8ce RD |
2088 | |
2089 | def SelectAll(*args, **kwargs): | |
a95a7133 | 2090 | """SelectAll(self) -> bool""" |
54f9ee45 | 2091 | return _windows_.VListBox_SelectAll(*args, **kwargs) |
e811c8ce RD |
2092 | |
2093 | def DeselectAll(*args, **kwargs): | |
a95a7133 | 2094 | """DeselectAll(self) -> bool""" |
54f9ee45 | 2095 | return _windows_.VListBox_DeselectAll(*args, **kwargs) |
e811c8ce RD |
2096 | |
2097 | def SetMargins(*args, **kwargs): | |
a95a7133 | 2098 | """SetMargins(self, Point pt)""" |
54f9ee45 | 2099 | return _windows_.VListBox_SetMargins(*args, **kwargs) |
e811c8ce RD |
2100 | |
2101 | def SetMarginsXY(*args, **kwargs): | |
a95a7133 | 2102 | """SetMarginsXY(self, int x, int y)""" |
54f9ee45 | 2103 | return _windows_.VListBox_SetMarginsXY(*args, **kwargs) |
e811c8ce RD |
2104 | |
2105 | def SetSelectionBackground(*args, **kwargs): | |
a95a7133 | 2106 | """SetSelectionBackground(self, Colour col)""" |
54f9ee45 | 2107 | return _windows_.VListBox_SetSelectionBackground(*args, **kwargs) |
e811c8ce | 2108 | |
8ab979d7 | 2109 | |
d14a1e28 RD |
2110 | class VListBoxPtr(VListBox): |
2111 | def __init__(self, this): | |
8ab979d7 | 2112 | self.this = this |
d14a1e28 RD |
2113 | if not hasattr(self,"thisown"): self.thisown = 0 |
2114 | self.__class__ = VListBox | |
54f9ee45 | 2115 | _windows_.VListBox_swigregister(VListBoxPtr) |
b2dc1044 | 2116 | VListBoxNameStr = cvar.VListBoxNameStr |
d14a1e28 RD |
2117 | |
2118 | def PreVListBox(*args, **kwargs): | |
e811c8ce | 2119 | """PreVListBox() -> VListBox""" |
54f9ee45 | 2120 | val = _windows_.new_PreVListBox(*args, **kwargs) |
d14a1e28 RD |
2121 | val.thisown = 1 |
2122 | return val | |
2123 | ||
2124 | class HtmlListBox(VListBox): | |
093d3ff1 | 2125 | """Proxy of C++ HtmlListBox class""" |
e811c8ce RD |
2126 | def __repr__(self): |
2127 | return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2128 | def __init__(self, *args, **kwargs): |
0df68c9f | 2129 | """ |
a95a7133 | 2130 | __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, |
b2dc1044 | 2131 | Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox |
0df68c9f | 2132 | """ |
54f9ee45 | 2133 | newobj = _windows_.new_HtmlListBox(*args, **kwargs) |
d14a1e28 RD |
2134 | self.this = newobj.this |
2135 | self.thisown = 1 | |
2136 | del newobj.thisown | |
2137 | self._setOORInfo(self);self._setCallbackInfo(self, HtmlListBox) | |
e811c8ce RD |
2138 | |
2139 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 2140 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 2141 | return _windows_.HtmlListBox__setCallbackInfo(*args, **kwargs) |
e811c8ce RD |
2142 | |
2143 | def Create(*args, **kwargs): | |
0df68c9f | 2144 | """ |
a95a7133 | 2145 | Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, |
b2dc1044 | 2146 | Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool |
0df68c9f | 2147 | """ |
54f9ee45 | 2148 | return _windows_.HtmlListBox_Create(*args, **kwargs) |
e811c8ce RD |
2149 | |
2150 | def RefreshAll(*args, **kwargs): | |
a95a7133 | 2151 | """RefreshAll(self)""" |
54f9ee45 | 2152 | return _windows_.HtmlListBox_RefreshAll(*args, **kwargs) |
e811c8ce RD |
2153 | |
2154 | def SetItemCount(*args, **kwargs): | |
a95a7133 | 2155 | """SetItemCount(self, size_t count)""" |
54f9ee45 | 2156 | return _windows_.HtmlListBox_SetItemCount(*args, **kwargs) |
e811c8ce | 2157 | |
7fdaaabe RD |
2158 | def GetFileSystem(*args, **kwargs): |
2159 | """GetFileSystem(self) -> FileSystem""" | |
2160 | return _windows_.HtmlListBox_GetFileSystem(*args, **kwargs) | |
2161 | ||
d14a1e28 RD |
2162 | |
2163 | class HtmlListBoxPtr(HtmlListBox): | |
2164 | def __init__(self, this): | |
2165 | self.this = this | |
2166 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2167 | self.__class__ = HtmlListBox | |
54f9ee45 | 2168 | _windows_.HtmlListBox_swigregister(HtmlListBoxPtr) |
d14a1e28 RD |
2169 | |
2170 | def PreHtmlListBox(*args, **kwargs): | |
e811c8ce | 2171 | """PreHtmlListBox() -> HtmlListBox""" |
54f9ee45 | 2172 | val = _windows_.new_PreHtmlListBox(*args, **kwargs) |
d14a1e28 RD |
2173 | val.thisown = 1 |
2174 | return val | |
2175 | ||
2176 | #--------------------------------------------------------------------------- | |
2177 | ||
54f9ee45 | 2178 | class TaskBarIcon(_core.EvtHandler): |
093d3ff1 | 2179 | """Proxy of C++ TaskBarIcon class""" |
e811c8ce | 2180 | def __repr__(self): |
5e483524 | 2181 | return "<%s.%s; proxy of C++ wxPyTaskBarIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
d14a1e28 | 2182 | def __init__(self, *args, **kwargs): |
a95a7133 | 2183 | """__init__(self) -> TaskBarIcon""" |
54f9ee45 | 2184 | newobj = _windows_.new_TaskBarIcon(*args, **kwargs) |
d14a1e28 | 2185 | self.this = newobj.this |
8ab979d7 | 2186 | self.thisown = 1 |
d14a1e28 | 2187 | del newobj.thisown |
5e483524 RD |
2188 | self._setCallbackInfo(self, TaskBarIcon, 0) |
2189 | ||
7e08d4ef RD |
2190 | def __del__(self, destroy=_windows_.delete_TaskBarIcon): |
2191 | """__del__(self)""" | |
2192 | try: | |
2193 | if self.thisown: destroy(self) | |
2194 | except: pass | |
2195 | ||
5e483524 RD |
2196 | def _setCallbackInfo(*args, **kwargs): |
2197 | """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)""" | |
2198 | return _windows_.TaskBarIcon__setCallbackInfo(*args, **kwargs) | |
e811c8ce | 2199 | |
74a57fcd RD |
2200 | def Destroy(*args, **kwargs): |
2201 | """ | |
a95a7133 | 2202 | Destroy(self) |
74a57fcd RD |
2203 | |
2204 | Deletes the C++ object this Python object is a proxy for. | |
2205 | """ | |
7e08d4ef RD |
2206 | val = _windows_.TaskBarIcon_Destroy(*args, **kwargs) |
2207 | args[0].thisown = 0 | |
2208 | return val | |
74a57fcd | 2209 | |
e811c8ce | 2210 | def IsOk(*args, **kwargs): |
a95a7133 | 2211 | """IsOk(self) -> bool""" |
54f9ee45 | 2212 | return _windows_.TaskBarIcon_IsOk(*args, **kwargs) |
e811c8ce | 2213 | |
4276dc52 | 2214 | def __nonzero__(self): return self.IsOk() |
e811c8ce | 2215 | def IsIconInstalled(*args, **kwargs): |
a95a7133 | 2216 | """IsIconInstalled(self) -> bool""" |
54f9ee45 | 2217 | return _windows_.TaskBarIcon_IsIconInstalled(*args, **kwargs) |
e811c8ce RD |
2218 | |
2219 | def SetIcon(*args, **kwargs): | |
a95a7133 | 2220 | """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool""" |
54f9ee45 | 2221 | return _windows_.TaskBarIcon_SetIcon(*args, **kwargs) |
e811c8ce RD |
2222 | |
2223 | def RemoveIcon(*args, **kwargs): | |
a95a7133 | 2224 | """RemoveIcon(self) -> bool""" |
54f9ee45 | 2225 | return _windows_.TaskBarIcon_RemoveIcon(*args, **kwargs) |
e811c8ce RD |
2226 | |
2227 | def PopupMenu(*args, **kwargs): | |
a95a7133 | 2228 | """PopupMenu(self, Menu menu) -> bool""" |
54f9ee45 | 2229 | return _windows_.TaskBarIcon_PopupMenu(*args, **kwargs) |
e811c8ce | 2230 | |
8ab979d7 | 2231 | |
d14a1e28 RD |
2232 | class TaskBarIconPtr(TaskBarIcon): |
2233 | def __init__(self, this): | |
2234 | self.this = this | |
2235 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2236 | self.__class__ = TaskBarIcon | |
54f9ee45 | 2237 | _windows_.TaskBarIcon_swigregister(TaskBarIconPtr) |
d14a1e28 | 2238 | |
54f9ee45 | 2239 | class TaskBarIconEvent(_core.Event): |
093d3ff1 | 2240 | """Proxy of C++ TaskBarIconEvent class""" |
e811c8ce RD |
2241 | def __repr__(self): |
2242 | return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2243 | def __init__(self, *args, **kwargs): |
5e483524 | 2244 | """__init__(self, wxEventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent""" |
54f9ee45 | 2245 | newobj = _windows_.new_TaskBarIconEvent(*args, **kwargs) |
d14a1e28 RD |
2246 | self.this = newobj.this |
2247 | self.thisown = 1 | |
2248 | del newobj.thisown | |
8ab979d7 | 2249 | |
d14a1e28 RD |
2250 | class TaskBarIconEventPtr(TaskBarIconEvent): |
2251 | def __init__(self, this): | |
2252 | self.this = this | |
2253 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2254 | self.__class__ = TaskBarIconEvent | |
54f9ee45 RD |
2255 | _windows_.TaskBarIconEvent_swigregister(TaskBarIconEventPtr) |
2256 | ||
2257 | wxEVT_TASKBAR_MOVE = _windows_.wxEVT_TASKBAR_MOVE | |
2258 | wxEVT_TASKBAR_LEFT_DOWN = _windows_.wxEVT_TASKBAR_LEFT_DOWN | |
2259 | wxEVT_TASKBAR_LEFT_UP = _windows_.wxEVT_TASKBAR_LEFT_UP | |
2260 | wxEVT_TASKBAR_RIGHT_DOWN = _windows_.wxEVT_TASKBAR_RIGHT_DOWN | |
2261 | wxEVT_TASKBAR_RIGHT_UP = _windows_.wxEVT_TASKBAR_RIGHT_UP | |
2262 | wxEVT_TASKBAR_LEFT_DCLICK = _windows_.wxEVT_TASKBAR_LEFT_DCLICK | |
2263 | wxEVT_TASKBAR_RIGHT_DCLICK = _windows_.wxEVT_TASKBAR_RIGHT_DCLICK | |
d14a1e28 RD |
2264 | EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE ) |
2265 | EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN ) | |
2266 | EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP ) | |
2267 | EVT_TASKBAR_RIGHT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN ) | |
2268 | EVT_TASKBAR_RIGHT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP ) | |
2269 | EVT_TASKBAR_LEFT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK ) | |
2270 | EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK ) | |
2271 | ||
2272 | #--------------------------------------------------------------------------- | |
2273 | ||
54f9ee45 | 2274 | class ColourData(_core.Object): |
66c033b4 RD |
2275 | """ |
2276 | This class holds a variety of information related to the colour | |
03e37cd5 RD |
2277 | chooser dialog, used to transfer settings and results to and from the |
2278 | `wx.ColourDialog`. | |
66c033b4 | 2279 | """ |
e811c8ce RD |
2280 | def __repr__(self): |
2281 | return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2282 | def __init__(self, *args, **kwargs): |
fcafa8a9 | 2283 | """ |
a95a7133 | 2284 | __init__(self) -> ColourData |
fcafa8a9 RD |
2285 | |
2286 | Constructor, sets default values. | |
2287 | """ | |
54f9ee45 | 2288 | newobj = _windows_.new_ColourData(*args, **kwargs) |
d14a1e28 RD |
2289 | self.this = newobj.this |
2290 | self.thisown = 1 | |
2291 | del newobj.thisown | |
54f9ee45 | 2292 | def __del__(self, destroy=_windows_.delete_ColourData): |
a95a7133 | 2293 | """__del__(self)""" |
d14a1e28 RD |
2294 | try: |
2295 | if self.thisown: destroy(self) | |
2296 | except: pass | |
e811c8ce RD |
2297 | |
2298 | def GetChooseFull(*args, **kwargs): | |
fcafa8a9 | 2299 | """ |
a95a7133 | 2300 | GetChooseFull(self) -> bool |
fcafa8a9 | 2301 | |
66c033b4 RD |
2302 | Under Windows, determines whether the Windows colour dialog will |
2303 | display the full dialog with custom colour selection controls. Has no | |
2304 | meaning under other platforms. The default value is true. | |
fcafa8a9 | 2305 | """ |
54f9ee45 | 2306 | return _windows_.ColourData_GetChooseFull(*args, **kwargs) |
e811c8ce RD |
2307 | |
2308 | def GetColour(*args, **kwargs): | |
fcafa8a9 | 2309 | """ |
a95a7133 | 2310 | GetColour(self) -> Colour |
fcafa8a9 RD |
2311 | |
2312 | Gets the colour (pre)selected by the dialog. | |
2313 | """ | |
54f9ee45 | 2314 | return _windows_.ColourData_GetColour(*args, **kwargs) |
e811c8ce RD |
2315 | |
2316 | def GetCustomColour(*args, **kwargs): | |
fcafa8a9 | 2317 | """ |
a95a7133 | 2318 | GetCustomColour(self, int i) -> Colour |
fcafa8a9 | 2319 | |
66c033b4 RD |
2320 | Gets the i'th custom colour associated with the colour dialog. i |
2321 | should be an integer between 0 and 15. The default custom colours are | |
248ed943 | 2322 | all invalid colours. |
fcafa8a9 | 2323 | """ |
54f9ee45 | 2324 | return _windows_.ColourData_GetCustomColour(*args, **kwargs) |
e811c8ce RD |
2325 | |
2326 | def SetChooseFull(*args, **kwargs): | |
fcafa8a9 | 2327 | """ |
a95a7133 | 2328 | SetChooseFull(self, int flag) |
fcafa8a9 | 2329 | |
66c033b4 RD |
2330 | Under Windows, tells the Windows colour dialog to display the full |
2331 | dialog with custom colour selection controls. Under other platforms, | |
2332 | has no effect. The default value is true. | |
fcafa8a9 | 2333 | """ |
54f9ee45 | 2334 | return _windows_.ColourData_SetChooseFull(*args, **kwargs) |
e811c8ce RD |
2335 | |
2336 | def SetColour(*args, **kwargs): | |
fcafa8a9 | 2337 | """ |
a95a7133 | 2338 | SetColour(self, Colour colour) |
fcafa8a9 | 2339 | |
66c033b4 RD |
2340 | Sets the default colour for the colour dialog. The default colour is |
2341 | black. | |
fcafa8a9 | 2342 | """ |
54f9ee45 | 2343 | return _windows_.ColourData_SetColour(*args, **kwargs) |
e811c8ce RD |
2344 | |
2345 | def SetCustomColour(*args, **kwargs): | |
fcafa8a9 | 2346 | """ |
a95a7133 | 2347 | SetCustomColour(self, int i, Colour colour) |
fcafa8a9 | 2348 | |
66c033b4 | 2349 | Sets the i'th custom colour for the colour dialog. i should be an |
248ed943 | 2350 | integer between 0 and 15. The default custom colours are all invalid colours. |
fcafa8a9 | 2351 | """ |
54f9ee45 | 2352 | return _windows_.ColourData_SetCustomColour(*args, **kwargs) |
e811c8ce | 2353 | |
8ab979d7 | 2354 | |
d14a1e28 RD |
2355 | class ColourDataPtr(ColourData): |
2356 | def __init__(self, this): | |
2357 | self.this = this | |
2358 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2359 | self.__class__ = ColourData | |
54f9ee45 | 2360 | _windows_.ColourData_swigregister(ColourDataPtr) |
b2dc1044 RD |
2361 | FileSelectorPromptStr = cvar.FileSelectorPromptStr |
2362 | DirSelectorPromptStr = cvar.DirSelectorPromptStr | |
2363 | DirDialogNameStr = cvar.DirDialogNameStr | |
2364 | FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr | |
2365 | GetTextFromUserPromptStr = cvar.GetTextFromUserPromptStr | |
2366 | MessageBoxCaptionStr = cvar.MessageBoxCaptionStr | |
d14a1e28 RD |
2367 | |
2368 | class ColourDialog(Dialog): | |
fcafa8a9 | 2369 | """This class represents the colour chooser dialog.""" |
e811c8ce RD |
2370 | def __repr__(self): |
2371 | return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2372 | def __init__(self, *args, **kwargs): |
fcafa8a9 | 2373 | """ |
a95a7133 | 2374 | __init__(self, Window parent, ColourData data=None) -> ColourDialog |
fcafa8a9 | 2375 | |
66c033b4 RD |
2376 | Constructor. Pass a parent window, and optionally a `wx.ColourData`, |
2377 | which will be copied to the colour dialog's internal ColourData | |
2378 | instance. | |
fcafa8a9 | 2379 | """ |
54f9ee45 | 2380 | newobj = _windows_.new_ColourDialog(*args, **kwargs) |
d14a1e28 RD |
2381 | self.this = newobj.this |
2382 | self.thisown = 1 | |
2383 | del newobj.thisown | |
2384 | self._setOORInfo(self) | |
e811c8ce RD |
2385 | |
2386 | def GetColourData(*args, **kwargs): | |
fcafa8a9 | 2387 | """ |
a95a7133 | 2388 | GetColourData(self) -> ColourData |
e811c8ce | 2389 | |
66c033b4 | 2390 | Returns a reference to the `wx.ColourData` used by the dialog. |
fcafa8a9 | 2391 | """ |
54f9ee45 | 2392 | return _windows_.ColourDialog_GetColourData(*args, **kwargs) |
e811c8ce | 2393 | |
8ab979d7 | 2394 | |
d14a1e28 RD |
2395 | class ColourDialogPtr(ColourDialog): |
2396 | def __init__(self, this): | |
8ab979d7 | 2397 | self.this = this |
d14a1e28 RD |
2398 | if not hasattr(self,"thisown"): self.thisown = 0 |
2399 | self.__class__ = ColourDialog | |
54f9ee45 | 2400 | _windows_.ColourDialog_swigregister(ColourDialogPtr) |
d14a1e28 | 2401 | |
32fe5131 RD |
2402 | |
2403 | def GetColourFromUser(*args, **kwargs): | |
2404 | """ | |
2405 | GetColourFromUser(Window parent=(wxWindow *) NULL, Colour colInit=wxNullColour, | |
2406 | String caption=EmptyString) -> Colour | |
2407 | """ | |
2408 | return _windows_.GetColourFromUser(*args, **kwargs) | |
d14a1e28 | 2409 | class DirDialog(Dialog): |
66c033b4 RD |
2410 | """ |
2411 | wx.DirDialog allows the user to select a directory by browising the | |
2412 | file system. | |
66c033b4 | 2413 | """ |
e811c8ce RD |
2414 | def __repr__(self): |
2415 | return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2416 | def __init__(self, *args, **kwargs): |
0df68c9f | 2417 | """ |
a95a7133 | 2418 | __init__(self, Window parent, String message=DirSelectorPromptStr, |
196addbf RD |
2419 | String defaultPath=EmptyString, long style=0, |
2420 | Point pos=DefaultPosition, Size size=DefaultSize, | |
b2dc1044 | 2421 | String name=DirDialogNameStr) -> DirDialog |
fcafa8a9 RD |
2422 | |
2423 | Constructor. Use ShowModal method to show the dialog. | |
0df68c9f | 2424 | """ |
54f9ee45 | 2425 | newobj = _windows_.new_DirDialog(*args, **kwargs) |
d14a1e28 RD |
2426 | self.this = newobj.this |
2427 | self.thisown = 1 | |
2428 | del newobj.thisown | |
2429 | self._setOORInfo(self) | |
e811c8ce RD |
2430 | |
2431 | def GetPath(*args, **kwargs): | |
fcafa8a9 | 2432 | """ |
a95a7133 | 2433 | GetPath(self) -> String |
fcafa8a9 RD |
2434 | |
2435 | Returns the default or user-selected path. | |
2436 | """ | |
54f9ee45 | 2437 | return _windows_.DirDialog_GetPath(*args, **kwargs) |
e811c8ce RD |
2438 | |
2439 | def GetMessage(*args, **kwargs): | |
fcafa8a9 | 2440 | """ |
a95a7133 | 2441 | GetMessage(self) -> String |
fcafa8a9 RD |
2442 | |
2443 | Returns the message that will be displayed on the dialog. | |
2444 | """ | |
54f9ee45 | 2445 | return _windows_.DirDialog_GetMessage(*args, **kwargs) |
e811c8ce RD |
2446 | |
2447 | def GetStyle(*args, **kwargs): | |
fcafa8a9 | 2448 | """ |
a95a7133 | 2449 | GetStyle(self) -> long |
fcafa8a9 RD |
2450 | |
2451 | Returns the dialog style. | |
2452 | """ | |
54f9ee45 | 2453 | return _windows_.DirDialog_GetStyle(*args, **kwargs) |
e811c8ce RD |
2454 | |
2455 | def SetMessage(*args, **kwargs): | |
fcafa8a9 | 2456 | """ |
a95a7133 | 2457 | SetMessage(self, String message) |
fcafa8a9 RD |
2458 | |
2459 | Sets the message that will be displayed on the dialog. | |
2460 | """ | |
54f9ee45 | 2461 | return _windows_.DirDialog_SetMessage(*args, **kwargs) |
e811c8ce RD |
2462 | |
2463 | def SetPath(*args, **kwargs): | |
fcafa8a9 | 2464 | """ |
a95a7133 | 2465 | SetPath(self, String path) |
e811c8ce | 2466 | |
fcafa8a9 RD |
2467 | Sets the default path. |
2468 | """ | |
54f9ee45 | 2469 | return _windows_.DirDialog_SetPath(*args, **kwargs) |
e811c8ce | 2470 | |
d14a1e28 RD |
2471 | |
2472 | class DirDialogPtr(DirDialog): | |
2473 | def __init__(self, this): | |
2474 | self.this = this | |
2475 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2476 | self.__class__ = DirDialog | |
54f9ee45 | 2477 | _windows_.DirDialog_swigregister(DirDialogPtr) |
d14a1e28 RD |
2478 | |
2479 | class FileDialog(Dialog): | |
66c033b4 RD |
2480 | """ |
2481 | wx.FileDialog allows the user to select one or more files from the | |
2482 | filesystem. | |
66c033b4 | 2483 | """ |
e811c8ce RD |
2484 | def __repr__(self): |
2485 | return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2486 | def __init__(self, *args, **kwargs): |
0df68c9f | 2487 | """ |
a95a7133 | 2488 | __init__(self, Window parent, String message=FileSelectorPromptStr, |
196addbf | 2489 | String defaultDir=EmptyString, String defaultFile=EmptyString, |
b2dc1044 RD |
2490 | String wildcard=FileSelectorDefaultWildcardStr, |
2491 | long style=0, Point pos=DefaultPosition) -> FileDialog | |
fcafa8a9 RD |
2492 | |
2493 | Constructor. Use ShowModal method to show the dialog. | |
0df68c9f | 2494 | """ |
54f9ee45 | 2495 | newobj = _windows_.new_FileDialog(*args, **kwargs) |
d14a1e28 | 2496 | self.this = newobj.this |
8ab979d7 | 2497 | self.thisown = 1 |
d14a1e28 | 2498 | del newobj.thisown |
0220cbc1 | 2499 | self._setOORInfo(self) |
e811c8ce RD |
2500 | |
2501 | def SetMessage(*args, **kwargs): | |
fcafa8a9 | 2502 | """ |
a95a7133 | 2503 | SetMessage(self, String message) |
fcafa8a9 RD |
2504 | |
2505 | Sets the message that will be displayed on the dialog. | |
2506 | """ | |
54f9ee45 | 2507 | return _windows_.FileDialog_SetMessage(*args, **kwargs) |
e811c8ce RD |
2508 | |
2509 | def SetPath(*args, **kwargs): | |
fcafa8a9 | 2510 | """ |
a95a7133 | 2511 | SetPath(self, String path) |
fcafa8a9 | 2512 | |
66c033b4 RD |
2513 | Sets the path (the combined directory and filename that will be |
2514 | returned when the dialog is dismissed). | |
fcafa8a9 | 2515 | """ |
54f9ee45 | 2516 | return _windows_.FileDialog_SetPath(*args, **kwargs) |
e811c8ce RD |
2517 | |
2518 | def SetDirectory(*args, **kwargs): | |
fcafa8a9 | 2519 | """ |
a95a7133 | 2520 | SetDirectory(self, String dir) |
fcafa8a9 RD |
2521 | |
2522 | Sets the default directory. | |
2523 | """ | |
54f9ee45 | 2524 | return _windows_.FileDialog_SetDirectory(*args, **kwargs) |
e811c8ce RD |
2525 | |
2526 | def SetFilename(*args, **kwargs): | |
fcafa8a9 | 2527 | """ |
a95a7133 | 2528 | SetFilename(self, String name) |
fcafa8a9 RD |
2529 | |
2530 | Sets the default filename. | |
2531 | """ | |
54f9ee45 | 2532 | return _windows_.FileDialog_SetFilename(*args, **kwargs) |
e811c8ce RD |
2533 | |
2534 | def SetWildcard(*args, **kwargs): | |
fcafa8a9 | 2535 | """ |
a95a7133 | 2536 | SetWildcard(self, String wildCard) |
fcafa8a9 | 2537 | |
66c033b4 RD |
2538 | Sets the wildcard, which can contain multiple file types, for |
2539 | example:: | |
2540 | ||
fcafa8a9 | 2541 | "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif" |
66c033b4 | 2542 | |
fcafa8a9 | 2543 | """ |
54f9ee45 | 2544 | return _windows_.FileDialog_SetWildcard(*args, **kwargs) |
e811c8ce RD |
2545 | |
2546 | def SetStyle(*args, **kwargs): | |
fcafa8a9 | 2547 | """ |
a95a7133 | 2548 | SetStyle(self, long style) |
fcafa8a9 RD |
2549 | |
2550 | Sets the dialog style. | |
2551 | """ | |
54f9ee45 | 2552 | return _windows_.FileDialog_SetStyle(*args, **kwargs) |
e811c8ce RD |
2553 | |
2554 | def SetFilterIndex(*args, **kwargs): | |
fcafa8a9 | 2555 | """ |
a95a7133 | 2556 | SetFilterIndex(self, int filterIndex) |
fcafa8a9 RD |
2557 | |
2558 | Sets the default filter index, starting from zero. | |
2559 | """ | |
54f9ee45 | 2560 | return _windows_.FileDialog_SetFilterIndex(*args, **kwargs) |
e811c8ce RD |
2561 | |
2562 | def GetMessage(*args, **kwargs): | |
fcafa8a9 | 2563 | """ |
a95a7133 | 2564 | GetMessage(self) -> String |
fcafa8a9 RD |
2565 | |
2566 | Returns the message that will be displayed on the dialog. | |
2567 | """ | |
54f9ee45 | 2568 | return _windows_.FileDialog_GetMessage(*args, **kwargs) |
e811c8ce RD |
2569 | |
2570 | def GetPath(*args, **kwargs): | |
fcafa8a9 | 2571 | """ |
a95a7133 | 2572 | GetPath(self) -> String |
fcafa8a9 RD |
2573 | |
2574 | Returns the full path (directory and filename) of the selected file. | |
2575 | """ | |
54f9ee45 | 2576 | return _windows_.FileDialog_GetPath(*args, **kwargs) |
e811c8ce RD |
2577 | |
2578 | def GetDirectory(*args, **kwargs): | |
fcafa8a9 | 2579 | """ |
a95a7133 | 2580 | GetDirectory(self) -> String |
fcafa8a9 RD |
2581 | |
2582 | Returns the default directory. | |
2583 | """ | |
54f9ee45 | 2584 | return _windows_.FileDialog_GetDirectory(*args, **kwargs) |
e811c8ce RD |
2585 | |
2586 | def GetFilename(*args, **kwargs): | |
fcafa8a9 | 2587 | """ |
a95a7133 | 2588 | GetFilename(self) -> String |
fcafa8a9 RD |
2589 | |
2590 | Returns the default filename. | |
2591 | """ | |
54f9ee45 | 2592 | return _windows_.FileDialog_GetFilename(*args, **kwargs) |
e811c8ce RD |
2593 | |
2594 | def GetWildcard(*args, **kwargs): | |
fcafa8a9 | 2595 | """ |
a95a7133 | 2596 | GetWildcard(self) -> String |
fcafa8a9 RD |
2597 | |
2598 | Returns the file dialog wildcard. | |
2599 | """ | |
54f9ee45 | 2600 | return _windows_.FileDialog_GetWildcard(*args, **kwargs) |
e811c8ce RD |
2601 | |
2602 | def GetStyle(*args, **kwargs): | |
fcafa8a9 | 2603 | """ |
a95a7133 | 2604 | GetStyle(self) -> long |
fcafa8a9 RD |
2605 | |
2606 | Returns the dialog style. | |
2607 | """ | |
54f9ee45 | 2608 | return _windows_.FileDialog_GetStyle(*args, **kwargs) |
e811c8ce RD |
2609 | |
2610 | def GetFilterIndex(*args, **kwargs): | |
fcafa8a9 | 2611 | """ |
a95a7133 | 2612 | GetFilterIndex(self) -> int |
fcafa8a9 RD |
2613 | |
2614 | Returns the index into the list of filters supplied, optionally, in | |
2615 | the wildcard parameter. Before the dialog is shown, this is the index | |
66c033b4 RD |
2616 | which will be used when the dialog is first displayed. After the |
2617 | dialog is shown, this is the index selected by the user. | |
fcafa8a9 | 2618 | """ |
54f9ee45 | 2619 | return _windows_.FileDialog_GetFilterIndex(*args, **kwargs) |
e811c8ce RD |
2620 | |
2621 | def GetFilenames(*args, **kwargs): | |
fcafa8a9 | 2622 | """ |
a95a7133 | 2623 | GetFilenames(self) -> PyObject |
fcafa8a9 | 2624 | |
66c033b4 RD |
2625 | Returns a list of filenames chosen in the dialog. This function |
2626 | should only be used with the dialogs which have wx.MULTIPLE style, use | |
fcafa8a9 RD |
2627 | GetFilename for the others. |
2628 | """ | |
54f9ee45 | 2629 | return _windows_.FileDialog_GetFilenames(*args, **kwargs) |
e811c8ce RD |
2630 | |
2631 | def GetPaths(*args, **kwargs): | |
fcafa8a9 | 2632 | """ |
a95a7133 | 2633 | GetPaths(self) -> PyObject |
fcafa8a9 RD |
2634 | |
2635 | Fills the array paths with the full paths of the files chosen. This | |
66c033b4 RD |
2636 | function should only be used with the dialogs which have wx.MULTIPLE |
2637 | style, use GetPath for the others. | |
fcafa8a9 | 2638 | """ |
54f9ee45 | 2639 | return _windows_.FileDialog_GetPaths(*args, **kwargs) |
e811c8ce | 2640 | |
8ab979d7 | 2641 | |
d14a1e28 RD |
2642 | class FileDialogPtr(FileDialog): |
2643 | def __init__(self, this): | |
2644 | self.this = this | |
2645 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2646 | self.__class__ = FileDialog | |
54f9ee45 | 2647 | _windows_.FileDialog_swigregister(FileDialogPtr) |
d14a1e28 | 2648 | |
54f9ee45 | 2649 | CHOICEDLG_STYLE = _windows_.CHOICEDLG_STYLE |
d14a1e28 | 2650 | class MultiChoiceDialog(Dialog): |
e498079e | 2651 | """A simple dialog with a multi selection listbox.""" |
e811c8ce RD |
2652 | def __repr__(self): |
2653 | return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2654 | def __init__(self, *args, **kwargs): |
0df68c9f | 2655 | """ |
034e3677 | 2656 | __init__(self, Window parent, String message, String caption, |
5dce5a9a | 2657 | List choices=EmptyList, long style=CHOICEDLG_STYLE, |
0df68c9f | 2658 | Point pos=DefaultPosition) -> MultiChoiceDialog |
e498079e | 2659 | |
034e3677 RD |
2660 | Constructor. Use the `ShowModal` method to show the dialog. |
2661 | ||
2662 | :param parent: The parent window. | |
2663 | :param message: Text to display above the list of selections. | |
2664 | :param caption: Text to use in the title bar of the dialog. | |
2665 | :param choices: A list of strings or unicode objects that the | |
2666 | user is allowed to choose from. | |
2667 | :param style: Styles to apply to the dialog. The default value is | |
2668 | equivallent to wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.OK|wx.CANCEL|wx.CENTER. | |
2669 | :param pos: Where to position the dialog (not used on Windows) | |
2670 | ||
2671 | ||
0df68c9f | 2672 | """ |
54f9ee45 | 2673 | newobj = _windows_.new_MultiChoiceDialog(*args, **kwargs) |
d14a1e28 RD |
2674 | self.this = newobj.this |
2675 | self.thisown = 1 | |
2676 | del newobj.thisown | |
2677 | self._setOORInfo(self) | |
e811c8ce RD |
2678 | |
2679 | def SetSelections(*args, **kwargs): | |
fd2dc343 RD |
2680 | """ |
2681 | SetSelections(List selections) | |
2682 | ||
2683 | Specify the items in the list that should be selected, using a list of | |
034e3677 RD |
2684 | integers. The list should specify the indexes of the items that |
2685 | should be selected. | |
fd2dc343 | 2686 | """ |
54f9ee45 | 2687 | return _windows_.MultiChoiceDialog_SetSelections(*args, **kwargs) |
e811c8ce RD |
2688 | |
2689 | def GetSelections(*args, **kwargs): | |
e498079e RD |
2690 | """ |
2691 | GetSelections() -> [selections] | |
2692 | ||
2693 | Returns a list of integers representing the items that are selected. | |
034e3677 | 2694 | If an item is selected then its index will appear in the list. |
e498079e | 2695 | """ |
54f9ee45 | 2696 | return _windows_.MultiChoiceDialog_GetSelections(*args, **kwargs) |
e811c8ce | 2697 | |
8ab979d7 | 2698 | |
d14a1e28 RD |
2699 | class MultiChoiceDialogPtr(MultiChoiceDialog): |
2700 | def __init__(self, this): | |
2701 | self.this = this | |
2702 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2703 | self.__class__ = MultiChoiceDialog | |
54f9ee45 | 2704 | _windows_.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr) |
d14a1e28 RD |
2705 | |
2706 | class SingleChoiceDialog(Dialog): | |
e498079e | 2707 | """A simple dialog with a single selection listbox.""" |
e811c8ce RD |
2708 | def __repr__(self): |
2709 | return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2710 | def __init__(self, *args, **kwargs): |
0df68c9f | 2711 | """ |
e498079e | 2712 | __init__(Window parent, String message, String caption, |
5dce5a9a | 2713 | List choices=EmptyList, long style=CHOICEDLG_STYLE, |
0df68c9f | 2714 | Point pos=DefaultPosition) -> SingleChoiceDialog |
e498079e RD |
2715 | |
2716 | Constructor. Use ShowModal method to show the dialog. | |
0df68c9f | 2717 | """ |
54f9ee45 | 2718 | newobj = _windows_.new_SingleChoiceDialog(*args, **kwargs) |
d14a1e28 RD |
2719 | self.this = newobj.this |
2720 | self.thisown = 1 | |
2721 | del newobj.thisown | |
2722 | self._setOORInfo(self) | |
e811c8ce RD |
2723 | |
2724 | def GetSelection(*args, **kwargs): | |
e498079e | 2725 | """ |
a95a7133 | 2726 | GetSelection(self) -> int |
e498079e RD |
2727 | |
2728 | Get the index of teh currently selected item. | |
2729 | """ | |
54f9ee45 | 2730 | return _windows_.SingleChoiceDialog_GetSelection(*args, **kwargs) |
e811c8ce RD |
2731 | |
2732 | def GetStringSelection(*args, **kwargs): | |
e498079e | 2733 | """ |
a95a7133 | 2734 | GetStringSelection(self) -> String |
e498079e RD |
2735 | |
2736 | Returns the string value of the currently selected item | |
2737 | """ | |
54f9ee45 | 2738 | return _windows_.SingleChoiceDialog_GetStringSelection(*args, **kwargs) |
e811c8ce RD |
2739 | |
2740 | def SetSelection(*args, **kwargs): | |
e498079e | 2741 | """ |
a95a7133 | 2742 | SetSelection(self, int sel) |
e811c8ce | 2743 | |
e498079e RD |
2744 | Set the current selected item to sel |
2745 | """ | |
54f9ee45 | 2746 | return _windows_.SingleChoiceDialog_SetSelection(*args, **kwargs) |
e811c8ce | 2747 | |
8ab979d7 | 2748 | |
d14a1e28 RD |
2749 | class SingleChoiceDialogPtr(SingleChoiceDialog): |
2750 | def __init__(self, this): | |
2751 | self.this = this | |
2752 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2753 | self.__class__ = SingleChoiceDialog | |
54f9ee45 | 2754 | _windows_.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr) |
d14a1e28 | 2755 | |
1823fbb4 | 2756 | TextEntryDialogStyle = _windows_.TextEntryDialogStyle |
d14a1e28 | 2757 | class TextEntryDialog(Dialog): |
e498079e | 2758 | """A dialog with text control, [ok] and [cancel] buttons""" |
e811c8ce RD |
2759 | def __repr__(self): |
2760 | return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2761 | def __init__(self, *args, **kwargs): |
0df68c9f | 2762 | """ |
a95a7133 | 2763 | __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr, |
196addbf | 2764 | String defaultValue=EmptyString, |
1823fbb4 | 2765 | long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog |
e498079e RD |
2766 | |
2767 | Constructor. Use ShowModal method to show the dialog. | |
0df68c9f | 2768 | """ |
54f9ee45 | 2769 | newobj = _windows_.new_TextEntryDialog(*args, **kwargs) |
d14a1e28 RD |
2770 | self.this = newobj.this |
2771 | self.thisown = 1 | |
2772 | del newobj.thisown | |
2773 | self._setOORInfo(self) | |
e811c8ce RD |
2774 | |
2775 | def GetValue(*args, **kwargs): | |
e498079e | 2776 | """ |
a95a7133 | 2777 | GetValue(self) -> String |
e498079e RD |
2778 | |
2779 | Returns the text that the user has entered if the user has pressed OK, | |
2780 | or the original value if the user has pressed Cancel. | |
2781 | """ | |
54f9ee45 | 2782 | return _windows_.TextEntryDialog_GetValue(*args, **kwargs) |
e811c8ce RD |
2783 | |
2784 | def SetValue(*args, **kwargs): | |
e498079e | 2785 | """ |
a95a7133 | 2786 | SetValue(self, String value) |
e811c8ce | 2787 | |
e498079e RD |
2788 | Sets the default text value. |
2789 | """ | |
54f9ee45 | 2790 | return _windows_.TextEntryDialog_SetValue(*args, **kwargs) |
e811c8ce | 2791 | |
8ab979d7 | 2792 | |
d14a1e28 RD |
2793 | class TextEntryDialogPtr(TextEntryDialog): |
2794 | def __init__(self, this): | |
8ab979d7 | 2795 | self.this = this |
d14a1e28 RD |
2796 | if not hasattr(self,"thisown"): self.thisown = 0 |
2797 | self.__class__ = TextEntryDialog | |
54f9ee45 | 2798 | _windows_.TextEntryDialog_swigregister(TextEntryDialogPtr) |
d14a1e28 | 2799 | |
d3b6e4ff | 2800 | class PasswordEntryDialog(TextEntryDialog): |
093d3ff1 | 2801 | """Proxy of C++ PasswordEntryDialog class""" |
d3b6e4ff RD |
2802 | def __repr__(self): |
2803 | return "<%s.%s; proxy of C++ wxPasswordEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2804 | def __init__(self, *args, **kwargs): | |
2805 | """ | |
2806 | __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr, | |
2807 | String value=EmptyString, | |
1823fbb4 | 2808 | long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog |
d3b6e4ff RD |
2809 | """ |
2810 | newobj = _windows_.new_PasswordEntryDialog(*args, **kwargs) | |
2811 | self.this = newobj.this | |
2812 | self.thisown = 1 | |
2813 | del newobj.thisown | |
2814 | ||
2815 | class PasswordEntryDialogPtr(PasswordEntryDialog): | |
2816 | def __init__(self, this): | |
2817 | self.this = this | |
2818 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2819 | self.__class__ = PasswordEntryDialog | |
2820 | _windows_.PasswordEntryDialog_swigregister(PasswordEntryDialogPtr) | |
2821 | GetPasswordFromUserPromptStr = cvar.GetPasswordFromUserPromptStr | |
2822 | ||
54f9ee45 | 2823 | class FontData(_core.Object): |
66c033b4 RD |
2824 | """ |
2825 | This class holds a variety of information related to font dialogs and | |
2826 | is used to transfer settings to and results from a `wx.FontDialog`. | |
2827 | """ | |
e811c8ce RD |
2828 | def __repr__(self): |
2829 | return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2830 | def __init__(self, *args, **kwargs): |
e498079e | 2831 | """ |
a95a7133 | 2832 | __init__(self) -> FontData |
e498079e | 2833 | |
66c033b4 RD |
2834 | This class holds a variety of information related to font dialogs and |
2835 | is used to transfer settings to and results from a `wx.FontDialog`. | |
e498079e | 2836 | """ |
54f9ee45 | 2837 | newobj = _windows_.new_FontData(*args, **kwargs) |
d14a1e28 RD |
2838 | self.this = newobj.this |
2839 | self.thisown = 1 | |
2840 | del newobj.thisown | |
54f9ee45 | 2841 | def __del__(self, destroy=_windows_.delete_FontData): |
a95a7133 | 2842 | """__del__(self)""" |
d14a1e28 RD |
2843 | try: |
2844 | if self.thisown: destroy(self) | |
2845 | except: pass | |
e811c8ce RD |
2846 | |
2847 | def EnableEffects(*args, **kwargs): | |
e498079e | 2848 | """ |
a95a7133 | 2849 | EnableEffects(self, bool enable) |
e498079e | 2850 | |
66c033b4 RD |
2851 | Enables or disables 'effects' under MS Windows only. This refers to |
2852 | the controls for manipulating colour, strikeout and underline | |
e498079e RD |
2853 | properties. The default value is true. |
2854 | """ | |
54f9ee45 | 2855 | return _windows_.FontData_EnableEffects(*args, **kwargs) |
e811c8ce RD |
2856 | |
2857 | def GetAllowSymbols(*args, **kwargs): | |
e498079e | 2858 | """ |
a95a7133 | 2859 | GetAllowSymbols(self) -> bool |
e498079e | 2860 | |
66c033b4 RD |
2861 | Under MS Windows, returns a flag determining whether symbol fonts can |
2862 | be selected. Has no effect on other platforms. The default value is | |
2863 | true. | |
e498079e | 2864 | """ |
54f9ee45 | 2865 | return _windows_.FontData_GetAllowSymbols(*args, **kwargs) |
e811c8ce RD |
2866 | |
2867 | def GetColour(*args, **kwargs): | |
e498079e | 2868 | """ |
a95a7133 | 2869 | GetColour(self) -> Colour |
e498079e | 2870 | |
66c033b4 RD |
2871 | Gets the colour associated with the font dialog. The default value is |
2872 | black. | |
e498079e | 2873 | """ |
54f9ee45 | 2874 | return _windows_.FontData_GetColour(*args, **kwargs) |
e811c8ce RD |
2875 | |
2876 | def GetChosenFont(*args, **kwargs): | |
e498079e | 2877 | """ |
a95a7133 | 2878 | GetChosenFont(self) -> Font |
e498079e RD |
2879 | |
2880 | Gets the font chosen by the user. | |
2881 | """ | |
54f9ee45 | 2882 | return _windows_.FontData_GetChosenFont(*args, **kwargs) |
e811c8ce RD |
2883 | |
2884 | def GetEnableEffects(*args, **kwargs): | |
e498079e | 2885 | """ |
a95a7133 | 2886 | GetEnableEffects(self) -> bool |
e498079e RD |
2887 | |
2888 | Determines whether 'effects' are enabled under Windows. | |
2889 | """ | |
54f9ee45 | 2890 | return _windows_.FontData_GetEnableEffects(*args, **kwargs) |
e811c8ce RD |
2891 | |
2892 | def GetInitialFont(*args, **kwargs): | |
e498079e | 2893 | """ |
a95a7133 | 2894 | GetInitialFont(self) -> Font |
e498079e | 2895 | |
66c033b4 RD |
2896 | Gets the font that will be initially used by the font dialog. This |
2897 | should have previously been set by the application. | |
e498079e | 2898 | """ |
54f9ee45 | 2899 | return _windows_.FontData_GetInitialFont(*args, **kwargs) |
e811c8ce RD |
2900 | |
2901 | def GetShowHelp(*args, **kwargs): | |
e498079e | 2902 | """ |
a95a7133 | 2903 | GetShowHelp(self) -> bool |
e498079e | 2904 | |
66c033b4 RD |
2905 | Returns true if the Help button will be shown (Windows only). The |
2906 | default value is false. | |
e498079e | 2907 | """ |
54f9ee45 | 2908 | return _windows_.FontData_GetShowHelp(*args, **kwargs) |
e811c8ce RD |
2909 | |
2910 | def SetAllowSymbols(*args, **kwargs): | |
e498079e | 2911 | """ |
a95a7133 | 2912 | SetAllowSymbols(self, bool allowSymbols) |
e498079e | 2913 | |
66c033b4 RD |
2914 | Under MS Windows, determines whether symbol fonts can be selected. Has |
2915 | no effect on other platforms. The default value is true. | |
e498079e | 2916 | """ |
54f9ee45 | 2917 | return _windows_.FontData_SetAllowSymbols(*args, **kwargs) |
e811c8ce RD |
2918 | |
2919 | def SetChosenFont(*args, **kwargs): | |
e498079e | 2920 | """ |
a95a7133 | 2921 | SetChosenFont(self, Font font) |
e498079e | 2922 | |
66c033b4 RD |
2923 | Sets the font that will be returned to the user (normally for internal |
2924 | use only). | |
e498079e | 2925 | """ |
54f9ee45 | 2926 | return _windows_.FontData_SetChosenFont(*args, **kwargs) |
e811c8ce RD |
2927 | |
2928 | def SetColour(*args, **kwargs): | |
e498079e | 2929 | """ |
a95a7133 | 2930 | SetColour(self, Colour colour) |
e498079e | 2931 | |
66c033b4 RD |
2932 | Sets the colour that will be used for the font foreground colour. The |
2933 | default colour is black. | |
e498079e | 2934 | """ |
54f9ee45 | 2935 | return _windows_.FontData_SetColour(*args, **kwargs) |
e811c8ce RD |
2936 | |
2937 | def SetInitialFont(*args, **kwargs): | |
e498079e | 2938 | """ |
a95a7133 | 2939 | SetInitialFont(self, Font font) |
e498079e RD |
2940 | |
2941 | Sets the font that will be initially used by the font dialog. | |
2942 | """ | |
54f9ee45 | 2943 | return _windows_.FontData_SetInitialFont(*args, **kwargs) |
e811c8ce RD |
2944 | |
2945 | def SetRange(*args, **kwargs): | |
e498079e | 2946 | """ |
a95a7133 | 2947 | SetRange(self, int min, int max) |
e498079e | 2948 | |
66c033b4 RD |
2949 | Sets the valid range for the font point size (Windows only). The |
2950 | default is 0, 0 (unrestricted range). | |
e498079e | 2951 | """ |
54f9ee45 | 2952 | return _windows_.FontData_SetRange(*args, **kwargs) |
e811c8ce RD |
2953 | |
2954 | def SetShowHelp(*args, **kwargs): | |
e498079e | 2955 | """ |
a95a7133 | 2956 | SetShowHelp(self, bool showHelp) |
e498079e | 2957 | |
66c033b4 RD |
2958 | Determines whether the Help button will be displayed in the font |
2959 | dialog (Windows only). The default value is false. | |
e498079e | 2960 | """ |
54f9ee45 | 2961 | return _windows_.FontData_SetShowHelp(*args, **kwargs) |
e811c8ce | 2962 | |
d14a1e28 RD |
2963 | |
2964 | class FontDataPtr(FontData): | |
2965 | def __init__(self, this): | |
2966 | self.this = this | |
2967 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2968 | self.__class__ = FontData | |
54f9ee45 | 2969 | _windows_.FontData_swigregister(FontDataPtr) |
d14a1e28 RD |
2970 | |
2971 | class FontDialog(Dialog): | |
66c033b4 RD |
2972 | """ |
2973 | wx.FontDialog allows the user to select a system font and its attributes. | |
2974 | ||
2975 | :see: `wx.FontData` | |
2976 | ||
2977 | """ | |
e811c8ce RD |
2978 | def __repr__(self): |
2979 | return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
15afbcd0 | 2980 | def __init__(self, *args, **kwargs): |
e498079e | 2981 | """ |
a95a7133 | 2982 | __init__(self, Window parent, FontData data) -> FontDialog |
e498079e | 2983 | |
66c033b4 RD |
2984 | Constructor. Pass a parent window and the `wx.FontData` object to be |
2985 | used to initialize the dialog controls. Call `ShowModal` to display | |
2986 | the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the | |
2987 | results with via the `wx.FontData` returned by `GetFontData`. | |
e498079e | 2988 | """ |
54f9ee45 | 2989 | newobj = _windows_.new_FontDialog(*args, **kwargs) |
d14a1e28 | 2990 | self.this = newobj.this |
cf694132 | 2991 | self.thisown = 1 |
d14a1e28 RD |
2992 | del newobj.thisown |
2993 | self._setOORInfo(self) | |
e811c8ce RD |
2994 | |
2995 | def GetFontData(*args, **kwargs): | |
e498079e | 2996 | """ |
a95a7133 | 2997 | GetFontData(self) -> FontData |
e811c8ce | 2998 | |
66c033b4 RD |
2999 | Returns a reference to the internal `wx.FontData` used by the |
3000 | wx.FontDialog. | |
e498079e | 3001 | """ |
54f9ee45 | 3002 | return _windows_.FontDialog_GetFontData(*args, **kwargs) |
e811c8ce | 3003 | |
8ab979d7 | 3004 | |
d14a1e28 RD |
3005 | class FontDialogPtr(FontDialog): |
3006 | def __init__(self, this): | |
3007 | self.this = this | |
3008 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3009 | self.__class__ = FontDialog | |
54f9ee45 | 3010 | _windows_.FontDialog_swigregister(FontDialogPtr) |
d14a1e28 | 3011 | |
32fe5131 RD |
3012 | |
3013 | def GetFontFromUser(*args, **kwargs): | |
3014 | """GetFontFromUser(Window parent=None, Font fontInit=wxNullFont, String caption=EmptyString) -> Font""" | |
3015 | return _windows_.GetFontFromUser(*args, **kwargs) | |
d14a1e28 | 3016 | class MessageDialog(Dialog): |
e498079e | 3017 | """ |
66c033b4 RD |
3018 | This class provides a simple dialog that shows a single or multi-line |
3019 | message, with a choice of OK, Yes, No and/or Cancel buttons. | |
e498079e | 3020 | """ |
e811c8ce RD |
3021 | def __repr__(self): |
3022 | return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3023 | def __init__(self, *args, **kwargs): |
0df68c9f | 3024 | """ |
a95a7133 | 3025 | __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr, |
0df68c9f RD |
3026 | long style=wxOK|wxCANCEL|wxCENTRE, |
3027 | Point pos=DefaultPosition) -> MessageDialog | |
e498079e | 3028 | |
66c033b4 | 3029 | Constructor, use `ShowModal` to display the dialog. |
0df68c9f | 3030 | """ |
54f9ee45 | 3031 | newobj = _windows_.new_MessageDialog(*args, **kwargs) |
d14a1e28 RD |
3032 | self.this = newobj.this |
3033 | self.thisown = 1 | |
3034 | del newobj.thisown | |
3035 | self._setOORInfo(self) | |
e811c8ce | 3036 | |
8ab979d7 | 3037 | |
d14a1e28 RD |
3038 | class MessageDialogPtr(MessageDialog): |
3039 | def __init__(self, this): | |
3040 | self.this = this | |
3041 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3042 | self.__class__ = MessageDialog | |
54f9ee45 | 3043 | _windows_.MessageDialog_swigregister(MessageDialogPtr) |
d14a1e28 RD |
3044 | |
3045 | class ProgressDialog(Frame): | |
e498079e | 3046 | """ |
66c033b4 RD |
3047 | A dialog that shows a short message and a progress bar. Optionally, it |
3048 | can display an ABORT button. | |
e498079e | 3049 | """ |
e811c8ce RD |
3050 | def __repr__(self): |
3051 | return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3052 | def __init__(self, *args, **kwargs): |
0df68c9f | 3053 | """ |
a95a7133 | 3054 | __init__(self, String title, String message, int maximum=100, Window parent=None, |
196addbf | 3055 | int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog |
e498079e | 3056 | |
66c033b4 RD |
3057 | Constructor. Creates the dialog, displays it and disables user input |
3058 | for other windows, or, if wx.PD_APP_MODAL flag is not given, for its | |
3059 | parent window only. | |
0df68c9f | 3060 | """ |
54f9ee45 | 3061 | newobj = _windows_.new_ProgressDialog(*args, **kwargs) |
d14a1e28 RD |
3062 | self.this = newobj.this |
3063 | self.thisown = 1 | |
3064 | del newobj.thisown | |
3065 | self._setOORInfo(self) | |
e811c8ce RD |
3066 | |
3067 | def Update(*args, **kwargs): | |
e498079e | 3068 | """ |
a95a7133 | 3069 | Update(self, int value, String newmsg=EmptyString) -> bool |
e498079e | 3070 | |
66c033b4 | 3071 | Updates the dialog, setting the progress bar to the new value and, if |
6923d0a9 RD |
3072 | given changes the message above it. The value given should be less |
3073 | than or equal to the maximum value given to the constructor and the | |
e505d15e | 3074 | dialog is closed if it is equal to the maximum. Returns True unless |
6923d0a9 | 3075 | the Cancel button has been pressed. |
e498079e | 3076 | |
66c033b4 RD |
3077 | If false is returned, the application can either immediately destroy |
3078 | the dialog or ask the user for the confirmation and if the abort is | |
3079 | not confirmed the dialog may be resumed with Resume function. | |
e498079e | 3080 | """ |
54f9ee45 | 3081 | return _windows_.ProgressDialog_Update(*args, **kwargs) |
e811c8ce RD |
3082 | |
3083 | def Resume(*args, **kwargs): | |
e498079e | 3084 | """ |
a95a7133 | 3085 | Resume(self) |
e498079e | 3086 | |
66c033b4 RD |
3087 | Can be used to continue with the dialog, after the user had chosen to |
3088 | abort. | |
e498079e | 3089 | """ |
54f9ee45 | 3090 | return _windows_.ProgressDialog_Resume(*args, **kwargs) |
e811c8ce | 3091 | |
8ab979d7 | 3092 | |
d14a1e28 RD |
3093 | class ProgressDialogPtr(ProgressDialog): |
3094 | def __init__(self, this): | |
3095 | self.this = this | |
3096 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3097 | self.__class__ = ProgressDialog | |
54f9ee45 RD |
3098 | _windows_.ProgressDialog_swigregister(ProgressDialogPtr) |
3099 | ||
3100 | FR_DOWN = _windows_.FR_DOWN | |
3101 | FR_WHOLEWORD = _windows_.FR_WHOLEWORD | |
3102 | FR_MATCHCASE = _windows_.FR_MATCHCASE | |
3103 | FR_REPLACEDIALOG = _windows_.FR_REPLACEDIALOG | |
3104 | FR_NOUPDOWN = _windows_.FR_NOUPDOWN | |
3105 | FR_NOMATCHCASE = _windows_.FR_NOMATCHCASE | |
3106 | FR_NOWHOLEWORD = _windows_.FR_NOWHOLEWORD | |
3107 | wxEVT_COMMAND_FIND = _windows_.wxEVT_COMMAND_FIND | |
3108 | wxEVT_COMMAND_FIND_NEXT = _windows_.wxEVT_COMMAND_FIND_NEXT | |
3109 | wxEVT_COMMAND_FIND_REPLACE = _windows_.wxEVT_COMMAND_FIND_REPLACE | |
3110 | wxEVT_COMMAND_FIND_REPLACE_ALL = _windows_.wxEVT_COMMAND_FIND_REPLACE_ALL | |
3111 | wxEVT_COMMAND_FIND_CLOSE = _windows_.wxEVT_COMMAND_FIND_CLOSE | |
d14a1e28 RD |
3112 | EVT_FIND = wx.PyEventBinder( wxEVT_COMMAND_FIND, 1 ) |
3113 | EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_COMMAND_FIND_NEXT, 1 ) | |
3114 | EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE, 1 ) | |
3115 | EVT_FIND_REPLACE_ALL = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL, 1 ) | |
3116 | EVT_FIND_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE, 1 ) | |
3117 | ||
3118 | # For backwards compatibility. Should they be removed? | |
3119 | EVT_COMMAND_FIND = EVT_FIND | |
3120 | EVT_COMMAND_FIND_NEXT = EVT_FIND_NEXT | |
3121 | EVT_COMMAND_FIND_REPLACE = EVT_FIND_REPLACE | |
3122 | EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL | |
3123 | EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE | |
3124 | ||
54f9ee45 | 3125 | class FindDialogEvent(_core.CommandEvent): |
e498079e | 3126 | """Events for the FindReplaceDialog""" |
e811c8ce RD |
3127 | def __repr__(self): |
3128 | return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3129 | def __init__(self, *args, **kwargs): |
e498079e | 3130 | """ |
a95a7133 | 3131 | __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent |
e498079e RD |
3132 | |
3133 | Events for the FindReplaceDialog | |
3134 | """ | |
54f9ee45 | 3135 | newobj = _windows_.new_FindDialogEvent(*args, **kwargs) |
d14a1e28 RD |
3136 | self.this = newobj.this |
3137 | self.thisown = 1 | |
3138 | del newobj.thisown | |
e811c8ce | 3139 | def GetFlags(*args, **kwargs): |
e498079e | 3140 | """ |
a95a7133 | 3141 | GetFlags(self) -> int |
e498079e RD |
3142 | |
3143 | Get the currently selected flags: this is the combination of | |
3144 | wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags. | |
3145 | """ | |
54f9ee45 | 3146 | return _windows_.FindDialogEvent_GetFlags(*args, **kwargs) |
e811c8ce RD |
3147 | |
3148 | def GetFindString(*args, **kwargs): | |
e498079e | 3149 | """ |
a95a7133 | 3150 | GetFindString(self) -> String |
e498079e RD |
3151 | |
3152 | Return the string to find (never empty). | |
3153 | """ | |
54f9ee45 | 3154 | return _windows_.FindDialogEvent_GetFindString(*args, **kwargs) |
e811c8ce RD |
3155 | |
3156 | def GetReplaceString(*args, **kwargs): | |
e498079e | 3157 | """ |
a95a7133 | 3158 | GetReplaceString(self) -> String |
e498079e | 3159 | |
66c033b4 RD |
3160 | Return the string to replace the search string with (only for replace |
3161 | and replace all events). | |
e498079e | 3162 | """ |
54f9ee45 | 3163 | return _windows_.FindDialogEvent_GetReplaceString(*args, **kwargs) |
e811c8ce RD |
3164 | |
3165 | def GetDialog(*args, **kwargs): | |
e498079e | 3166 | """ |
a95a7133 | 3167 | GetDialog(self) -> FindReplaceDialog |
e498079e RD |
3168 | |
3169 | Return the pointer to the dialog which generated this event. | |
3170 | """ | |
54f9ee45 | 3171 | return _windows_.FindDialogEvent_GetDialog(*args, **kwargs) |
e811c8ce RD |
3172 | |
3173 | def SetFlags(*args, **kwargs): | |
a95a7133 | 3174 | """SetFlags(self, int flags)""" |
54f9ee45 | 3175 | return _windows_.FindDialogEvent_SetFlags(*args, **kwargs) |
e811c8ce RD |
3176 | |
3177 | def SetFindString(*args, **kwargs): | |
a95a7133 | 3178 | """SetFindString(self, String str)""" |
54f9ee45 | 3179 | return _windows_.FindDialogEvent_SetFindString(*args, **kwargs) |
e811c8ce RD |
3180 | |
3181 | def SetReplaceString(*args, **kwargs): | |
a95a7133 | 3182 | """SetReplaceString(self, String str)""" |
54f9ee45 | 3183 | return _windows_.FindDialogEvent_SetReplaceString(*args, **kwargs) |
e811c8ce | 3184 | |
8ab979d7 | 3185 | |
d14a1e28 RD |
3186 | class FindDialogEventPtr(FindDialogEvent): |
3187 | def __init__(self, this): | |
3188 | self.this = this | |
3189 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3190 | self.__class__ = FindDialogEvent | |
54f9ee45 | 3191 | _windows_.FindDialogEvent_swigregister(FindDialogEventPtr) |
d14a1e28 | 3192 | |
54f9ee45 | 3193 | class FindReplaceData(_core.Object): |
e498079e | 3194 | """ |
66c033b4 RD |
3195 | wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used |
3196 | to initialize the dialog with the default values and will keep the | |
3197 | last values from the dialog when it is closed. It is also updated each | |
3198 | time a `wx.FindDialogEvent` is generated so instead of using the | |
3199 | `wx.FindDialogEvent` methods you can also directly query this object. | |
e498079e | 3200 | |
66c033b4 RD |
3201 | Note that all SetXXX() methods may only be called before showing the |
3202 | dialog and calling them has no effect later. | |
e498079e | 3203 | """ |
e811c8ce RD |
3204 | def __repr__(self): |
3205 | return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3206 | def __init__(self, *args, **kwargs): |
e498079e | 3207 | """ |
a95a7133 | 3208 | __init__(self, int flags=0) -> FindReplaceData |
e498079e RD |
3209 | |
3210 | Constuctor initializes the flags to default value (0). | |
3211 | """ | |
54f9ee45 | 3212 | newobj = _windows_.new_FindReplaceData(*args, **kwargs) |
d14a1e28 RD |
3213 | self.this = newobj.this |
3214 | self.thisown = 1 | |
3215 | del newobj.thisown | |
54f9ee45 | 3216 | def __del__(self, destroy=_windows_.delete_FindReplaceData): |
a95a7133 | 3217 | """__del__(self)""" |
d14a1e28 RD |
3218 | try: |
3219 | if self.thisown: destroy(self) | |
3220 | except: pass | |
e811c8ce RD |
3221 | |
3222 | def GetFindString(*args, **kwargs): | |
e498079e | 3223 | """ |
a95a7133 | 3224 | GetFindString(self) -> String |
e498079e RD |
3225 | |
3226 | Get the string to find. | |
3227 | """ | |
54f9ee45 | 3228 | return _windows_.FindReplaceData_GetFindString(*args, **kwargs) |
e811c8ce RD |
3229 | |
3230 | def GetReplaceString(*args, **kwargs): | |
e498079e | 3231 | """ |
a95a7133 | 3232 | GetReplaceString(self) -> String |
e498079e RD |
3233 | |
3234 | Get the replacement string. | |
3235 | """ | |
54f9ee45 | 3236 | return _windows_.FindReplaceData_GetReplaceString(*args, **kwargs) |
e811c8ce RD |
3237 | |
3238 | def GetFlags(*args, **kwargs): | |
e498079e | 3239 | """ |
a95a7133 | 3240 | GetFlags(self) -> int |
e498079e RD |
3241 | |
3242 | Get the combination of flag values. | |
3243 | """ | |
54f9ee45 | 3244 | return _windows_.FindReplaceData_GetFlags(*args, **kwargs) |
e811c8ce RD |
3245 | |
3246 | def SetFlags(*args, **kwargs): | |
e498079e | 3247 | """ |
a95a7133 | 3248 | SetFlags(self, int flags) |
e498079e RD |
3249 | |
3250 | Set the flags to use to initialize the controls of the dialog. | |
3251 | """ | |
54f9ee45 | 3252 | return _windows_.FindReplaceData_SetFlags(*args, **kwargs) |
e811c8ce RD |
3253 | |
3254 | def SetFindString(*args, **kwargs): | |
e498079e | 3255 | """ |
a95a7133 | 3256 | SetFindString(self, String str) |
e498079e RD |
3257 | |
3258 | Set the string to find (used as initial value by the dialog). | |
3259 | """ | |
54f9ee45 | 3260 | return _windows_.FindReplaceData_SetFindString(*args, **kwargs) |
e811c8ce RD |
3261 | |
3262 | def SetReplaceString(*args, **kwargs): | |
e498079e | 3263 | """ |
a95a7133 | 3264 | SetReplaceString(self, String str) |
e498079e RD |
3265 | |
3266 | Set the replacement string (used as initial value by the dialog). | |
3267 | """ | |
54f9ee45 | 3268 | return _windows_.FindReplaceData_SetReplaceString(*args, **kwargs) |
e811c8ce | 3269 | |
8ab979d7 | 3270 | |
d14a1e28 RD |
3271 | class FindReplaceDataPtr(FindReplaceData): |
3272 | def __init__(self, this): | |
3273 | self.this = this | |
3274 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3275 | self.__class__ = FindReplaceData | |
54f9ee45 | 3276 | _windows_.FindReplaceData_swigregister(FindReplaceDataPtr) |
d14a1e28 RD |
3277 | |
3278 | class FindReplaceDialog(Dialog): | |
e498079e | 3279 | """ |
66c033b4 RD |
3280 | wx.FindReplaceDialog is a standard modeless dialog which is used to |
3281 | allow the user to search for some text (and possibly replace it with | |
3282 | something else). The actual searching is supposed to be done in the | |
3283 | owner window which is the parent of this dialog. Note that it means | |
3284 | that unlike for the other standard dialogs this one must have a parent | |
3285 | window. Also note that there is no way to use this dialog in a modal | |
3286 | way; it is always, by design and implementation, modeless. | |
e498079e | 3287 | """ |
e811c8ce RD |
3288 | def __repr__(self): |
3289 | return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3290 | def __init__(self, *args, **kwargs): |
0df68c9f | 3291 | """ |
a95a7133 | 3292 | __init__(self, Window parent, FindReplaceData data, String title, |
0df68c9f | 3293 | int style=0) -> FindReplaceDialog |
e498079e RD |
3294 | |
3295 | Create a FindReplaceDialog. The parent and data parameters must be | |
3296 | non-None. Use Show to display the dialog. | |
0df68c9f | 3297 | """ |
54f9ee45 | 3298 | newobj = _windows_.new_FindReplaceDialog(*args, **kwargs) |
d14a1e28 RD |
3299 | self.this = newobj.this |
3300 | self.thisown = 1 | |
3301 | del newobj.thisown | |
3302 | self._setOORInfo(self) | |
e811c8ce RD |
3303 | |
3304 | def Create(*args, **kwargs): | |
0df68c9f | 3305 | """ |
a95a7133 | 3306 | Create(self, Window parent, FindReplaceData data, String title, |
0df68c9f | 3307 | int style=0) -> bool |
e498079e RD |
3308 | |
3309 | Create the dialog, for 2-phase create. | |
0df68c9f | 3310 | """ |
54f9ee45 | 3311 | return _windows_.FindReplaceDialog_Create(*args, **kwargs) |
e811c8ce RD |
3312 | |
3313 | def GetData(*args, **kwargs): | |
e498079e | 3314 | """ |
a95a7133 | 3315 | GetData(self) -> FindReplaceData |
e498079e RD |
3316 | |
3317 | Get the FindReplaceData object used by this dialog. | |
3318 | """ | |
54f9ee45 | 3319 | return _windows_.FindReplaceDialog_GetData(*args, **kwargs) |
e811c8ce RD |
3320 | |
3321 | def SetData(*args, **kwargs): | |
e498079e | 3322 | """ |
a95a7133 | 3323 | SetData(self, FindReplaceData data) |
e498079e RD |
3324 | |
3325 | Set the FindReplaceData object used by this dialog. | |
3326 | """ | |
54f9ee45 | 3327 | return _windows_.FindReplaceDialog_SetData(*args, **kwargs) |
e811c8ce | 3328 | |
8ab979d7 | 3329 | |
d14a1e28 RD |
3330 | class FindReplaceDialogPtr(FindReplaceDialog): |
3331 | def __init__(self, this): | |
3332 | self.this = this | |
3333 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3334 | self.__class__ = FindReplaceDialog | |
54f9ee45 | 3335 | _windows_.FindReplaceDialog_swigregister(FindReplaceDialogPtr) |
8ab979d7 | 3336 | |
d14a1e28 | 3337 | def PreFindReplaceDialog(*args, **kwargs): |
e498079e RD |
3338 | """ |
3339 | PreFindReplaceDialog() -> FindReplaceDialog | |
3340 | ||
3341 | Precreate a FindReplaceDialog for 2-phase creation | |
3342 | """ | |
54f9ee45 | 3343 | val = _windows_.new_PreFindReplaceDialog(*args, **kwargs) |
d14a1e28 | 3344 | val.thisown = 1 |
298ae144 RD |
3345 | return val |
3346 | ||
d14a1e28 RD |
3347 | #--------------------------------------------------------------------------- |
3348 | ||
54f9ee45 RD |
3349 | IDM_WINDOWTILE = _windows_.IDM_WINDOWTILE |
3350 | IDM_WINDOWTILEHOR = _windows_.IDM_WINDOWTILEHOR | |
3351 | IDM_WINDOWCASCADE = _windows_.IDM_WINDOWCASCADE | |
3352 | IDM_WINDOWICONS = _windows_.IDM_WINDOWICONS | |
3353 | IDM_WINDOWNEXT = _windows_.IDM_WINDOWNEXT | |
3354 | IDM_WINDOWTILEVERT = _windows_.IDM_WINDOWTILEVERT | |
24d7cbea | 3355 | IDM_WINDOWPREV = _windows_.IDM_WINDOWPREV |
54f9ee45 RD |
3356 | FIRST_MDI_CHILD = _windows_.FIRST_MDI_CHILD |
3357 | LAST_MDI_CHILD = _windows_.LAST_MDI_CHILD | |
d14a1e28 | 3358 | class MDIParentFrame(Frame): |
093d3ff1 | 3359 | """Proxy of C++ MDIParentFrame class""" |
e811c8ce RD |
3360 | def __repr__(self): |
3361 | return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3362 | def __init__(self, *args, **kwargs): |
0df68c9f | 3363 | """ |
248ed943 RD |
3364 | __init__(self, Window parent, int id=-1, String title=EmptyString, |
3365 | Point pos=DefaultPosition, Size size=DefaultSize, | |
3366 | long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, | |
b2dc1044 | 3367 | String name=FrameNameStr) -> MDIParentFrame |
0df68c9f | 3368 | """ |
54f9ee45 | 3369 | newobj = _windows_.new_MDIParentFrame(*args, **kwargs) |
d14a1e28 RD |
3370 | self.this = newobj.this |
3371 | self.thisown = 1 | |
3372 | del newobj.thisown | |
3373 | self._setOORInfo(self) | |
e811c8ce RD |
3374 | |
3375 | def Create(*args, **kwargs): | |
0df68c9f | 3376 | """ |
248ed943 RD |
3377 | Create(self, Window parent, int id=-1, String title=EmptyString, |
3378 | Point pos=DefaultPosition, Size size=DefaultSize, | |
3379 | long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, | |
b2dc1044 | 3380 | String name=FrameNameStr) -> bool |
0df68c9f | 3381 | """ |
54f9ee45 | 3382 | return _windows_.MDIParentFrame_Create(*args, **kwargs) |
e811c8ce RD |
3383 | |
3384 | def ActivateNext(*args, **kwargs): | |
a95a7133 | 3385 | """ActivateNext(self)""" |
54f9ee45 | 3386 | return _windows_.MDIParentFrame_ActivateNext(*args, **kwargs) |
e811c8ce RD |
3387 | |
3388 | def ActivatePrevious(*args, **kwargs): | |
a95a7133 | 3389 | """ActivatePrevious(self)""" |
54f9ee45 | 3390 | return _windows_.MDIParentFrame_ActivatePrevious(*args, **kwargs) |
e811c8ce RD |
3391 | |
3392 | def ArrangeIcons(*args, **kwargs): | |
a95a7133 | 3393 | """ArrangeIcons(self)""" |
54f9ee45 | 3394 | return _windows_.MDIParentFrame_ArrangeIcons(*args, **kwargs) |
e811c8ce RD |
3395 | |
3396 | def Cascade(*args, **kwargs): | |
a95a7133 | 3397 | """Cascade(self)""" |
54f9ee45 | 3398 | return _windows_.MDIParentFrame_Cascade(*args, **kwargs) |
e811c8ce RD |
3399 | |
3400 | def GetActiveChild(*args, **kwargs): | |
a95a7133 | 3401 | """GetActiveChild(self) -> MDIChildFrame""" |
54f9ee45 | 3402 | return _windows_.MDIParentFrame_GetActiveChild(*args, **kwargs) |
e811c8ce RD |
3403 | |
3404 | def GetClientWindow(*args, **kwargs): | |
a95a7133 | 3405 | """GetClientWindow(self) -> MDIClientWindow""" |
54f9ee45 | 3406 | return _windows_.MDIParentFrame_GetClientWindow(*args, **kwargs) |
e811c8ce RD |
3407 | |
3408 | def GetToolBar(*args, **kwargs): | |
a95a7133 | 3409 | """GetToolBar(self) -> Window""" |
54f9ee45 | 3410 | return _windows_.MDIParentFrame_GetToolBar(*args, **kwargs) |
e811c8ce RD |
3411 | |
3412 | def Tile(*args, **kwargs): | |
396fb509 | 3413 | """Tile(self, int orient=HORIZONTAL)""" |
54f9ee45 | 3414 | return _windows_.MDIParentFrame_Tile(*args, **kwargs) |
e811c8ce | 3415 | |
d14a1e28 RD |
3416 | |
3417 | class MDIParentFramePtr(MDIParentFrame): | |
3418 | def __init__(self, this): | |
3419 | self.this = this | |
3420 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3421 | self.__class__ = MDIParentFrame | |
54f9ee45 | 3422 | _windows_.MDIParentFrame_swigregister(MDIParentFramePtr) |
d14a1e28 RD |
3423 | |
3424 | def PreMDIParentFrame(*args, **kwargs): | |
e811c8ce | 3425 | """PreMDIParentFrame() -> MDIParentFrame""" |
54f9ee45 | 3426 | val = _windows_.new_PreMDIParentFrame(*args, **kwargs) |
d14a1e28 | 3427 | val.thisown = 1 |
298ae144 RD |
3428 | return val |
3429 | ||
d14a1e28 | 3430 | class MDIChildFrame(Frame): |
093d3ff1 | 3431 | """Proxy of C++ MDIChildFrame class""" |
e811c8ce RD |
3432 | def __repr__(self): |
3433 | return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3434 | def __init__(self, *args, **kwargs): |
0df68c9f | 3435 | """ |
248ed943 RD |
3436 | __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString, |
3437 | Point pos=DefaultPosition, Size size=DefaultSize, | |
3438 | long style=DEFAULT_FRAME_STYLE, | |
b2dc1044 | 3439 | String name=FrameNameStr) -> MDIChildFrame |
0df68c9f | 3440 | """ |
54f9ee45 | 3441 | newobj = _windows_.new_MDIChildFrame(*args, **kwargs) |
d14a1e28 RD |
3442 | self.this = newobj.this |
3443 | self.thisown = 1 | |
3444 | del newobj.thisown | |
3445 | self._setOORInfo(self) | |
e811c8ce RD |
3446 | |
3447 | def Create(*args, **kwargs): | |
0df68c9f | 3448 | """ |
248ed943 RD |
3449 | Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString, |
3450 | Point pos=DefaultPosition, Size size=DefaultSize, | |
3451 | long style=DEFAULT_FRAME_STYLE, | |
b2dc1044 | 3452 | String name=FrameNameStr) -> bool |
0df68c9f | 3453 | """ |
54f9ee45 | 3454 | return _windows_.MDIChildFrame_Create(*args, **kwargs) |
e811c8ce RD |
3455 | |
3456 | def Activate(*args, **kwargs): | |
a95a7133 | 3457 | """Activate(self)""" |
54f9ee45 | 3458 | return _windows_.MDIChildFrame_Activate(*args, **kwargs) |
e811c8ce RD |
3459 | |
3460 | def Maximize(*args, **kwargs): | |
5cbf236d | 3461 | """Maximize(self, bool maximize=True)""" |
54f9ee45 | 3462 | return _windows_.MDIChildFrame_Maximize(*args, **kwargs) |
e811c8ce RD |
3463 | |
3464 | def Restore(*args, **kwargs): | |
a95a7133 | 3465 | """Restore(self)""" |
54f9ee45 | 3466 | return _windows_.MDIChildFrame_Restore(*args, **kwargs) |
e811c8ce | 3467 | |
d14a1e28 RD |
3468 | |
3469 | class MDIChildFramePtr(MDIChildFrame): | |
3470 | def __init__(self, this): | |
3471 | self.this = this | |
3472 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3473 | self.__class__ = MDIChildFrame | |
54f9ee45 | 3474 | _windows_.MDIChildFrame_swigregister(MDIChildFramePtr) |
d14a1e28 RD |
3475 | |
3476 | def PreMDIChildFrame(*args, **kwargs): | |
e811c8ce | 3477 | """PreMDIChildFrame() -> MDIChildFrame""" |
54f9ee45 | 3478 | val = _windows_.new_PreMDIChildFrame(*args, **kwargs) |
d14a1e28 | 3479 | val.thisown = 1 |
298ae144 RD |
3480 | return val |
3481 | ||
54f9ee45 | 3482 | class MDIClientWindow(_core.Window): |
093d3ff1 | 3483 | """Proxy of C++ MDIClientWindow class""" |
e811c8ce RD |
3484 | def __repr__(self): |
3485 | return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3486 | def __init__(self, *args, **kwargs): | |
a95a7133 | 3487 | """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow""" |
54f9ee45 | 3488 | newobj = _windows_.new_MDIClientWindow(*args, **kwargs) |
d14a1e28 RD |
3489 | self.this = newobj.this |
3490 | self.thisown = 1 | |
3491 | del newobj.thisown | |
3492 | self._setOORInfo(self) | |
e811c8ce RD |
3493 | |
3494 | def Create(*args, **kwargs): | |
a95a7133 | 3495 | """Create(self, MDIParentFrame parent, long style=0) -> bool""" |
54f9ee45 | 3496 | return _windows_.MDIClientWindow_Create(*args, **kwargs) |
e811c8ce | 3497 | |
aa2a5b86 | 3498 | |
d14a1e28 RD |
3499 | class MDIClientWindowPtr(MDIClientWindow): |
3500 | def __init__(self, this): | |
3501 | self.this = this | |
3502 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3503 | self.__class__ = MDIClientWindow | |
54f9ee45 | 3504 | _windows_.MDIClientWindow_swigregister(MDIClientWindowPtr) |
aa2a5b86 | 3505 | |
d14a1e28 | 3506 | def PreMDIClientWindow(*args, **kwargs): |
e811c8ce | 3507 | """PreMDIClientWindow() -> MDIClientWindow""" |
54f9ee45 | 3508 | val = _windows_.new_PreMDIClientWindow(*args, **kwargs) |
d14a1e28 | 3509 | val.thisown = 1 |
c368d904 RD |
3510 | return val |
3511 | ||
d14a1e28 | 3512 | #--------------------------------------------------------------------------- |
a1df7a95 | 3513 | |
54f9ee45 | 3514 | class PyWindow(_core.Window): |
093d3ff1 | 3515 | """Proxy of C++ PyWindow class""" |
e811c8ce RD |
3516 | def __repr__(self): |
3517 | return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3518 | def __init__(self, *args, **kwargs): |
0df68c9f | 3519 | """ |
248ed943 RD |
3520 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
3521 | Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow | |
0df68c9f | 3522 | """ |
54f9ee45 | 3523 | newobj = _windows_.new_PyWindow(*args, **kwargs) |
d14a1e28 RD |
3524 | self.this = newobj.this |
3525 | self.thisown = 1 | |
3526 | del newobj.thisown | |
3527 | self._setOORInfo(self); self._setCallbackInfo(self, PyWindow) | |
e811c8ce RD |
3528 | |
3529 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 3530 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 3531 | return _windows_.PyWindow__setCallbackInfo(*args, **kwargs) |
e811c8ce | 3532 | |
db3e571a RD |
3533 | def SetBestSize(*args, **kwargs): |
3534 | """SetBestSize(self, Size size)""" | |
3535 | return _windows_.PyWindow_SetBestSize(*args, **kwargs) | |
3536 | ||
976dbff5 RD |
3537 | def DoEraseBackground(*args, **kwargs): |
3538 | """DoEraseBackground(self, DC dc) -> bool""" | |
3539 | return _windows_.PyWindow_DoEraseBackground(*args, **kwargs) | |
3540 | ||
c26d9ab4 RD |
3541 | def DoMoveWindow(*args, **kwargs): |
3542 | """DoMoveWindow(self, int x, int y, int width, int height)""" | |
3543 | return _windows_.PyWindow_DoMoveWindow(*args, **kwargs) | |
e811c8ce | 3544 | |
c26d9ab4 RD |
3545 | def DoSetSize(*args, **kwargs): |
3546 | """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" | |
3547 | return _windows_.PyWindow_DoSetSize(*args, **kwargs) | |
e811c8ce | 3548 | |
c26d9ab4 RD |
3549 | def DoSetClientSize(*args, **kwargs): |
3550 | """DoSetClientSize(self, int width, int height)""" | |
3551 | return _windows_.PyWindow_DoSetClientSize(*args, **kwargs) | |
e811c8ce | 3552 | |
c26d9ab4 RD |
3553 | def DoSetVirtualSize(*args, **kwargs): |
3554 | """DoSetVirtualSize(self, int x, int y)""" | |
3555 | return _windows_.PyWindow_DoSetVirtualSize(*args, **kwargs) | |
e811c8ce | 3556 | |
c26d9ab4 RD |
3557 | def DoGetSize(*args, **kwargs): |
3558 | """DoGetSize() -> (width, height)""" | |
3559 | return _windows_.PyWindow_DoGetSize(*args, **kwargs) | |
e811c8ce | 3560 | |
c26d9ab4 RD |
3561 | def DoGetClientSize(*args, **kwargs): |
3562 | """DoGetClientSize() -> (width, height)""" | |
3563 | return _windows_.PyWindow_DoGetClientSize(*args, **kwargs) | |
e811c8ce | 3564 | |
c26d9ab4 RD |
3565 | def DoGetPosition(*args, **kwargs): |
3566 | """DoGetPosition() -> (x,y)""" | |
3567 | return _windows_.PyWindow_DoGetPosition(*args, **kwargs) | |
e811c8ce | 3568 | |
c26d9ab4 RD |
3569 | def DoGetVirtualSize(*args, **kwargs): |
3570 | """DoGetVirtualSize(self) -> Size""" | |
3571 | return _windows_.PyWindow_DoGetVirtualSize(*args, **kwargs) | |
e811c8ce | 3572 | |
c26d9ab4 RD |
3573 | def DoGetBestSize(*args, **kwargs): |
3574 | """DoGetBestSize(self) -> Size""" | |
3575 | return _windows_.PyWindow_DoGetBestSize(*args, **kwargs) | |
e811c8ce | 3576 | |
c26d9ab4 RD |
3577 | def InitDialog(*args, **kwargs): |
3578 | """ | |
3579 | InitDialog(self) | |
3580 | ||
3581 | Sends an EVT_INIT_DIALOG event, whose handler usually transfers data | |
3582 | to the dialog via validators. | |
3583 | """ | |
3584 | return _windows_.PyWindow_InitDialog(*args, **kwargs) | |
3585 | ||
3586 | def TransferDataToWindow(*args, **kwargs): | |
3587 | """ | |
3588 | TransferDataToWindow(self) -> bool | |
3589 | ||
3590 | Transfers values to child controls from data areas specified by their | |
3591 | validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra | |
3592 | style flag set, the method will also call TransferDataToWindow() of | |
3593 | all child windows. | |
3594 | """ | |
3595 | return _windows_.PyWindow_TransferDataToWindow(*args, **kwargs) | |
3596 | ||
3597 | def TransferDataFromWindow(*args, **kwargs): | |
3598 | """ | |
3599 | TransferDataFromWindow(self) -> bool | |
3600 | ||
3601 | Transfers values from child controls to data areas specified by their | |
3602 | validators. Returns false if a transfer failed. If the window has | |
3603 | wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the method will | |
3604 | also call TransferDataFromWindow() of all child windows. | |
3605 | """ | |
3606 | return _windows_.PyWindow_TransferDataFromWindow(*args, **kwargs) | |
3607 | ||
3608 | def Validate(*args, **kwargs): | |
3609 | """ | |
3610 | Validate(self) -> bool | |
3611 | ||
3612 | Validates the current values of the child controls using their | |
3613 | validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra | |
3614 | style flag set, the method will also call Validate() of all child | |
3615 | windows. Returns false if any of the validations failed. | |
3616 | """ | |
3617 | return _windows_.PyWindow_Validate(*args, **kwargs) | |
3618 | ||
3619 | def AcceptsFocus(*args, **kwargs): | |
3620 | """ | |
3621 | AcceptsFocus(self) -> bool | |
3622 | ||
3623 | Can this window have focus? | |
3624 | """ | |
3625 | return _windows_.PyWindow_AcceptsFocus(*args, **kwargs) | |
3626 | ||
3627 | def AcceptsFocusFromKeyboard(*args, **kwargs): | |
3628 | """ | |
3629 | AcceptsFocusFromKeyboard(self) -> bool | |
3630 | ||
3631 | Can this window be given focus by keyboard navigation? if not, the | |
3632 | only way to give it focus (provided it accepts it at all) is to click | |
3633 | it. | |
3634 | """ | |
3635 | return _windows_.PyWindow_AcceptsFocusFromKeyboard(*args, **kwargs) | |
3636 | ||
3637 | def GetMaxSize(*args, **kwargs): | |
3638 | """GetMaxSize(self) -> Size""" | |
3639 | return _windows_.PyWindow_GetMaxSize(*args, **kwargs) | |
3640 | ||
3641 | def AddChild(*args, **kwargs): | |
3642 | """ | |
3643 | AddChild(self, Window child) | |
3644 | ||
3645 | Adds a child window. This is called automatically by window creation | |
3646 | functions so should not be required by the application programmer. | |
3647 | """ | |
3648 | return _windows_.PyWindow_AddChild(*args, **kwargs) | |
3649 | ||
3650 | def RemoveChild(*args, **kwargs): | |
3651 | """ | |
3652 | RemoveChild(self, Window child) | |
3653 | ||
3654 | Removes a child window. This is called automatically by window | |
3655 | deletion functions so should not be required by the application | |
3656 | programmer. | |
3657 | """ | |
3658 | return _windows_.PyWindow_RemoveChild(*args, **kwargs) | |
3659 | ||
3660 | def ShouldInheritColours(*args, **kwargs): | |
3661 | """ | |
3662 | ShouldInheritColours(self) -> bool | |
3663 | ||
3664 | Return true from here to allow the colours of this window to be | |
3665 | changed by InheritAttributes, returning false forbids inheriting them | |
3666 | from the parent window. | |
3667 | ||
3668 | The base class version returns false, but this method is overridden in | |
3669 | wxControl where it returns true. | |
3670 | """ | |
3671 | return _windows_.PyWindow_ShouldInheritColours(*args, **kwargs) | |
3672 | ||
3673 | def GetDefaultAttributes(*args, **kwargs): | |
3674 | """GetDefaultAttributes(self) -> VisualAttributes""" | |
3675 | return _windows_.PyWindow_GetDefaultAttributes(*args, **kwargs) | |
3676 | ||
3677 | def OnInternalIdle(*args, **kwargs): | |
3678 | """OnInternalIdle(self)""" | |
3679 | return _windows_.PyWindow_OnInternalIdle(*args, **kwargs) | |
3680 | ||
3681 | def base_DoMoveWindow(*args, **kw): | |
3682 | return PyWindow.DoMoveWindow(*args, **kw) | |
3683 | base_DoMoveWindow = wx._deprecated(base_DoMoveWindow, | |
3684 | "Please use PyWindow.DoMoveWindow instead.") | |
3685 | ||
3686 | def base_DoSetSize(*args, **kw): | |
3687 | return PyWindow.DoSetSize(*args, **kw) | |
3688 | base_DoSetSize = wx._deprecated(base_DoSetSize, | |
3689 | "Please use PyWindow.DoSetSize instead.") | |
e811c8ce | 3690 | |
c26d9ab4 RD |
3691 | def base_DoSetClientSize(*args, **kw): |
3692 | return PyWindow.DoSetClientSize(*args, **kw) | |
3693 | base_DoSetClientSize = wx._deprecated(base_DoSetClientSize, | |
3694 | "Please use PyWindow.DoSetClientSize instead.") | |
e811c8ce | 3695 | |
c26d9ab4 RD |
3696 | def base_DoSetVirtualSize(*args, **kw): |
3697 | return PyWindow.DoSetVirtualSize(*args, **kw) | |
3698 | base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize, | |
3699 | "Please use PyWindow.DoSetVirtualSize instead.") | |
e811c8ce | 3700 | |
c26d9ab4 RD |
3701 | def base_DoGetSize(*args, **kw): |
3702 | return PyWindow.DoGetSize(*args, **kw) | |
3703 | base_DoGetSize = wx._deprecated(base_DoGetSize, | |
3704 | "Please use PyWindow.DoGetSize instead.") | |
e811c8ce | 3705 | |
c26d9ab4 RD |
3706 | def base_DoGetClientSize(*args, **kw): |
3707 | return PyWindow.DoGetClientSize(*args, **kw) | |
3708 | base_DoGetClientSize = wx._deprecated(base_DoGetClientSize, | |
3709 | "Please use PyWindow.DoGetClientSize instead.") | |
e811c8ce | 3710 | |
c26d9ab4 RD |
3711 | def base_DoGetPosition(*args, **kw): |
3712 | return PyWindow.DoGetPosition(*args, **kw) | |
3713 | base_DoGetPosition = wx._deprecated(base_DoGetPosition, | |
3714 | "Please use PyWindow.DoGetPosition instead.") | |
e811c8ce | 3715 | |
c26d9ab4 RD |
3716 | def base_DoGetVirtualSize(*args, **kw): |
3717 | return PyWindow.DoGetVirtualSize(*args, **kw) | |
3718 | base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize, | |
3719 | "Please use PyWindow.DoGetVirtualSize instead.") | |
e811c8ce | 3720 | |
c26d9ab4 RD |
3721 | def base_DoGetBestSize(*args, **kw): |
3722 | return PyWindow.DoGetBestSize(*args, **kw) | |
3723 | base_DoGetBestSize = wx._deprecated(base_DoGetBestSize, | |
3724 | "Please use PyWindow.DoGetBestSize instead.") | |
e811c8ce | 3725 | |
c26d9ab4 RD |
3726 | def base_InitDialog(*args, **kw): |
3727 | return PyWindow.InitDialog(*args, **kw) | |
3728 | base_InitDialog = wx._deprecated(base_InitDialog, | |
3729 | "Please use PyWindow.InitDialog instead.") | |
e811c8ce | 3730 | |
c26d9ab4 RD |
3731 | def base_TransferDataToWindow(*args, **kw): |
3732 | return PyWindow.TransferDataToWindow(*args, **kw) | |
3733 | base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow, | |
3734 | "Please use PyWindow.TransferDataToWindow instead.") | |
1cb4a8aa | 3735 | |
c26d9ab4 RD |
3736 | def base_TransferDataFromWindow(*args, **kw): |
3737 | return PyWindow.TransferDataFromWindow(*args, **kw) | |
3738 | base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow, | |
3739 | "Please use PyWindow.TransferDataFromWindow instead.") | |
db3e571a | 3740 | |
c26d9ab4 RD |
3741 | def base_Validate(*args, **kw): |
3742 | return PyWindow.Validate(*args, **kw) | |
3743 | base_Validate = wx._deprecated(base_Validate, | |
3744 | "Please use PyWindow.Validate instead.") | |
3745 | ||
3746 | def base_AcceptsFocus(*args, **kw): | |
3747 | return PyWindow.AcceptsFocus(*args, **kw) | |
3748 | base_AcceptsFocus = wx._deprecated(base_AcceptsFocus, | |
3749 | "Please use PyWindow.AcceptsFocus instead.") | |
3750 | ||
3751 | def base_AcceptsFocusFromKeyboard(*args, **kw): | |
3752 | return PyWindow.AcceptsFocusFromKeyboard(*args, **kw) | |
3753 | base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard, | |
3754 | "Please use PyWindow.AcceptsFocusFromKeyboard instead.") | |
3755 | ||
3756 | def base_GetMaxSize(*args, **kw): | |
3757 | return PyWindow.GetMaxSize(*args, **kw) | |
3758 | base_GetMaxSize = wx._deprecated(base_GetMaxSize, | |
3759 | "Please use PyWindow.GetMaxSize instead.") | |
3760 | ||
3761 | def base_AddChild(*args, **kw): | |
3762 | return PyWindow.AddChild(*args, **kw) | |
3763 | base_AddChild = wx._deprecated(base_AddChild, | |
3764 | "Please use PyWindow.AddChild instead.") | |
3765 | ||
3766 | def base_RemoveChild(*args, **kw): | |
3767 | return PyWindow.RemoveChild(*args, **kw) | |
3768 | base_RemoveChild = wx._deprecated(base_RemoveChild, | |
3769 | "Please use PyWindow.RemoveChild instead.") | |
3770 | ||
3771 | def base_ShouldInheritColours(*args, **kw): | |
3772 | return PyWindow.ShouldInheritColours(*args, **kw) | |
3773 | base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours, | |
3774 | "Please use PyWindow.ShouldInheritColours instead.") | |
3775 | ||
3776 | def base_GetDefaultAttributes(*args, **kw): | |
3777 | return PyWindow.GetDefaultAttributes(*args, **kw) | |
3778 | base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes, | |
3779 | "Please use PyWindow.GetDefaultAttributes instead.") | |
3780 | ||
3781 | def base_OnInternalIdle(*args, **kw): | |
3782 | return PyWindow.OnInternalIdle(*args, **kw) | |
3783 | base_OnInternalIdle = wx._deprecated(base_OnInternalIdle, | |
3784 | "Please use PyWindow.OnInternalIdle instead.") | |
8d38bd1d | 3785 | |
a1df7a95 | 3786 | |
d14a1e28 RD |
3787 | class PyWindowPtr(PyWindow): |
3788 | def __init__(self, this): | |
3789 | self.this = this | |
3790 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3791 | self.__class__ = PyWindow | |
54f9ee45 | 3792 | _windows_.PyWindow_swigregister(PyWindowPtr) |
d14a1e28 | 3793 | |
1cb4a8aa RD |
3794 | def PrePyWindow(*args, **kwargs): |
3795 | """PrePyWindow() -> PyWindow""" | |
54f9ee45 | 3796 | val = _windows_.new_PrePyWindow(*args, **kwargs) |
1cb4a8aa RD |
3797 | val.thisown = 1 |
3798 | return val | |
3799 | ||
d14a1e28 | 3800 | class PyPanel(Panel): |
093d3ff1 | 3801 | """Proxy of C++ PyPanel class""" |
e811c8ce RD |
3802 | def __repr__(self): |
3803 | return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3804 | def __init__(self, *args, **kwargs): |
0df68c9f | 3805 | """ |
248ed943 RD |
3806 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
3807 | Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel | |
0df68c9f | 3808 | """ |
54f9ee45 | 3809 | newobj = _windows_.new_PyPanel(*args, **kwargs) |
d14a1e28 RD |
3810 | self.this = newobj.this |
3811 | self.thisown = 1 | |
3812 | del newobj.thisown | |
3813 | self._setOORInfo(self); self._setCallbackInfo(self, PyPanel) | |
e811c8ce RD |
3814 | |
3815 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 3816 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 3817 | return _windows_.PyPanel__setCallbackInfo(*args, **kwargs) |
e811c8ce | 3818 | |
db3e571a RD |
3819 | def SetBestSize(*args, **kwargs): |
3820 | """SetBestSize(self, Size size)""" | |
3821 | return _windows_.PyPanel_SetBestSize(*args, **kwargs) | |
3822 | ||
976dbff5 RD |
3823 | def DoEraseBackground(*args, **kwargs): |
3824 | """DoEraseBackground(self, DC dc) -> bool""" | |
3825 | return _windows_.PyPanel_DoEraseBackground(*args, **kwargs) | |
3826 | ||
c26d9ab4 RD |
3827 | def DoMoveWindow(*args, **kwargs): |
3828 | """DoMoveWindow(self, int x, int y, int width, int height)""" | |
3829 | return _windows_.PyPanel_DoMoveWindow(*args, **kwargs) | |
3830 | ||
3831 | def DoSetSize(*args, **kwargs): | |
3832 | """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" | |
3833 | return _windows_.PyPanel_DoSetSize(*args, **kwargs) | |
3834 | ||
3835 | def DoSetClientSize(*args, **kwargs): | |
3836 | """DoSetClientSize(self, int width, int height)""" | |
3837 | return _windows_.PyPanel_DoSetClientSize(*args, **kwargs) | |
3838 | ||
3839 | def DoSetVirtualSize(*args, **kwargs): | |
3840 | """DoSetVirtualSize(self, int x, int y)""" | |
3841 | return _windows_.PyPanel_DoSetVirtualSize(*args, **kwargs) | |
3842 | ||
3843 | def DoGetSize(*args, **kwargs): | |
3844 | """DoGetSize() -> (width, height)""" | |
3845 | return _windows_.PyPanel_DoGetSize(*args, **kwargs) | |
3846 | ||
3847 | def DoGetClientSize(*args, **kwargs): | |
3848 | """DoGetClientSize() -> (width, height)""" | |
3849 | return _windows_.PyPanel_DoGetClientSize(*args, **kwargs) | |
3850 | ||
3851 | def DoGetPosition(*args, **kwargs): | |
3852 | """DoGetPosition() -> (x,y)""" | |
3853 | return _windows_.PyPanel_DoGetPosition(*args, **kwargs) | |
3854 | ||
3855 | def DoGetVirtualSize(*args, **kwargs): | |
3856 | """DoGetVirtualSize(self) -> Size""" | |
3857 | return _windows_.PyPanel_DoGetVirtualSize(*args, **kwargs) | |
3858 | ||
3859 | def DoGetBestSize(*args, **kwargs): | |
3860 | """DoGetBestSize(self) -> Size""" | |
3861 | return _windows_.PyPanel_DoGetBestSize(*args, **kwargs) | |
3862 | ||
3863 | def InitDialog(*args, **kwargs): | |
3864 | """ | |
3865 | InitDialog(self) | |
3866 | ||
3867 | Sends an EVT_INIT_DIALOG event, whose handler usually transfers data | |
3868 | to the dialog via validators. | |
3869 | """ | |
3870 | return _windows_.PyPanel_InitDialog(*args, **kwargs) | |
3871 | ||
3872 | def TransferDataToWindow(*args, **kwargs): | |
3873 | """ | |
3874 | TransferDataToWindow(self) -> bool | |
3875 | ||
3876 | Transfers values to child controls from data areas specified by their | |
3877 | validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra | |
3878 | style flag set, the method will also call TransferDataToWindow() of | |
3879 | all child windows. | |
3880 | """ | |
3881 | return _windows_.PyPanel_TransferDataToWindow(*args, **kwargs) | |
3882 | ||
3883 | def TransferDataFromWindow(*args, **kwargs): | |
3884 | """ | |
3885 | TransferDataFromWindow(self) -> bool | |
3886 | ||
3887 | Transfers values from child controls to data areas specified by their | |
3888 | validators. Returns false if a transfer failed. If the window has | |
3889 | wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the method will | |
3890 | also call TransferDataFromWindow() of all child windows. | |
3891 | """ | |
3892 | return _windows_.PyPanel_TransferDataFromWindow(*args, **kwargs) | |
3893 | ||
3894 | def Validate(*args, **kwargs): | |
3895 | """ | |
3896 | Validate(self) -> bool | |
3897 | ||
3898 | Validates the current values of the child controls using their | |
3899 | validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra | |
3900 | style flag set, the method will also call Validate() of all child | |
3901 | windows. Returns false if any of the validations failed. | |
3902 | """ | |
3903 | return _windows_.PyPanel_Validate(*args, **kwargs) | |
3904 | ||
3905 | def AcceptsFocus(*args, **kwargs): | |
3906 | """ | |
3907 | AcceptsFocus(self) -> bool | |
3908 | ||
3909 | Can this window have focus? | |
3910 | """ | |
3911 | return _windows_.PyPanel_AcceptsFocus(*args, **kwargs) | |
3912 | ||
3913 | def AcceptsFocusFromKeyboard(*args, **kwargs): | |
3914 | """ | |
3915 | AcceptsFocusFromKeyboard(self) -> bool | |
3916 | ||
3917 | Can this window be given focus by keyboard navigation? if not, the | |
3918 | only way to give it focus (provided it accepts it at all) is to click | |
3919 | it. | |
3920 | """ | |
3921 | return _windows_.PyPanel_AcceptsFocusFromKeyboard(*args, **kwargs) | |
3922 | ||
3923 | def GetMaxSize(*args, **kwargs): | |
3924 | """GetMaxSize(self) -> Size""" | |
3925 | return _windows_.PyPanel_GetMaxSize(*args, **kwargs) | |
3926 | ||
3927 | def AddChild(*args, **kwargs): | |
3928 | """ | |
3929 | AddChild(self, Window child) | |
3930 | ||
3931 | Adds a child window. This is called automatically by window creation | |
3932 | functions so should not be required by the application programmer. | |
3933 | """ | |
3934 | return _windows_.PyPanel_AddChild(*args, **kwargs) | |
3935 | ||
3936 | def RemoveChild(*args, **kwargs): | |
3937 | """ | |
3938 | RemoveChild(self, Window child) | |
e811c8ce | 3939 | |
c26d9ab4 RD |
3940 | Removes a child window. This is called automatically by window |
3941 | deletion functions so should not be required by the application | |
3942 | programmer. | |
3943 | """ | |
3944 | return _windows_.PyPanel_RemoveChild(*args, **kwargs) | |
e811c8ce | 3945 | |
c26d9ab4 RD |
3946 | def ShouldInheritColours(*args, **kwargs): |
3947 | """ | |
3948 | ShouldInheritColours(self) -> bool | |
e811c8ce | 3949 | |
c26d9ab4 RD |
3950 | Return true from here to allow the colours of this window to be |
3951 | changed by InheritAttributes, returning false forbids inheriting them | |
3952 | from the parent window. | |
e811c8ce | 3953 | |
c26d9ab4 RD |
3954 | The base class version returns false, but this method is overridden in |
3955 | wxControl where it returns true. | |
3956 | """ | |
3957 | return _windows_.PyPanel_ShouldInheritColours(*args, **kwargs) | |
e811c8ce | 3958 | |
c26d9ab4 RD |
3959 | def GetDefaultAttributes(*args, **kwargs): |
3960 | """GetDefaultAttributes(self) -> VisualAttributes""" | |
3961 | return _windows_.PyPanel_GetDefaultAttributes(*args, **kwargs) | |
e811c8ce | 3962 | |
c26d9ab4 RD |
3963 | def OnInternalIdle(*args, **kwargs): |
3964 | """OnInternalIdle(self)""" | |
3965 | return _windows_.PyPanel_OnInternalIdle(*args, **kwargs) | |
e811c8ce | 3966 | |
c26d9ab4 RD |
3967 | def base_DoMoveWindow(*args, **kw): |
3968 | return PyPanel.DoMoveWindow(*args, **kw) | |
3969 | base_DoMoveWindow = wx._deprecated(base_DoMoveWindow, | |
3970 | "Please use PyPanel.DoMoveWindow instead.") | |
e811c8ce | 3971 | |
c26d9ab4 RD |
3972 | def base_DoSetSize(*args, **kw): |
3973 | return PyPanel.DoSetSize(*args, **kw) | |
3974 | base_DoSetSize = wx._deprecated(base_DoSetSize, | |
3975 | "Please use PyPanel.DoSetSize instead.") | |
e811c8ce | 3976 | |
c26d9ab4 RD |
3977 | def base_DoSetClientSize(*args, **kw): |
3978 | return PyPanel.DoSetClientSize(*args, **kw) | |
3979 | base_DoSetClientSize = wx._deprecated(base_DoSetClientSize, | |
3980 | "Please use PyPanel.DoSetClientSize instead.") | |
e811c8ce | 3981 | |
c26d9ab4 RD |
3982 | def base_DoSetVirtualSize(*args, **kw): |
3983 | return PyPanel.DoSetVirtualSize(*args, **kw) | |
3984 | base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize, | |
3985 | "Please use PyPanel.DoSetVirtualSize instead.") | |
e811c8ce | 3986 | |
c26d9ab4 RD |
3987 | def base_DoGetSize(*args, **kw): |
3988 | return PyPanel.DoGetSize(*args, **kw) | |
3989 | base_DoGetSize = wx._deprecated(base_DoGetSize, | |
3990 | "Please use PyPanel.DoGetSize instead.") | |
e811c8ce | 3991 | |
c26d9ab4 RD |
3992 | def base_DoGetClientSize(*args, **kw): |
3993 | return PyPanel.DoGetClientSize(*args, **kw) | |
3994 | base_DoGetClientSize = wx._deprecated(base_DoGetClientSize, | |
3995 | "Please use PyPanel.DoGetClientSize instead.") | |
e811c8ce | 3996 | |
c26d9ab4 RD |
3997 | def base_DoGetPosition(*args, **kw): |
3998 | return PyPanel.DoGetPosition(*args, **kw) | |
3999 | base_DoGetPosition = wx._deprecated(base_DoGetPosition, | |
4000 | "Please use PyPanel.DoGetPosition instead.") | |
e811c8ce | 4001 | |
c26d9ab4 RD |
4002 | def base_DoGetVirtualSize(*args, **kw): |
4003 | return PyPanel.DoGetVirtualSize(*args, **kw) | |
4004 | base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize, | |
4005 | "Please use PyPanel.DoGetVirtualSize instead.") | |
e811c8ce | 4006 | |
c26d9ab4 RD |
4007 | def base_DoGetBestSize(*args, **kw): |
4008 | return PyPanel.DoGetBestSize(*args, **kw) | |
4009 | base_DoGetBestSize = wx._deprecated(base_DoGetBestSize, | |
4010 | "Please use PyPanel.DoGetBestSize instead.") | |
e811c8ce | 4011 | |
c26d9ab4 RD |
4012 | def base_InitDialog(*args, **kw): |
4013 | return PyPanel.InitDialog(*args, **kw) | |
4014 | base_InitDialog = wx._deprecated(base_InitDialog, | |
4015 | "Please use PyPanel.InitDialog instead.") | |
e811c8ce | 4016 | |
c26d9ab4 RD |
4017 | def base_TransferDataToWindow(*args, **kw): |
4018 | return PyPanel.TransferDataToWindow(*args, **kw) | |
4019 | base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow, | |
4020 | "Please use PyPanel.TransferDataToWindow instead.") | |
e811c8ce | 4021 | |
c26d9ab4 RD |
4022 | def base_TransferDataFromWindow(*args, **kw): |
4023 | return PyPanel.TransferDataFromWindow(*args, **kw) | |
4024 | base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow, | |
4025 | "Please use PyPanel.TransferDataFromWindow instead.") | |
1cb4a8aa | 4026 | |
c26d9ab4 RD |
4027 | def base_Validate(*args, **kw): |
4028 | return PyPanel.Validate(*args, **kw) | |
4029 | base_Validate = wx._deprecated(base_Validate, | |
4030 | "Please use PyPanel.Validate instead.") | |
db3e571a | 4031 | |
c26d9ab4 RD |
4032 | def base_AcceptsFocus(*args, **kw): |
4033 | return PyPanel.AcceptsFocus(*args, **kw) | |
4034 | base_AcceptsFocus = wx._deprecated(base_AcceptsFocus, | |
4035 | "Please use PyPanel.AcceptsFocus instead.") | |
4036 | ||
4037 | def base_AcceptsFocusFromKeyboard(*args, **kw): | |
4038 | return PyPanel.AcceptsFocusFromKeyboard(*args, **kw) | |
4039 | base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard, | |
4040 | "Please use PyPanel.AcceptsFocusFromKeyboard instead.") | |
4041 | ||
4042 | def base_GetMaxSize(*args, **kw): | |
4043 | return PyPanel.GetMaxSize(*args, **kw) | |
4044 | base_GetMaxSize = wx._deprecated(base_GetMaxSize, | |
4045 | "Please use PyPanel.GetMaxSize instead.") | |
4046 | ||
4047 | def base_AddChild(*args, **kw): | |
4048 | return PyPanel.AddChild(*args, **kw) | |
4049 | base_AddChild = wx._deprecated(base_AddChild, | |
4050 | "Please use PyPanel.AddChild instead.") | |
4051 | ||
4052 | def base_RemoveChild(*args, **kw): | |
4053 | return PyPanel.RemoveChild(*args, **kw) | |
4054 | base_RemoveChild = wx._deprecated(base_RemoveChild, | |
4055 | "Please use PyPanel.RemoveChild instead.") | |
4056 | ||
4057 | def base_ShouldInheritColours(*args, **kw): | |
4058 | return PyPanel.ShouldInheritColours(*args, **kw) | |
4059 | base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours, | |
4060 | "Please use PyPanel.ShouldInheritColours instead.") | |
4061 | ||
4062 | def base_GetDefaultAttributes(*args, **kw): | |
4063 | return PyPanel.GetDefaultAttributes(*args, **kw) | |
4064 | base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes, | |
4065 | "Please use PyPanel.GetDefaultAttributes instead.") | |
4066 | ||
4067 | def base_OnInternalIdle(*args, **kw): | |
4068 | return PyPanel.OnInternalIdle(*args, **kw) | |
4069 | base_OnInternalIdle = wx._deprecated(base_OnInternalIdle, | |
4070 | "Please use PyPanel.OnInternalIdle instead.") | |
8d38bd1d | 4071 | |
a1df7a95 | 4072 | |
d14a1e28 RD |
4073 | class PyPanelPtr(PyPanel): |
4074 | def __init__(self, this): | |
4075 | self.this = this | |
4076 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4077 | self.__class__ = PyPanel | |
54f9ee45 | 4078 | _windows_.PyPanel_swigregister(PyPanelPtr) |
d14a1e28 | 4079 | |
1cb4a8aa RD |
4080 | def PrePyPanel(*args, **kwargs): |
4081 | """PrePyPanel() -> PyPanel""" | |
54f9ee45 | 4082 | val = _windows_.new_PrePyPanel(*args, **kwargs) |
1cb4a8aa RD |
4083 | val.thisown = 1 |
4084 | return val | |
4085 | ||
4086 | class PyScrolledWindow(ScrolledWindow): | |
093d3ff1 | 4087 | """Proxy of C++ PyScrolledWindow class""" |
1cb4a8aa RD |
4088 | def __repr__(self): |
4089 | return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4090 | def __init__(self, *args, **kwargs): | |
4091 | """ | |
248ed943 RD |
4092 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
4093 | Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow | |
1cb4a8aa | 4094 | """ |
54f9ee45 | 4095 | newobj = _windows_.new_PyScrolledWindow(*args, **kwargs) |
1cb4a8aa RD |
4096 | self.this = newobj.this |
4097 | self.thisown = 1 | |
4098 | del newobj.thisown | |
a01da36a | 4099 | self._setOORInfo(self); self._setCallbackInfo(self, PyScrolledWindow) |
1cb4a8aa RD |
4100 | |
4101 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 4102 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 4103 | return _windows_.PyScrolledWindow__setCallbackInfo(*args, **kwargs) |
1cb4a8aa | 4104 | |
db3e571a RD |
4105 | def SetBestSize(*args, **kwargs): |
4106 | """SetBestSize(self, Size size)""" | |
4107 | return _windows_.PyScrolledWindow_SetBestSize(*args, **kwargs) | |
4108 | ||
976dbff5 RD |
4109 | def DoEraseBackground(*args, **kwargs): |
4110 | """DoEraseBackground(self, DC dc) -> bool""" | |
4111 | return _windows_.PyScrolledWindow_DoEraseBackground(*args, **kwargs) | |
4112 | ||
c26d9ab4 RD |
4113 | def DoMoveWindow(*args, **kwargs): |
4114 | """DoMoveWindow(self, int x, int y, int width, int height)""" | |
4115 | return _windows_.PyScrolledWindow_DoMoveWindow(*args, **kwargs) | |
4116 | ||
4117 | def DoSetSize(*args, **kwargs): | |
4118 | """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" | |
4119 | return _windows_.PyScrolledWindow_DoSetSize(*args, **kwargs) | |
4120 | ||
4121 | def DoSetClientSize(*args, **kwargs): | |
4122 | """DoSetClientSize(self, int width, int height)""" | |
4123 | return _windows_.PyScrolledWindow_DoSetClientSize(*args, **kwargs) | |
4124 | ||
4125 | def DoSetVirtualSize(*args, **kwargs): | |
4126 | """DoSetVirtualSize(self, int x, int y)""" | |
4127 | return _windows_.PyScrolledWindow_DoSetVirtualSize(*args, **kwargs) | |
1cb4a8aa | 4128 | |
c26d9ab4 RD |
4129 | def DoGetSize(*args, **kwargs): |
4130 | """DoGetSize() -> (width, height)""" | |
4131 | return _windows_.PyScrolledWindow_DoGetSize(*args, **kwargs) | |
1cb4a8aa | 4132 | |
c26d9ab4 RD |
4133 | def DoGetClientSize(*args, **kwargs): |
4134 | """DoGetClientSize() -> (width, height)""" | |
4135 | return _windows_.PyScrolledWindow_DoGetClientSize(*args, **kwargs) | |
1cb4a8aa | 4136 | |
c26d9ab4 RD |
4137 | def DoGetPosition(*args, **kwargs): |
4138 | """DoGetPosition() -> (x,y)""" | |
4139 | return _windows_.PyScrolledWindow_DoGetPosition(*args, **kwargs) | |
1cb4a8aa | 4140 | |
c26d9ab4 RD |
4141 | def DoGetVirtualSize(*args, **kwargs): |
4142 | """DoGetVirtualSize(self) -> Size""" | |
4143 | return _windows_.PyScrolledWindow_DoGetVirtualSize(*args, **kwargs) | |
1cb4a8aa | 4144 | |
c26d9ab4 RD |
4145 | def DoGetBestSize(*args, **kwargs): |
4146 | """DoGetBestSize(self) -> Size""" | |
4147 | return _windows_.PyScrolledWindow_DoGetBestSize(*args, **kwargs) | |
1cb4a8aa | 4148 | |
c26d9ab4 RD |
4149 | def InitDialog(*args, **kwargs): |
4150 | """ | |
4151 | InitDialog(self) | |
1cb4a8aa | 4152 | |
c26d9ab4 RD |
4153 | Sends an EVT_INIT_DIALOG event, whose handler usually transfers data |
4154 | to the dialog via validators. | |
4155 | """ | |
4156 | return _windows_.PyScrolledWindow_InitDialog(*args, **kwargs) | |
1cb4a8aa | 4157 | |
c26d9ab4 RD |
4158 | def TransferDataToWindow(*args, **kwargs): |
4159 | """ | |
4160 | TransferDataToWindow(self) -> bool | |
4161 | ||
4162 | Transfers values to child controls from data areas specified by their | |
4163 | validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra | |
4164 | style flag set, the method will also call TransferDataToWindow() of | |
4165 | all child windows. | |
4166 | """ | |
4167 | return _windows_.PyScrolledWindow_TransferDataToWindow(*args, **kwargs) | |
4168 | ||
4169 | def TransferDataFromWindow(*args, **kwargs): | |
4170 | """ | |
4171 | TransferDataFromWindow(self) -> bool | |
4172 | ||
4173 | Transfers values from child controls to data areas specified by their | |
4174 | validators. Returns false if a transfer failed. If the window has | |
4175 | wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the method will | |
4176 | also call TransferDataFromWindow() of all child windows. | |
4177 | """ | |
4178 | return _windows_.PyScrolledWindow_TransferDataFromWindow(*args, **kwargs) | |
4179 | ||
4180 | def Validate(*args, **kwargs): | |
4181 | """ | |
4182 | Validate(self) -> bool | |
4183 | ||
4184 | Validates the current values of the child controls using their | |
4185 | validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra | |
4186 | style flag set, the method will also call Validate() of all child | |
4187 | windows. Returns false if any of the validations failed. | |
4188 | """ | |
4189 | return _windows_.PyScrolledWindow_Validate(*args, **kwargs) | |
4190 | ||
4191 | def AcceptsFocus(*args, **kwargs): | |
4192 | """ | |
4193 | AcceptsFocus(self) -> bool | |
4194 | ||
4195 | Can this window have focus? | |
4196 | """ | |
4197 | return _windows_.PyScrolledWindow_AcceptsFocus(*args, **kwargs) | |
4198 | ||
4199 | def AcceptsFocusFromKeyboard(*args, **kwargs): | |
4200 | """ | |
4201 | AcceptsFocusFromKeyboard(self) -> bool | |
4202 | ||
4203 | Can this window be given focus by keyboard navigation? if not, the | |
4204 | only way to give it focus (provided it accepts it at all) is to click | |
4205 | it. | |
4206 | """ | |
4207 | return _windows_.PyScrolledWindow_AcceptsFocusFromKeyboard(*args, **kwargs) | |
4208 | ||
4209 | def GetMaxSize(*args, **kwargs): | |
4210 | """GetMaxSize(self) -> Size""" | |
4211 | return _windows_.PyScrolledWindow_GetMaxSize(*args, **kwargs) | |
4212 | ||
4213 | def AddChild(*args, **kwargs): | |
4214 | """ | |
4215 | AddChild(self, Window child) | |
4216 | ||
4217 | Adds a child window. This is called automatically by window creation | |
4218 | functions so should not be required by the application programmer. | |
4219 | """ | |
4220 | return _windows_.PyScrolledWindow_AddChild(*args, **kwargs) | |
4221 | ||
4222 | def RemoveChild(*args, **kwargs): | |
4223 | """ | |
4224 | RemoveChild(self, Window child) | |
4225 | ||
4226 | Removes a child window. This is called automatically by window | |
4227 | deletion functions so should not be required by the application | |
4228 | programmer. | |
4229 | """ | |
4230 | return _windows_.PyScrolledWindow_RemoveChild(*args, **kwargs) | |
4231 | ||
4232 | def ShouldInheritColours(*args, **kwargs): | |
4233 | """ | |
4234 | ShouldInheritColours(self) -> bool | |
4235 | ||
4236 | Return true from here to allow the colours of this window to be | |
4237 | changed by InheritAttributes, returning false forbids inheriting them | |
4238 | from the parent window. | |
4239 | ||
4240 | The base class version returns false, but this method is overridden in | |
4241 | wxControl where it returns true. | |
4242 | """ | |
4243 | return _windows_.PyScrolledWindow_ShouldInheritColours(*args, **kwargs) | |
1cb4a8aa | 4244 | |
c26d9ab4 RD |
4245 | def GetDefaultAttributes(*args, **kwargs): |
4246 | """GetDefaultAttributes(self) -> VisualAttributes""" | |
4247 | return _windows_.PyScrolledWindow_GetDefaultAttributes(*args, **kwargs) | |
1cb4a8aa | 4248 | |
c26d9ab4 RD |
4249 | def OnInternalIdle(*args, **kwargs): |
4250 | """OnInternalIdle(self)""" | |
4251 | return _windows_.PyScrolledWindow_OnInternalIdle(*args, **kwargs) | |
1cb4a8aa | 4252 | |
c26d9ab4 RD |
4253 | def base_DoMoveWindow(*args, **kw): |
4254 | return PyScrolledWindow.DoMoveWindow(*args, **kw) | |
4255 | base_DoMoveWindow = wx._deprecated(base_DoMoveWindow, | |
4256 | "Please use PyScrolledWindow.DoMoveWindow instead.") | |
1cb4a8aa | 4257 | |
c26d9ab4 RD |
4258 | def base_DoSetSize(*args, **kw): |
4259 | return PyScrolledWindow.DoSetSize(*args, **kw) | |
4260 | base_DoSetSize = wx._deprecated(base_DoSetSize, | |
4261 | "Please use PyScrolledWindow.DoSetSize instead.") | |
1cb4a8aa | 4262 | |
c26d9ab4 RD |
4263 | def base_DoSetClientSize(*args, **kw): |
4264 | return PyScrolledWindow.DoSetClientSize(*args, **kw) | |
4265 | base_DoSetClientSize = wx._deprecated(base_DoSetClientSize, | |
4266 | "Please use PyScrolledWindow.DoSetClientSize instead.") | |
1cb4a8aa | 4267 | |
c26d9ab4 RD |
4268 | def base_DoSetVirtualSize(*args, **kw): |
4269 | return PyScrolledWindow.DoSetVirtualSize(*args, **kw) | |
4270 | base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize, | |
4271 | "Please use PyScrolledWindow.DoSetVirtualSize instead.") | |
1cb4a8aa | 4272 | |
c26d9ab4 RD |
4273 | def base_DoGetSize(*args, **kw): |
4274 | return PyScrolledWindow.DoGetSize(*args, **kw) | |
4275 | base_DoGetSize = wx._deprecated(base_DoGetSize, | |
4276 | "Please use PyScrolledWindow.DoGetSize instead.") | |
1cb4a8aa | 4277 | |
c26d9ab4 RD |
4278 | def base_DoGetClientSize(*args, **kw): |
4279 | return PyScrolledWindow.DoGetClientSize(*args, **kw) | |
4280 | base_DoGetClientSize = wx._deprecated(base_DoGetClientSize, | |
4281 | "Please use PyScrolledWindow.DoGetClientSize instead.") | |
1cb4a8aa | 4282 | |
c26d9ab4 RD |
4283 | def base_DoGetPosition(*args, **kw): |
4284 | return PyScrolledWindow.DoGetPosition(*args, **kw) | |
4285 | base_DoGetPosition = wx._deprecated(base_DoGetPosition, | |
4286 | "Please use PyScrolledWindow.DoGetPosition instead.") | |
1cb4a8aa | 4287 | |
c26d9ab4 RD |
4288 | def base_DoGetVirtualSize(*args, **kw): |
4289 | return PyScrolledWindow.DoGetVirtualSize(*args, **kw) | |
4290 | base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize, | |
4291 | "Please use PyScrolledWindow.DoGetVirtualSize instead.") | |
1cb4a8aa | 4292 | |
c26d9ab4 RD |
4293 | def base_DoGetBestSize(*args, **kw): |
4294 | return PyScrolledWindow.DoGetBestSize(*args, **kw) | |
4295 | base_DoGetBestSize = wx._deprecated(base_DoGetBestSize, | |
4296 | "Please use PyScrolledWindow.DoGetBestSize instead.") | |
db3e571a | 4297 | |
c26d9ab4 RD |
4298 | def base_InitDialog(*args, **kw): |
4299 | return PyScrolledWindow.InitDialog(*args, **kw) | |
4300 | base_InitDialog = wx._deprecated(base_InitDialog, | |
4301 | "Please use PyScrolledWindow.InitDialog instead.") | |
4302 | ||
4303 | def base_TransferDataToWindow(*args, **kw): | |
4304 | return PyScrolledWindow.TransferDataToWindow(*args, **kw) | |
4305 | base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow, | |
4306 | "Please use PyScrolledWindow.TransferDataToWindow instead.") | |
4307 | ||
4308 | def base_TransferDataFromWindow(*args, **kw): | |
4309 | return PyScrolledWindow.TransferDataFromWindow(*args, **kw) | |
4310 | base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow, | |
4311 | "Please use PyScrolledWindow.TransferDataFromWindow instead.") | |
4312 | ||
4313 | def base_Validate(*args, **kw): | |
4314 | return PyScrolledWindow.Validate(*args, **kw) | |
4315 | base_Validate = wx._deprecated(base_Validate, | |
4316 | "Please use PyScrolledWindow.Validate instead.") | |
4317 | ||
4318 | def base_AcceptsFocus(*args, **kw): | |
4319 | return PyScrolledWindow.AcceptsFocus(*args, **kw) | |
4320 | base_AcceptsFocus = wx._deprecated(base_AcceptsFocus, | |
4321 | "Please use PyScrolledWindow.AcceptsFocus instead.") | |
4322 | ||
4323 | def base_AcceptsFocusFromKeyboard(*args, **kw): | |
4324 | return PyScrolledWindow.AcceptsFocusFromKeyboard(*args, **kw) | |
4325 | base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard, | |
4326 | "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.") | |
4327 | ||
4328 | def base_GetMaxSize(*args, **kw): | |
4329 | return PyScrolledWindow.GetMaxSize(*args, **kw) | |
4330 | base_GetMaxSize = wx._deprecated(base_GetMaxSize, | |
4331 | "Please use PyScrolledWindow.GetMaxSize instead.") | |
4332 | ||
4333 | def base_AddChild(*args, **kw): | |
4334 | return PyScrolledWindow.AddChild(*args, **kw) | |
4335 | base_AddChild = wx._deprecated(base_AddChild, | |
4336 | "Please use PyScrolledWindow.AddChild instead.") | |
4337 | ||
4338 | def base_RemoveChild(*args, **kw): | |
4339 | return PyScrolledWindow.RemoveChild(*args, **kw) | |
4340 | base_RemoveChild = wx._deprecated(base_RemoveChild, | |
4341 | "Please use PyScrolledWindow.RemoveChild instead.") | |
4342 | ||
4343 | def base_ShouldInheritColours(*args, **kw): | |
4344 | return PyScrolledWindow.ShouldInheritColours(*args, **kw) | |
4345 | base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours, | |
4346 | "Please use PyScrolledWindow.ShouldInheritColours instead.") | |
4347 | ||
4348 | def base_GetDefaultAttributes(*args, **kw): | |
4349 | return PyScrolledWindow.GetDefaultAttributes(*args, **kw) | |
4350 | base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes, | |
4351 | "Please use PyScrolledWindow.GetDefaultAttributes instead.") | |
4352 | ||
4353 | def base_OnInternalIdle(*args, **kw): | |
4354 | return PyScrolledWindow.OnInternalIdle(*args, **kw) | |
4355 | base_OnInternalIdle = wx._deprecated(base_OnInternalIdle, | |
4356 | "Please use PyScrolledWindow.OnInternalIdle instead.") | |
8d38bd1d | 4357 | |
1cb4a8aa RD |
4358 | |
4359 | class PyScrolledWindowPtr(PyScrolledWindow): | |
4360 | def __init__(self, this): | |
4361 | self.this = this | |
4362 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4363 | self.__class__ = PyScrolledWindow | |
54f9ee45 | 4364 | _windows_.PyScrolledWindow_swigregister(PyScrolledWindowPtr) |
1cb4a8aa RD |
4365 | |
4366 | def PrePyScrolledWindow(*args, **kwargs): | |
4367 | """PrePyScrolledWindow() -> PyScrolledWindow""" | |
54f9ee45 | 4368 | val = _windows_.new_PrePyScrolledWindow(*args, **kwargs) |
1cb4a8aa RD |
4369 | val.thisown = 1 |
4370 | return val | |
4371 | ||
d14a1e28 RD |
4372 | #--------------------------------------------------------------------------- |
4373 | ||
54f9ee45 RD |
4374 | PRINT_MODE_NONE = _windows_.PRINT_MODE_NONE |
4375 | PRINT_MODE_PREVIEW = _windows_.PRINT_MODE_PREVIEW | |
4376 | PRINT_MODE_FILE = _windows_.PRINT_MODE_FILE | |
4377 | PRINT_MODE_PRINTER = _windows_.PRINT_MODE_PRINTER | |
4378 | PRINT_MODE_STREAM = _windows_.PRINT_MODE_STREAM | |
2ef75293 RD |
4379 | PRINTBIN_DEFAULT = _windows_.PRINTBIN_DEFAULT |
4380 | PRINTBIN_ONLYONE = _windows_.PRINTBIN_ONLYONE | |
4381 | PRINTBIN_LOWER = _windows_.PRINTBIN_LOWER | |
4382 | PRINTBIN_MIDDLE = _windows_.PRINTBIN_MIDDLE | |
4383 | PRINTBIN_MANUAL = _windows_.PRINTBIN_MANUAL | |
4384 | PRINTBIN_ENVELOPE = _windows_.PRINTBIN_ENVELOPE | |
4385 | PRINTBIN_ENVMANUAL = _windows_.PRINTBIN_ENVMANUAL | |
4386 | PRINTBIN_AUTO = _windows_.PRINTBIN_AUTO | |
4387 | PRINTBIN_TRACTOR = _windows_.PRINTBIN_TRACTOR | |
4388 | PRINTBIN_SMALLFMT = _windows_.PRINTBIN_SMALLFMT | |
4389 | PRINTBIN_LARGEFMT = _windows_.PRINTBIN_LARGEFMT | |
4390 | PRINTBIN_LARGECAPACITY = _windows_.PRINTBIN_LARGECAPACITY | |
4391 | PRINTBIN_CASSETTE = _windows_.PRINTBIN_CASSETTE | |
4392 | PRINTBIN_FORMSOURCE = _windows_.PRINTBIN_FORMSOURCE | |
4393 | PRINTBIN_USER = _windows_.PRINTBIN_USER | |
54f9ee45 | 4394 | class PrintData(_core.Object): |
093d3ff1 | 4395 | """Proxy of C++ PrintData class""" |
e811c8ce RD |
4396 | def __repr__(self): |
4397 | return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
11207aef RD |
4398 | def __init__(self, *args): |
4399 | """ | |
4400 | __init__(self) -> PrintData | |
4401 | __init__(self, PrintData data) -> PrintData | |
4402 | """ | |
4403 | newobj = _windows_.new_PrintData(*args) | |
d14a1e28 RD |
4404 | self.this = newobj.this |
4405 | self.thisown = 1 | |
4406 | del newobj.thisown | |
54f9ee45 | 4407 | def __del__(self, destroy=_windows_.delete_PrintData): |
a95a7133 | 4408 | """__del__(self)""" |
d14a1e28 RD |
4409 | try: |
4410 | if self.thisown: destroy(self) | |
4411 | except: pass | |
e811c8ce RD |
4412 | |
4413 | def GetNoCopies(*args, **kwargs): | |
a95a7133 | 4414 | """GetNoCopies(self) -> int""" |
54f9ee45 | 4415 | return _windows_.PrintData_GetNoCopies(*args, **kwargs) |
e811c8ce RD |
4416 | |
4417 | def GetCollate(*args, **kwargs): | |
a95a7133 | 4418 | """GetCollate(self) -> bool""" |
54f9ee45 | 4419 | return _windows_.PrintData_GetCollate(*args, **kwargs) |
e811c8ce RD |
4420 | |
4421 | def GetOrientation(*args, **kwargs): | |
a95a7133 | 4422 | """GetOrientation(self) -> int""" |
54f9ee45 | 4423 | return _windows_.PrintData_GetOrientation(*args, **kwargs) |
e811c8ce RD |
4424 | |
4425 | def Ok(*args, **kwargs): | |
a95a7133 | 4426 | """Ok(self) -> bool""" |
54f9ee45 | 4427 | return _windows_.PrintData_Ok(*args, **kwargs) |
e811c8ce RD |
4428 | |
4429 | def GetPrinterName(*args, **kwargs): | |
a95a7133 | 4430 | """GetPrinterName(self) -> String""" |
54f9ee45 | 4431 | return _windows_.PrintData_GetPrinterName(*args, **kwargs) |
e811c8ce RD |
4432 | |
4433 | def GetColour(*args, **kwargs): | |
a95a7133 | 4434 | """GetColour(self) -> bool""" |
54f9ee45 | 4435 | return _windows_.PrintData_GetColour(*args, **kwargs) |
e811c8ce RD |
4436 | |
4437 | def GetDuplex(*args, **kwargs): | |
a95a7133 | 4438 | """GetDuplex(self) -> int""" |
54f9ee45 | 4439 | return _windows_.PrintData_GetDuplex(*args, **kwargs) |
e811c8ce RD |
4440 | |
4441 | def GetPaperId(*args, **kwargs): | |
a95a7133 | 4442 | """GetPaperId(self) -> int""" |
54f9ee45 | 4443 | return _windows_.PrintData_GetPaperId(*args, **kwargs) |
e811c8ce RD |
4444 | |
4445 | def GetPaperSize(*args, **kwargs): | |
a95a7133 | 4446 | """GetPaperSize(self) -> Size""" |
54f9ee45 | 4447 | return _windows_.PrintData_GetPaperSize(*args, **kwargs) |
e811c8ce RD |
4448 | |
4449 | def GetQuality(*args, **kwargs): | |
a95a7133 | 4450 | """GetQuality(self) -> int""" |
54f9ee45 | 4451 | return _windows_.PrintData_GetQuality(*args, **kwargs) |
e811c8ce | 4452 | |
2ef75293 RD |
4453 | def GetBin(*args, **kwargs): |
4454 | """GetBin(self) -> int""" | |
4455 | return _windows_.PrintData_GetBin(*args, **kwargs) | |
4456 | ||
d3b6e4ff RD |
4457 | def GetPrintMode(*args, **kwargs): |
4458 | """GetPrintMode(self) -> int""" | |
4459 | return _windows_.PrintData_GetPrintMode(*args, **kwargs) | |
4460 | ||
e811c8ce | 4461 | def SetNoCopies(*args, **kwargs): |
a95a7133 | 4462 | """SetNoCopies(self, int v)""" |
54f9ee45 | 4463 | return _windows_.PrintData_SetNoCopies(*args, **kwargs) |
e811c8ce RD |
4464 | |
4465 | def SetCollate(*args, **kwargs): | |
a95a7133 | 4466 | """SetCollate(self, bool flag)""" |
54f9ee45 | 4467 | return _windows_.PrintData_SetCollate(*args, **kwargs) |
e811c8ce RD |
4468 | |
4469 | def SetOrientation(*args, **kwargs): | |
a95a7133 | 4470 | """SetOrientation(self, int orient)""" |
54f9ee45 | 4471 | return _windows_.PrintData_SetOrientation(*args, **kwargs) |
e811c8ce RD |
4472 | |
4473 | def SetPrinterName(*args, **kwargs): | |
a95a7133 | 4474 | """SetPrinterName(self, String name)""" |
54f9ee45 | 4475 | return _windows_.PrintData_SetPrinterName(*args, **kwargs) |
e811c8ce RD |
4476 | |
4477 | def SetColour(*args, **kwargs): | |
a95a7133 | 4478 | """SetColour(self, bool colour)""" |
54f9ee45 | 4479 | return _windows_.PrintData_SetColour(*args, **kwargs) |
e811c8ce RD |
4480 | |
4481 | def SetDuplex(*args, **kwargs): | |
a95a7133 | 4482 | """SetDuplex(self, int duplex)""" |
54f9ee45 | 4483 | return _windows_.PrintData_SetDuplex(*args, **kwargs) |
e811c8ce RD |
4484 | |
4485 | def SetPaperId(*args, **kwargs): | |
a95a7133 | 4486 | """SetPaperId(self, int sizeId)""" |
54f9ee45 | 4487 | return _windows_.PrintData_SetPaperId(*args, **kwargs) |
e811c8ce RD |
4488 | |
4489 | def SetPaperSize(*args, **kwargs): | |
a95a7133 | 4490 | """SetPaperSize(self, Size sz)""" |
54f9ee45 | 4491 | return _windows_.PrintData_SetPaperSize(*args, **kwargs) |
e811c8ce RD |
4492 | |
4493 | def SetQuality(*args, **kwargs): | |
a95a7133 | 4494 | """SetQuality(self, int quality)""" |
54f9ee45 | 4495 | return _windows_.PrintData_SetQuality(*args, **kwargs) |
e811c8ce | 4496 | |
2ef75293 RD |
4497 | def SetBin(*args, **kwargs): |
4498 | """SetBin(self, int bin)""" | |
4499 | return _windows_.PrintData_SetBin(*args, **kwargs) | |
4500 | ||
d3b6e4ff RD |
4501 | def SetPrintMode(*args, **kwargs): |
4502 | """SetPrintMode(self, int printMode)""" | |
4503 | return _windows_.PrintData_SetPrintMode(*args, **kwargs) | |
4504 | ||
4505 | def GetFilename(*args, **kwargs): | |
4506 | """GetFilename(self) -> String""" | |
4507 | return _windows_.PrintData_GetFilename(*args, **kwargs) | |
4508 | ||
4509 | def SetFilename(*args, **kwargs): | |
4510 | """SetFilename(self, String filename)""" | |
4511 | return _windows_.PrintData_SetFilename(*args, **kwargs) | |
4512 | ||
4513 | def __nonzero__(self): return self.Ok() | |
b9d6a5f3 RD |
4514 | def GetPrivData(*args, **kwargs): |
4515 | """GetPrivData(self) -> PyObject""" | |
4516 | return _windows_.PrintData_GetPrivData(*args, **kwargs) | |
4517 | ||
4518 | def SetPrivData(*args, **kwargs): | |
4519 | """SetPrivData(self, PyObject data)""" | |
4520 | return _windows_.PrintData_SetPrivData(*args, **kwargs) | |
4521 | ||
d14a1e28 RD |
4522 | |
4523 | class PrintDataPtr(PrintData): | |
4524 | def __init__(self, this): | |
4525 | self.this = this | |
4526 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4527 | self.__class__ = PrintData | |
54f9ee45 | 4528 | _windows_.PrintData_swigregister(PrintDataPtr) |
b2dc1044 RD |
4529 | PrintoutTitleStr = cvar.PrintoutTitleStr |
4530 | PreviewCanvasNameStr = cvar.PreviewCanvasNameStr | |
d14a1e28 | 4531 | |
54f9ee45 | 4532 | class PageSetupDialogData(_core.Object): |
093d3ff1 | 4533 | """Proxy of C++ PageSetupDialogData class""" |
e811c8ce RD |
4534 | def __repr__(self): |
4535 | return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
11207aef RD |
4536 | def __init__(self, *args): |
4537 | """ | |
4538 | __init__(self) -> PageSetupDialogData | |
4539 | __init__(self, PageSetupDialogData data) -> PageSetupDialogData | |
7557b9b5 | 4540 | __init__(self, PrintData data) -> PageSetupDialogData |
11207aef RD |
4541 | """ |
4542 | newobj = _windows_.new_PageSetupDialogData(*args) | |
d14a1e28 RD |
4543 | self.this = newobj.this |
4544 | self.thisown = 1 | |
4545 | del newobj.thisown | |
54f9ee45 | 4546 | def __del__(self, destroy=_windows_.delete_PageSetupDialogData): |
a95a7133 | 4547 | """__del__(self)""" |
d14a1e28 RD |
4548 | try: |
4549 | if self.thisown: destroy(self) | |
4550 | except: pass | |
e811c8ce RD |
4551 | |
4552 | def EnableHelp(*args, **kwargs): | |
a95a7133 | 4553 | """EnableHelp(self, bool flag)""" |
54f9ee45 | 4554 | return _windows_.PageSetupDialogData_EnableHelp(*args, **kwargs) |
e811c8ce RD |
4555 | |
4556 | def EnableMargins(*args, **kwargs): | |
a95a7133 | 4557 | """EnableMargins(self, bool flag)""" |
54f9ee45 | 4558 | return _windows_.PageSetupDialogData_EnableMargins(*args, **kwargs) |
e811c8ce RD |
4559 | |
4560 | def EnableOrientation(*args, **kwargs): | |
a95a7133 | 4561 | """EnableOrientation(self, bool flag)""" |
54f9ee45 | 4562 | return _windows_.PageSetupDialogData_EnableOrientation(*args, **kwargs) |
e811c8ce RD |
4563 | |
4564 | def EnablePaper(*args, **kwargs): | |
a95a7133 | 4565 | """EnablePaper(self, bool flag)""" |
54f9ee45 | 4566 | return _windows_.PageSetupDialogData_EnablePaper(*args, **kwargs) |
e811c8ce RD |
4567 | |
4568 | def EnablePrinter(*args, **kwargs): | |
a95a7133 | 4569 | """EnablePrinter(self, bool flag)""" |
54f9ee45 | 4570 | return _windows_.PageSetupDialogData_EnablePrinter(*args, **kwargs) |
e811c8ce RD |
4571 | |
4572 | def GetDefaultMinMargins(*args, **kwargs): | |
a95a7133 | 4573 | """GetDefaultMinMargins(self) -> bool""" |
54f9ee45 | 4574 | return _windows_.PageSetupDialogData_GetDefaultMinMargins(*args, **kwargs) |
e811c8ce RD |
4575 | |
4576 | def GetEnableMargins(*args, **kwargs): | |
a95a7133 | 4577 | """GetEnableMargins(self) -> bool""" |
54f9ee45 | 4578 | return _windows_.PageSetupDialogData_GetEnableMargins(*args, **kwargs) |
e811c8ce RD |
4579 | |
4580 | def GetEnableOrientation(*args, **kwargs): | |
a95a7133 | 4581 | """GetEnableOrientation(self) -> bool""" |
54f9ee45 | 4582 | return _windows_.PageSetupDialogData_GetEnableOrientation(*args, **kwargs) |
e811c8ce RD |
4583 | |
4584 | def GetEnablePaper(*args, **kwargs): | |
a95a7133 | 4585 | """GetEnablePaper(self) -> bool""" |
54f9ee45 | 4586 | return _windows_.PageSetupDialogData_GetEnablePaper(*args, **kwargs) |
e811c8ce RD |
4587 | |
4588 | def GetEnablePrinter(*args, **kwargs): | |
a95a7133 | 4589 | """GetEnablePrinter(self) -> bool""" |
54f9ee45 | 4590 | return _windows_.PageSetupDialogData_GetEnablePrinter(*args, **kwargs) |
e811c8ce RD |
4591 | |
4592 | def GetEnableHelp(*args, **kwargs): | |
a95a7133 | 4593 | """GetEnableHelp(self) -> bool""" |
54f9ee45 | 4594 | return _windows_.PageSetupDialogData_GetEnableHelp(*args, **kwargs) |
e811c8ce RD |
4595 | |
4596 | def GetDefaultInfo(*args, **kwargs): | |
a95a7133 | 4597 | """GetDefaultInfo(self) -> bool""" |
54f9ee45 | 4598 | return _windows_.PageSetupDialogData_GetDefaultInfo(*args, **kwargs) |
e811c8ce RD |
4599 | |
4600 | def GetMarginTopLeft(*args, **kwargs): | |
a95a7133 | 4601 | """GetMarginTopLeft(self) -> Point""" |
54f9ee45 | 4602 | return _windows_.PageSetupDialogData_GetMarginTopLeft(*args, **kwargs) |
e811c8ce RD |
4603 | |
4604 | def GetMarginBottomRight(*args, **kwargs): | |
a95a7133 | 4605 | """GetMarginBottomRight(self) -> Point""" |
54f9ee45 | 4606 | return _windows_.PageSetupDialogData_GetMarginBottomRight(*args, **kwargs) |
e811c8ce RD |
4607 | |
4608 | def GetMinMarginTopLeft(*args, **kwargs): | |
a95a7133 | 4609 | """GetMinMarginTopLeft(self) -> Point""" |
54f9ee45 | 4610 | return _windows_.PageSetupDialogData_GetMinMarginTopLeft(*args, **kwargs) |
e811c8ce RD |
4611 | |
4612 | def GetMinMarginBottomRight(*args, **kwargs): | |
a95a7133 | 4613 | """GetMinMarginBottomRight(self) -> Point""" |
54f9ee45 | 4614 | return _windows_.PageSetupDialogData_GetMinMarginBottomRight(*args, **kwargs) |
e811c8ce RD |
4615 | |
4616 | def GetPaperId(*args, **kwargs): | |
a95a7133 | 4617 | """GetPaperId(self) -> int""" |
54f9ee45 | 4618 | return _windows_.PageSetupDialogData_GetPaperId(*args, **kwargs) |
e811c8ce RD |
4619 | |
4620 | def GetPaperSize(*args, **kwargs): | |
a95a7133 | 4621 | """GetPaperSize(self) -> Size""" |
54f9ee45 | 4622 | return _windows_.PageSetupDialogData_GetPaperSize(*args, **kwargs) |
e811c8ce RD |
4623 | |
4624 | def GetPrintData(*args, **kwargs): | |
a95a7133 | 4625 | """GetPrintData(self) -> PrintData""" |
54f9ee45 | 4626 | return _windows_.PageSetupDialogData_GetPrintData(*args, **kwargs) |
e811c8ce RD |
4627 | |
4628 | def Ok(*args, **kwargs): | |
a95a7133 | 4629 | """Ok(self) -> bool""" |
54f9ee45 | 4630 | return _windows_.PageSetupDialogData_Ok(*args, **kwargs) |
e811c8ce RD |
4631 | |
4632 | def SetDefaultInfo(*args, **kwargs): | |
a95a7133 | 4633 | """SetDefaultInfo(self, bool flag)""" |
54f9ee45 | 4634 | return _windows_.PageSetupDialogData_SetDefaultInfo(*args, **kwargs) |
e811c8ce RD |
4635 | |
4636 | def SetDefaultMinMargins(*args, **kwargs): | |
a95a7133 | 4637 | """SetDefaultMinMargins(self, bool flag)""" |
54f9ee45 | 4638 | return _windows_.PageSetupDialogData_SetDefaultMinMargins(*args, **kwargs) |
e811c8ce RD |
4639 | |
4640 | def SetMarginTopLeft(*args, **kwargs): | |
a95a7133 | 4641 | """SetMarginTopLeft(self, Point pt)""" |
54f9ee45 | 4642 | return _windows_.PageSetupDialogData_SetMarginTopLeft(*args, **kwargs) |
e811c8ce RD |
4643 | |
4644 | def SetMarginBottomRight(*args, **kwargs): | |
a95a7133 | 4645 | """SetMarginBottomRight(self, Point pt)""" |
54f9ee45 | 4646 | return _windows_.PageSetupDialogData_SetMarginBottomRight(*args, **kwargs) |
e811c8ce RD |
4647 | |
4648 | def SetMinMarginTopLeft(*args, **kwargs): | |
a95a7133 | 4649 | """SetMinMarginTopLeft(self, Point pt)""" |
54f9ee45 | 4650 | return _windows_.PageSetupDialogData_SetMinMarginTopLeft(*args, **kwargs) |
e811c8ce RD |
4651 | |
4652 | def SetMinMarginBottomRight(*args, **kwargs): | |
a95a7133 | 4653 | """SetMinMarginBottomRight(self, Point pt)""" |
54f9ee45 | 4654 | return _windows_.PageSetupDialogData_SetMinMarginBottomRight(*args, **kwargs) |
e811c8ce RD |
4655 | |
4656 | def SetPaperId(*args, **kwargs): | |
a95a7133 | 4657 | """SetPaperId(self, int id)""" |
54f9ee45 | 4658 | return _windows_.PageSetupDialogData_SetPaperId(*args, **kwargs) |
e811c8ce RD |
4659 | |
4660 | def SetPaperSize(*args, **kwargs): | |
a95a7133 | 4661 | """SetPaperSize(self, Size size)""" |
54f9ee45 | 4662 | return _windows_.PageSetupDialogData_SetPaperSize(*args, **kwargs) |
e811c8ce RD |
4663 | |
4664 | def SetPrintData(*args, **kwargs): | |
a95a7133 | 4665 | """SetPrintData(self, PrintData printData)""" |
54f9ee45 | 4666 | return _windows_.PageSetupDialogData_SetPrintData(*args, **kwargs) |
e811c8ce | 4667 | |
7557b9b5 RD |
4668 | def CalculateIdFromPaperSize(*args, **kwargs): |
4669 | """CalculateIdFromPaperSize(self)""" | |
4670 | return _windows_.PageSetupDialogData_CalculateIdFromPaperSize(*args, **kwargs) | |
4671 | ||
4672 | def CalculatePaperSizeFromId(*args, **kwargs): | |
4673 | """CalculatePaperSizeFromId(self)""" | |
4674 | return _windows_.PageSetupDialogData_CalculatePaperSizeFromId(*args, **kwargs) | |
4675 | ||
d14a1e28 | 4676 | def __nonzero__(self): return self.Ok() |
d14a1e28 RD |
4677 | |
4678 | class PageSetupDialogDataPtr(PageSetupDialogData): | |
4679 | def __init__(self, this): | |
4680 | self.this = this | |
4681 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4682 | self.__class__ = PageSetupDialogData | |
54f9ee45 | 4683 | _windows_.PageSetupDialogData_swigregister(PageSetupDialogDataPtr) |
d14a1e28 | 4684 | |
8ac8dba0 | 4685 | class PageSetupDialog(_core.Object): |
093d3ff1 | 4686 | """Proxy of C++ PageSetupDialog class""" |
e811c8ce RD |
4687 | def __repr__(self): |
4688 | return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4689 | def __init__(self, *args, **kwargs): |
a95a7133 | 4690 | """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog""" |
54f9ee45 | 4691 | newobj = _windows_.new_PageSetupDialog(*args, **kwargs) |
d14a1e28 RD |
4692 | self.this = newobj.this |
4693 | self.thisown = 1 | |
4694 | del newobj.thisown | |
e811c8ce | 4695 | def GetPageSetupData(*args, **kwargs): |
a95a7133 | 4696 | """GetPageSetupData(self) -> PageSetupDialogData""" |
54f9ee45 | 4697 | return _windows_.PageSetupDialog_GetPageSetupData(*args, **kwargs) |
e811c8ce | 4698 | |
8ac8dba0 RD |
4699 | def GetPageSetupDialogData(*args, **kwargs): |
4700 | """GetPageSetupDialogData(self) -> PageSetupDialogData""" | |
4701 | return _windows_.PageSetupDialog_GetPageSetupDialogData(*args, **kwargs) | |
4702 | ||
e811c8ce | 4703 | def ShowModal(*args, **kwargs): |
a95a7133 | 4704 | """ShowModal(self) -> int""" |
54f9ee45 | 4705 | return _windows_.PageSetupDialog_ShowModal(*args, **kwargs) |
e811c8ce | 4706 | |
d14a1e28 RD |
4707 | |
4708 | class PageSetupDialogPtr(PageSetupDialog): | |
4709 | def __init__(self, this): | |
4710 | self.this = this | |
4711 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4712 | self.__class__ = PageSetupDialog | |
54f9ee45 | 4713 | _windows_.PageSetupDialog_swigregister(PageSetupDialogPtr) |
d14a1e28 | 4714 | |
54f9ee45 | 4715 | class PrintDialogData(_core.Object): |
093d3ff1 | 4716 | """Proxy of C++ PrintDialogData class""" |
e811c8ce RD |
4717 | def __repr__(self): |
4718 | return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4276dc52 RD |
4719 | def __init__(self, *args): |
4720 | """ | |
a95a7133 RD |
4721 | __init__(self) -> PrintDialogData |
4722 | __init__(self, PrintData printData) -> PrintDialogData | |
7557b9b5 | 4723 | __init__(self, PrintDialogData printData) -> PrintDialogData |
4276dc52 | 4724 | """ |
54f9ee45 | 4725 | newobj = _windows_.new_PrintDialogData(*args) |
d14a1e28 RD |
4726 | self.this = newobj.this |
4727 | self.thisown = 1 | |
4728 | del newobj.thisown | |
54f9ee45 | 4729 | def __del__(self, destroy=_windows_.delete_PrintDialogData): |
a95a7133 | 4730 | """__del__(self)""" |
d14a1e28 RD |
4731 | try: |
4732 | if self.thisown: destroy(self) | |
4733 | except: pass | |
e811c8ce RD |
4734 | |
4735 | def GetFromPage(*args, **kwargs): | |
a95a7133 | 4736 | """GetFromPage(self) -> int""" |
54f9ee45 | 4737 | return _windows_.PrintDialogData_GetFromPage(*args, **kwargs) |
e811c8ce RD |
4738 | |
4739 | def GetToPage(*args, **kwargs): | |
a95a7133 | 4740 | """GetToPage(self) -> int""" |
54f9ee45 | 4741 | return _windows_.PrintDialogData_GetToPage(*args, **kwargs) |
e811c8ce RD |
4742 | |
4743 | def GetMinPage(*args, **kwargs): | |
a95a7133 | 4744 | """GetMinPage(self) -> int""" |
54f9ee45 | 4745 | return _windows_.PrintDialogData_GetMinPage(*args, **kwargs) |
e811c8ce RD |
4746 | |
4747 | def GetMaxPage(*args, **kwargs): | |
a95a7133 | 4748 | """GetMaxPage(self) -> int""" |
54f9ee45 | 4749 | return _windows_.PrintDialogData_GetMaxPage(*args, **kwargs) |
e811c8ce RD |
4750 | |
4751 | def GetNoCopies(*args, **kwargs): | |
a95a7133 | 4752 | """GetNoCopies(self) -> int""" |
54f9ee45 | 4753 | return _windows_.PrintDialogData_GetNoCopies(*args, **kwargs) |
e811c8ce RD |
4754 | |
4755 | def GetAllPages(*args, **kwargs): | |
a95a7133 | 4756 | """GetAllPages(self) -> bool""" |
54f9ee45 | 4757 | return _windows_.PrintDialogData_GetAllPages(*args, **kwargs) |
e811c8ce RD |
4758 | |
4759 | def GetSelection(*args, **kwargs): | |
a95a7133 | 4760 | """GetSelection(self) -> bool""" |
54f9ee45 | 4761 | return _windows_.PrintDialogData_GetSelection(*args, **kwargs) |
e811c8ce RD |
4762 | |
4763 | def GetCollate(*args, **kwargs): | |
a95a7133 | 4764 | """GetCollate(self) -> bool""" |
54f9ee45 | 4765 | return _windows_.PrintDialogData_GetCollate(*args, **kwargs) |
e811c8ce RD |
4766 | |
4767 | def GetPrintToFile(*args, **kwargs): | |
a95a7133 | 4768 | """GetPrintToFile(self) -> bool""" |
54f9ee45 | 4769 | return _windows_.PrintDialogData_GetPrintToFile(*args, **kwargs) |
e811c8ce | 4770 | |
e811c8ce | 4771 | def SetFromPage(*args, **kwargs): |
a95a7133 | 4772 | """SetFromPage(self, int v)""" |
54f9ee45 | 4773 | return _windows_.PrintDialogData_SetFromPage(*args, **kwargs) |
e811c8ce RD |
4774 | |
4775 | def SetToPage(*args, **kwargs): | |
a95a7133 | 4776 | """SetToPage(self, int v)""" |
54f9ee45 | 4777 | return _windows_.PrintDialogData_SetToPage(*args, **kwargs) |
e811c8ce RD |
4778 | |
4779 | def SetMinPage(*args, **kwargs): | |
a95a7133 | 4780 | """SetMinPage(self, int v)""" |
54f9ee45 | 4781 | return _windows_.PrintDialogData_SetMinPage(*args, **kwargs) |
e811c8ce RD |
4782 | |
4783 | def SetMaxPage(*args, **kwargs): | |
a95a7133 | 4784 | """SetMaxPage(self, int v)""" |
54f9ee45 | 4785 | return _windows_.PrintDialogData_SetMaxPage(*args, **kwargs) |
e811c8ce RD |
4786 | |
4787 | def SetNoCopies(*args, **kwargs): | |
a95a7133 | 4788 | """SetNoCopies(self, int v)""" |
54f9ee45 | 4789 | return _windows_.PrintDialogData_SetNoCopies(*args, **kwargs) |
e811c8ce RD |
4790 | |
4791 | def SetAllPages(*args, **kwargs): | |
a95a7133 | 4792 | """SetAllPages(self, bool flag)""" |
54f9ee45 | 4793 | return _windows_.PrintDialogData_SetAllPages(*args, **kwargs) |
e811c8ce RD |
4794 | |
4795 | def SetSelection(*args, **kwargs): | |
a95a7133 | 4796 | """SetSelection(self, bool flag)""" |
54f9ee45 | 4797 | return _windows_.PrintDialogData_SetSelection(*args, **kwargs) |
e811c8ce RD |
4798 | |
4799 | def SetCollate(*args, **kwargs): | |
a95a7133 | 4800 | """SetCollate(self, bool flag)""" |
54f9ee45 | 4801 | return _windows_.PrintDialogData_SetCollate(*args, **kwargs) |
e811c8ce RD |
4802 | |
4803 | def SetPrintToFile(*args, **kwargs): | |
a95a7133 | 4804 | """SetPrintToFile(self, bool flag)""" |
54f9ee45 | 4805 | return _windows_.PrintDialogData_SetPrintToFile(*args, **kwargs) |
e811c8ce | 4806 | |
e811c8ce | 4807 | def EnablePrintToFile(*args, **kwargs): |
a95a7133 | 4808 | """EnablePrintToFile(self, bool flag)""" |
54f9ee45 | 4809 | return _windows_.PrintDialogData_EnablePrintToFile(*args, **kwargs) |
e811c8ce RD |
4810 | |
4811 | def EnableSelection(*args, **kwargs): | |
a95a7133 | 4812 | """EnableSelection(self, bool flag)""" |
54f9ee45 | 4813 | return _windows_.PrintDialogData_EnableSelection(*args, **kwargs) |
e811c8ce RD |
4814 | |
4815 | def EnablePageNumbers(*args, **kwargs): | |
a95a7133 | 4816 | """EnablePageNumbers(self, bool flag)""" |
54f9ee45 | 4817 | return _windows_.PrintDialogData_EnablePageNumbers(*args, **kwargs) |
e811c8ce RD |
4818 | |
4819 | def EnableHelp(*args, **kwargs): | |
a95a7133 | 4820 | """EnableHelp(self, bool flag)""" |
54f9ee45 | 4821 | return _windows_.PrintDialogData_EnableHelp(*args, **kwargs) |
e811c8ce RD |
4822 | |
4823 | def GetEnablePrintToFile(*args, **kwargs): | |
a95a7133 | 4824 | """GetEnablePrintToFile(self) -> bool""" |
54f9ee45 | 4825 | return _windows_.PrintDialogData_GetEnablePrintToFile(*args, **kwargs) |
e811c8ce RD |
4826 | |
4827 | def GetEnableSelection(*args, **kwargs): | |
a95a7133 | 4828 | """GetEnableSelection(self) -> bool""" |
54f9ee45 | 4829 | return _windows_.PrintDialogData_GetEnableSelection(*args, **kwargs) |
e811c8ce RD |
4830 | |
4831 | def GetEnablePageNumbers(*args, **kwargs): | |
a95a7133 | 4832 | """GetEnablePageNumbers(self) -> bool""" |
54f9ee45 | 4833 | return _windows_.PrintDialogData_GetEnablePageNumbers(*args, **kwargs) |
e811c8ce RD |
4834 | |
4835 | def GetEnableHelp(*args, **kwargs): | |
a95a7133 | 4836 | """GetEnableHelp(self) -> bool""" |
54f9ee45 | 4837 | return _windows_.PrintDialogData_GetEnableHelp(*args, **kwargs) |
e811c8ce RD |
4838 | |
4839 | def Ok(*args, **kwargs): | |
a95a7133 | 4840 | """Ok(self) -> bool""" |
54f9ee45 | 4841 | return _windows_.PrintDialogData_Ok(*args, **kwargs) |
e811c8ce RD |
4842 | |
4843 | def GetPrintData(*args, **kwargs): | |
a95a7133 | 4844 | """GetPrintData(self) -> PrintData""" |
54f9ee45 | 4845 | return _windows_.PrintDialogData_GetPrintData(*args, **kwargs) |
e811c8ce RD |
4846 | |
4847 | def SetPrintData(*args, **kwargs): | |
a95a7133 | 4848 | """SetPrintData(self, PrintData printData)""" |
54f9ee45 | 4849 | return _windows_.PrintDialogData_SetPrintData(*args, **kwargs) |
e811c8ce | 4850 | |
d14a1e28 | 4851 | def __nonzero__(self): return self.Ok() |
d14a1e28 RD |
4852 | |
4853 | class PrintDialogDataPtr(PrintDialogData): | |
4854 | def __init__(self, this): | |
4855 | self.this = this | |
4856 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4857 | self.__class__ = PrintDialogData | |
54f9ee45 | 4858 | _windows_.PrintDialogData_swigregister(PrintDialogDataPtr) |
d14a1e28 | 4859 | |
a68b8331 | 4860 | class PrintDialog(_core.Object): |
093d3ff1 | 4861 | """Proxy of C++ PrintDialog class""" |
e811c8ce RD |
4862 | def __repr__(self): |
4863 | return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4864 | def __init__(self, *args, **kwargs): |
a95a7133 | 4865 | """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog""" |
54f9ee45 | 4866 | newobj = _windows_.new_PrintDialog(*args, **kwargs) |
d14a1e28 RD |
4867 | self.this = newobj.this |
4868 | self.thisown = 1 | |
4869 | del newobj.thisown | |
d3b6e4ff RD |
4870 | def ShowModal(*args, **kwargs): |
4871 | """ShowModal(self) -> int""" | |
4872 | return _windows_.PrintDialog_ShowModal(*args, **kwargs) | |
4873 | ||
e811c8ce | 4874 | def GetPrintDialogData(*args, **kwargs): |
a95a7133 | 4875 | """GetPrintDialogData(self) -> PrintDialogData""" |
54f9ee45 | 4876 | return _windows_.PrintDialog_GetPrintDialogData(*args, **kwargs) |
e811c8ce | 4877 | |
d3b6e4ff RD |
4878 | def GetPrintData(*args, **kwargs): |
4879 | """GetPrintData(self) -> PrintData""" | |
4880 | return _windows_.PrintDialog_GetPrintData(*args, **kwargs) | |
4881 | ||
e811c8ce | 4882 | def GetPrintDC(*args, **kwargs): |
a95a7133 | 4883 | """GetPrintDC(self) -> DC""" |
54f9ee45 | 4884 | return _windows_.PrintDialog_GetPrintDC(*args, **kwargs) |
e811c8ce | 4885 | |
d14a1e28 RD |
4886 | |
4887 | class PrintDialogPtr(PrintDialog): | |
4888 | def __init__(self, this): | |
4889 | self.this = this | |
4890 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4891 | self.__class__ = PrintDialog | |
54f9ee45 | 4892 | _windows_.PrintDialog_swigregister(PrintDialogPtr) |
d14a1e28 | 4893 | |
54f9ee45 RD |
4894 | PRINTER_NO_ERROR = _windows_.PRINTER_NO_ERROR |
4895 | PRINTER_CANCELLED = _windows_.PRINTER_CANCELLED | |
4896 | PRINTER_ERROR = _windows_.PRINTER_ERROR | |
4897 | class Printer(_core.Object): | |
093d3ff1 | 4898 | """Proxy of C++ Printer class""" |
e811c8ce RD |
4899 | def __repr__(self): |
4900 | return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4901 | def __init__(self, *args, **kwargs): |
a95a7133 | 4902 | """__init__(self, PrintDialogData data=None) -> Printer""" |
54f9ee45 | 4903 | newobj = _windows_.new_Printer(*args, **kwargs) |
d14a1e28 RD |
4904 | self.this = newobj.this |
4905 | self.thisown = 1 | |
4906 | del newobj.thisown | |
54f9ee45 | 4907 | def __del__(self, destroy=_windows_.delete_Printer): |
a95a7133 | 4908 | """__del__(self)""" |
d14a1e28 RD |
4909 | try: |
4910 | if self.thisown: destroy(self) | |
4911 | except: pass | |
e811c8ce RD |
4912 | |
4913 | def CreateAbortWindow(*args, **kwargs): | |
a68b8331 | 4914 | """CreateAbortWindow(self, Window parent, Printout printout) -> Window""" |
54f9ee45 | 4915 | return _windows_.Printer_CreateAbortWindow(*args, **kwargs) |
e811c8ce | 4916 | |
d3b6e4ff | 4917 | def ReportError(*args, **kwargs): |
a68b8331 | 4918 | """ReportError(self, Window parent, Printout printout, String message)""" |
d3b6e4ff RD |
4919 | return _windows_.Printer_ReportError(*args, **kwargs) |
4920 | ||
4921 | def Setup(*args, **kwargs): | |
4922 | """Setup(self, Window parent) -> bool""" | |
4923 | return _windows_.Printer_Setup(*args, **kwargs) | |
e811c8ce RD |
4924 | |
4925 | def Print(*args, **kwargs): | |
a68b8331 | 4926 | """Print(self, Window parent, Printout printout, bool prompt=True) -> bool""" |
54f9ee45 | 4927 | return _windows_.Printer_Print(*args, **kwargs) |
e811c8ce RD |
4928 | |
4929 | def PrintDialog(*args, **kwargs): | |
a95a7133 | 4930 | """PrintDialog(self, Window parent) -> DC""" |
54f9ee45 | 4931 | return _windows_.Printer_PrintDialog(*args, **kwargs) |
e811c8ce | 4932 | |
d3b6e4ff RD |
4933 | def GetPrintDialogData(*args, **kwargs): |
4934 | """GetPrintDialogData(self) -> PrintDialogData""" | |
4935 | return _windows_.Printer_GetPrintDialogData(*args, **kwargs) | |
e811c8ce RD |
4936 | |
4937 | def GetAbort(*args, **kwargs): | |
a95a7133 | 4938 | """GetAbort(self) -> bool""" |
54f9ee45 | 4939 | return _windows_.Printer_GetAbort(*args, **kwargs) |
e811c8ce RD |
4940 | |
4941 | def GetLastError(*args, **kwargs): | |
66c033b4 | 4942 | """GetLastError() -> int""" |
54f9ee45 | 4943 | return _windows_.Printer_GetLastError(*args, **kwargs) |
e811c8ce RD |
4944 | |
4945 | GetLastError = staticmethod(GetLastError) | |
94c16279 | 4946 | |
d14a1e28 RD |
4947 | class PrinterPtr(Printer): |
4948 | def __init__(self, this): | |
4949 | self.this = this | |
4950 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4951 | self.__class__ = Printer | |
54f9ee45 | 4952 | _windows_.Printer_swigregister(PrinterPtr) |
9c4165ad | 4953 | |
e811c8ce | 4954 | def Printer_GetLastError(*args, **kwargs): |
196addbf | 4955 | """Printer_GetLastError() -> int""" |
54f9ee45 | 4956 | return _windows_.Printer_GetLastError(*args, **kwargs) |
8ab979d7 | 4957 | |
54f9ee45 | 4958 | class Printout(_core.Object): |
093d3ff1 | 4959 | """Proxy of C++ Printout class""" |
e811c8ce RD |
4960 | def __repr__(self): |
4961 | return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4962 | def __init__(self, *args, **kwargs): |
a95a7133 | 4963 | """__init__(self, String title=PrintoutTitleStr) -> Printout""" |
54f9ee45 | 4964 | newobj = _windows_.new_Printout(*args, **kwargs) |
d14a1e28 RD |
4965 | self.this = newobj.this |
4966 | self.thisown = 1 | |
4967 | del newobj.thisown | |
4968 | self._setCallbackInfo(self, Printout) | |
e811c8ce RD |
4969 | |
4970 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 4971 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 4972 | return _windows_.Printout__setCallbackInfo(*args, **kwargs) |
e811c8ce RD |
4973 | |
4974 | def GetTitle(*args, **kwargs): | |
a95a7133 | 4975 | """GetTitle(self) -> String""" |
54f9ee45 | 4976 | return _windows_.Printout_GetTitle(*args, **kwargs) |
e811c8ce RD |
4977 | |
4978 | def GetDC(*args, **kwargs): | |
a95a7133 | 4979 | """GetDC(self) -> DC""" |
54f9ee45 | 4980 | return _windows_.Printout_GetDC(*args, **kwargs) |
e811c8ce RD |
4981 | |
4982 | def SetDC(*args, **kwargs): | |
a95a7133 | 4983 | """SetDC(self, DC dc)""" |
54f9ee45 | 4984 | return _windows_.Printout_SetDC(*args, **kwargs) |
e811c8ce | 4985 | |
e811c8ce | 4986 | def SetPageSizePixels(*args, **kwargs): |
a95a7133 | 4987 | """SetPageSizePixels(self, int w, int h)""" |
54f9ee45 | 4988 | return _windows_.Printout_SetPageSizePixels(*args, **kwargs) |
e811c8ce | 4989 | |
322913ce RD |
4990 | def GetPageSizePixels(*args, **kwargs): |
4991 | """GetPageSizePixels() -> (w, h)""" | |
54f9ee45 | 4992 | return _windows_.Printout_GetPageSizePixels(*args, **kwargs) |
322913ce | 4993 | |
e811c8ce | 4994 | def SetPageSizeMM(*args, **kwargs): |
a95a7133 | 4995 | """SetPageSizeMM(self, int w, int h)""" |
54f9ee45 | 4996 | return _windows_.Printout_SetPageSizeMM(*args, **kwargs) |
e811c8ce RD |
4997 | |
4998 | def GetPageSizeMM(*args, **kwargs): | |
322913ce | 4999 | """GetPageSizeMM() -> (w, h)""" |
54f9ee45 | 5000 | return _windows_.Printout_GetPageSizeMM(*args, **kwargs) |
e811c8ce RD |
5001 | |
5002 | def SetPPIScreen(*args, **kwargs): | |
a95a7133 | 5003 | """SetPPIScreen(self, int x, int y)""" |
54f9ee45 | 5004 | return _windows_.Printout_SetPPIScreen(*args, **kwargs) |
e811c8ce RD |
5005 | |
5006 | def GetPPIScreen(*args, **kwargs): | |
322913ce | 5007 | """GetPPIScreen() -> (x,y)""" |
54f9ee45 | 5008 | return _windows_.Printout_GetPPIScreen(*args, **kwargs) |
e811c8ce RD |
5009 | |
5010 | def SetPPIPrinter(*args, **kwargs): | |
a95a7133 | 5011 | """SetPPIPrinter(self, int x, int y)""" |
54f9ee45 | 5012 | return _windows_.Printout_SetPPIPrinter(*args, **kwargs) |
e811c8ce RD |
5013 | |
5014 | def GetPPIPrinter(*args, **kwargs): | |
322913ce | 5015 | """GetPPIPrinter() -> (x,y)""" |
54f9ee45 | 5016 | return _windows_.Printout_GetPPIPrinter(*args, **kwargs) |
e811c8ce RD |
5017 | |
5018 | def IsPreview(*args, **kwargs): | |
a95a7133 | 5019 | """IsPreview(self) -> bool""" |
54f9ee45 | 5020 | return _windows_.Printout_IsPreview(*args, **kwargs) |
e811c8ce RD |
5021 | |
5022 | def SetIsPreview(*args, **kwargs): | |
a95a7133 | 5023 | """SetIsPreview(self, bool p)""" |
54f9ee45 | 5024 | return _windows_.Printout_SetIsPreview(*args, **kwargs) |
e811c8ce | 5025 | |
c26d9ab4 RD |
5026 | def OnBeginDocument(*args, **kwargs): |
5027 | """OnBeginDocument(self, int startPage, int endPage) -> bool""" | |
5028 | return _windows_.Printout_OnBeginDocument(*args, **kwargs) | |
5029 | ||
5030 | def OnEndDocument(*args, **kwargs): | |
5031 | """OnEndDocument(self)""" | |
5032 | return _windows_.Printout_OnEndDocument(*args, **kwargs) | |
5033 | ||
5034 | def OnBeginPrinting(*args, **kwargs): | |
5035 | """OnBeginPrinting(self)""" | |
5036 | return _windows_.Printout_OnBeginPrinting(*args, **kwargs) | |
e811c8ce | 5037 | |
c26d9ab4 RD |
5038 | def OnEndPrinting(*args, **kwargs): |
5039 | """OnEndPrinting(self)""" | |
5040 | return _windows_.Printout_OnEndPrinting(*args, **kwargs) | |
e811c8ce | 5041 | |
c26d9ab4 RD |
5042 | def OnPreparePrinting(*args, **kwargs): |
5043 | """OnPreparePrinting(self)""" | |
5044 | return _windows_.Printout_OnPreparePrinting(*args, **kwargs) | |
e811c8ce | 5045 | |
c26d9ab4 RD |
5046 | def HasPage(*args, **kwargs): |
5047 | """HasPage(self, int page) -> bool""" | |
5048 | return _windows_.Printout_HasPage(*args, **kwargs) | |
e811c8ce | 5049 | |
c26d9ab4 RD |
5050 | def GetPageInfo(*args, **kwargs): |
5051 | """GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)""" | |
5052 | return _windows_.Printout_GetPageInfo(*args, **kwargs) | |
e811c8ce | 5053 | |
c26d9ab4 RD |
5054 | def base_OnBeginDocument(*args, **kw): |
5055 | return Printout.OnBeginDocument(*args, **kw) | |
5056 | base_OnBeginDocument = wx._deprecated(base_OnBeginDocument, | |
5057 | "Please use Printout.OnBeginDocument instead.") | |
e811c8ce | 5058 | |
c26d9ab4 RD |
5059 | def base_OnEndDocument(*args, **kw): |
5060 | return Printout.OnEndDocument(*args, **kw) | |
5061 | base_OnEndDocument = wx._deprecated(base_OnEndDocument, | |
5062 | "Please use Printout.OnEndDocument instead.") | |
5063 | ||
5064 | def base_OnBeginPrinting(*args, **kw): | |
5065 | return Printout.OnBeginPrinting(*args, **kw) | |
5066 | base_OnBeginPrinting = wx._deprecated(base_OnBeginPrinting, | |
5067 | "Please use Printout.OnBeginPrinting instead.") | |
5068 | ||
5069 | def base_OnEndPrinting(*args, **kw): | |
5070 | return Printout.OnEndPrinting(*args, **kw) | |
5071 | base_OnEndPrinting = wx._deprecated(base_OnEndPrinting, | |
5072 | "Please use Printout.OnEndPrinting instead.") | |
5073 | ||
5074 | def base_OnPreparePrinting(*args, **kw): | |
5075 | return Printout.OnPreparePrinting(*args, **kw) | |
5076 | base_OnPreparePrinting = wx._deprecated(base_OnPreparePrinting, | |
5077 | "Please use Printout.OnPreparePrinting instead.") | |
5078 | ||
5079 | def base_GetPageInfo(*args, **kw): | |
5080 | return Printout.GetPageInfo(*args, **kw) | |
5081 | base_GetPageInfo = wx._deprecated(base_GetPageInfo, | |
5082 | "Please use Printout.GetPageInfo instead.") | |
322913ce | 5083 | |
d14a1e28 RD |
5084 | |
5085 | class PrintoutPtr(Printout): | |
5086 | def __init__(self, this): | |
5087 | self.this = this | |
5088 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5089 | self.__class__ = Printout | |
54f9ee45 | 5090 | _windows_.Printout_swigregister(PrintoutPtr) |
d14a1e28 RD |
5091 | |
5092 | class PreviewCanvas(ScrolledWindow): | |
093d3ff1 | 5093 | """Proxy of C++ PreviewCanvas class""" |
e811c8ce RD |
5094 | def __repr__(self): |
5095 | return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 5096 | def __init__(self, *args, **kwargs): |
0df68c9f | 5097 | """ |
a95a7133 | 5098 | __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition, |
0df68c9f | 5099 | Size size=DefaultSize, long style=0, |
b2dc1044 | 5100 | String name=PreviewCanvasNameStr) -> PreviewCanvas |
0df68c9f | 5101 | """ |
54f9ee45 | 5102 | newobj = _windows_.new_PreviewCanvas(*args, **kwargs) |
d14a1e28 RD |
5103 | self.this = newobj.this |
5104 | self.thisown = 1 | |
5105 | del newobj.thisown | |
fd3f2efe | 5106 | self._setOORInfo(self) |
e811c8ce | 5107 | |
d14a1e28 RD |
5108 | |
5109 | class PreviewCanvasPtr(PreviewCanvas): | |
5110 | def __init__(self, this): | |
5111 | self.this = this | |
5112 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5113 | self.__class__ = PreviewCanvas | |
54f9ee45 | 5114 | _windows_.PreviewCanvas_swigregister(PreviewCanvasPtr) |
d14a1e28 RD |
5115 | |
5116 | class PreviewFrame(Frame): | |
093d3ff1 | 5117 | """Proxy of C++ PreviewFrame class""" |
e811c8ce RD |
5118 | def __repr__(self): |
5119 | return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 5120 | def __init__(self, *args, **kwargs): |
0df68c9f | 5121 | """ |
a95a7133 | 5122 | __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition, |
196addbf | 5123 | Size size=DefaultSize, |
b2dc1044 | 5124 | long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame |
0df68c9f | 5125 | """ |
54f9ee45 | 5126 | newobj = _windows_.new_PreviewFrame(*args, **kwargs) |
d14a1e28 RD |
5127 | self.this = newobj.this |
5128 | self.thisown = 1 | |
5129 | del newobj.thisown | |
fd3f2efe | 5130 | self._setOORInfo(self) |
e811c8ce RD |
5131 | |
5132 | def Initialize(*args, **kwargs): | |
a95a7133 | 5133 | """Initialize(self)""" |
54f9ee45 | 5134 | return _windows_.PreviewFrame_Initialize(*args, **kwargs) |
e811c8ce RD |
5135 | |
5136 | def CreateControlBar(*args, **kwargs): | |
a95a7133 | 5137 | """CreateControlBar(self)""" |
54f9ee45 | 5138 | return _windows_.PreviewFrame_CreateControlBar(*args, **kwargs) |
e811c8ce RD |
5139 | |
5140 | def CreateCanvas(*args, **kwargs): | |
a95a7133 | 5141 | """CreateCanvas(self)""" |
54f9ee45 | 5142 | return _windows_.PreviewFrame_CreateCanvas(*args, **kwargs) |
e811c8ce RD |
5143 | |
5144 | def GetControlBar(*args, **kwargs): | |
a95a7133 | 5145 | """GetControlBar(self) -> PreviewControlBar""" |
54f9ee45 | 5146 | return _windows_.PreviewFrame_GetControlBar(*args, **kwargs) |
e811c8ce | 5147 | |
d14a1e28 RD |
5148 | |
5149 | class PreviewFramePtr(PreviewFrame): | |
5150 | def __init__(self, this): | |
5151 | self.this = this | |
5152 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5153 | self.__class__ = PreviewFrame | |
54f9ee45 RD |
5154 | _windows_.PreviewFrame_swigregister(PreviewFramePtr) |
5155 | ||
5156 | PREVIEW_PRINT = _windows_.PREVIEW_PRINT | |
5157 | PREVIEW_PREVIOUS = _windows_.PREVIEW_PREVIOUS | |
5158 | PREVIEW_NEXT = _windows_.PREVIEW_NEXT | |
5159 | PREVIEW_ZOOM = _windows_.PREVIEW_ZOOM | |
5160 | PREVIEW_FIRST = _windows_.PREVIEW_FIRST | |
5161 | PREVIEW_LAST = _windows_.PREVIEW_LAST | |
5162 | PREVIEW_GOTO = _windows_.PREVIEW_GOTO | |
5163 | PREVIEW_DEFAULT = _windows_.PREVIEW_DEFAULT | |
5164 | ID_PREVIEW_CLOSE = _windows_.ID_PREVIEW_CLOSE | |
5165 | ID_PREVIEW_NEXT = _windows_.ID_PREVIEW_NEXT | |
5166 | ID_PREVIEW_PREVIOUS = _windows_.ID_PREVIEW_PREVIOUS | |
5167 | ID_PREVIEW_PRINT = _windows_.ID_PREVIEW_PRINT | |
5168 | ID_PREVIEW_ZOOM = _windows_.ID_PREVIEW_ZOOM | |
5169 | ID_PREVIEW_FIRST = _windows_.ID_PREVIEW_FIRST | |
5170 | ID_PREVIEW_LAST = _windows_.ID_PREVIEW_LAST | |
5171 | ID_PREVIEW_GOTO = _windows_.ID_PREVIEW_GOTO | |
d14a1e28 | 5172 | class PreviewControlBar(Panel): |
093d3ff1 | 5173 | """Proxy of C++ PreviewControlBar class""" |
e811c8ce RD |
5174 | def __repr__(self): |
5175 | return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 5176 | def __init__(self, *args, **kwargs): |
0df68c9f | 5177 | """ |
a95a7133 | 5178 | __init__(self, PrintPreview preview, long buttons, Window parent, |
0df68c9f | 5179 | Point pos=DefaultPosition, Size size=DefaultSize, |
196addbf | 5180 | long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar |
0df68c9f | 5181 | """ |
54f9ee45 | 5182 | newobj = _windows_.new_PreviewControlBar(*args, **kwargs) |
d14a1e28 RD |
5183 | self.this = newobj.this |
5184 | self.thisown = 1 | |
5185 | del newobj.thisown | |
fd3f2efe | 5186 | self._setOORInfo(self) |
e811c8ce RD |
5187 | |
5188 | def GetZoomControl(*args, **kwargs): | |
a95a7133 | 5189 | """GetZoomControl(self) -> int""" |
54f9ee45 | 5190 | return _windows_.PreviewControlBar_GetZoomControl(*args, **kwargs) |
e811c8ce RD |
5191 | |
5192 | def SetZoomControl(*args, **kwargs): | |
a95a7133 | 5193 | """SetZoomControl(self, int zoom)""" |
54f9ee45 | 5194 | return _windows_.PreviewControlBar_SetZoomControl(*args, **kwargs) |
e811c8ce RD |
5195 | |
5196 | def GetPrintPreview(*args, **kwargs): | |
a95a7133 | 5197 | """GetPrintPreview(self) -> PrintPreview""" |
54f9ee45 | 5198 | return _windows_.PreviewControlBar_GetPrintPreview(*args, **kwargs) |
e811c8ce RD |
5199 | |
5200 | def OnNext(*args, **kwargs): | |
a95a7133 | 5201 | """OnNext(self)""" |
54f9ee45 | 5202 | return _windows_.PreviewControlBar_OnNext(*args, **kwargs) |
e811c8ce RD |
5203 | |
5204 | def OnPrevious(*args, **kwargs): | |
a95a7133 | 5205 | """OnPrevious(self)""" |
54f9ee45 | 5206 | return _windows_.PreviewControlBar_OnPrevious(*args, **kwargs) |
e811c8ce RD |
5207 | |
5208 | def OnFirst(*args, **kwargs): | |
a95a7133 | 5209 | """OnFirst(self)""" |
54f9ee45 | 5210 | return _windows_.PreviewControlBar_OnFirst(*args, **kwargs) |
e811c8ce RD |
5211 | |
5212 | def OnLast(*args, **kwargs): | |
a95a7133 | 5213 | """OnLast(self)""" |
54f9ee45 | 5214 | return _windows_.PreviewControlBar_OnLast(*args, **kwargs) |
e811c8ce RD |
5215 | |
5216 | def OnGoto(*args, **kwargs): | |
a95a7133 | 5217 | """OnGoto(self)""" |
54f9ee45 | 5218 | return _windows_.PreviewControlBar_OnGoto(*args, **kwargs) |
e811c8ce | 5219 | |
d14a1e28 RD |
5220 | |
5221 | class PreviewControlBarPtr(PreviewControlBar): | |
5222 | def __init__(self, this): | |
5223 | self.this = this | |
5224 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5225 | self.__class__ = PreviewControlBar | |
54f9ee45 | 5226 | _windows_.PreviewControlBar_swigregister(PreviewControlBarPtr) |
d14a1e28 | 5227 | |
54f9ee45 | 5228 | class PrintPreview(_core.Object): |
093d3ff1 | 5229 | """Proxy of C++ PrintPreview class""" |
e811c8ce RD |
5230 | def __repr__(self): |
5231 | return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4276dc52 RD |
5232 | def __init__(self, *args): |
5233 | """ | |
a95a7133 RD |
5234 | __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview |
5235 | __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview | |
4276dc52 | 5236 | """ |
54f9ee45 | 5237 | newobj = _windows_.new_PrintPreview(*args) |
d14a1e28 RD |
5238 | self.this = newobj.this |
5239 | self.thisown = 1 | |
5240 | del newobj.thisown | |
e811c8ce | 5241 | def SetCurrentPage(*args, **kwargs): |
a95a7133 | 5242 | """SetCurrentPage(self, int pageNum) -> bool""" |
54f9ee45 | 5243 | return _windows_.PrintPreview_SetCurrentPage(*args, **kwargs) |
e811c8ce RD |
5244 | |
5245 | def GetCurrentPage(*args, **kwargs): | |
a95a7133 | 5246 | """GetCurrentPage(self) -> int""" |
54f9ee45 | 5247 | return _windows_.PrintPreview_GetCurrentPage(*args, **kwargs) |
e811c8ce RD |
5248 | |
5249 | def SetPrintout(*args, **kwargs): | |
a95a7133 | 5250 | """SetPrintout(self, Printout printout)""" |
54f9ee45 | 5251 | return _windows_.PrintPreview_SetPrintout(*args, **kwargs) |
e811c8ce RD |
5252 | |
5253 | def GetPrintout(*args, **kwargs): | |
a95a7133 | 5254 | """GetPrintout(self) -> Printout""" |
54f9ee45 | 5255 | return _windows_.PrintPreview_GetPrintout(*args, **kwargs) |
e811c8ce RD |
5256 | |
5257 | def GetPrintoutForPrinting(*args, **kwargs): | |
a95a7133 | 5258 | """GetPrintoutForPrinting(self) -> Printout""" |
54f9ee45 | 5259 | return _windows_.PrintPreview_GetPrintoutForPrinting(*args, **kwargs) |
e811c8ce RD |
5260 | |
5261 | def SetFrame(*args, **kwargs): | |
a95a7133 | 5262 | """SetFrame(self, Frame frame)""" |
54f9ee45 | 5263 | return _windows_.PrintPreview_SetFrame(*args, **kwargs) |
e811c8ce RD |
5264 | |
5265 | def SetCanvas(*args, **kwargs): | |
a95a7133 | 5266 | """SetCanvas(self, PreviewCanvas canvas)""" |
54f9ee45 | 5267 | return _windows_.PrintPreview_SetCanvas(*args, **kwargs) |
e811c8ce RD |
5268 | |
5269 | def GetFrame(*args, **kwargs): | |
a95a7133 | 5270 | """GetFrame(self) -> Frame""" |
54f9ee45 | 5271 | return _windows_.PrintPreview_GetFrame(*args, **kwargs) |
e811c8ce RD |
5272 | |
5273 | def GetCanvas(*args, **kwargs): | |
a95a7133 | 5274 | """GetCanvas(self) -> PreviewCanvas""" |
54f9ee45 | 5275 | return _windows_.PrintPreview_GetCanvas(*args, **kwargs) |
e811c8ce RD |
5276 | |
5277 | def PaintPage(*args, **kwargs): | |
a95a7133 | 5278 | """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool""" |
54f9ee45 | 5279 | return _windows_.PrintPreview_PaintPage(*args, **kwargs) |
e811c8ce RD |
5280 | |
5281 | def DrawBlankPage(*args, **kwargs): | |
a95a7133 | 5282 | """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool""" |
54f9ee45 | 5283 | return _windows_.PrintPreview_DrawBlankPage(*args, **kwargs) |
e811c8ce RD |
5284 | |
5285 | def RenderPage(*args, **kwargs): | |
a95a7133 | 5286 | """RenderPage(self, int pageNum) -> bool""" |
54f9ee45 | 5287 | return _windows_.PrintPreview_RenderPage(*args, **kwargs) |
e811c8ce RD |
5288 | |
5289 | def AdjustScrollbars(*args, **kwargs): | |
a95a7133 | 5290 | """AdjustScrollbars(self, PreviewCanvas canvas)""" |
54f9ee45 | 5291 | return _windows_.PrintPreview_AdjustScrollbars(*args, **kwargs) |
e811c8ce RD |
5292 | |
5293 | def GetPrintDialogData(*args, **kwargs): | |
a95a7133 | 5294 | """GetPrintDialogData(self) -> PrintDialogData""" |
54f9ee45 | 5295 | return _windows_.PrintPreview_GetPrintDialogData(*args, **kwargs) |
e811c8ce RD |
5296 | |
5297 | def SetZoom(*args, **kwargs): | |
a95a7133 | 5298 | """SetZoom(self, int percent)""" |
54f9ee45 | 5299 | return _windows_.PrintPreview_SetZoom(*args, **kwargs) |
e811c8ce RD |
5300 | |
5301 | def GetZoom(*args, **kwargs): | |
a95a7133 | 5302 | """GetZoom(self) -> int""" |
54f9ee45 | 5303 | return _windows_.PrintPreview_GetZoom(*args, **kwargs) |
e811c8ce RD |
5304 | |
5305 | def GetMaxPage(*args, **kwargs): | |
a95a7133 | 5306 | """GetMaxPage(self) -> int""" |
54f9ee45 | 5307 | return _windows_.PrintPreview_GetMaxPage(*args, **kwargs) |
e811c8ce RD |
5308 | |
5309 | def GetMinPage(*args, **kwargs): | |
a95a7133 | 5310 | """GetMinPage(self) -> int""" |
54f9ee45 | 5311 | return _windows_.PrintPreview_GetMinPage(*args, **kwargs) |
e811c8ce RD |
5312 | |
5313 | def Ok(*args, **kwargs): | |
a95a7133 | 5314 | """Ok(self) -> bool""" |
54f9ee45 | 5315 | return _windows_.PrintPreview_Ok(*args, **kwargs) |
e811c8ce RD |
5316 | |
5317 | def SetOk(*args, **kwargs): | |
a95a7133 | 5318 | """SetOk(self, bool ok)""" |
54f9ee45 | 5319 | return _windows_.PrintPreview_SetOk(*args, **kwargs) |
e811c8ce RD |
5320 | |
5321 | def Print(*args, **kwargs): | |
a95a7133 | 5322 | """Print(self, bool interactive) -> bool""" |
54f9ee45 | 5323 | return _windows_.PrintPreview_Print(*args, **kwargs) |
e811c8ce RD |
5324 | |
5325 | def DetermineScaling(*args, **kwargs): | |
a95a7133 | 5326 | """DetermineScaling(self)""" |
54f9ee45 | 5327 | return _windows_.PrintPreview_DetermineScaling(*args, **kwargs) |
e811c8ce | 5328 | |
d14a1e28 | 5329 | def __nonzero__(self): return self.Ok() |
d14a1e28 RD |
5330 | |
5331 | class PrintPreviewPtr(PrintPreview): | |
5332 | def __init__(self, this): | |
5333 | self.this = this | |
5334 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5335 | self.__class__ = PrintPreview | |
54f9ee45 | 5336 | _windows_.PrintPreview_swigregister(PrintPreviewPtr) |
d14a1e28 RD |
5337 | |
5338 | class PyPrintPreview(PrintPreview): | |
093d3ff1 | 5339 | """Proxy of C++ PyPrintPreview class""" |
e811c8ce RD |
5340 | def __repr__(self): |
5341 | return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4276dc52 RD |
5342 | def __init__(self, *args): |
5343 | """ | |
a95a7133 RD |
5344 | __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview |
5345 | __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview | |
4276dc52 | 5346 | """ |
54f9ee45 | 5347 | newobj = _windows_.new_PyPrintPreview(*args) |
d14a1e28 RD |
5348 | self.this = newobj.this |
5349 | self.thisown = 1 | |
5350 | del newobj.thisown | |
5351 | self._setCallbackInfo(self, PyPrintPreview) | |
e811c8ce RD |
5352 | |
5353 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 5354 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 5355 | return _windows_.PyPrintPreview__setCallbackInfo(*args, **kwargs) |
e811c8ce | 5356 | |
c26d9ab4 RD |
5357 | def SetCurrentPage(*args, **kwargs): |
5358 | """SetCurrentPage(self, int pageNum) -> bool""" | |
5359 | return _windows_.PyPrintPreview_SetCurrentPage(*args, **kwargs) | |
5360 | ||
5361 | def PaintPage(*args, **kwargs): | |
5362 | """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool""" | |
5363 | return _windows_.PyPrintPreview_PaintPage(*args, **kwargs) | |
5364 | ||
5365 | def DrawBlankPage(*args, **kwargs): | |
5366 | """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool""" | |
5367 | return _windows_.PyPrintPreview_DrawBlankPage(*args, **kwargs) | |
5368 | ||
5369 | def RenderPage(*args, **kwargs): | |
5370 | """RenderPage(self, int pageNum) -> bool""" | |
5371 | return _windows_.PyPrintPreview_RenderPage(*args, **kwargs) | |
5372 | ||
5373 | def SetZoom(*args, **kwargs): | |
5374 | """SetZoom(self, int percent)""" | |
5375 | return _windows_.PyPrintPreview_SetZoom(*args, **kwargs) | |
e811c8ce | 5376 | |
c26d9ab4 RD |
5377 | def Print(*args, **kwargs): |
5378 | """Print(self, bool interactive) -> bool""" | |
5379 | return _windows_.PyPrintPreview_Print(*args, **kwargs) | |
e811c8ce | 5380 | |
c26d9ab4 RD |
5381 | def DetermineScaling(*args, **kwargs): |
5382 | """DetermineScaling(self)""" | |
5383 | return _windows_.PyPrintPreview_DetermineScaling(*args, **kwargs) | |
e811c8ce | 5384 | |
c26d9ab4 RD |
5385 | def base_SetCurrentPage(*args, **kw): |
5386 | return PyPrintPreview.SetCurrentPage(*args, **kw) | |
5387 | base_SetCurrentPage = wx._deprecated(base_SetCurrentPage, | |
5388 | "Please use PyPrintPreview.SetCurrentPage instead.") | |
e811c8ce | 5389 | |
c26d9ab4 RD |
5390 | def base_PaintPage(*args, **kw): |
5391 | return PyPrintPreview.PaintPage(*args, **kw) | |
5392 | base_PaintPage = wx._deprecated(base_PaintPage, | |
5393 | "Please use PyPrintPreview.PaintPage instead.") | |
e811c8ce | 5394 | |
c26d9ab4 RD |
5395 | def base_DrawBlankPage(*args, **kw): |
5396 | return PyPrintPreview.DrawBlankPage(*args, **kw) | |
5397 | base_DrawBlankPage = wx._deprecated(base_DrawBlankPage, | |
5398 | "Please use PyPrintPreview.DrawBlankPage instead.") | |
e811c8ce | 5399 | |
c26d9ab4 RD |
5400 | def base_RenderPage(*args, **kw): |
5401 | return PyPrintPreview.RenderPage(*args, **kw) | |
5402 | base_RenderPage = wx._deprecated(base_RenderPage, | |
5403 | "Please use PyPrintPreview.RenderPage instead.") | |
5404 | ||
5405 | def base_SetZoom(*args, **kw): | |
5406 | return PyPrintPreview.SetZoom(*args, **kw) | |
5407 | base_SetZoom = wx._deprecated(base_SetZoom, | |
5408 | "Please use PyPrintPreview.SetZoom instead.") | |
5409 | ||
5410 | def base_Print(*args, **kw): | |
5411 | return PyPrintPreview.Print(*args, **kw) | |
5412 | base_Print = wx._deprecated(base_Print, | |
5413 | "Please use PyPrintPreview.Print instead.") | |
5414 | ||
5415 | def base_DetermineScaling(*args, **kw): | |
5416 | return PyPrintPreview.DetermineScaling(*args, **kw) | |
5417 | base_DetermineScaling = wx._deprecated(base_DetermineScaling, | |
5418 | "Please use PyPrintPreview.DetermineScaling instead.") | |
e811c8ce | 5419 | |
d14a1e28 RD |
5420 | |
5421 | class PyPrintPreviewPtr(PyPrintPreview): | |
5422 | def __init__(self, this): | |
5423 | self.this = this | |
5424 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5425 | self.__class__ = PyPrintPreview | |
54f9ee45 | 5426 | _windows_.PyPrintPreview_swigregister(PyPrintPreviewPtr) |
d14a1e28 RD |
5427 | |
5428 | class PyPreviewFrame(PreviewFrame): | |
093d3ff1 | 5429 | """Proxy of C++ PyPreviewFrame class""" |
e811c8ce RD |
5430 | def __repr__(self): |
5431 | return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 5432 | def __init__(self, *args, **kwargs): |
0df68c9f | 5433 | """ |
a95a7133 | 5434 | __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition, |
196addbf | 5435 | Size size=DefaultSize, |
b2dc1044 | 5436 | long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame |
0df68c9f | 5437 | """ |
54f9ee45 | 5438 | newobj = _windows_.new_PyPreviewFrame(*args, **kwargs) |
d14a1e28 RD |
5439 | self.this = newobj.this |
5440 | self.thisown = 1 | |
5441 | del newobj.thisown | |
5442 | self._setCallbackInfo(self, PyPreviewFrame); self._setOORInfo(self) | |
e811c8ce RD |
5443 | |
5444 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 5445 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 5446 | return _windows_.PyPreviewFrame__setCallbackInfo(*args, **kwargs) |
e811c8ce RD |
5447 | |
5448 | def SetPreviewCanvas(*args, **kwargs): | |
a95a7133 | 5449 | """SetPreviewCanvas(self, PreviewCanvas canvas)""" |
54f9ee45 | 5450 | return _windows_.PyPreviewFrame_SetPreviewCanvas(*args, **kwargs) |
e811c8ce RD |
5451 | |
5452 | def SetControlBar(*args, **kwargs): | |
a95a7133 | 5453 | """SetControlBar(self, PreviewControlBar bar)""" |
54f9ee45 | 5454 | return _windows_.PyPreviewFrame_SetControlBar(*args, **kwargs) |
e811c8ce | 5455 | |
c26d9ab4 RD |
5456 | def Initialize(*args, **kwargs): |
5457 | """Initialize(self)""" | |
5458 | return _windows_.PyPreviewFrame_Initialize(*args, **kwargs) | |
5459 | ||
5460 | def CreateCanvas(*args, **kwargs): | |
5461 | """CreateCanvas(self)""" | |
5462 | return _windows_.PyPreviewFrame_CreateCanvas(*args, **kwargs) | |
5463 | ||
5464 | def CreateControlBar(*args, **kwargs): | |
5465 | """CreateControlBar(self)""" | |
5466 | return _windows_.PyPreviewFrame_CreateControlBar(*args, **kwargs) | |
e811c8ce | 5467 | |
c26d9ab4 RD |
5468 | def base_Initialize(*args, **kw): |
5469 | return PyPreviewFrame.Initialize(*args, **kw) | |
5470 | base_Initialize = wx._deprecated(base_Initialize, | |
5471 | "Please use PyPreviewFrame.Initialize instead.") | |
e811c8ce | 5472 | |
c26d9ab4 RD |
5473 | def base_CreateCanvas(*args, **kw): |
5474 | return PyPreviewFrame.CreateCanvas(*args, **kw) | |
5475 | base_CreateCanvas = wx._deprecated(base_CreateCanvas, | |
5476 | "Please use PyPreviewFrame.CreateCanvas instead.") | |
5477 | ||
5478 | def base_CreateControlBar(*args, **kw): | |
5479 | return PyPreviewFrame.CreateControlBar(*args, **kw) | |
5480 | base_CreateControlBar = wx._deprecated(base_CreateControlBar, | |
5481 | "Please use PyPreviewFrame.CreateControlBar instead.") | |
e811c8ce | 5482 | |
d14a1e28 RD |
5483 | |
5484 | class PyPreviewFramePtr(PyPreviewFrame): | |
5485 | def __init__(self, this): | |
5486 | self.this = this | |
5487 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5488 | self.__class__ = PyPreviewFrame | |
54f9ee45 | 5489 | _windows_.PyPreviewFrame_swigregister(PyPreviewFramePtr) |
d14a1e28 RD |
5490 | |
5491 | class PyPreviewControlBar(PreviewControlBar): | |
093d3ff1 | 5492 | """Proxy of C++ PyPreviewControlBar class""" |
e811c8ce RD |
5493 | def __repr__(self): |
5494 | return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 5495 | def __init__(self, *args, **kwargs): |
0df68c9f | 5496 | """ |
a95a7133 | 5497 | __init__(self, PrintPreview preview, long buttons, Window parent, |
0df68c9f | 5498 | Point pos=DefaultPosition, Size size=DefaultSize, |
196addbf | 5499 | long style=0, String name=PanelNameStr) -> PyPreviewControlBar |
0df68c9f | 5500 | """ |
54f9ee45 | 5501 | newobj = _windows_.new_PyPreviewControlBar(*args, **kwargs) |
d14a1e28 RD |
5502 | self.this = newobj.this |
5503 | self.thisown = 1 | |
5504 | del newobj.thisown | |
5505 | self._setCallbackInfo(self, PyPreviewControlBar); self._setOORInfo(self) | |
e811c8ce RD |
5506 | |
5507 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 5508 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 5509 | return _windows_.PyPreviewControlBar__setCallbackInfo(*args, **kwargs) |
e811c8ce RD |
5510 | |
5511 | def SetPrintPreview(*args, **kwargs): | |
a95a7133 | 5512 | """SetPrintPreview(self, PrintPreview preview)""" |
54f9ee45 | 5513 | return _windows_.PyPreviewControlBar_SetPrintPreview(*args, **kwargs) |
e811c8ce | 5514 | |
c26d9ab4 RD |
5515 | def CreateButtons(*args, **kwargs): |
5516 | """CreateButtons(self)""" | |
5517 | return _windows_.PyPreviewControlBar_CreateButtons(*args, **kwargs) | |
5518 | ||
5519 | def SetZoomControl(*args, **kwargs): | |
5520 | """SetZoomControl(self, int zoom)""" | |
5521 | return _windows_.PyPreviewControlBar_SetZoomControl(*args, **kwargs) | |
5522 | ||
5523 | def base_CreateButtons(*args, **kw): | |
5524 | return PreviewControlBar.CreateButtons(*args, **kw) | |
5525 | base_CreateButtons = wx._deprecated(base_CreateButtons, | |
5526 | "Please use PreviewControlBar.CreateButtons instead.") | |
e811c8ce | 5527 | |
c26d9ab4 RD |
5528 | def base_SetZoomControl(*args, **kw): |
5529 | return PreviewControlBar.SetZoomControl(*args, **kw) | |
5530 | base_SetZoomControl = wx._deprecated(base_SetZoomControl, | |
5531 | "Please use PreviewControlBar.SetZoomControl instead.") | |
e811c8ce | 5532 | |
d14a1e28 RD |
5533 | |
5534 | class PyPreviewControlBarPtr(PyPreviewControlBar): | |
5535 | def __init__(self, this): | |
5536 | self.this = this | |
5537 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5538 | self.__class__ = PyPreviewControlBar | |
54f9ee45 | 5539 | _windows_.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr) |
8ab979d7 | 5540 | |
8ab979d7 | 5541 | |
32fe5131 | 5542 |