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