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