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