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