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