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