]>
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 | 1801 | |
354693ff RD |
1802 | def HitTestXY(*args, **kwargs): |
1803 | """ | |
1804 | HitTestXY(self, int x, int y) -> int | |
1805 | ||
1806 | Test where the given (in client coords) point lies | |
1807 | """ | |
1808 | return _windows_.VScrolledWindow_HitTestXY(*args, **kwargs) | |
e811c8ce RD |
1809 | |
1810 | def HitTest(*args, **kwargs): | |
354693ff RD |
1811 | """ |
1812 | HitTest(self, Point pt) -> int | |
1813 | ||
1814 | Test where the given (in client coords) point lies | |
1815 | """ | |
54f9ee45 | 1816 | return _windows_.VScrolledWindow_HitTest(*args, **kwargs) |
e811c8ce RD |
1817 | |
1818 | def RefreshAll(*args, **kwargs): | |
a95a7133 | 1819 | """RefreshAll(self)""" |
54f9ee45 | 1820 | return _windows_.VScrolledWindow_RefreshAll(*args, **kwargs) |
e811c8ce RD |
1821 | |
1822 | def GetLineCount(*args, **kwargs): | |
a95a7133 | 1823 | """GetLineCount(self) -> size_t""" |
54f9ee45 | 1824 | return _windows_.VScrolledWindow_GetLineCount(*args, **kwargs) |
e811c8ce RD |
1825 | |
1826 | def GetFirstVisibleLine(*args, **kwargs): | |
a95a7133 | 1827 | """GetFirstVisibleLine(self) -> size_t""" |
54f9ee45 | 1828 | return _windows_.VScrolledWindow_GetFirstVisibleLine(*args, **kwargs) |
e811c8ce RD |
1829 | |
1830 | def GetLastVisibleLine(*args, **kwargs): | |
a95a7133 | 1831 | """GetLastVisibleLine(self) -> size_t""" |
54f9ee45 | 1832 | return _windows_.VScrolledWindow_GetLastVisibleLine(*args, **kwargs) |
e811c8ce RD |
1833 | |
1834 | def IsVisible(*args, **kwargs): | |
a95a7133 | 1835 | """IsVisible(self, size_t line) -> bool""" |
54f9ee45 | 1836 | return _windows_.VScrolledWindow_IsVisible(*args, **kwargs) |
e811c8ce | 1837 | |
d14a1e28 RD |
1838 | |
1839 | class VScrolledWindowPtr(VScrolledWindow): | |
1840 | def __init__(self, this): | |
1841 | self.this = this | |
1842 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1843 | self.__class__ = VScrolledWindow | |
54f9ee45 | 1844 | _windows_.VScrolledWindow_swigregister(VScrolledWindowPtr) |
d14a1e28 RD |
1845 | |
1846 | def PreVScrolledWindow(*args, **kwargs): | |
e811c8ce | 1847 | """PreVScrolledWindow() -> VScrolledWindow""" |
54f9ee45 | 1848 | val = _windows_.new_PreVScrolledWindow(*args, **kwargs) |
aa2a5b86 RD |
1849 | val.thisown = 1 |
1850 | return val | |
1851 | ||
d14a1e28 | 1852 | class VListBox(VScrolledWindow): |
e811c8ce RD |
1853 | def __repr__(self): |
1854 | return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1855 | def __init__(self, *args, **kwargs): |
0df68c9f | 1856 | """ |
a95a7133 | 1857 | __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, |
b2dc1044 | 1858 | Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox |
0df68c9f | 1859 | """ |
54f9ee45 | 1860 | newobj = _windows_.new_VListBox(*args, **kwargs) |
d14a1e28 RD |
1861 | self.this = newobj.this |
1862 | self.thisown = 1 | |
1863 | del newobj.thisown | |
1864 | self._setOORInfo(self);self._setCallbackInfo(self, VListBox) | |
e811c8ce RD |
1865 | |
1866 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 1867 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 1868 | return _windows_.VListBox__setCallbackInfo(*args, **kwargs) |
e811c8ce RD |
1869 | |
1870 | def Create(*args, **kwargs): | |
0df68c9f | 1871 | """ |
a95a7133 | 1872 | Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, |
b2dc1044 | 1873 | Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool |
0df68c9f | 1874 | """ |
54f9ee45 | 1875 | return _windows_.VListBox_Create(*args, **kwargs) |
e811c8ce RD |
1876 | |
1877 | def GetItemCount(*args, **kwargs): | |
a95a7133 | 1878 | """GetItemCount(self) -> size_t""" |
54f9ee45 | 1879 | return _windows_.VListBox_GetItemCount(*args, **kwargs) |
e811c8ce RD |
1880 | |
1881 | def HasMultipleSelection(*args, **kwargs): | |
a95a7133 | 1882 | """HasMultipleSelection(self) -> bool""" |
54f9ee45 | 1883 | return _windows_.VListBox_HasMultipleSelection(*args, **kwargs) |
e811c8ce RD |
1884 | |
1885 | def GetSelection(*args, **kwargs): | |
a95a7133 | 1886 | """GetSelection(self) -> int""" |
54f9ee45 | 1887 | return _windows_.VListBox_GetSelection(*args, **kwargs) |
e811c8ce RD |
1888 | |
1889 | def IsCurrent(*args, **kwargs): | |
a95a7133 | 1890 | """IsCurrent(self, size_t item) -> bool""" |
54f9ee45 | 1891 | return _windows_.VListBox_IsCurrent(*args, **kwargs) |
e811c8ce RD |
1892 | |
1893 | def IsSelected(*args, **kwargs): | |
a95a7133 | 1894 | """IsSelected(self, size_t item) -> bool""" |
54f9ee45 | 1895 | return _windows_.VListBox_IsSelected(*args, **kwargs) |
e811c8ce RD |
1896 | |
1897 | def GetSelectedCount(*args, **kwargs): | |
a95a7133 | 1898 | """GetSelectedCount(self) -> size_t""" |
54f9ee45 | 1899 | return _windows_.VListBox_GetSelectedCount(*args, **kwargs) |
e811c8ce RD |
1900 | |
1901 | def GetFirstSelected(*args, **kwargs): | |
09c21d3b | 1902 | """GetFirstSelected(self) -> PyObject""" |
54f9ee45 | 1903 | return _windows_.VListBox_GetFirstSelected(*args, **kwargs) |
e811c8ce RD |
1904 | |
1905 | def GetNextSelected(*args, **kwargs): | |
09c21d3b | 1906 | """GetNextSelected(self, unsigned long cookie) -> PyObject""" |
54f9ee45 | 1907 | return _windows_.VListBox_GetNextSelected(*args, **kwargs) |
e811c8ce RD |
1908 | |
1909 | def GetMargins(*args, **kwargs): | |
a95a7133 | 1910 | """GetMargins(self) -> Point""" |
54f9ee45 | 1911 | return _windows_.VListBox_GetMargins(*args, **kwargs) |
e811c8ce RD |
1912 | |
1913 | def GetSelectionBackground(*args, **kwargs): | |
a95a7133 | 1914 | """GetSelectionBackground(self) -> Colour""" |
54f9ee45 | 1915 | return _windows_.VListBox_GetSelectionBackground(*args, **kwargs) |
e811c8ce RD |
1916 | |
1917 | def SetItemCount(*args, **kwargs): | |
a95a7133 | 1918 | """SetItemCount(self, size_t count)""" |
54f9ee45 | 1919 | return _windows_.VListBox_SetItemCount(*args, **kwargs) |
e811c8ce RD |
1920 | |
1921 | def Clear(*args, **kwargs): | |
a95a7133 | 1922 | """Clear(self)""" |
54f9ee45 | 1923 | return _windows_.VListBox_Clear(*args, **kwargs) |
e811c8ce RD |
1924 | |
1925 | def SetSelection(*args, **kwargs): | |
a95a7133 | 1926 | """SetSelection(self, int selection)""" |
54f9ee45 | 1927 | return _windows_.VListBox_SetSelection(*args, **kwargs) |
e811c8ce RD |
1928 | |
1929 | def Select(*args, **kwargs): | |
a95a7133 | 1930 | """Select(self, size_t item, bool select=True) -> bool""" |
54f9ee45 | 1931 | return _windows_.VListBox_Select(*args, **kwargs) |
e811c8ce RD |
1932 | |
1933 | def SelectRange(*args, **kwargs): | |
a95a7133 | 1934 | """SelectRange(self, size_t from, size_t to) -> bool""" |
54f9ee45 | 1935 | return _windows_.VListBox_SelectRange(*args, **kwargs) |
e811c8ce RD |
1936 | |
1937 | def Toggle(*args, **kwargs): | |
a95a7133 | 1938 | """Toggle(self, size_t item)""" |
54f9ee45 | 1939 | return _windows_.VListBox_Toggle(*args, **kwargs) |
e811c8ce RD |
1940 | |
1941 | def SelectAll(*args, **kwargs): | |
a95a7133 | 1942 | """SelectAll(self) -> bool""" |
54f9ee45 | 1943 | return _windows_.VListBox_SelectAll(*args, **kwargs) |
e811c8ce RD |
1944 | |
1945 | def DeselectAll(*args, **kwargs): | |
a95a7133 | 1946 | """DeselectAll(self) -> bool""" |
54f9ee45 | 1947 | return _windows_.VListBox_DeselectAll(*args, **kwargs) |
e811c8ce RD |
1948 | |
1949 | def SetMargins(*args, **kwargs): | |
a95a7133 | 1950 | """SetMargins(self, Point pt)""" |
54f9ee45 | 1951 | return _windows_.VListBox_SetMargins(*args, **kwargs) |
e811c8ce RD |
1952 | |
1953 | def SetMarginsXY(*args, **kwargs): | |
a95a7133 | 1954 | """SetMarginsXY(self, int x, int y)""" |
54f9ee45 | 1955 | return _windows_.VListBox_SetMarginsXY(*args, **kwargs) |
e811c8ce RD |
1956 | |
1957 | def SetSelectionBackground(*args, **kwargs): | |
a95a7133 | 1958 | """SetSelectionBackground(self, Colour col)""" |
54f9ee45 | 1959 | return _windows_.VListBox_SetSelectionBackground(*args, **kwargs) |
e811c8ce | 1960 | |
8ab979d7 | 1961 | |
d14a1e28 RD |
1962 | class VListBoxPtr(VListBox): |
1963 | def __init__(self, this): | |
8ab979d7 | 1964 | self.this = this |
d14a1e28 RD |
1965 | if not hasattr(self,"thisown"): self.thisown = 0 |
1966 | self.__class__ = VListBox | |
54f9ee45 | 1967 | _windows_.VListBox_swigregister(VListBoxPtr) |
b2dc1044 | 1968 | VListBoxNameStr = cvar.VListBoxNameStr |
d14a1e28 RD |
1969 | |
1970 | def PreVListBox(*args, **kwargs): | |
e811c8ce | 1971 | """PreVListBox() -> VListBox""" |
54f9ee45 | 1972 | val = _windows_.new_PreVListBox(*args, **kwargs) |
d14a1e28 RD |
1973 | val.thisown = 1 |
1974 | return val | |
1975 | ||
1976 | class HtmlListBox(VListBox): | |
e811c8ce RD |
1977 | def __repr__(self): |
1978 | return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1979 | def __init__(self, *args, **kwargs): |
0df68c9f | 1980 | """ |
a95a7133 | 1981 | __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, |
b2dc1044 | 1982 | Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox |
0df68c9f | 1983 | """ |
54f9ee45 | 1984 | newobj = _windows_.new_HtmlListBox(*args, **kwargs) |
d14a1e28 RD |
1985 | self.this = newobj.this |
1986 | self.thisown = 1 | |
1987 | del newobj.thisown | |
1988 | self._setOORInfo(self);self._setCallbackInfo(self, HtmlListBox) | |
e811c8ce RD |
1989 | |
1990 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 1991 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 1992 | return _windows_.HtmlListBox__setCallbackInfo(*args, **kwargs) |
e811c8ce RD |
1993 | |
1994 | def Create(*args, **kwargs): | |
0df68c9f | 1995 | """ |
a95a7133 | 1996 | Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, |
b2dc1044 | 1997 | Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool |
0df68c9f | 1998 | """ |
54f9ee45 | 1999 | return _windows_.HtmlListBox_Create(*args, **kwargs) |
e811c8ce RD |
2000 | |
2001 | def RefreshAll(*args, **kwargs): | |
a95a7133 | 2002 | """RefreshAll(self)""" |
54f9ee45 | 2003 | return _windows_.HtmlListBox_RefreshAll(*args, **kwargs) |
e811c8ce RD |
2004 | |
2005 | def SetItemCount(*args, **kwargs): | |
a95a7133 | 2006 | """SetItemCount(self, size_t count)""" |
54f9ee45 | 2007 | return _windows_.HtmlListBox_SetItemCount(*args, **kwargs) |
e811c8ce | 2008 | |
7fdaaabe RD |
2009 | def GetFileSystem(*args, **kwargs): |
2010 | """GetFileSystem(self) -> FileSystem""" | |
2011 | return _windows_.HtmlListBox_GetFileSystem(*args, **kwargs) | |
2012 | ||
d14a1e28 RD |
2013 | |
2014 | class HtmlListBoxPtr(HtmlListBox): | |
2015 | def __init__(self, this): | |
2016 | self.this = this | |
2017 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2018 | self.__class__ = HtmlListBox | |
54f9ee45 | 2019 | _windows_.HtmlListBox_swigregister(HtmlListBoxPtr) |
d14a1e28 RD |
2020 | |
2021 | def PreHtmlListBox(*args, **kwargs): | |
e811c8ce | 2022 | """PreHtmlListBox() -> HtmlListBox""" |
54f9ee45 | 2023 | val = _windows_.new_PreHtmlListBox(*args, **kwargs) |
d14a1e28 RD |
2024 | val.thisown = 1 |
2025 | return val | |
2026 | ||
2027 | #--------------------------------------------------------------------------- | |
2028 | ||
54f9ee45 | 2029 | class TaskBarIcon(_core.EvtHandler): |
e811c8ce RD |
2030 | def __repr__(self): |
2031 | return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2032 | def __init__(self, *args, **kwargs): |
a95a7133 | 2033 | """__init__(self) -> TaskBarIcon""" |
54f9ee45 | 2034 | newobj = _windows_.new_TaskBarIcon(*args, **kwargs) |
d14a1e28 | 2035 | self.this = newobj.this |
8ab979d7 | 2036 | self.thisown = 1 |
d14a1e28 | 2037 | del newobj.thisown |
54f9ee45 | 2038 | def __del__(self, destroy=_windows_.delete_TaskBarIcon): |
a95a7133 | 2039 | """__del__(self)""" |
d14a1e28 RD |
2040 | try: |
2041 | if self.thisown: destroy(self) | |
2042 | except: pass | |
e811c8ce | 2043 | |
74a57fcd RD |
2044 | def Destroy(*args, **kwargs): |
2045 | """ | |
a95a7133 | 2046 | Destroy(self) |
74a57fcd RD |
2047 | |
2048 | Deletes the C++ object this Python object is a proxy for. | |
2049 | """ | |
54f9ee45 | 2050 | return _windows_.TaskBarIcon_Destroy(*args, **kwargs) |
74a57fcd | 2051 | |
e811c8ce | 2052 | def IsOk(*args, **kwargs): |
a95a7133 | 2053 | """IsOk(self) -> bool""" |
54f9ee45 | 2054 | return _windows_.TaskBarIcon_IsOk(*args, **kwargs) |
e811c8ce | 2055 | |
4276dc52 | 2056 | def __nonzero__(self): return self.IsOk() |
e811c8ce | 2057 | def IsIconInstalled(*args, **kwargs): |
a95a7133 | 2058 | """IsIconInstalled(self) -> bool""" |
54f9ee45 | 2059 | return _windows_.TaskBarIcon_IsIconInstalled(*args, **kwargs) |
e811c8ce RD |
2060 | |
2061 | def SetIcon(*args, **kwargs): | |
a95a7133 | 2062 | """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool""" |
54f9ee45 | 2063 | return _windows_.TaskBarIcon_SetIcon(*args, **kwargs) |
e811c8ce RD |
2064 | |
2065 | def RemoveIcon(*args, **kwargs): | |
a95a7133 | 2066 | """RemoveIcon(self) -> bool""" |
54f9ee45 | 2067 | return _windows_.TaskBarIcon_RemoveIcon(*args, **kwargs) |
e811c8ce RD |
2068 | |
2069 | def PopupMenu(*args, **kwargs): | |
a95a7133 | 2070 | """PopupMenu(self, Menu menu) -> bool""" |
54f9ee45 | 2071 | return _windows_.TaskBarIcon_PopupMenu(*args, **kwargs) |
e811c8ce | 2072 | |
8ab979d7 | 2073 | |
d14a1e28 RD |
2074 | class TaskBarIconPtr(TaskBarIcon): |
2075 | def __init__(self, this): | |
2076 | self.this = this | |
2077 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2078 | self.__class__ = TaskBarIcon | |
54f9ee45 | 2079 | _windows_.TaskBarIcon_swigregister(TaskBarIconPtr) |
d14a1e28 | 2080 | |
54f9ee45 | 2081 | class TaskBarIconEvent(_core.Event): |
e811c8ce RD |
2082 | def __repr__(self): |
2083 | return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2084 | def __init__(self, *args, **kwargs): |
a95a7133 | 2085 | """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent""" |
54f9ee45 | 2086 | newobj = _windows_.new_TaskBarIconEvent(*args, **kwargs) |
d14a1e28 RD |
2087 | self.this = newobj.this |
2088 | self.thisown = 1 | |
2089 | del newobj.thisown | |
8ab979d7 | 2090 | |
d14a1e28 RD |
2091 | class TaskBarIconEventPtr(TaskBarIconEvent): |
2092 | def __init__(self, this): | |
2093 | self.this = this | |
2094 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2095 | self.__class__ = TaskBarIconEvent | |
54f9ee45 RD |
2096 | _windows_.TaskBarIconEvent_swigregister(TaskBarIconEventPtr) |
2097 | ||
2098 | wxEVT_TASKBAR_MOVE = _windows_.wxEVT_TASKBAR_MOVE | |
2099 | wxEVT_TASKBAR_LEFT_DOWN = _windows_.wxEVT_TASKBAR_LEFT_DOWN | |
2100 | wxEVT_TASKBAR_LEFT_UP = _windows_.wxEVT_TASKBAR_LEFT_UP | |
2101 | wxEVT_TASKBAR_RIGHT_DOWN = _windows_.wxEVT_TASKBAR_RIGHT_DOWN | |
2102 | wxEVT_TASKBAR_RIGHT_UP = _windows_.wxEVT_TASKBAR_RIGHT_UP | |
2103 | wxEVT_TASKBAR_LEFT_DCLICK = _windows_.wxEVT_TASKBAR_LEFT_DCLICK | |
2104 | wxEVT_TASKBAR_RIGHT_DCLICK = _windows_.wxEVT_TASKBAR_RIGHT_DCLICK | |
d14a1e28 RD |
2105 | EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE ) |
2106 | EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN ) | |
2107 | EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP ) | |
2108 | EVT_TASKBAR_RIGHT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN ) | |
2109 | EVT_TASKBAR_RIGHT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP ) | |
2110 | EVT_TASKBAR_LEFT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK ) | |
2111 | EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK ) | |
2112 | ||
2113 | #--------------------------------------------------------------------------- | |
2114 | ||
54f9ee45 | 2115 | class ColourData(_core.Object): |
66c033b4 RD |
2116 | """ |
2117 | This class holds a variety of information related to the colour | |
03e37cd5 RD |
2118 | chooser dialog, used to transfer settings and results to and from the |
2119 | `wx.ColourDialog`. | |
66c033b4 | 2120 | """ |
e811c8ce RD |
2121 | def __repr__(self): |
2122 | return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2123 | def __init__(self, *args, **kwargs): |
fcafa8a9 | 2124 | """ |
a95a7133 | 2125 | __init__(self) -> ColourData |
fcafa8a9 RD |
2126 | |
2127 | Constructor, sets default values. | |
2128 | """ | |
54f9ee45 | 2129 | newobj = _windows_.new_ColourData(*args, **kwargs) |
d14a1e28 RD |
2130 | self.this = newobj.this |
2131 | self.thisown = 1 | |
2132 | del newobj.thisown | |
54f9ee45 | 2133 | def __del__(self, destroy=_windows_.delete_ColourData): |
a95a7133 | 2134 | """__del__(self)""" |
d14a1e28 RD |
2135 | try: |
2136 | if self.thisown: destroy(self) | |
2137 | except: pass | |
e811c8ce RD |
2138 | |
2139 | def GetChooseFull(*args, **kwargs): | |
fcafa8a9 | 2140 | """ |
a95a7133 | 2141 | GetChooseFull(self) -> bool |
fcafa8a9 | 2142 | |
66c033b4 RD |
2143 | Under Windows, determines whether the Windows colour dialog will |
2144 | display the full dialog with custom colour selection controls. Has no | |
2145 | meaning under other platforms. The default value is true. | |
fcafa8a9 | 2146 | """ |
54f9ee45 | 2147 | return _windows_.ColourData_GetChooseFull(*args, **kwargs) |
e811c8ce RD |
2148 | |
2149 | def GetColour(*args, **kwargs): | |
fcafa8a9 | 2150 | """ |
a95a7133 | 2151 | GetColour(self) -> Colour |
fcafa8a9 RD |
2152 | |
2153 | Gets the colour (pre)selected by the dialog. | |
2154 | """ | |
54f9ee45 | 2155 | return _windows_.ColourData_GetColour(*args, **kwargs) |
e811c8ce RD |
2156 | |
2157 | def GetCustomColour(*args, **kwargs): | |
fcafa8a9 | 2158 | """ |
a95a7133 | 2159 | GetCustomColour(self, int i) -> Colour |
fcafa8a9 | 2160 | |
66c033b4 RD |
2161 | Gets the i'th custom colour associated with the colour dialog. i |
2162 | should be an integer between 0 and 15. The default custom colours are | |
248ed943 | 2163 | all invalid colours. |
fcafa8a9 | 2164 | """ |
54f9ee45 | 2165 | return _windows_.ColourData_GetCustomColour(*args, **kwargs) |
e811c8ce RD |
2166 | |
2167 | def SetChooseFull(*args, **kwargs): | |
fcafa8a9 | 2168 | """ |
a95a7133 | 2169 | SetChooseFull(self, int flag) |
fcafa8a9 | 2170 | |
66c033b4 RD |
2171 | Under Windows, tells the Windows colour dialog to display the full |
2172 | dialog with custom colour selection controls. Under other platforms, | |
2173 | has no effect. The default value is true. | |
fcafa8a9 | 2174 | """ |
54f9ee45 | 2175 | return _windows_.ColourData_SetChooseFull(*args, **kwargs) |
e811c8ce RD |
2176 | |
2177 | def SetColour(*args, **kwargs): | |
fcafa8a9 | 2178 | """ |
a95a7133 | 2179 | SetColour(self, Colour colour) |
fcafa8a9 | 2180 | |
66c033b4 RD |
2181 | Sets the default colour for the colour dialog. The default colour is |
2182 | black. | |
fcafa8a9 | 2183 | """ |
54f9ee45 | 2184 | return _windows_.ColourData_SetColour(*args, **kwargs) |
e811c8ce RD |
2185 | |
2186 | def SetCustomColour(*args, **kwargs): | |
fcafa8a9 | 2187 | """ |
a95a7133 | 2188 | SetCustomColour(self, int i, Colour colour) |
fcafa8a9 | 2189 | |
66c033b4 | 2190 | Sets the i'th custom colour for the colour dialog. i should be an |
248ed943 | 2191 | integer between 0 and 15. The default custom colours are all invalid colours. |
fcafa8a9 | 2192 | """ |
54f9ee45 | 2193 | return _windows_.ColourData_SetCustomColour(*args, **kwargs) |
e811c8ce | 2194 | |
8ab979d7 | 2195 | |
d14a1e28 RD |
2196 | class ColourDataPtr(ColourData): |
2197 | def __init__(self, this): | |
2198 | self.this = this | |
2199 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2200 | self.__class__ = ColourData | |
54f9ee45 | 2201 | _windows_.ColourData_swigregister(ColourDataPtr) |
b2dc1044 RD |
2202 | FileSelectorPromptStr = cvar.FileSelectorPromptStr |
2203 | DirSelectorPromptStr = cvar.DirSelectorPromptStr | |
2204 | DirDialogNameStr = cvar.DirDialogNameStr | |
2205 | FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr | |
2206 | GetTextFromUserPromptStr = cvar.GetTextFromUserPromptStr | |
2207 | MessageBoxCaptionStr = cvar.MessageBoxCaptionStr | |
d14a1e28 RD |
2208 | |
2209 | class ColourDialog(Dialog): | |
fcafa8a9 | 2210 | """This class represents the colour chooser dialog.""" |
e811c8ce RD |
2211 | def __repr__(self): |
2212 | return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2213 | def __init__(self, *args, **kwargs): |
fcafa8a9 | 2214 | """ |
a95a7133 | 2215 | __init__(self, Window parent, ColourData data=None) -> ColourDialog |
fcafa8a9 | 2216 | |
66c033b4 RD |
2217 | Constructor. Pass a parent window, and optionally a `wx.ColourData`, |
2218 | which will be copied to the colour dialog's internal ColourData | |
2219 | instance. | |
fcafa8a9 | 2220 | """ |
54f9ee45 | 2221 | newobj = _windows_.new_ColourDialog(*args, **kwargs) |
d14a1e28 RD |
2222 | self.this = newobj.this |
2223 | self.thisown = 1 | |
2224 | del newobj.thisown | |
2225 | self._setOORInfo(self) | |
e811c8ce RD |
2226 | |
2227 | def GetColourData(*args, **kwargs): | |
fcafa8a9 | 2228 | """ |
a95a7133 | 2229 | GetColourData(self) -> ColourData |
e811c8ce | 2230 | |
66c033b4 | 2231 | Returns a reference to the `wx.ColourData` used by the dialog. |
fcafa8a9 | 2232 | """ |
54f9ee45 | 2233 | return _windows_.ColourDialog_GetColourData(*args, **kwargs) |
e811c8ce | 2234 | |
8ab979d7 | 2235 | |
d14a1e28 RD |
2236 | class ColourDialogPtr(ColourDialog): |
2237 | def __init__(self, this): | |
8ab979d7 | 2238 | self.this = this |
d14a1e28 RD |
2239 | if not hasattr(self,"thisown"): self.thisown = 0 |
2240 | self.__class__ = ColourDialog | |
54f9ee45 | 2241 | _windows_.ColourDialog_swigregister(ColourDialogPtr) |
d14a1e28 RD |
2242 | |
2243 | class DirDialog(Dialog): | |
66c033b4 RD |
2244 | """ |
2245 | wx.DirDialog allows the user to select a directory by browising the | |
2246 | file system. | |
66c033b4 | 2247 | """ |
e811c8ce RD |
2248 | def __repr__(self): |
2249 | return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2250 | def __init__(self, *args, **kwargs): |
0df68c9f | 2251 | """ |
a95a7133 | 2252 | __init__(self, Window parent, String message=DirSelectorPromptStr, |
196addbf RD |
2253 | String defaultPath=EmptyString, long style=0, |
2254 | Point pos=DefaultPosition, Size size=DefaultSize, | |
b2dc1044 | 2255 | String name=DirDialogNameStr) -> DirDialog |
fcafa8a9 RD |
2256 | |
2257 | Constructor. Use ShowModal method to show the dialog. | |
0df68c9f | 2258 | """ |
54f9ee45 | 2259 | newobj = _windows_.new_DirDialog(*args, **kwargs) |
d14a1e28 RD |
2260 | self.this = newobj.this |
2261 | self.thisown = 1 | |
2262 | del newobj.thisown | |
2263 | self._setOORInfo(self) | |
e811c8ce RD |
2264 | |
2265 | def GetPath(*args, **kwargs): | |
fcafa8a9 | 2266 | """ |
a95a7133 | 2267 | GetPath(self) -> String |
fcafa8a9 RD |
2268 | |
2269 | Returns the default or user-selected path. | |
2270 | """ | |
54f9ee45 | 2271 | return _windows_.DirDialog_GetPath(*args, **kwargs) |
e811c8ce RD |
2272 | |
2273 | def GetMessage(*args, **kwargs): | |
fcafa8a9 | 2274 | """ |
a95a7133 | 2275 | GetMessage(self) -> String |
fcafa8a9 RD |
2276 | |
2277 | Returns the message that will be displayed on the dialog. | |
2278 | """ | |
54f9ee45 | 2279 | return _windows_.DirDialog_GetMessage(*args, **kwargs) |
e811c8ce RD |
2280 | |
2281 | def GetStyle(*args, **kwargs): | |
fcafa8a9 | 2282 | """ |
a95a7133 | 2283 | GetStyle(self) -> long |
fcafa8a9 RD |
2284 | |
2285 | Returns the dialog style. | |
2286 | """ | |
54f9ee45 | 2287 | return _windows_.DirDialog_GetStyle(*args, **kwargs) |
e811c8ce RD |
2288 | |
2289 | def SetMessage(*args, **kwargs): | |
fcafa8a9 | 2290 | """ |
a95a7133 | 2291 | SetMessage(self, String message) |
fcafa8a9 RD |
2292 | |
2293 | Sets the message that will be displayed on the dialog. | |
2294 | """ | |
54f9ee45 | 2295 | return _windows_.DirDialog_SetMessage(*args, **kwargs) |
e811c8ce RD |
2296 | |
2297 | def SetPath(*args, **kwargs): | |
fcafa8a9 | 2298 | """ |
a95a7133 | 2299 | SetPath(self, String path) |
e811c8ce | 2300 | |
fcafa8a9 RD |
2301 | Sets the default path. |
2302 | """ | |
54f9ee45 | 2303 | return _windows_.DirDialog_SetPath(*args, **kwargs) |
e811c8ce | 2304 | |
d14a1e28 RD |
2305 | |
2306 | class DirDialogPtr(DirDialog): | |
2307 | def __init__(self, this): | |
2308 | self.this = this | |
2309 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2310 | self.__class__ = DirDialog | |
54f9ee45 | 2311 | _windows_.DirDialog_swigregister(DirDialogPtr) |
d14a1e28 RD |
2312 | |
2313 | class FileDialog(Dialog): | |
66c033b4 RD |
2314 | """ |
2315 | wx.FileDialog allows the user to select one or more files from the | |
2316 | filesystem. | |
66c033b4 | 2317 | """ |
e811c8ce RD |
2318 | def __repr__(self): |
2319 | return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2320 | def __init__(self, *args, **kwargs): |
0df68c9f | 2321 | """ |
a95a7133 | 2322 | __init__(self, Window parent, String message=FileSelectorPromptStr, |
196addbf | 2323 | String defaultDir=EmptyString, String defaultFile=EmptyString, |
b2dc1044 RD |
2324 | String wildcard=FileSelectorDefaultWildcardStr, |
2325 | long style=0, Point pos=DefaultPosition) -> FileDialog | |
fcafa8a9 RD |
2326 | |
2327 | Constructor. Use ShowModal method to show the dialog. | |
0df68c9f | 2328 | """ |
54f9ee45 | 2329 | newobj = _windows_.new_FileDialog(*args, **kwargs) |
d14a1e28 | 2330 | self.this = newobj.this |
8ab979d7 | 2331 | self.thisown = 1 |
d14a1e28 | 2332 | del newobj.thisown |
0220cbc1 | 2333 | self._setOORInfo(self) |
e811c8ce RD |
2334 | |
2335 | def SetMessage(*args, **kwargs): | |
fcafa8a9 | 2336 | """ |
a95a7133 | 2337 | SetMessage(self, String message) |
fcafa8a9 RD |
2338 | |
2339 | Sets the message that will be displayed on the dialog. | |
2340 | """ | |
54f9ee45 | 2341 | return _windows_.FileDialog_SetMessage(*args, **kwargs) |
e811c8ce RD |
2342 | |
2343 | def SetPath(*args, **kwargs): | |
fcafa8a9 | 2344 | """ |
a95a7133 | 2345 | SetPath(self, String path) |
fcafa8a9 | 2346 | |
66c033b4 RD |
2347 | Sets the path (the combined directory and filename that will be |
2348 | returned when the dialog is dismissed). | |
fcafa8a9 | 2349 | """ |
54f9ee45 | 2350 | return _windows_.FileDialog_SetPath(*args, **kwargs) |
e811c8ce RD |
2351 | |
2352 | def SetDirectory(*args, **kwargs): | |
fcafa8a9 | 2353 | """ |
a95a7133 | 2354 | SetDirectory(self, String dir) |
fcafa8a9 RD |
2355 | |
2356 | Sets the default directory. | |
2357 | """ | |
54f9ee45 | 2358 | return _windows_.FileDialog_SetDirectory(*args, **kwargs) |
e811c8ce RD |
2359 | |
2360 | def SetFilename(*args, **kwargs): | |
fcafa8a9 | 2361 | """ |
a95a7133 | 2362 | SetFilename(self, String name) |
fcafa8a9 RD |
2363 | |
2364 | Sets the default filename. | |
2365 | """ | |
54f9ee45 | 2366 | return _windows_.FileDialog_SetFilename(*args, **kwargs) |
e811c8ce RD |
2367 | |
2368 | def SetWildcard(*args, **kwargs): | |
fcafa8a9 | 2369 | """ |
a95a7133 | 2370 | SetWildcard(self, String wildCard) |
fcafa8a9 | 2371 | |
66c033b4 RD |
2372 | Sets the wildcard, which can contain multiple file types, for |
2373 | example:: | |
2374 | ||
fcafa8a9 | 2375 | "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif" |
66c033b4 | 2376 | |
fcafa8a9 | 2377 | """ |
54f9ee45 | 2378 | return _windows_.FileDialog_SetWildcard(*args, **kwargs) |
e811c8ce RD |
2379 | |
2380 | def SetStyle(*args, **kwargs): | |
fcafa8a9 | 2381 | """ |
a95a7133 | 2382 | SetStyle(self, long style) |
fcafa8a9 RD |
2383 | |
2384 | Sets the dialog style. | |
2385 | """ | |
54f9ee45 | 2386 | return _windows_.FileDialog_SetStyle(*args, **kwargs) |
e811c8ce RD |
2387 | |
2388 | def SetFilterIndex(*args, **kwargs): | |
fcafa8a9 | 2389 | """ |
a95a7133 | 2390 | SetFilterIndex(self, int filterIndex) |
fcafa8a9 RD |
2391 | |
2392 | Sets the default filter index, starting from zero. | |
2393 | """ | |
54f9ee45 | 2394 | return _windows_.FileDialog_SetFilterIndex(*args, **kwargs) |
e811c8ce RD |
2395 | |
2396 | def GetMessage(*args, **kwargs): | |
fcafa8a9 | 2397 | """ |
a95a7133 | 2398 | GetMessage(self) -> String |
fcafa8a9 RD |
2399 | |
2400 | Returns the message that will be displayed on the dialog. | |
2401 | """ | |
54f9ee45 | 2402 | return _windows_.FileDialog_GetMessage(*args, **kwargs) |
e811c8ce RD |
2403 | |
2404 | def GetPath(*args, **kwargs): | |
fcafa8a9 | 2405 | """ |
a95a7133 | 2406 | GetPath(self) -> String |
fcafa8a9 RD |
2407 | |
2408 | Returns the full path (directory and filename) of the selected file. | |
2409 | """ | |
54f9ee45 | 2410 | return _windows_.FileDialog_GetPath(*args, **kwargs) |
e811c8ce RD |
2411 | |
2412 | def GetDirectory(*args, **kwargs): | |
fcafa8a9 | 2413 | """ |
a95a7133 | 2414 | GetDirectory(self) -> String |
fcafa8a9 RD |
2415 | |
2416 | Returns the default directory. | |
2417 | """ | |
54f9ee45 | 2418 | return _windows_.FileDialog_GetDirectory(*args, **kwargs) |
e811c8ce RD |
2419 | |
2420 | def GetFilename(*args, **kwargs): | |
fcafa8a9 | 2421 | """ |
a95a7133 | 2422 | GetFilename(self) -> String |
fcafa8a9 RD |
2423 | |
2424 | Returns the default filename. | |
2425 | """ | |
54f9ee45 | 2426 | return _windows_.FileDialog_GetFilename(*args, **kwargs) |
e811c8ce RD |
2427 | |
2428 | def GetWildcard(*args, **kwargs): | |
fcafa8a9 | 2429 | """ |
a95a7133 | 2430 | GetWildcard(self) -> String |
fcafa8a9 RD |
2431 | |
2432 | Returns the file dialog wildcard. | |
2433 | """ | |
54f9ee45 | 2434 | return _windows_.FileDialog_GetWildcard(*args, **kwargs) |
e811c8ce RD |
2435 | |
2436 | def GetStyle(*args, **kwargs): | |
fcafa8a9 | 2437 | """ |
a95a7133 | 2438 | GetStyle(self) -> long |
fcafa8a9 RD |
2439 | |
2440 | Returns the dialog style. | |
2441 | """ | |
54f9ee45 | 2442 | return _windows_.FileDialog_GetStyle(*args, **kwargs) |
e811c8ce RD |
2443 | |
2444 | def GetFilterIndex(*args, **kwargs): | |
fcafa8a9 | 2445 | """ |
a95a7133 | 2446 | GetFilterIndex(self) -> int |
fcafa8a9 RD |
2447 | |
2448 | Returns the index into the list of filters supplied, optionally, in | |
2449 | the wildcard parameter. Before the dialog is shown, this is the index | |
66c033b4 RD |
2450 | which will be used when the dialog is first displayed. After the |
2451 | dialog is shown, this is the index selected by the user. | |
fcafa8a9 | 2452 | """ |
54f9ee45 | 2453 | return _windows_.FileDialog_GetFilterIndex(*args, **kwargs) |
e811c8ce RD |
2454 | |
2455 | def GetFilenames(*args, **kwargs): | |
fcafa8a9 | 2456 | """ |
a95a7133 | 2457 | GetFilenames(self) -> PyObject |
fcafa8a9 | 2458 | |
66c033b4 RD |
2459 | Returns a list of filenames chosen in the dialog. This function |
2460 | should only be used with the dialogs which have wx.MULTIPLE style, use | |
fcafa8a9 RD |
2461 | GetFilename for the others. |
2462 | """ | |
54f9ee45 | 2463 | return _windows_.FileDialog_GetFilenames(*args, **kwargs) |
e811c8ce RD |
2464 | |
2465 | def GetPaths(*args, **kwargs): | |
fcafa8a9 | 2466 | """ |
a95a7133 | 2467 | GetPaths(self) -> PyObject |
fcafa8a9 RD |
2468 | |
2469 | Fills the array paths with the full paths of the files chosen. This | |
66c033b4 RD |
2470 | function should only be used with the dialogs which have wx.MULTIPLE |
2471 | style, use GetPath for the others. | |
fcafa8a9 | 2472 | """ |
54f9ee45 | 2473 | return _windows_.FileDialog_GetPaths(*args, **kwargs) |
e811c8ce | 2474 | |
8ab979d7 | 2475 | |
d14a1e28 RD |
2476 | class FileDialogPtr(FileDialog): |
2477 | def __init__(self, this): | |
2478 | self.this = this | |
2479 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2480 | self.__class__ = FileDialog | |
54f9ee45 | 2481 | _windows_.FileDialog_swigregister(FileDialogPtr) |
d14a1e28 | 2482 | |
54f9ee45 | 2483 | CHOICEDLG_STYLE = _windows_.CHOICEDLG_STYLE |
d14a1e28 | 2484 | class MultiChoiceDialog(Dialog): |
e498079e | 2485 | """A simple dialog with a multi selection listbox.""" |
e811c8ce RD |
2486 | def __repr__(self): |
2487 | return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2488 | def __init__(self, *args, **kwargs): |
0df68c9f | 2489 | """ |
e498079e RD |
2490 | __init__(Window parent, String message, String caption, |
2491 | List choices=[], long style=CHOICEDLG_STYLE, | |
0df68c9f | 2492 | Point pos=DefaultPosition) -> MultiChoiceDialog |
e498079e RD |
2493 | |
2494 | Constructor. Use ShowModal method to show the dialog. | |
0df68c9f | 2495 | """ |
54f9ee45 | 2496 | newobj = _windows_.new_MultiChoiceDialog(*args, **kwargs) |
d14a1e28 RD |
2497 | self.this = newobj.this |
2498 | self.thisown = 1 | |
2499 | del newobj.thisown | |
2500 | self._setOORInfo(self) | |
e811c8ce RD |
2501 | |
2502 | def SetSelections(*args, **kwargs): | |
fd2dc343 RD |
2503 | """ |
2504 | SetSelections(List selections) | |
2505 | ||
2506 | Specify the items in the list that should be selected, using a list of | |
2507 | integers. | |
2508 | """ | |
54f9ee45 | 2509 | return _windows_.MultiChoiceDialog_SetSelections(*args, **kwargs) |
e811c8ce RD |
2510 | |
2511 | def GetSelections(*args, **kwargs): | |
e498079e RD |
2512 | """ |
2513 | GetSelections() -> [selections] | |
2514 | ||
2515 | Returns a list of integers representing the items that are selected. | |
2516 | """ | |
54f9ee45 | 2517 | return _windows_.MultiChoiceDialog_GetSelections(*args, **kwargs) |
e811c8ce | 2518 | |
8ab979d7 | 2519 | |
d14a1e28 RD |
2520 | class MultiChoiceDialogPtr(MultiChoiceDialog): |
2521 | def __init__(self, this): | |
2522 | self.this = this | |
2523 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2524 | self.__class__ = MultiChoiceDialog | |
54f9ee45 | 2525 | _windows_.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr) |
d14a1e28 RD |
2526 | |
2527 | class SingleChoiceDialog(Dialog): | |
e498079e | 2528 | """A simple dialog with a single selection listbox.""" |
e811c8ce RD |
2529 | def __repr__(self): |
2530 | return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2531 | def __init__(self, *args, **kwargs): |
0df68c9f | 2532 | """ |
e498079e RD |
2533 | __init__(Window parent, String message, String caption, |
2534 | List choices=[], long style=CHOICEDLG_STYLE, | |
0df68c9f | 2535 | Point pos=DefaultPosition) -> SingleChoiceDialog |
e498079e RD |
2536 | |
2537 | Constructor. Use ShowModal method to show the dialog. | |
0df68c9f | 2538 | """ |
54f9ee45 | 2539 | newobj = _windows_.new_SingleChoiceDialog(*args, **kwargs) |
d14a1e28 RD |
2540 | self.this = newobj.this |
2541 | self.thisown = 1 | |
2542 | del newobj.thisown | |
2543 | self._setOORInfo(self) | |
e811c8ce RD |
2544 | |
2545 | def GetSelection(*args, **kwargs): | |
e498079e | 2546 | """ |
a95a7133 | 2547 | GetSelection(self) -> int |
e498079e RD |
2548 | |
2549 | Get the index of teh currently selected item. | |
2550 | """ | |
54f9ee45 | 2551 | return _windows_.SingleChoiceDialog_GetSelection(*args, **kwargs) |
e811c8ce RD |
2552 | |
2553 | def GetStringSelection(*args, **kwargs): | |
e498079e | 2554 | """ |
a95a7133 | 2555 | GetStringSelection(self) -> String |
e498079e RD |
2556 | |
2557 | Returns the string value of the currently selected item | |
2558 | """ | |
54f9ee45 | 2559 | return _windows_.SingleChoiceDialog_GetStringSelection(*args, **kwargs) |
e811c8ce RD |
2560 | |
2561 | def SetSelection(*args, **kwargs): | |
e498079e | 2562 | """ |
a95a7133 | 2563 | SetSelection(self, int sel) |
e811c8ce | 2564 | |
e498079e RD |
2565 | Set the current selected item to sel |
2566 | """ | |
54f9ee45 | 2567 | return _windows_.SingleChoiceDialog_SetSelection(*args, **kwargs) |
e811c8ce | 2568 | |
8ab979d7 | 2569 | |
d14a1e28 RD |
2570 | class SingleChoiceDialogPtr(SingleChoiceDialog): |
2571 | def __init__(self, this): | |
2572 | self.this = this | |
2573 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2574 | self.__class__ = SingleChoiceDialog | |
54f9ee45 | 2575 | _windows_.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr) |
d14a1e28 RD |
2576 | |
2577 | class TextEntryDialog(Dialog): | |
e498079e | 2578 | """A dialog with text control, [ok] and [cancel] buttons""" |
e811c8ce RD |
2579 | def __repr__(self): |
2580 | return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2581 | def __init__(self, *args, **kwargs): |
0df68c9f | 2582 | """ |
a95a7133 | 2583 | __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr, |
196addbf | 2584 | String defaultValue=EmptyString, |
b2dc1044 | 2585 | long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog |
e498079e RD |
2586 | |
2587 | Constructor. Use ShowModal method to show the dialog. | |
0df68c9f | 2588 | """ |
54f9ee45 | 2589 | newobj = _windows_.new_TextEntryDialog(*args, **kwargs) |
d14a1e28 RD |
2590 | self.this = newobj.this |
2591 | self.thisown = 1 | |
2592 | del newobj.thisown | |
2593 | self._setOORInfo(self) | |
e811c8ce RD |
2594 | |
2595 | def GetValue(*args, **kwargs): | |
e498079e | 2596 | """ |
a95a7133 | 2597 | GetValue(self) -> String |
e498079e RD |
2598 | |
2599 | Returns the text that the user has entered if the user has pressed OK, | |
2600 | or the original value if the user has pressed Cancel. | |
2601 | """ | |
54f9ee45 | 2602 | return _windows_.TextEntryDialog_GetValue(*args, **kwargs) |
e811c8ce RD |
2603 | |
2604 | def SetValue(*args, **kwargs): | |
e498079e | 2605 | """ |
a95a7133 | 2606 | SetValue(self, String value) |
e811c8ce | 2607 | |
e498079e RD |
2608 | Sets the default text value. |
2609 | """ | |
54f9ee45 | 2610 | return _windows_.TextEntryDialog_SetValue(*args, **kwargs) |
e811c8ce | 2611 | |
8ab979d7 | 2612 | |
d14a1e28 RD |
2613 | class TextEntryDialogPtr(TextEntryDialog): |
2614 | def __init__(self, this): | |
8ab979d7 | 2615 | self.this = this |
d14a1e28 RD |
2616 | if not hasattr(self,"thisown"): self.thisown = 0 |
2617 | self.__class__ = TextEntryDialog | |
54f9ee45 | 2618 | _windows_.TextEntryDialog_swigregister(TextEntryDialogPtr) |
d14a1e28 | 2619 | |
54f9ee45 | 2620 | class FontData(_core.Object): |
66c033b4 RD |
2621 | """ |
2622 | This class holds a variety of information related to font dialogs and | |
2623 | is used to transfer settings to and results from a `wx.FontDialog`. | |
2624 | """ | |
e811c8ce RD |
2625 | def __repr__(self): |
2626 | return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2627 | def __init__(self, *args, **kwargs): |
e498079e | 2628 | """ |
a95a7133 | 2629 | __init__(self) -> FontData |
e498079e | 2630 | |
66c033b4 RD |
2631 | This class holds a variety of information related to font dialogs and |
2632 | is used to transfer settings to and results from a `wx.FontDialog`. | |
e498079e | 2633 | """ |
54f9ee45 | 2634 | newobj = _windows_.new_FontData(*args, **kwargs) |
d14a1e28 RD |
2635 | self.this = newobj.this |
2636 | self.thisown = 1 | |
2637 | del newobj.thisown | |
54f9ee45 | 2638 | def __del__(self, destroy=_windows_.delete_FontData): |
a95a7133 | 2639 | """__del__(self)""" |
d14a1e28 RD |
2640 | try: |
2641 | if self.thisown: destroy(self) | |
2642 | except: pass | |
e811c8ce RD |
2643 | |
2644 | def EnableEffects(*args, **kwargs): | |
e498079e | 2645 | """ |
a95a7133 | 2646 | EnableEffects(self, bool enable) |
e498079e | 2647 | |
66c033b4 RD |
2648 | Enables or disables 'effects' under MS Windows only. This refers to |
2649 | the controls for manipulating colour, strikeout and underline | |
e498079e RD |
2650 | properties. The default value is true. |
2651 | """ | |
54f9ee45 | 2652 | return _windows_.FontData_EnableEffects(*args, **kwargs) |
e811c8ce RD |
2653 | |
2654 | def GetAllowSymbols(*args, **kwargs): | |
e498079e | 2655 | """ |
a95a7133 | 2656 | GetAllowSymbols(self) -> bool |
e498079e | 2657 | |
66c033b4 RD |
2658 | Under MS Windows, returns a flag determining whether symbol fonts can |
2659 | be selected. Has no effect on other platforms. The default value is | |
2660 | true. | |
e498079e | 2661 | """ |
54f9ee45 | 2662 | return _windows_.FontData_GetAllowSymbols(*args, **kwargs) |
e811c8ce RD |
2663 | |
2664 | def GetColour(*args, **kwargs): | |
e498079e | 2665 | """ |
a95a7133 | 2666 | GetColour(self) -> Colour |
e498079e | 2667 | |
66c033b4 RD |
2668 | Gets the colour associated with the font dialog. The default value is |
2669 | black. | |
e498079e | 2670 | """ |
54f9ee45 | 2671 | return _windows_.FontData_GetColour(*args, **kwargs) |
e811c8ce RD |
2672 | |
2673 | def GetChosenFont(*args, **kwargs): | |
e498079e | 2674 | """ |
a95a7133 | 2675 | GetChosenFont(self) -> Font |
e498079e RD |
2676 | |
2677 | Gets the font chosen by the user. | |
2678 | """ | |
54f9ee45 | 2679 | return _windows_.FontData_GetChosenFont(*args, **kwargs) |
e811c8ce RD |
2680 | |
2681 | def GetEnableEffects(*args, **kwargs): | |
e498079e | 2682 | """ |
a95a7133 | 2683 | GetEnableEffects(self) -> bool |
e498079e RD |
2684 | |
2685 | Determines whether 'effects' are enabled under Windows. | |
2686 | """ | |
54f9ee45 | 2687 | return _windows_.FontData_GetEnableEffects(*args, **kwargs) |
e811c8ce RD |
2688 | |
2689 | def GetInitialFont(*args, **kwargs): | |
e498079e | 2690 | """ |
a95a7133 | 2691 | GetInitialFont(self) -> Font |
e498079e | 2692 | |
66c033b4 RD |
2693 | Gets the font that will be initially used by the font dialog. This |
2694 | should have previously been set by the application. | |
e498079e | 2695 | """ |
54f9ee45 | 2696 | return _windows_.FontData_GetInitialFont(*args, **kwargs) |
e811c8ce RD |
2697 | |
2698 | def GetShowHelp(*args, **kwargs): | |
e498079e | 2699 | """ |
a95a7133 | 2700 | GetShowHelp(self) -> bool |
e498079e | 2701 | |
66c033b4 RD |
2702 | Returns true if the Help button will be shown (Windows only). The |
2703 | default value is false. | |
e498079e | 2704 | """ |
54f9ee45 | 2705 | return _windows_.FontData_GetShowHelp(*args, **kwargs) |
e811c8ce RD |
2706 | |
2707 | def SetAllowSymbols(*args, **kwargs): | |
e498079e | 2708 | """ |
a95a7133 | 2709 | SetAllowSymbols(self, bool allowSymbols) |
e498079e | 2710 | |
66c033b4 RD |
2711 | Under MS Windows, determines whether symbol fonts can be selected. Has |
2712 | no effect on other platforms. The default value is true. | |
e498079e | 2713 | """ |
54f9ee45 | 2714 | return _windows_.FontData_SetAllowSymbols(*args, **kwargs) |
e811c8ce RD |
2715 | |
2716 | def SetChosenFont(*args, **kwargs): | |
e498079e | 2717 | """ |
a95a7133 | 2718 | SetChosenFont(self, Font font) |
e498079e | 2719 | |
66c033b4 RD |
2720 | Sets the font that will be returned to the user (normally for internal |
2721 | use only). | |
e498079e | 2722 | """ |
54f9ee45 | 2723 | return _windows_.FontData_SetChosenFont(*args, **kwargs) |
e811c8ce RD |
2724 | |
2725 | def SetColour(*args, **kwargs): | |
e498079e | 2726 | """ |
a95a7133 | 2727 | SetColour(self, Colour colour) |
e498079e | 2728 | |
66c033b4 RD |
2729 | Sets the colour that will be used for the font foreground colour. The |
2730 | default colour is black. | |
e498079e | 2731 | """ |
54f9ee45 | 2732 | return _windows_.FontData_SetColour(*args, **kwargs) |
e811c8ce RD |
2733 | |
2734 | def SetInitialFont(*args, **kwargs): | |
e498079e | 2735 | """ |
a95a7133 | 2736 | SetInitialFont(self, Font font) |
e498079e RD |
2737 | |
2738 | Sets the font that will be initially used by the font dialog. | |
2739 | """ | |
54f9ee45 | 2740 | return _windows_.FontData_SetInitialFont(*args, **kwargs) |
e811c8ce RD |
2741 | |
2742 | def SetRange(*args, **kwargs): | |
e498079e | 2743 | """ |
a95a7133 | 2744 | SetRange(self, int min, int max) |
e498079e | 2745 | |
66c033b4 RD |
2746 | Sets the valid range for the font point size (Windows only). The |
2747 | default is 0, 0 (unrestricted range). | |
e498079e | 2748 | """ |
54f9ee45 | 2749 | return _windows_.FontData_SetRange(*args, **kwargs) |
e811c8ce RD |
2750 | |
2751 | def SetShowHelp(*args, **kwargs): | |
e498079e | 2752 | """ |
a95a7133 | 2753 | SetShowHelp(self, bool showHelp) |
e498079e | 2754 | |
66c033b4 RD |
2755 | Determines whether the Help button will be displayed in the font |
2756 | dialog (Windows only). The default value is false. | |
e498079e | 2757 | """ |
54f9ee45 | 2758 | return _windows_.FontData_SetShowHelp(*args, **kwargs) |
e811c8ce | 2759 | |
d14a1e28 RD |
2760 | |
2761 | class FontDataPtr(FontData): | |
2762 | def __init__(self, this): | |
2763 | self.this = this | |
2764 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2765 | self.__class__ = FontData | |
54f9ee45 | 2766 | _windows_.FontData_swigregister(FontDataPtr) |
d14a1e28 RD |
2767 | |
2768 | class FontDialog(Dialog): | |
66c033b4 RD |
2769 | """ |
2770 | wx.FontDialog allows the user to select a system font and its attributes. | |
2771 | ||
2772 | :see: `wx.FontData` | |
2773 | ||
2774 | """ | |
e811c8ce RD |
2775 | def __repr__(self): |
2776 | return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
15afbcd0 | 2777 | def __init__(self, *args, **kwargs): |
e498079e | 2778 | """ |
a95a7133 | 2779 | __init__(self, Window parent, FontData data) -> FontDialog |
e498079e | 2780 | |
66c033b4 RD |
2781 | Constructor. Pass a parent window and the `wx.FontData` object to be |
2782 | used to initialize the dialog controls. Call `ShowModal` to display | |
2783 | the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the | |
2784 | results with via the `wx.FontData` returned by `GetFontData`. | |
e498079e | 2785 | """ |
54f9ee45 | 2786 | newobj = _windows_.new_FontDialog(*args, **kwargs) |
d14a1e28 | 2787 | self.this = newobj.this |
cf694132 | 2788 | self.thisown = 1 |
d14a1e28 RD |
2789 | del newobj.thisown |
2790 | self._setOORInfo(self) | |
e811c8ce RD |
2791 | |
2792 | def GetFontData(*args, **kwargs): | |
e498079e | 2793 | """ |
a95a7133 | 2794 | GetFontData(self) -> FontData |
e811c8ce | 2795 | |
66c033b4 RD |
2796 | Returns a reference to the internal `wx.FontData` used by the |
2797 | wx.FontDialog. | |
e498079e | 2798 | """ |
54f9ee45 | 2799 | return _windows_.FontDialog_GetFontData(*args, **kwargs) |
e811c8ce | 2800 | |
8ab979d7 | 2801 | |
d14a1e28 RD |
2802 | class FontDialogPtr(FontDialog): |
2803 | def __init__(self, this): | |
2804 | self.this = this | |
2805 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2806 | self.__class__ = FontDialog | |
54f9ee45 | 2807 | _windows_.FontDialog_swigregister(FontDialogPtr) |
d14a1e28 RD |
2808 | |
2809 | class MessageDialog(Dialog): | |
e498079e | 2810 | """ |
66c033b4 RD |
2811 | This class provides a simple dialog that shows a single or multi-line |
2812 | message, with a choice of OK, Yes, No and/or Cancel buttons. | |
e498079e | 2813 | """ |
e811c8ce RD |
2814 | def __repr__(self): |
2815 | return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2816 | def __init__(self, *args, **kwargs): |
0df68c9f | 2817 | """ |
a95a7133 | 2818 | __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr, |
0df68c9f RD |
2819 | long style=wxOK|wxCANCEL|wxCENTRE, |
2820 | Point pos=DefaultPosition) -> MessageDialog | |
e498079e | 2821 | |
66c033b4 | 2822 | Constructor, use `ShowModal` to display the dialog. |
0df68c9f | 2823 | """ |
54f9ee45 | 2824 | newobj = _windows_.new_MessageDialog(*args, **kwargs) |
d14a1e28 RD |
2825 | self.this = newobj.this |
2826 | self.thisown = 1 | |
2827 | del newobj.thisown | |
2828 | self._setOORInfo(self) | |
e811c8ce | 2829 | |
8ab979d7 | 2830 | |
d14a1e28 RD |
2831 | class MessageDialogPtr(MessageDialog): |
2832 | def __init__(self, this): | |
2833 | self.this = this | |
2834 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2835 | self.__class__ = MessageDialog | |
54f9ee45 | 2836 | _windows_.MessageDialog_swigregister(MessageDialogPtr) |
d14a1e28 RD |
2837 | |
2838 | class ProgressDialog(Frame): | |
e498079e | 2839 | """ |
66c033b4 RD |
2840 | A dialog that shows a short message and a progress bar. Optionally, it |
2841 | can display an ABORT button. | |
e498079e | 2842 | """ |
e811c8ce RD |
2843 | def __repr__(self): |
2844 | return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2845 | def __init__(self, *args, **kwargs): |
0df68c9f | 2846 | """ |
a95a7133 | 2847 | __init__(self, String title, String message, int maximum=100, Window parent=None, |
196addbf | 2848 | int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog |
e498079e | 2849 | |
66c033b4 RD |
2850 | Constructor. Creates the dialog, displays it and disables user input |
2851 | for other windows, or, if wx.PD_APP_MODAL flag is not given, for its | |
2852 | parent window only. | |
0df68c9f | 2853 | """ |
54f9ee45 | 2854 | newobj = _windows_.new_ProgressDialog(*args, **kwargs) |
d14a1e28 RD |
2855 | self.this = newobj.this |
2856 | self.thisown = 1 | |
2857 | del newobj.thisown | |
2858 | self._setOORInfo(self) | |
e811c8ce RD |
2859 | |
2860 | def Update(*args, **kwargs): | |
e498079e | 2861 | """ |
a95a7133 | 2862 | Update(self, int value, String newmsg=EmptyString) -> bool |
e498079e | 2863 | |
66c033b4 | 2864 | Updates the dialog, setting the progress bar to the new value and, if |
6923d0a9 RD |
2865 | given changes the message above it. The value given should be less |
2866 | than or equal to the maximum value given to the constructor and the | |
2867 | dialog is closed if it is equal to the maximum. Returns true unless | |
2868 | the Cancel button has been pressed. | |
e498079e | 2869 | |
66c033b4 RD |
2870 | If false is returned, the application can either immediately destroy |
2871 | the dialog or ask the user for the confirmation and if the abort is | |
2872 | not confirmed the dialog may be resumed with Resume function. | |
e498079e | 2873 | """ |
54f9ee45 | 2874 | return _windows_.ProgressDialog_Update(*args, **kwargs) |
e811c8ce RD |
2875 | |
2876 | def Resume(*args, **kwargs): | |
e498079e | 2877 | """ |
a95a7133 | 2878 | Resume(self) |
e498079e | 2879 | |
66c033b4 RD |
2880 | Can be used to continue with the dialog, after the user had chosen to |
2881 | abort. | |
e498079e | 2882 | """ |
54f9ee45 | 2883 | return _windows_.ProgressDialog_Resume(*args, **kwargs) |
e811c8ce | 2884 | |
8ab979d7 | 2885 | |
d14a1e28 RD |
2886 | class ProgressDialogPtr(ProgressDialog): |
2887 | def __init__(self, this): | |
2888 | self.this = this | |
2889 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2890 | self.__class__ = ProgressDialog | |
54f9ee45 RD |
2891 | _windows_.ProgressDialog_swigregister(ProgressDialogPtr) |
2892 | ||
2893 | FR_DOWN = _windows_.FR_DOWN | |
2894 | FR_WHOLEWORD = _windows_.FR_WHOLEWORD | |
2895 | FR_MATCHCASE = _windows_.FR_MATCHCASE | |
2896 | FR_REPLACEDIALOG = _windows_.FR_REPLACEDIALOG | |
2897 | FR_NOUPDOWN = _windows_.FR_NOUPDOWN | |
2898 | FR_NOMATCHCASE = _windows_.FR_NOMATCHCASE | |
2899 | FR_NOWHOLEWORD = _windows_.FR_NOWHOLEWORD | |
2900 | wxEVT_COMMAND_FIND = _windows_.wxEVT_COMMAND_FIND | |
2901 | wxEVT_COMMAND_FIND_NEXT = _windows_.wxEVT_COMMAND_FIND_NEXT | |
2902 | wxEVT_COMMAND_FIND_REPLACE = _windows_.wxEVT_COMMAND_FIND_REPLACE | |
2903 | wxEVT_COMMAND_FIND_REPLACE_ALL = _windows_.wxEVT_COMMAND_FIND_REPLACE_ALL | |
2904 | wxEVT_COMMAND_FIND_CLOSE = _windows_.wxEVT_COMMAND_FIND_CLOSE | |
d14a1e28 RD |
2905 | EVT_FIND = wx.PyEventBinder( wxEVT_COMMAND_FIND, 1 ) |
2906 | EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_COMMAND_FIND_NEXT, 1 ) | |
2907 | EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE, 1 ) | |
2908 | EVT_FIND_REPLACE_ALL = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL, 1 ) | |
2909 | EVT_FIND_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE, 1 ) | |
2910 | ||
2911 | # For backwards compatibility. Should they be removed? | |
2912 | EVT_COMMAND_FIND = EVT_FIND | |
2913 | EVT_COMMAND_FIND_NEXT = EVT_FIND_NEXT | |
2914 | EVT_COMMAND_FIND_REPLACE = EVT_FIND_REPLACE | |
2915 | EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL | |
2916 | EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE | |
2917 | ||
54f9ee45 | 2918 | class FindDialogEvent(_core.CommandEvent): |
e498079e | 2919 | """Events for the FindReplaceDialog""" |
e811c8ce RD |
2920 | def __repr__(self): |
2921 | return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2922 | def __init__(self, *args, **kwargs): |
e498079e | 2923 | """ |
a95a7133 | 2924 | __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent |
e498079e RD |
2925 | |
2926 | Events for the FindReplaceDialog | |
2927 | """ | |
54f9ee45 | 2928 | newobj = _windows_.new_FindDialogEvent(*args, **kwargs) |
d14a1e28 RD |
2929 | self.this = newobj.this |
2930 | self.thisown = 1 | |
2931 | del newobj.thisown | |
e811c8ce | 2932 | def GetFlags(*args, **kwargs): |
e498079e | 2933 | """ |
a95a7133 | 2934 | GetFlags(self) -> int |
e498079e RD |
2935 | |
2936 | Get the currently selected flags: this is the combination of | |
2937 | wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags. | |
2938 | """ | |
54f9ee45 | 2939 | return _windows_.FindDialogEvent_GetFlags(*args, **kwargs) |
e811c8ce RD |
2940 | |
2941 | def GetFindString(*args, **kwargs): | |
e498079e | 2942 | """ |
a95a7133 | 2943 | GetFindString(self) -> String |
e498079e RD |
2944 | |
2945 | Return the string to find (never empty). | |
2946 | """ | |
54f9ee45 | 2947 | return _windows_.FindDialogEvent_GetFindString(*args, **kwargs) |
e811c8ce RD |
2948 | |
2949 | def GetReplaceString(*args, **kwargs): | |
e498079e | 2950 | """ |
a95a7133 | 2951 | GetReplaceString(self) -> String |
e498079e | 2952 | |
66c033b4 RD |
2953 | Return the string to replace the search string with (only for replace |
2954 | and replace all events). | |
e498079e | 2955 | """ |
54f9ee45 | 2956 | return _windows_.FindDialogEvent_GetReplaceString(*args, **kwargs) |
e811c8ce RD |
2957 | |
2958 | def GetDialog(*args, **kwargs): | |
e498079e | 2959 | """ |
a95a7133 | 2960 | GetDialog(self) -> FindReplaceDialog |
e498079e RD |
2961 | |
2962 | Return the pointer to the dialog which generated this event. | |
2963 | """ | |
54f9ee45 | 2964 | return _windows_.FindDialogEvent_GetDialog(*args, **kwargs) |
e811c8ce RD |
2965 | |
2966 | def SetFlags(*args, **kwargs): | |
a95a7133 | 2967 | """SetFlags(self, int flags)""" |
54f9ee45 | 2968 | return _windows_.FindDialogEvent_SetFlags(*args, **kwargs) |
e811c8ce RD |
2969 | |
2970 | def SetFindString(*args, **kwargs): | |
a95a7133 | 2971 | """SetFindString(self, String str)""" |
54f9ee45 | 2972 | return _windows_.FindDialogEvent_SetFindString(*args, **kwargs) |
e811c8ce RD |
2973 | |
2974 | def SetReplaceString(*args, **kwargs): | |
a95a7133 | 2975 | """SetReplaceString(self, String str)""" |
54f9ee45 | 2976 | return _windows_.FindDialogEvent_SetReplaceString(*args, **kwargs) |
e811c8ce | 2977 | |
8ab979d7 | 2978 | |
d14a1e28 RD |
2979 | class FindDialogEventPtr(FindDialogEvent): |
2980 | def __init__(self, this): | |
2981 | self.this = this | |
2982 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2983 | self.__class__ = FindDialogEvent | |
54f9ee45 | 2984 | _windows_.FindDialogEvent_swigregister(FindDialogEventPtr) |
d14a1e28 | 2985 | |
54f9ee45 | 2986 | class FindReplaceData(_core.Object): |
e498079e | 2987 | """ |
66c033b4 RD |
2988 | wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used |
2989 | to initialize the dialog with the default values and will keep the | |
2990 | last values from the dialog when it is closed. It is also updated each | |
2991 | time a `wx.FindDialogEvent` is generated so instead of using the | |
2992 | `wx.FindDialogEvent` methods you can also directly query this object. | |
e498079e | 2993 | |
66c033b4 RD |
2994 | Note that all SetXXX() methods may only be called before showing the |
2995 | dialog and calling them has no effect later. | |
e498079e | 2996 | """ |
e811c8ce RD |
2997 | def __repr__(self): |
2998 | return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2999 | def __init__(self, *args, **kwargs): |
e498079e | 3000 | """ |
a95a7133 | 3001 | __init__(self, int flags=0) -> FindReplaceData |
e498079e RD |
3002 | |
3003 | Constuctor initializes the flags to default value (0). | |
3004 | """ | |
54f9ee45 | 3005 | newobj = _windows_.new_FindReplaceData(*args, **kwargs) |
d14a1e28 RD |
3006 | self.this = newobj.this |
3007 | self.thisown = 1 | |
3008 | del newobj.thisown | |
54f9ee45 | 3009 | def __del__(self, destroy=_windows_.delete_FindReplaceData): |
a95a7133 | 3010 | """__del__(self)""" |
d14a1e28 RD |
3011 | try: |
3012 | if self.thisown: destroy(self) | |
3013 | except: pass | |
e811c8ce RD |
3014 | |
3015 | def GetFindString(*args, **kwargs): | |
e498079e | 3016 | """ |
a95a7133 | 3017 | GetFindString(self) -> String |
e498079e RD |
3018 | |
3019 | Get the string to find. | |
3020 | """ | |
54f9ee45 | 3021 | return _windows_.FindReplaceData_GetFindString(*args, **kwargs) |
e811c8ce RD |
3022 | |
3023 | def GetReplaceString(*args, **kwargs): | |
e498079e | 3024 | """ |
a95a7133 | 3025 | GetReplaceString(self) -> String |
e498079e RD |
3026 | |
3027 | Get the replacement string. | |
3028 | """ | |
54f9ee45 | 3029 | return _windows_.FindReplaceData_GetReplaceString(*args, **kwargs) |
e811c8ce RD |
3030 | |
3031 | def GetFlags(*args, **kwargs): | |
e498079e | 3032 | """ |
a95a7133 | 3033 | GetFlags(self) -> int |
e498079e RD |
3034 | |
3035 | Get the combination of flag values. | |
3036 | """ | |
54f9ee45 | 3037 | return _windows_.FindReplaceData_GetFlags(*args, **kwargs) |
e811c8ce RD |
3038 | |
3039 | def SetFlags(*args, **kwargs): | |
e498079e | 3040 | """ |
a95a7133 | 3041 | SetFlags(self, int flags) |
e498079e RD |
3042 | |
3043 | Set the flags to use to initialize the controls of the dialog. | |
3044 | """ | |
54f9ee45 | 3045 | return _windows_.FindReplaceData_SetFlags(*args, **kwargs) |
e811c8ce RD |
3046 | |
3047 | def SetFindString(*args, **kwargs): | |
e498079e | 3048 | """ |
a95a7133 | 3049 | SetFindString(self, String str) |
e498079e RD |
3050 | |
3051 | Set the string to find (used as initial value by the dialog). | |
3052 | """ | |
54f9ee45 | 3053 | return _windows_.FindReplaceData_SetFindString(*args, **kwargs) |
e811c8ce RD |
3054 | |
3055 | def SetReplaceString(*args, **kwargs): | |
e498079e | 3056 | """ |
a95a7133 | 3057 | SetReplaceString(self, String str) |
e498079e RD |
3058 | |
3059 | Set the replacement string (used as initial value by the dialog). | |
3060 | """ | |
54f9ee45 | 3061 | return _windows_.FindReplaceData_SetReplaceString(*args, **kwargs) |
e811c8ce | 3062 | |
8ab979d7 | 3063 | |
d14a1e28 RD |
3064 | class FindReplaceDataPtr(FindReplaceData): |
3065 | def __init__(self, this): | |
3066 | self.this = this | |
3067 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3068 | self.__class__ = FindReplaceData | |
54f9ee45 | 3069 | _windows_.FindReplaceData_swigregister(FindReplaceDataPtr) |
d14a1e28 RD |
3070 | |
3071 | class FindReplaceDialog(Dialog): | |
e498079e | 3072 | """ |
66c033b4 RD |
3073 | wx.FindReplaceDialog is a standard modeless dialog which is used to |
3074 | allow the user to search for some text (and possibly replace it with | |
3075 | something else). The actual searching is supposed to be done in the | |
3076 | owner window which is the parent of this dialog. Note that it means | |
3077 | that unlike for the other standard dialogs this one must have a parent | |
3078 | window. Also note that there is no way to use this dialog in a modal | |
3079 | way; it is always, by design and implementation, modeless. | |
e498079e | 3080 | """ |
e811c8ce RD |
3081 | def __repr__(self): |
3082 | return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3083 | def __init__(self, *args, **kwargs): |
0df68c9f | 3084 | """ |
a95a7133 | 3085 | __init__(self, Window parent, FindReplaceData data, String title, |
0df68c9f | 3086 | int style=0) -> FindReplaceDialog |
e498079e RD |
3087 | |
3088 | Create a FindReplaceDialog. The parent and data parameters must be | |
3089 | non-None. Use Show to display the dialog. | |
0df68c9f | 3090 | """ |
54f9ee45 | 3091 | newobj = _windows_.new_FindReplaceDialog(*args, **kwargs) |
d14a1e28 RD |
3092 | self.this = newobj.this |
3093 | self.thisown = 1 | |
3094 | del newobj.thisown | |
3095 | self._setOORInfo(self) | |
e811c8ce RD |
3096 | |
3097 | def Create(*args, **kwargs): | |
0df68c9f | 3098 | """ |
a95a7133 | 3099 | Create(self, Window parent, FindReplaceData data, String title, |
0df68c9f | 3100 | int style=0) -> bool |
e498079e RD |
3101 | |
3102 | Create the dialog, for 2-phase create. | |
0df68c9f | 3103 | """ |
54f9ee45 | 3104 | return _windows_.FindReplaceDialog_Create(*args, **kwargs) |
e811c8ce RD |
3105 | |
3106 | def GetData(*args, **kwargs): | |
e498079e | 3107 | """ |
a95a7133 | 3108 | GetData(self) -> FindReplaceData |
e498079e RD |
3109 | |
3110 | Get the FindReplaceData object used by this dialog. | |
3111 | """ | |
54f9ee45 | 3112 | return _windows_.FindReplaceDialog_GetData(*args, **kwargs) |
e811c8ce RD |
3113 | |
3114 | def SetData(*args, **kwargs): | |
e498079e | 3115 | """ |
a95a7133 | 3116 | SetData(self, FindReplaceData data) |
e498079e RD |
3117 | |
3118 | Set the FindReplaceData object used by this dialog. | |
3119 | """ | |
54f9ee45 | 3120 | return _windows_.FindReplaceDialog_SetData(*args, **kwargs) |
e811c8ce | 3121 | |
8ab979d7 | 3122 | |
d14a1e28 RD |
3123 | class FindReplaceDialogPtr(FindReplaceDialog): |
3124 | def __init__(self, this): | |
3125 | self.this = this | |
3126 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3127 | self.__class__ = FindReplaceDialog | |
54f9ee45 | 3128 | _windows_.FindReplaceDialog_swigregister(FindReplaceDialogPtr) |
8ab979d7 | 3129 | |
d14a1e28 | 3130 | def PreFindReplaceDialog(*args, **kwargs): |
e498079e RD |
3131 | """ |
3132 | PreFindReplaceDialog() -> FindReplaceDialog | |
3133 | ||
3134 | Precreate a FindReplaceDialog for 2-phase creation | |
3135 | """ | |
54f9ee45 | 3136 | val = _windows_.new_PreFindReplaceDialog(*args, **kwargs) |
d14a1e28 | 3137 | val.thisown = 1 |
298ae144 RD |
3138 | return val |
3139 | ||
d14a1e28 RD |
3140 | #--------------------------------------------------------------------------- |
3141 | ||
54f9ee45 RD |
3142 | IDM_WINDOWTILE = _windows_.IDM_WINDOWTILE |
3143 | IDM_WINDOWTILEHOR = _windows_.IDM_WINDOWTILEHOR | |
3144 | IDM_WINDOWCASCADE = _windows_.IDM_WINDOWCASCADE | |
3145 | IDM_WINDOWICONS = _windows_.IDM_WINDOWICONS | |
3146 | IDM_WINDOWNEXT = _windows_.IDM_WINDOWNEXT | |
3147 | IDM_WINDOWTILEVERT = _windows_.IDM_WINDOWTILEVERT | |
3148 | FIRST_MDI_CHILD = _windows_.FIRST_MDI_CHILD | |
3149 | LAST_MDI_CHILD = _windows_.LAST_MDI_CHILD | |
d14a1e28 | 3150 | class MDIParentFrame(Frame): |
e811c8ce RD |
3151 | def __repr__(self): |
3152 | return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3153 | def __init__(self, *args, **kwargs): |
0df68c9f | 3154 | """ |
248ed943 RD |
3155 | __init__(self, Window parent, int id=-1, String title=EmptyString, |
3156 | Point pos=DefaultPosition, Size size=DefaultSize, | |
3157 | long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, | |
b2dc1044 | 3158 | String name=FrameNameStr) -> MDIParentFrame |
0df68c9f | 3159 | """ |
54f9ee45 | 3160 | newobj = _windows_.new_MDIParentFrame(*args, **kwargs) |
d14a1e28 RD |
3161 | self.this = newobj.this |
3162 | self.thisown = 1 | |
3163 | del newobj.thisown | |
3164 | self._setOORInfo(self) | |
e811c8ce RD |
3165 | |
3166 | def Create(*args, **kwargs): | |
0df68c9f | 3167 | """ |
248ed943 RD |
3168 | Create(self, Window parent, int id=-1, String title=EmptyString, |
3169 | Point pos=DefaultPosition, Size size=DefaultSize, | |
3170 | long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, | |
b2dc1044 | 3171 | String name=FrameNameStr) -> bool |
0df68c9f | 3172 | """ |
54f9ee45 | 3173 | return _windows_.MDIParentFrame_Create(*args, **kwargs) |
e811c8ce RD |
3174 | |
3175 | def ActivateNext(*args, **kwargs): | |
a95a7133 | 3176 | """ActivateNext(self)""" |
54f9ee45 | 3177 | return _windows_.MDIParentFrame_ActivateNext(*args, **kwargs) |
e811c8ce RD |
3178 | |
3179 | def ActivatePrevious(*args, **kwargs): | |
a95a7133 | 3180 | """ActivatePrevious(self)""" |
54f9ee45 | 3181 | return _windows_.MDIParentFrame_ActivatePrevious(*args, **kwargs) |
e811c8ce RD |
3182 | |
3183 | def ArrangeIcons(*args, **kwargs): | |
a95a7133 | 3184 | """ArrangeIcons(self)""" |
54f9ee45 | 3185 | return _windows_.MDIParentFrame_ArrangeIcons(*args, **kwargs) |
e811c8ce RD |
3186 | |
3187 | def Cascade(*args, **kwargs): | |
a95a7133 | 3188 | """Cascade(self)""" |
54f9ee45 | 3189 | return _windows_.MDIParentFrame_Cascade(*args, **kwargs) |
e811c8ce RD |
3190 | |
3191 | def GetActiveChild(*args, **kwargs): | |
a95a7133 | 3192 | """GetActiveChild(self) -> MDIChildFrame""" |
54f9ee45 | 3193 | return _windows_.MDIParentFrame_GetActiveChild(*args, **kwargs) |
e811c8ce RD |
3194 | |
3195 | def GetClientWindow(*args, **kwargs): | |
a95a7133 | 3196 | """GetClientWindow(self) -> MDIClientWindow""" |
54f9ee45 | 3197 | return _windows_.MDIParentFrame_GetClientWindow(*args, **kwargs) |
e811c8ce RD |
3198 | |
3199 | def GetToolBar(*args, **kwargs): | |
a95a7133 | 3200 | """GetToolBar(self) -> Window""" |
54f9ee45 | 3201 | return _windows_.MDIParentFrame_GetToolBar(*args, **kwargs) |
e811c8ce RD |
3202 | |
3203 | def Tile(*args, **kwargs): | |
a95a7133 | 3204 | """Tile(self)""" |
54f9ee45 | 3205 | return _windows_.MDIParentFrame_Tile(*args, **kwargs) |
e811c8ce | 3206 | |
d14a1e28 RD |
3207 | |
3208 | class MDIParentFramePtr(MDIParentFrame): | |
3209 | def __init__(self, this): | |
3210 | self.this = this | |
3211 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3212 | self.__class__ = MDIParentFrame | |
54f9ee45 | 3213 | _windows_.MDIParentFrame_swigregister(MDIParentFramePtr) |
d14a1e28 RD |
3214 | |
3215 | def PreMDIParentFrame(*args, **kwargs): | |
e811c8ce | 3216 | """PreMDIParentFrame() -> MDIParentFrame""" |
54f9ee45 | 3217 | val = _windows_.new_PreMDIParentFrame(*args, **kwargs) |
d14a1e28 | 3218 | val.thisown = 1 |
298ae144 RD |
3219 | return val |
3220 | ||
d14a1e28 | 3221 | class MDIChildFrame(Frame): |
e811c8ce RD |
3222 | def __repr__(self): |
3223 | return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3224 | def __init__(self, *args, **kwargs): |
0df68c9f | 3225 | """ |
248ed943 RD |
3226 | __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString, |
3227 | Point pos=DefaultPosition, Size size=DefaultSize, | |
3228 | long style=DEFAULT_FRAME_STYLE, | |
b2dc1044 | 3229 | String name=FrameNameStr) -> MDIChildFrame |
0df68c9f | 3230 | """ |
54f9ee45 | 3231 | newobj = _windows_.new_MDIChildFrame(*args, **kwargs) |
d14a1e28 RD |
3232 | self.this = newobj.this |
3233 | self.thisown = 1 | |
3234 | del newobj.thisown | |
3235 | self._setOORInfo(self) | |
e811c8ce RD |
3236 | |
3237 | def Create(*args, **kwargs): | |
0df68c9f | 3238 | """ |
248ed943 RD |
3239 | Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString, |
3240 | Point pos=DefaultPosition, Size size=DefaultSize, | |
3241 | long style=DEFAULT_FRAME_STYLE, | |
b2dc1044 | 3242 | String name=FrameNameStr) -> bool |
0df68c9f | 3243 | """ |
54f9ee45 | 3244 | return _windows_.MDIChildFrame_Create(*args, **kwargs) |
e811c8ce RD |
3245 | |
3246 | def Activate(*args, **kwargs): | |
a95a7133 | 3247 | """Activate(self)""" |
54f9ee45 | 3248 | return _windows_.MDIChildFrame_Activate(*args, **kwargs) |
e811c8ce RD |
3249 | |
3250 | def Maximize(*args, **kwargs): | |
a95a7133 | 3251 | """Maximize(self, bool maximize)""" |
54f9ee45 | 3252 | return _windows_.MDIChildFrame_Maximize(*args, **kwargs) |
e811c8ce RD |
3253 | |
3254 | def Restore(*args, **kwargs): | |
a95a7133 | 3255 | """Restore(self)""" |
54f9ee45 | 3256 | return _windows_.MDIChildFrame_Restore(*args, **kwargs) |
e811c8ce | 3257 | |
d14a1e28 RD |
3258 | |
3259 | class MDIChildFramePtr(MDIChildFrame): | |
3260 | def __init__(self, this): | |
3261 | self.this = this | |
3262 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3263 | self.__class__ = MDIChildFrame | |
54f9ee45 | 3264 | _windows_.MDIChildFrame_swigregister(MDIChildFramePtr) |
d14a1e28 RD |
3265 | |
3266 | def PreMDIChildFrame(*args, **kwargs): | |
e811c8ce | 3267 | """PreMDIChildFrame() -> MDIChildFrame""" |
54f9ee45 | 3268 | val = _windows_.new_PreMDIChildFrame(*args, **kwargs) |
d14a1e28 | 3269 | val.thisown = 1 |
298ae144 RD |
3270 | return val |
3271 | ||
54f9ee45 | 3272 | class MDIClientWindow(_core.Window): |
e811c8ce RD |
3273 | def __repr__(self): |
3274 | return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3275 | def __init__(self, *args, **kwargs): | |
a95a7133 | 3276 | """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow""" |
54f9ee45 | 3277 | newobj = _windows_.new_MDIClientWindow(*args, **kwargs) |
d14a1e28 RD |
3278 | self.this = newobj.this |
3279 | self.thisown = 1 | |
3280 | del newobj.thisown | |
3281 | self._setOORInfo(self) | |
e811c8ce RD |
3282 | |
3283 | def Create(*args, **kwargs): | |
a95a7133 | 3284 | """Create(self, MDIParentFrame parent, long style=0) -> bool""" |
54f9ee45 | 3285 | return _windows_.MDIClientWindow_Create(*args, **kwargs) |
e811c8ce | 3286 | |
aa2a5b86 | 3287 | |
d14a1e28 RD |
3288 | class MDIClientWindowPtr(MDIClientWindow): |
3289 | def __init__(self, this): | |
3290 | self.this = this | |
3291 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3292 | self.__class__ = MDIClientWindow | |
54f9ee45 | 3293 | _windows_.MDIClientWindow_swigregister(MDIClientWindowPtr) |
aa2a5b86 | 3294 | |
d14a1e28 | 3295 | def PreMDIClientWindow(*args, **kwargs): |
e811c8ce | 3296 | """PreMDIClientWindow() -> MDIClientWindow""" |
54f9ee45 | 3297 | val = _windows_.new_PreMDIClientWindow(*args, **kwargs) |
d14a1e28 | 3298 | val.thisown = 1 |
c368d904 RD |
3299 | return val |
3300 | ||
d14a1e28 | 3301 | #--------------------------------------------------------------------------- |
a1df7a95 | 3302 | |
54f9ee45 | 3303 | class PyWindow(_core.Window): |
e811c8ce RD |
3304 | def __repr__(self): |
3305 | return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3306 | def __init__(self, *args, **kwargs): |
0df68c9f | 3307 | """ |
248ed943 RD |
3308 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
3309 | Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow | |
0df68c9f | 3310 | """ |
54f9ee45 | 3311 | newobj = _windows_.new_PyWindow(*args, **kwargs) |
d14a1e28 RD |
3312 | self.this = newobj.this |
3313 | self.thisown = 1 | |
3314 | del newobj.thisown | |
3315 | self._setOORInfo(self); self._setCallbackInfo(self, PyWindow) | |
e811c8ce RD |
3316 | |
3317 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 3318 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 3319 | return _windows_.PyWindow__setCallbackInfo(*args, **kwargs) |
e811c8ce | 3320 | |
db3e571a RD |
3321 | def SetBestSize(*args, **kwargs): |
3322 | """SetBestSize(self, Size size)""" | |
3323 | return _windows_.PyWindow_SetBestSize(*args, **kwargs) | |
3324 | ||
e811c8ce | 3325 | def base_DoMoveWindow(*args, **kwargs): |
a95a7133 | 3326 | """base_DoMoveWindow(self, int x, int y, int width, int height)""" |
54f9ee45 | 3327 | return _windows_.PyWindow_base_DoMoveWindow(*args, **kwargs) |
e811c8ce RD |
3328 | |
3329 | def base_DoSetSize(*args, **kwargs): | |
a95a7133 | 3330 | """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" |
54f9ee45 | 3331 | return _windows_.PyWindow_base_DoSetSize(*args, **kwargs) |
e811c8ce RD |
3332 | |
3333 | def base_DoSetClientSize(*args, **kwargs): | |
a95a7133 | 3334 | """base_DoSetClientSize(self, int width, int height)""" |
54f9ee45 | 3335 | return _windows_.PyWindow_base_DoSetClientSize(*args, **kwargs) |
e811c8ce RD |
3336 | |
3337 | def base_DoSetVirtualSize(*args, **kwargs): | |
a95a7133 | 3338 | """base_DoSetVirtualSize(self, int x, int y)""" |
54f9ee45 | 3339 | return _windows_.PyWindow_base_DoSetVirtualSize(*args, **kwargs) |
e811c8ce RD |
3340 | |
3341 | def base_DoGetSize(*args, **kwargs): | |
322913ce | 3342 | """base_DoGetSize() -> (width, height)""" |
54f9ee45 | 3343 | return _windows_.PyWindow_base_DoGetSize(*args, **kwargs) |
e811c8ce RD |
3344 | |
3345 | def base_DoGetClientSize(*args, **kwargs): | |
322913ce | 3346 | """base_DoGetClientSize() -> (width, height)""" |
54f9ee45 | 3347 | return _windows_.PyWindow_base_DoGetClientSize(*args, **kwargs) |
e811c8ce RD |
3348 | |
3349 | def base_DoGetPosition(*args, **kwargs): | |
322913ce | 3350 | """base_DoGetPosition() -> (x,y)""" |
54f9ee45 | 3351 | return _windows_.PyWindow_base_DoGetPosition(*args, **kwargs) |
e811c8ce RD |
3352 | |
3353 | def base_DoGetVirtualSize(*args, **kwargs): | |
a95a7133 | 3354 | """base_DoGetVirtualSize(self) -> Size""" |
54f9ee45 | 3355 | return _windows_.PyWindow_base_DoGetVirtualSize(*args, **kwargs) |
e811c8ce RD |
3356 | |
3357 | def base_DoGetBestSize(*args, **kwargs): | |
a95a7133 | 3358 | """base_DoGetBestSize(self) -> Size""" |
54f9ee45 | 3359 | return _windows_.PyWindow_base_DoGetBestSize(*args, **kwargs) |
e811c8ce RD |
3360 | |
3361 | def base_InitDialog(*args, **kwargs): | |
a95a7133 | 3362 | """base_InitDialog(self)""" |
54f9ee45 | 3363 | return _windows_.PyWindow_base_InitDialog(*args, **kwargs) |
e811c8ce RD |
3364 | |
3365 | def base_TransferDataToWindow(*args, **kwargs): | |
a95a7133 | 3366 | """base_TransferDataToWindow(self) -> bool""" |
54f9ee45 | 3367 | return _windows_.PyWindow_base_TransferDataToWindow(*args, **kwargs) |
e811c8ce RD |
3368 | |
3369 | def base_TransferDataFromWindow(*args, **kwargs): | |
a95a7133 | 3370 | """base_TransferDataFromWindow(self) -> bool""" |
54f9ee45 | 3371 | return _windows_.PyWindow_base_TransferDataFromWindow(*args, **kwargs) |
e811c8ce RD |
3372 | |
3373 | def base_Validate(*args, **kwargs): | |
a95a7133 | 3374 | """base_Validate(self) -> bool""" |
54f9ee45 | 3375 | return _windows_.PyWindow_base_Validate(*args, **kwargs) |
e811c8ce RD |
3376 | |
3377 | def base_AcceptsFocus(*args, **kwargs): | |
a95a7133 | 3378 | """base_AcceptsFocus(self) -> bool""" |
54f9ee45 | 3379 | return _windows_.PyWindow_base_AcceptsFocus(*args, **kwargs) |
e811c8ce RD |
3380 | |
3381 | def base_AcceptsFocusFromKeyboard(*args, **kwargs): | |
a95a7133 | 3382 | """base_AcceptsFocusFromKeyboard(self) -> bool""" |
54f9ee45 | 3383 | return _windows_.PyWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs) |
e811c8ce RD |
3384 | |
3385 | def base_GetMaxSize(*args, **kwargs): | |
a95a7133 | 3386 | """base_GetMaxSize(self) -> Size""" |
54f9ee45 | 3387 | return _windows_.PyWindow_base_GetMaxSize(*args, **kwargs) |
e811c8ce RD |
3388 | |
3389 | def base_AddChild(*args, **kwargs): | |
a95a7133 | 3390 | """base_AddChild(self, Window child)""" |
54f9ee45 | 3391 | return _windows_.PyWindow_base_AddChild(*args, **kwargs) |
e811c8ce RD |
3392 | |
3393 | def base_RemoveChild(*args, **kwargs): | |
a95a7133 | 3394 | """base_RemoveChild(self, Window child)""" |
54f9ee45 | 3395 | return _windows_.PyWindow_base_RemoveChild(*args, **kwargs) |
e811c8ce | 3396 | |
1cb4a8aa | 3397 | def base_ShouldInheritColours(*args, **kwargs): |
a95a7133 | 3398 | """base_ShouldInheritColours(self) -> bool""" |
54f9ee45 | 3399 | return _windows_.PyWindow_base_ShouldInheritColours(*args, **kwargs) |
1cb4a8aa RD |
3400 | |
3401 | def base_ApplyParentThemeBackground(*args, **kwargs): | |
a95a7133 | 3402 | """base_ApplyParentThemeBackground(self, Colour c)""" |
54f9ee45 | 3403 | return _windows_.PyWindow_base_ApplyParentThemeBackground(*args, **kwargs) |
1cb4a8aa | 3404 | |
db3e571a RD |
3405 | def base_GetDefaultAttributes(*args, **kwargs): |
3406 | """base_GetDefaultAttributes(self) -> VisualAttributes""" | |
3407 | return _windows_.PyWindow_base_GetDefaultAttributes(*args, **kwargs) | |
3408 | ||
a1df7a95 | 3409 | |
d14a1e28 RD |
3410 | class PyWindowPtr(PyWindow): |
3411 | def __init__(self, this): | |
3412 | self.this = this | |
3413 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3414 | self.__class__ = PyWindow | |
54f9ee45 | 3415 | _windows_.PyWindow_swigregister(PyWindowPtr) |
d14a1e28 | 3416 | |
1cb4a8aa RD |
3417 | def PrePyWindow(*args, **kwargs): |
3418 | """PrePyWindow() -> PyWindow""" | |
54f9ee45 | 3419 | val = _windows_.new_PrePyWindow(*args, **kwargs) |
1cb4a8aa RD |
3420 | val.thisown = 1 |
3421 | return val | |
3422 | ||
d14a1e28 | 3423 | class PyPanel(Panel): |
e811c8ce RD |
3424 | def __repr__(self): |
3425 | return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3426 | def __init__(self, *args, **kwargs): |
0df68c9f | 3427 | """ |
248ed943 RD |
3428 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
3429 | Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel | |
0df68c9f | 3430 | """ |
54f9ee45 | 3431 | newobj = _windows_.new_PyPanel(*args, **kwargs) |
d14a1e28 RD |
3432 | self.this = newobj.this |
3433 | self.thisown = 1 | |
3434 | del newobj.thisown | |
3435 | self._setOORInfo(self); self._setCallbackInfo(self, PyPanel) | |
e811c8ce RD |
3436 | |
3437 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 3438 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 3439 | return _windows_.PyPanel__setCallbackInfo(*args, **kwargs) |
e811c8ce | 3440 | |
db3e571a RD |
3441 | def SetBestSize(*args, **kwargs): |
3442 | """SetBestSize(self, Size size)""" | |
3443 | return _windows_.PyPanel_SetBestSize(*args, **kwargs) | |
3444 | ||
e811c8ce | 3445 | def base_DoMoveWindow(*args, **kwargs): |
a95a7133 | 3446 | """base_DoMoveWindow(self, int x, int y, int width, int height)""" |
54f9ee45 | 3447 | return _windows_.PyPanel_base_DoMoveWindow(*args, **kwargs) |
e811c8ce RD |
3448 | |
3449 | def base_DoSetSize(*args, **kwargs): | |
a95a7133 | 3450 | """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" |
54f9ee45 | 3451 | return _windows_.PyPanel_base_DoSetSize(*args, **kwargs) |
e811c8ce RD |
3452 | |
3453 | def base_DoSetClientSize(*args, **kwargs): | |
a95a7133 | 3454 | """base_DoSetClientSize(self, int width, int height)""" |
54f9ee45 | 3455 | return _windows_.PyPanel_base_DoSetClientSize(*args, **kwargs) |
e811c8ce RD |
3456 | |
3457 | def base_DoSetVirtualSize(*args, **kwargs): | |
a95a7133 | 3458 | """base_DoSetVirtualSize(self, int x, int y)""" |
54f9ee45 | 3459 | return _windows_.PyPanel_base_DoSetVirtualSize(*args, **kwargs) |
e811c8ce RD |
3460 | |
3461 | def base_DoGetSize(*args, **kwargs): | |
322913ce | 3462 | """base_DoGetSize() -> (width, height)""" |
54f9ee45 | 3463 | return _windows_.PyPanel_base_DoGetSize(*args, **kwargs) |
e811c8ce RD |
3464 | |
3465 | def base_DoGetClientSize(*args, **kwargs): | |
322913ce | 3466 | """base_DoGetClientSize() -> (width, height)""" |
54f9ee45 | 3467 | return _windows_.PyPanel_base_DoGetClientSize(*args, **kwargs) |
e811c8ce RD |
3468 | |
3469 | def base_DoGetPosition(*args, **kwargs): | |
322913ce | 3470 | """base_DoGetPosition() -> (x,y)""" |
54f9ee45 | 3471 | return _windows_.PyPanel_base_DoGetPosition(*args, **kwargs) |
e811c8ce RD |
3472 | |
3473 | def base_DoGetVirtualSize(*args, **kwargs): | |
a95a7133 | 3474 | """base_DoGetVirtualSize(self) -> Size""" |
54f9ee45 | 3475 | return _windows_.PyPanel_base_DoGetVirtualSize(*args, **kwargs) |
e811c8ce RD |
3476 | |
3477 | def base_DoGetBestSize(*args, **kwargs): | |
a95a7133 | 3478 | """base_DoGetBestSize(self) -> Size""" |
54f9ee45 | 3479 | return _windows_.PyPanel_base_DoGetBestSize(*args, **kwargs) |
e811c8ce RD |
3480 | |
3481 | def base_InitDialog(*args, **kwargs): | |
a95a7133 | 3482 | """base_InitDialog(self)""" |
54f9ee45 | 3483 | return _windows_.PyPanel_base_InitDialog(*args, **kwargs) |
e811c8ce RD |
3484 | |
3485 | def base_TransferDataToWindow(*args, **kwargs): | |
a95a7133 | 3486 | """base_TransferDataToWindow(self) -> bool""" |
54f9ee45 | 3487 | return _windows_.PyPanel_base_TransferDataToWindow(*args, **kwargs) |
e811c8ce RD |
3488 | |
3489 | def base_TransferDataFromWindow(*args, **kwargs): | |
a95a7133 | 3490 | """base_TransferDataFromWindow(self) -> bool""" |
54f9ee45 | 3491 | return _windows_.PyPanel_base_TransferDataFromWindow(*args, **kwargs) |
e811c8ce RD |
3492 | |
3493 | def base_Validate(*args, **kwargs): | |
a95a7133 | 3494 | """base_Validate(self) -> bool""" |
54f9ee45 | 3495 | return _windows_.PyPanel_base_Validate(*args, **kwargs) |
e811c8ce RD |
3496 | |
3497 | def base_AcceptsFocus(*args, **kwargs): | |
a95a7133 | 3498 | """base_AcceptsFocus(self) -> bool""" |
54f9ee45 | 3499 | return _windows_.PyPanel_base_AcceptsFocus(*args, **kwargs) |
e811c8ce RD |
3500 | |
3501 | def base_AcceptsFocusFromKeyboard(*args, **kwargs): | |
a95a7133 | 3502 | """base_AcceptsFocusFromKeyboard(self) -> bool""" |
54f9ee45 | 3503 | return _windows_.PyPanel_base_AcceptsFocusFromKeyboard(*args, **kwargs) |
e811c8ce RD |
3504 | |
3505 | def base_GetMaxSize(*args, **kwargs): | |
a95a7133 | 3506 | """base_GetMaxSize(self) -> Size""" |
54f9ee45 | 3507 | return _windows_.PyPanel_base_GetMaxSize(*args, **kwargs) |
e811c8ce RD |
3508 | |
3509 | def base_AddChild(*args, **kwargs): | |
a95a7133 | 3510 | """base_AddChild(self, Window child)""" |
54f9ee45 | 3511 | return _windows_.PyPanel_base_AddChild(*args, **kwargs) |
e811c8ce RD |
3512 | |
3513 | def base_RemoveChild(*args, **kwargs): | |
a95a7133 | 3514 | """base_RemoveChild(self, Window child)""" |
54f9ee45 | 3515 | return _windows_.PyPanel_base_RemoveChild(*args, **kwargs) |
e811c8ce | 3516 | |
1cb4a8aa | 3517 | def base_ShouldInheritColours(*args, **kwargs): |
a95a7133 | 3518 | """base_ShouldInheritColours(self) -> bool""" |
54f9ee45 | 3519 | return _windows_.PyPanel_base_ShouldInheritColours(*args, **kwargs) |
1cb4a8aa RD |
3520 | |
3521 | def base_ApplyParentThemeBackground(*args, **kwargs): | |
a95a7133 | 3522 | """base_ApplyParentThemeBackground(self, Colour c)""" |
54f9ee45 | 3523 | return _windows_.PyPanel_base_ApplyParentThemeBackground(*args, **kwargs) |
1cb4a8aa | 3524 | |
db3e571a RD |
3525 | def base_GetDefaultAttributes(*args, **kwargs): |
3526 | """base_GetDefaultAttributes(self) -> VisualAttributes""" | |
3527 | return _windows_.PyPanel_base_GetDefaultAttributes(*args, **kwargs) | |
3528 | ||
a1df7a95 | 3529 | |
d14a1e28 RD |
3530 | class PyPanelPtr(PyPanel): |
3531 | def __init__(self, this): | |
3532 | self.this = this | |
3533 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3534 | self.__class__ = PyPanel | |
54f9ee45 | 3535 | _windows_.PyPanel_swigregister(PyPanelPtr) |
d14a1e28 | 3536 | |
1cb4a8aa RD |
3537 | def PrePyPanel(*args, **kwargs): |
3538 | """PrePyPanel() -> PyPanel""" | |
54f9ee45 | 3539 | val = _windows_.new_PrePyPanel(*args, **kwargs) |
1cb4a8aa RD |
3540 | val.thisown = 1 |
3541 | return val | |
3542 | ||
3543 | class PyScrolledWindow(ScrolledWindow): | |
3544 | def __repr__(self): | |
3545 | return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3546 | def __init__(self, *args, **kwargs): | |
3547 | """ | |
248ed943 RD |
3548 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
3549 | Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow | |
1cb4a8aa | 3550 | """ |
54f9ee45 | 3551 | newobj = _windows_.new_PyScrolledWindow(*args, **kwargs) |
1cb4a8aa RD |
3552 | self.this = newobj.this |
3553 | self.thisown = 1 | |
3554 | del newobj.thisown | |
3555 | self._setOORInfo(self); self._setCallbackInfo(self, PyPanel) | |
3556 | ||
3557 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 3558 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 3559 | return _windows_.PyScrolledWindow__setCallbackInfo(*args, **kwargs) |
1cb4a8aa | 3560 | |
db3e571a RD |
3561 | def SetBestSize(*args, **kwargs): |
3562 | """SetBestSize(self, Size size)""" | |
3563 | return _windows_.PyScrolledWindow_SetBestSize(*args, **kwargs) | |
3564 | ||
1cb4a8aa | 3565 | def base_DoMoveWindow(*args, **kwargs): |
a95a7133 | 3566 | """base_DoMoveWindow(self, int x, int y, int width, int height)""" |
54f9ee45 | 3567 | return _windows_.PyScrolledWindow_base_DoMoveWindow(*args, **kwargs) |
1cb4a8aa RD |
3568 | |
3569 | def base_DoSetSize(*args, **kwargs): | |
a95a7133 | 3570 | """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" |
54f9ee45 | 3571 | return _windows_.PyScrolledWindow_base_DoSetSize(*args, **kwargs) |
1cb4a8aa RD |
3572 | |
3573 | def base_DoSetClientSize(*args, **kwargs): | |
a95a7133 | 3574 | """base_DoSetClientSize(self, int width, int height)""" |
54f9ee45 | 3575 | return _windows_.PyScrolledWindow_base_DoSetClientSize(*args, **kwargs) |
1cb4a8aa RD |
3576 | |
3577 | def base_DoSetVirtualSize(*args, **kwargs): | |
a95a7133 | 3578 | """base_DoSetVirtualSize(self, int x, int y)""" |
54f9ee45 | 3579 | return _windows_.PyScrolledWindow_base_DoSetVirtualSize(*args, **kwargs) |
1cb4a8aa RD |
3580 | |
3581 | def base_DoGetSize(*args, **kwargs): | |
3582 | """base_DoGetSize() -> (width, height)""" | |
54f9ee45 | 3583 | return _windows_.PyScrolledWindow_base_DoGetSize(*args, **kwargs) |
1cb4a8aa RD |
3584 | |
3585 | def base_DoGetClientSize(*args, **kwargs): | |
3586 | """base_DoGetClientSize() -> (width, height)""" | |
54f9ee45 | 3587 | return _windows_.PyScrolledWindow_base_DoGetClientSize(*args, **kwargs) |
1cb4a8aa RD |
3588 | |
3589 | def base_DoGetPosition(*args, **kwargs): | |
3590 | """base_DoGetPosition() -> (x,y)""" | |
54f9ee45 | 3591 | return _windows_.PyScrolledWindow_base_DoGetPosition(*args, **kwargs) |
1cb4a8aa RD |
3592 | |
3593 | def base_DoGetVirtualSize(*args, **kwargs): | |
a95a7133 | 3594 | """base_DoGetVirtualSize(self) -> Size""" |
54f9ee45 | 3595 | return _windows_.PyScrolledWindow_base_DoGetVirtualSize(*args, **kwargs) |
1cb4a8aa RD |
3596 | |
3597 | def base_DoGetBestSize(*args, **kwargs): | |
a95a7133 | 3598 | """base_DoGetBestSize(self) -> Size""" |
54f9ee45 | 3599 | return _windows_.PyScrolledWindow_base_DoGetBestSize(*args, **kwargs) |
1cb4a8aa RD |
3600 | |
3601 | def base_InitDialog(*args, **kwargs): | |
a95a7133 | 3602 | """base_InitDialog(self)""" |
54f9ee45 | 3603 | return _windows_.PyScrolledWindow_base_InitDialog(*args, **kwargs) |
1cb4a8aa RD |
3604 | |
3605 | def base_TransferDataToWindow(*args, **kwargs): | |
a95a7133 | 3606 | """base_TransferDataToWindow(self) -> bool""" |
54f9ee45 | 3607 | return _windows_.PyScrolledWindow_base_TransferDataToWindow(*args, **kwargs) |
1cb4a8aa RD |
3608 | |
3609 | def base_TransferDataFromWindow(*args, **kwargs): | |
a95a7133 | 3610 | """base_TransferDataFromWindow(self) -> bool""" |
54f9ee45 | 3611 | return _windows_.PyScrolledWindow_base_TransferDataFromWindow(*args, **kwargs) |
1cb4a8aa RD |
3612 | |
3613 | def base_Validate(*args, **kwargs): | |
a95a7133 | 3614 | """base_Validate(self) -> bool""" |
54f9ee45 | 3615 | return _windows_.PyScrolledWindow_base_Validate(*args, **kwargs) |
1cb4a8aa RD |
3616 | |
3617 | def base_AcceptsFocus(*args, **kwargs): | |
a95a7133 | 3618 | """base_AcceptsFocus(self) -> bool""" |
54f9ee45 | 3619 | return _windows_.PyScrolledWindow_base_AcceptsFocus(*args, **kwargs) |
1cb4a8aa RD |
3620 | |
3621 | def base_AcceptsFocusFromKeyboard(*args, **kwargs): | |
a95a7133 | 3622 | """base_AcceptsFocusFromKeyboard(self) -> bool""" |
54f9ee45 | 3623 | return _windows_.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs) |
1cb4a8aa RD |
3624 | |
3625 | def base_GetMaxSize(*args, **kwargs): | |
a95a7133 | 3626 | """base_GetMaxSize(self) -> Size""" |
54f9ee45 | 3627 | return _windows_.PyScrolledWindow_base_GetMaxSize(*args, **kwargs) |
1cb4a8aa RD |
3628 | |
3629 | def base_AddChild(*args, **kwargs): | |
a95a7133 | 3630 | """base_AddChild(self, Window child)""" |
54f9ee45 | 3631 | return _windows_.PyScrolledWindow_base_AddChild(*args, **kwargs) |
1cb4a8aa RD |
3632 | |
3633 | def base_RemoveChild(*args, **kwargs): | |
a95a7133 | 3634 | """base_RemoveChild(self, Window child)""" |
54f9ee45 | 3635 | return _windows_.PyScrolledWindow_base_RemoveChild(*args, **kwargs) |
1cb4a8aa RD |
3636 | |
3637 | def base_ShouldInheritColours(*args, **kwargs): | |
a95a7133 | 3638 | """base_ShouldInheritColours(self) -> bool""" |
54f9ee45 | 3639 | return _windows_.PyScrolledWindow_base_ShouldInheritColours(*args, **kwargs) |
1cb4a8aa RD |
3640 | |
3641 | def base_ApplyParentThemeBackground(*args, **kwargs): | |
a95a7133 | 3642 | """base_ApplyParentThemeBackground(self, Colour c)""" |
54f9ee45 | 3643 | return _windows_.PyScrolledWindow_base_ApplyParentThemeBackground(*args, **kwargs) |
1cb4a8aa | 3644 | |
db3e571a RD |
3645 | def base_GetDefaultAttributes(*args, **kwargs): |
3646 | """base_GetDefaultAttributes(self) -> VisualAttributes""" | |
3647 | return _windows_.PyScrolledWindow_base_GetDefaultAttributes(*args, **kwargs) | |
3648 | ||
1cb4a8aa RD |
3649 | |
3650 | class PyScrolledWindowPtr(PyScrolledWindow): | |
3651 | def __init__(self, this): | |
3652 | self.this = this | |
3653 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3654 | self.__class__ = PyScrolledWindow | |
54f9ee45 | 3655 | _windows_.PyScrolledWindow_swigregister(PyScrolledWindowPtr) |
1cb4a8aa RD |
3656 | |
3657 | def PrePyScrolledWindow(*args, **kwargs): | |
3658 | """PrePyScrolledWindow() -> PyScrolledWindow""" | |
54f9ee45 | 3659 | val = _windows_.new_PrePyScrolledWindow(*args, **kwargs) |
1cb4a8aa RD |
3660 | val.thisown = 1 |
3661 | return val | |
3662 | ||
d14a1e28 RD |
3663 | #--------------------------------------------------------------------------- |
3664 | ||
54f9ee45 RD |
3665 | PRINT_MODE_NONE = _windows_.PRINT_MODE_NONE |
3666 | PRINT_MODE_PREVIEW = _windows_.PRINT_MODE_PREVIEW | |
3667 | PRINT_MODE_FILE = _windows_.PRINT_MODE_FILE | |
3668 | PRINT_MODE_PRINTER = _windows_.PRINT_MODE_PRINTER | |
3669 | PRINT_MODE_STREAM = _windows_.PRINT_MODE_STREAM | |
3670 | class PrintData(_core.Object): | |
e811c8ce RD |
3671 | def __repr__(self): |
3672 | return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
11207aef RD |
3673 | def __init__(self, *args): |
3674 | """ | |
3675 | __init__(self) -> PrintData | |
3676 | __init__(self, PrintData data) -> PrintData | |
3677 | """ | |
3678 | newobj = _windows_.new_PrintData(*args) | |
d14a1e28 RD |
3679 | self.this = newobj.this |
3680 | self.thisown = 1 | |
3681 | del newobj.thisown | |
54f9ee45 | 3682 | def __del__(self, destroy=_windows_.delete_PrintData): |
a95a7133 | 3683 | """__del__(self)""" |
d14a1e28 RD |
3684 | try: |
3685 | if self.thisown: destroy(self) | |
3686 | except: pass | |
e811c8ce RD |
3687 | |
3688 | def GetNoCopies(*args, **kwargs): | |
a95a7133 | 3689 | """GetNoCopies(self) -> int""" |
54f9ee45 | 3690 | return _windows_.PrintData_GetNoCopies(*args, **kwargs) |
e811c8ce RD |
3691 | |
3692 | def GetCollate(*args, **kwargs): | |
a95a7133 | 3693 | """GetCollate(self) -> bool""" |
54f9ee45 | 3694 | return _windows_.PrintData_GetCollate(*args, **kwargs) |
e811c8ce RD |
3695 | |
3696 | def GetOrientation(*args, **kwargs): | |
a95a7133 | 3697 | """GetOrientation(self) -> int""" |
54f9ee45 | 3698 | return _windows_.PrintData_GetOrientation(*args, **kwargs) |
e811c8ce RD |
3699 | |
3700 | def Ok(*args, **kwargs): | |
a95a7133 | 3701 | """Ok(self) -> bool""" |
54f9ee45 | 3702 | return _windows_.PrintData_Ok(*args, **kwargs) |
e811c8ce RD |
3703 | |
3704 | def GetPrinterName(*args, **kwargs): | |
a95a7133 | 3705 | """GetPrinterName(self) -> String""" |
54f9ee45 | 3706 | return _windows_.PrintData_GetPrinterName(*args, **kwargs) |
e811c8ce RD |
3707 | |
3708 | def GetColour(*args, **kwargs): | |
a95a7133 | 3709 | """GetColour(self) -> bool""" |
54f9ee45 | 3710 | return _windows_.PrintData_GetColour(*args, **kwargs) |
e811c8ce RD |
3711 | |
3712 | def GetDuplex(*args, **kwargs): | |
a95a7133 | 3713 | """GetDuplex(self) -> int""" |
54f9ee45 | 3714 | return _windows_.PrintData_GetDuplex(*args, **kwargs) |
e811c8ce RD |
3715 | |
3716 | def GetPaperId(*args, **kwargs): | |
a95a7133 | 3717 | """GetPaperId(self) -> int""" |
54f9ee45 | 3718 | return _windows_.PrintData_GetPaperId(*args, **kwargs) |
e811c8ce RD |
3719 | |
3720 | def GetPaperSize(*args, **kwargs): | |
a95a7133 | 3721 | """GetPaperSize(self) -> Size""" |
54f9ee45 | 3722 | return _windows_.PrintData_GetPaperSize(*args, **kwargs) |
e811c8ce RD |
3723 | |
3724 | def GetQuality(*args, **kwargs): | |
a95a7133 | 3725 | """GetQuality(self) -> int""" |
54f9ee45 | 3726 | return _windows_.PrintData_GetQuality(*args, **kwargs) |
e811c8ce RD |
3727 | |
3728 | def SetNoCopies(*args, **kwargs): | |
a95a7133 | 3729 | """SetNoCopies(self, int v)""" |
54f9ee45 | 3730 | return _windows_.PrintData_SetNoCopies(*args, **kwargs) |
e811c8ce RD |
3731 | |
3732 | def SetCollate(*args, **kwargs): | |
a95a7133 | 3733 | """SetCollate(self, bool flag)""" |
54f9ee45 | 3734 | return _windows_.PrintData_SetCollate(*args, **kwargs) |
e811c8ce RD |
3735 | |
3736 | def SetOrientation(*args, **kwargs): | |
a95a7133 | 3737 | """SetOrientation(self, int orient)""" |
54f9ee45 | 3738 | return _windows_.PrintData_SetOrientation(*args, **kwargs) |
e811c8ce RD |
3739 | |
3740 | def SetPrinterName(*args, **kwargs): | |
a95a7133 | 3741 | """SetPrinterName(self, String name)""" |
54f9ee45 | 3742 | return _windows_.PrintData_SetPrinterName(*args, **kwargs) |
e811c8ce RD |
3743 | |
3744 | def SetColour(*args, **kwargs): | |
a95a7133 | 3745 | """SetColour(self, bool colour)""" |
54f9ee45 | 3746 | return _windows_.PrintData_SetColour(*args, **kwargs) |
e811c8ce RD |
3747 | |
3748 | def SetDuplex(*args, **kwargs): | |
a95a7133 | 3749 | """SetDuplex(self, int duplex)""" |
54f9ee45 | 3750 | return _windows_.PrintData_SetDuplex(*args, **kwargs) |
e811c8ce RD |
3751 | |
3752 | def SetPaperId(*args, **kwargs): | |
a95a7133 | 3753 | """SetPaperId(self, int sizeId)""" |
54f9ee45 | 3754 | return _windows_.PrintData_SetPaperId(*args, **kwargs) |
e811c8ce RD |
3755 | |
3756 | def SetPaperSize(*args, **kwargs): | |
a95a7133 | 3757 | """SetPaperSize(self, Size sz)""" |
54f9ee45 | 3758 | return _windows_.PrintData_SetPaperSize(*args, **kwargs) |
e811c8ce RD |
3759 | |
3760 | def SetQuality(*args, **kwargs): | |
a95a7133 | 3761 | """SetQuality(self, int quality)""" |
54f9ee45 | 3762 | return _windows_.PrintData_SetQuality(*args, **kwargs) |
e811c8ce RD |
3763 | |
3764 | def GetPrinterCommand(*args, **kwargs): | |
a95a7133 | 3765 | """GetPrinterCommand(self) -> String""" |
54f9ee45 | 3766 | return _windows_.PrintData_GetPrinterCommand(*args, **kwargs) |
e811c8ce RD |
3767 | |
3768 | def GetPrinterOptions(*args, **kwargs): | |
a95a7133 | 3769 | """GetPrinterOptions(self) -> String""" |
54f9ee45 | 3770 | return _windows_.PrintData_GetPrinterOptions(*args, **kwargs) |
e811c8ce RD |
3771 | |
3772 | def GetPreviewCommand(*args, **kwargs): | |
a95a7133 | 3773 | """GetPreviewCommand(self) -> String""" |
54f9ee45 | 3774 | return _windows_.PrintData_GetPreviewCommand(*args, **kwargs) |
e811c8ce RD |
3775 | |
3776 | def GetFilename(*args, **kwargs): | |
a95a7133 | 3777 | """GetFilename(self) -> String""" |
54f9ee45 | 3778 | return _windows_.PrintData_GetFilename(*args, **kwargs) |
e811c8ce RD |
3779 | |
3780 | def GetFontMetricPath(*args, **kwargs): | |
a95a7133 | 3781 | """GetFontMetricPath(self) -> String""" |
54f9ee45 | 3782 | return _windows_.PrintData_GetFontMetricPath(*args, **kwargs) |
e811c8ce RD |
3783 | |
3784 | def GetPrinterScaleX(*args, **kwargs): | |
a95a7133 | 3785 | """GetPrinterScaleX(self) -> double""" |
54f9ee45 | 3786 | return _windows_.PrintData_GetPrinterScaleX(*args, **kwargs) |
e811c8ce RD |
3787 | |
3788 | def GetPrinterScaleY(*args, **kwargs): | |
a95a7133 | 3789 | """GetPrinterScaleY(self) -> double""" |
54f9ee45 | 3790 | return _windows_.PrintData_GetPrinterScaleY(*args, **kwargs) |
e811c8ce RD |
3791 | |
3792 | def GetPrinterTranslateX(*args, **kwargs): | |
a95a7133 | 3793 | """GetPrinterTranslateX(self) -> long""" |
54f9ee45 | 3794 | return _windows_.PrintData_GetPrinterTranslateX(*args, **kwargs) |
e811c8ce RD |
3795 | |
3796 | def GetPrinterTranslateY(*args, **kwargs): | |
a95a7133 | 3797 | """GetPrinterTranslateY(self) -> long""" |
54f9ee45 | 3798 | return _windows_.PrintData_GetPrinterTranslateY(*args, **kwargs) |
e811c8ce RD |
3799 | |
3800 | def GetPrintMode(*args, **kwargs): | |
a95a7133 | 3801 | """GetPrintMode(self) -> int""" |
54f9ee45 | 3802 | return _windows_.PrintData_GetPrintMode(*args, **kwargs) |
e811c8ce RD |
3803 | |
3804 | def SetPrinterCommand(*args, **kwargs): | |
a95a7133 | 3805 | """SetPrinterCommand(self, String command)""" |
54f9ee45 | 3806 | return _windows_.PrintData_SetPrinterCommand(*args, **kwargs) |
e811c8ce RD |
3807 | |
3808 | def SetPrinterOptions(*args, **kwargs): | |
a95a7133 | 3809 | """SetPrinterOptions(self, String options)""" |
54f9ee45 | 3810 | return _windows_.PrintData_SetPrinterOptions(*args, **kwargs) |
e811c8ce RD |
3811 | |
3812 | def SetPreviewCommand(*args, **kwargs): | |
a95a7133 | 3813 | """SetPreviewCommand(self, String command)""" |
54f9ee45 | 3814 | return _windows_.PrintData_SetPreviewCommand(*args, **kwargs) |
e811c8ce RD |
3815 | |
3816 | def SetFilename(*args, **kwargs): | |
a95a7133 | 3817 | """SetFilename(self, String filename)""" |
54f9ee45 | 3818 | return _windows_.PrintData_SetFilename(*args, **kwargs) |
e811c8ce RD |
3819 | |
3820 | def SetFontMetricPath(*args, **kwargs): | |
a95a7133 | 3821 | """SetFontMetricPath(self, String path)""" |
54f9ee45 | 3822 | return _windows_.PrintData_SetFontMetricPath(*args, **kwargs) |
e811c8ce RD |
3823 | |
3824 | def SetPrinterScaleX(*args, **kwargs): | |
a95a7133 | 3825 | """SetPrinterScaleX(self, double x)""" |
54f9ee45 | 3826 | return _windows_.PrintData_SetPrinterScaleX(*args, **kwargs) |
e811c8ce RD |
3827 | |
3828 | def SetPrinterScaleY(*args, **kwargs): | |
a95a7133 | 3829 | """SetPrinterScaleY(self, double y)""" |
54f9ee45 | 3830 | return _windows_.PrintData_SetPrinterScaleY(*args, **kwargs) |
e811c8ce RD |
3831 | |
3832 | def SetPrinterScaling(*args, **kwargs): | |
a95a7133 | 3833 | """SetPrinterScaling(self, double x, double y)""" |
54f9ee45 | 3834 | return _windows_.PrintData_SetPrinterScaling(*args, **kwargs) |
e811c8ce RD |
3835 | |
3836 | def SetPrinterTranslateX(*args, **kwargs): | |
a95a7133 | 3837 | """SetPrinterTranslateX(self, long x)""" |
54f9ee45 | 3838 | return _windows_.PrintData_SetPrinterTranslateX(*args, **kwargs) |
e811c8ce RD |
3839 | |
3840 | def SetPrinterTranslateY(*args, **kwargs): | |
a95a7133 | 3841 | """SetPrinterTranslateY(self, long y)""" |
54f9ee45 | 3842 | return _windows_.PrintData_SetPrinterTranslateY(*args, **kwargs) |
e811c8ce RD |
3843 | |
3844 | def SetPrinterTranslation(*args, **kwargs): | |
a95a7133 | 3845 | """SetPrinterTranslation(self, long x, long y)""" |
54f9ee45 | 3846 | return _windows_.PrintData_SetPrinterTranslation(*args, **kwargs) |
e811c8ce RD |
3847 | |
3848 | def SetPrintMode(*args, **kwargs): | |
a95a7133 | 3849 | """SetPrintMode(self, int printMode)""" |
54f9ee45 | 3850 | return _windows_.PrintData_SetPrintMode(*args, **kwargs) |
e811c8ce | 3851 | |
db914595 | 3852 | def GetOutputStream(*args, **kwargs): |
a95a7133 | 3853 | """GetOutputStream(self) -> OutputStream""" |
54f9ee45 | 3854 | return _windows_.PrintData_GetOutputStream(*args, **kwargs) |
db914595 RD |
3855 | |
3856 | def SetOutputStream(*args, **kwargs): | |
a95a7133 | 3857 | """SetOutputStream(self, OutputStream outputstream)""" |
54f9ee45 | 3858 | return _windows_.PrintData_SetOutputStream(*args, **kwargs) |
db914595 | 3859 | |
d14a1e28 | 3860 | def __nonzero__(self): return self.Ok() |
d14a1e28 RD |
3861 | |
3862 | class PrintDataPtr(PrintData): | |
3863 | def __init__(self, this): | |
3864 | self.this = this | |
3865 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3866 | self.__class__ = PrintData | |
54f9ee45 | 3867 | _windows_.PrintData_swigregister(PrintDataPtr) |
b2dc1044 RD |
3868 | PrintoutTitleStr = cvar.PrintoutTitleStr |
3869 | PreviewCanvasNameStr = cvar.PreviewCanvasNameStr | |
d14a1e28 | 3870 | |
54f9ee45 | 3871 | class PageSetupDialogData(_core.Object): |
e811c8ce RD |
3872 | def __repr__(self): |
3873 | return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
11207aef RD |
3874 | def __init__(self, *args): |
3875 | """ | |
3876 | __init__(self) -> PageSetupDialogData | |
3877 | __init__(self, PageSetupDialogData data) -> PageSetupDialogData | |
3878 | """ | |
3879 | newobj = _windows_.new_PageSetupDialogData(*args) | |
d14a1e28 RD |
3880 | self.this = newobj.this |
3881 | self.thisown = 1 | |
3882 | del newobj.thisown | |
54f9ee45 | 3883 | def __del__(self, destroy=_windows_.delete_PageSetupDialogData): |
a95a7133 | 3884 | """__del__(self)""" |
d14a1e28 RD |
3885 | try: |
3886 | if self.thisown: destroy(self) | |
3887 | except: pass | |
e811c8ce RD |
3888 | |
3889 | def EnableHelp(*args, **kwargs): | |
a95a7133 | 3890 | """EnableHelp(self, bool flag)""" |
54f9ee45 | 3891 | return _windows_.PageSetupDialogData_EnableHelp(*args, **kwargs) |
e811c8ce RD |
3892 | |
3893 | def EnableMargins(*args, **kwargs): | |
a95a7133 | 3894 | """EnableMargins(self, bool flag)""" |
54f9ee45 | 3895 | return _windows_.PageSetupDialogData_EnableMargins(*args, **kwargs) |
e811c8ce RD |
3896 | |
3897 | def EnableOrientation(*args, **kwargs): | |
a95a7133 | 3898 | """EnableOrientation(self, bool flag)""" |
54f9ee45 | 3899 | return _windows_.PageSetupDialogData_EnableOrientation(*args, **kwargs) |
e811c8ce RD |
3900 | |
3901 | def EnablePaper(*args, **kwargs): | |
a95a7133 | 3902 | """EnablePaper(self, bool flag)""" |
54f9ee45 | 3903 | return _windows_.PageSetupDialogData_EnablePaper(*args, **kwargs) |
e811c8ce RD |
3904 | |
3905 | def EnablePrinter(*args, **kwargs): | |
a95a7133 | 3906 | """EnablePrinter(self, bool flag)""" |
54f9ee45 | 3907 | return _windows_.PageSetupDialogData_EnablePrinter(*args, **kwargs) |
e811c8ce RD |
3908 | |
3909 | def GetDefaultMinMargins(*args, **kwargs): | |
a95a7133 | 3910 | """GetDefaultMinMargins(self) -> bool""" |
54f9ee45 | 3911 | return _windows_.PageSetupDialogData_GetDefaultMinMargins(*args, **kwargs) |
e811c8ce RD |
3912 | |
3913 | def GetEnableMargins(*args, **kwargs): | |
a95a7133 | 3914 | """GetEnableMargins(self) -> bool""" |
54f9ee45 | 3915 | return _windows_.PageSetupDialogData_GetEnableMargins(*args, **kwargs) |
e811c8ce RD |
3916 | |
3917 | def GetEnableOrientation(*args, **kwargs): | |
a95a7133 | 3918 | """GetEnableOrientation(self) -> bool""" |
54f9ee45 | 3919 | return _windows_.PageSetupDialogData_GetEnableOrientation(*args, **kwargs) |
e811c8ce RD |
3920 | |
3921 | def GetEnablePaper(*args, **kwargs): | |
a95a7133 | 3922 | """GetEnablePaper(self) -> bool""" |
54f9ee45 | 3923 | return _windows_.PageSetupDialogData_GetEnablePaper(*args, **kwargs) |
e811c8ce RD |
3924 | |
3925 | def GetEnablePrinter(*args, **kwargs): | |
a95a7133 | 3926 | """GetEnablePrinter(self) -> bool""" |
54f9ee45 | 3927 | return _windows_.PageSetupDialogData_GetEnablePrinter(*args, **kwargs) |
e811c8ce RD |
3928 | |
3929 | def GetEnableHelp(*args, **kwargs): | |
a95a7133 | 3930 | """GetEnableHelp(self) -> bool""" |
54f9ee45 | 3931 | return _windows_.PageSetupDialogData_GetEnableHelp(*args, **kwargs) |
e811c8ce RD |
3932 | |
3933 | def GetDefaultInfo(*args, **kwargs): | |
a95a7133 | 3934 | """GetDefaultInfo(self) -> bool""" |
54f9ee45 | 3935 | return _windows_.PageSetupDialogData_GetDefaultInfo(*args, **kwargs) |
e811c8ce RD |
3936 | |
3937 | def GetMarginTopLeft(*args, **kwargs): | |
a95a7133 | 3938 | """GetMarginTopLeft(self) -> Point""" |
54f9ee45 | 3939 | return _windows_.PageSetupDialogData_GetMarginTopLeft(*args, **kwargs) |
e811c8ce RD |
3940 | |
3941 | def GetMarginBottomRight(*args, **kwargs): | |
a95a7133 | 3942 | """GetMarginBottomRight(self) -> Point""" |
54f9ee45 | 3943 | return _windows_.PageSetupDialogData_GetMarginBottomRight(*args, **kwargs) |
e811c8ce RD |
3944 | |
3945 | def GetMinMarginTopLeft(*args, **kwargs): | |
a95a7133 | 3946 | """GetMinMarginTopLeft(self) -> Point""" |
54f9ee45 | 3947 | return _windows_.PageSetupDialogData_GetMinMarginTopLeft(*args, **kwargs) |
e811c8ce RD |
3948 | |
3949 | def GetMinMarginBottomRight(*args, **kwargs): | |
a95a7133 | 3950 | """GetMinMarginBottomRight(self) -> Point""" |
54f9ee45 | 3951 | return _windows_.PageSetupDialogData_GetMinMarginBottomRight(*args, **kwargs) |
e811c8ce RD |
3952 | |
3953 | def GetPaperId(*args, **kwargs): | |
a95a7133 | 3954 | """GetPaperId(self) -> int""" |
54f9ee45 | 3955 | return _windows_.PageSetupDialogData_GetPaperId(*args, **kwargs) |
e811c8ce RD |
3956 | |
3957 | def GetPaperSize(*args, **kwargs): | |
a95a7133 | 3958 | """GetPaperSize(self) -> Size""" |
54f9ee45 | 3959 | return _windows_.PageSetupDialogData_GetPaperSize(*args, **kwargs) |
e811c8ce RD |
3960 | |
3961 | def GetPrintData(*args, **kwargs): | |
a95a7133 | 3962 | """GetPrintData(self) -> PrintData""" |
54f9ee45 | 3963 | return _windows_.PageSetupDialogData_GetPrintData(*args, **kwargs) |
e811c8ce RD |
3964 | |
3965 | def Ok(*args, **kwargs): | |
a95a7133 | 3966 | """Ok(self) -> bool""" |
54f9ee45 | 3967 | return _windows_.PageSetupDialogData_Ok(*args, **kwargs) |
e811c8ce RD |
3968 | |
3969 | def SetDefaultInfo(*args, **kwargs): | |
a95a7133 | 3970 | """SetDefaultInfo(self, bool flag)""" |
54f9ee45 | 3971 | return _windows_.PageSetupDialogData_SetDefaultInfo(*args, **kwargs) |
e811c8ce RD |
3972 | |
3973 | def SetDefaultMinMargins(*args, **kwargs): | |
a95a7133 | 3974 | """SetDefaultMinMargins(self, bool flag)""" |
54f9ee45 | 3975 | return _windows_.PageSetupDialogData_SetDefaultMinMargins(*args, **kwargs) |
e811c8ce RD |
3976 | |
3977 | def SetMarginTopLeft(*args, **kwargs): | |
a95a7133 | 3978 | """SetMarginTopLeft(self, Point pt)""" |
54f9ee45 | 3979 | return _windows_.PageSetupDialogData_SetMarginTopLeft(*args, **kwargs) |
e811c8ce RD |
3980 | |
3981 | def SetMarginBottomRight(*args, **kwargs): | |
a95a7133 | 3982 | """SetMarginBottomRight(self, Point pt)""" |
54f9ee45 | 3983 | return _windows_.PageSetupDialogData_SetMarginBottomRight(*args, **kwargs) |
e811c8ce RD |
3984 | |
3985 | def SetMinMarginTopLeft(*args, **kwargs): | |
a95a7133 | 3986 | """SetMinMarginTopLeft(self, Point pt)""" |
54f9ee45 | 3987 | return _windows_.PageSetupDialogData_SetMinMarginTopLeft(*args, **kwargs) |
e811c8ce RD |
3988 | |
3989 | def SetMinMarginBottomRight(*args, **kwargs): | |
a95a7133 | 3990 | """SetMinMarginBottomRight(self, Point pt)""" |
54f9ee45 | 3991 | return _windows_.PageSetupDialogData_SetMinMarginBottomRight(*args, **kwargs) |
e811c8ce RD |
3992 | |
3993 | def SetPaperId(*args, **kwargs): | |
a95a7133 | 3994 | """SetPaperId(self, int id)""" |
54f9ee45 | 3995 | return _windows_.PageSetupDialogData_SetPaperId(*args, **kwargs) |
e811c8ce RD |
3996 | |
3997 | def SetPaperSize(*args, **kwargs): | |
a95a7133 | 3998 | """SetPaperSize(self, Size size)""" |
54f9ee45 | 3999 | return _windows_.PageSetupDialogData_SetPaperSize(*args, **kwargs) |
e811c8ce RD |
4000 | |
4001 | def SetPrintData(*args, **kwargs): | |
a95a7133 | 4002 | """SetPrintData(self, PrintData printData)""" |
54f9ee45 | 4003 | return _windows_.PageSetupDialogData_SetPrintData(*args, **kwargs) |
e811c8ce | 4004 | |
d14a1e28 | 4005 | def __nonzero__(self): return self.Ok() |
d14a1e28 RD |
4006 | |
4007 | class PageSetupDialogDataPtr(PageSetupDialogData): | |
4008 | def __init__(self, this): | |
4009 | self.this = this | |
4010 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4011 | self.__class__ = PageSetupDialogData | |
54f9ee45 | 4012 | _windows_.PageSetupDialogData_swigregister(PageSetupDialogDataPtr) |
d14a1e28 RD |
4013 | |
4014 | class PageSetupDialog(Dialog): | |
e811c8ce RD |
4015 | def __repr__(self): |
4016 | return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4017 | def __init__(self, *args, **kwargs): |
a95a7133 | 4018 | """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog""" |
54f9ee45 | 4019 | newobj = _windows_.new_PageSetupDialog(*args, **kwargs) |
d14a1e28 RD |
4020 | self.this = newobj.this |
4021 | self.thisown = 1 | |
4022 | del newobj.thisown | |
4023 | self._setOORInfo(self) | |
e811c8ce RD |
4024 | |
4025 | def GetPageSetupData(*args, **kwargs): | |
a95a7133 | 4026 | """GetPageSetupData(self) -> PageSetupDialogData""" |
54f9ee45 | 4027 | return _windows_.PageSetupDialog_GetPageSetupData(*args, **kwargs) |
e811c8ce RD |
4028 | |
4029 | def ShowModal(*args, **kwargs): | |
a95a7133 | 4030 | """ShowModal(self) -> int""" |
54f9ee45 | 4031 | return _windows_.PageSetupDialog_ShowModal(*args, **kwargs) |
e811c8ce | 4032 | |
d14a1e28 RD |
4033 | |
4034 | class PageSetupDialogPtr(PageSetupDialog): | |
4035 | def __init__(self, this): | |
4036 | self.this = this | |
4037 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4038 | self.__class__ = PageSetupDialog | |
54f9ee45 | 4039 | _windows_.PageSetupDialog_swigregister(PageSetupDialogPtr) |
d14a1e28 | 4040 | |
54f9ee45 | 4041 | class PrintDialogData(_core.Object): |
e811c8ce RD |
4042 | def __repr__(self): |
4043 | return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4276dc52 RD |
4044 | def __init__(self, *args): |
4045 | """ | |
a95a7133 RD |
4046 | __init__(self) -> PrintDialogData |
4047 | __init__(self, PrintData printData) -> PrintDialogData | |
4276dc52 | 4048 | """ |
54f9ee45 | 4049 | newobj = _windows_.new_PrintDialogData(*args) |
d14a1e28 RD |
4050 | self.this = newobj.this |
4051 | self.thisown = 1 | |
4052 | del newobj.thisown | |
54f9ee45 | 4053 | def __del__(self, destroy=_windows_.delete_PrintDialogData): |
a95a7133 | 4054 | """__del__(self)""" |
d14a1e28 RD |
4055 | try: |
4056 | if self.thisown: destroy(self) | |
4057 | except: pass | |
e811c8ce RD |
4058 | |
4059 | def GetFromPage(*args, **kwargs): | |
a95a7133 | 4060 | """GetFromPage(self) -> int""" |
54f9ee45 | 4061 | return _windows_.PrintDialogData_GetFromPage(*args, **kwargs) |
e811c8ce RD |
4062 | |
4063 | def GetToPage(*args, **kwargs): | |
a95a7133 | 4064 | """GetToPage(self) -> int""" |
54f9ee45 | 4065 | return _windows_.PrintDialogData_GetToPage(*args, **kwargs) |
e811c8ce RD |
4066 | |
4067 | def GetMinPage(*args, **kwargs): | |
a95a7133 | 4068 | """GetMinPage(self) -> int""" |
54f9ee45 | 4069 | return _windows_.PrintDialogData_GetMinPage(*args, **kwargs) |
e811c8ce RD |
4070 | |
4071 | def GetMaxPage(*args, **kwargs): | |
a95a7133 | 4072 | """GetMaxPage(self) -> int""" |
54f9ee45 | 4073 | return _windows_.PrintDialogData_GetMaxPage(*args, **kwargs) |
e811c8ce RD |
4074 | |
4075 | def GetNoCopies(*args, **kwargs): | |
a95a7133 | 4076 | """GetNoCopies(self) -> int""" |
54f9ee45 | 4077 | return _windows_.PrintDialogData_GetNoCopies(*args, **kwargs) |
e811c8ce RD |
4078 | |
4079 | def GetAllPages(*args, **kwargs): | |
a95a7133 | 4080 | """GetAllPages(self) -> bool""" |
54f9ee45 | 4081 | return _windows_.PrintDialogData_GetAllPages(*args, **kwargs) |
e811c8ce RD |
4082 | |
4083 | def GetSelection(*args, **kwargs): | |
a95a7133 | 4084 | """GetSelection(self) -> bool""" |
54f9ee45 | 4085 | return _windows_.PrintDialogData_GetSelection(*args, **kwargs) |
e811c8ce RD |
4086 | |
4087 | def GetCollate(*args, **kwargs): | |
a95a7133 | 4088 | """GetCollate(self) -> bool""" |
54f9ee45 | 4089 | return _windows_.PrintDialogData_GetCollate(*args, **kwargs) |
e811c8ce RD |
4090 | |
4091 | def GetPrintToFile(*args, **kwargs): | |
a95a7133 | 4092 | """GetPrintToFile(self) -> bool""" |
54f9ee45 | 4093 | return _windows_.PrintDialogData_GetPrintToFile(*args, **kwargs) |
e811c8ce RD |
4094 | |
4095 | def GetSetupDialog(*args, **kwargs): | |
a95a7133 | 4096 | """GetSetupDialog(self) -> bool""" |
54f9ee45 | 4097 | return _windows_.PrintDialogData_GetSetupDialog(*args, **kwargs) |
e811c8ce RD |
4098 | |
4099 | def SetFromPage(*args, **kwargs): | |
a95a7133 | 4100 | """SetFromPage(self, int v)""" |
54f9ee45 | 4101 | return _windows_.PrintDialogData_SetFromPage(*args, **kwargs) |
e811c8ce RD |
4102 | |
4103 | def SetToPage(*args, **kwargs): | |
a95a7133 | 4104 | """SetToPage(self, int v)""" |
54f9ee45 | 4105 | return _windows_.PrintDialogData_SetToPage(*args, **kwargs) |
e811c8ce RD |
4106 | |
4107 | def SetMinPage(*args, **kwargs): | |
a95a7133 | 4108 | """SetMinPage(self, int v)""" |
54f9ee45 | 4109 | return _windows_.PrintDialogData_SetMinPage(*args, **kwargs) |
e811c8ce RD |
4110 | |
4111 | def SetMaxPage(*args, **kwargs): | |
a95a7133 | 4112 | """SetMaxPage(self, int v)""" |
54f9ee45 | 4113 | return _windows_.PrintDialogData_SetMaxPage(*args, **kwargs) |
e811c8ce RD |
4114 | |
4115 | def SetNoCopies(*args, **kwargs): | |
a95a7133 | 4116 | """SetNoCopies(self, int v)""" |
54f9ee45 | 4117 | return _windows_.PrintDialogData_SetNoCopies(*args, **kwargs) |
e811c8ce RD |
4118 | |
4119 | def SetAllPages(*args, **kwargs): | |
a95a7133 | 4120 | """SetAllPages(self, bool flag)""" |
54f9ee45 | 4121 | return _windows_.PrintDialogData_SetAllPages(*args, **kwargs) |
e811c8ce RD |
4122 | |
4123 | def SetSelection(*args, **kwargs): | |
a95a7133 | 4124 | """SetSelection(self, bool flag)""" |
54f9ee45 | 4125 | return _windows_.PrintDialogData_SetSelection(*args, **kwargs) |
e811c8ce RD |
4126 | |
4127 | def SetCollate(*args, **kwargs): | |
a95a7133 | 4128 | """SetCollate(self, bool flag)""" |
54f9ee45 | 4129 | return _windows_.PrintDialogData_SetCollate(*args, **kwargs) |
e811c8ce RD |
4130 | |
4131 | def SetPrintToFile(*args, **kwargs): | |
a95a7133 | 4132 | """SetPrintToFile(self, bool flag)""" |
54f9ee45 | 4133 | return _windows_.PrintDialogData_SetPrintToFile(*args, **kwargs) |
e811c8ce RD |
4134 | |
4135 | def SetSetupDialog(*args, **kwargs): | |
a95a7133 | 4136 | """SetSetupDialog(self, bool flag)""" |
54f9ee45 | 4137 | return _windows_.PrintDialogData_SetSetupDialog(*args, **kwargs) |
e811c8ce RD |
4138 | |
4139 | def EnablePrintToFile(*args, **kwargs): | |
a95a7133 | 4140 | """EnablePrintToFile(self, bool flag)""" |
54f9ee45 | 4141 | return _windows_.PrintDialogData_EnablePrintToFile(*args, **kwargs) |
e811c8ce RD |
4142 | |
4143 | def EnableSelection(*args, **kwargs): | |
a95a7133 | 4144 | """EnableSelection(self, bool flag)""" |
54f9ee45 | 4145 | return _windows_.PrintDialogData_EnableSelection(*args, **kwargs) |
e811c8ce RD |
4146 | |
4147 | def EnablePageNumbers(*args, **kwargs): | |
a95a7133 | 4148 | """EnablePageNumbers(self, bool flag)""" |
54f9ee45 | 4149 | return _windows_.PrintDialogData_EnablePageNumbers(*args, **kwargs) |
e811c8ce RD |
4150 | |
4151 | def EnableHelp(*args, **kwargs): | |
a95a7133 | 4152 | """EnableHelp(self, bool flag)""" |
54f9ee45 | 4153 | return _windows_.PrintDialogData_EnableHelp(*args, **kwargs) |
e811c8ce RD |
4154 | |
4155 | def GetEnablePrintToFile(*args, **kwargs): | |
a95a7133 | 4156 | """GetEnablePrintToFile(self) -> bool""" |
54f9ee45 | 4157 | return _windows_.PrintDialogData_GetEnablePrintToFile(*args, **kwargs) |
e811c8ce RD |
4158 | |
4159 | def GetEnableSelection(*args, **kwargs): | |
a95a7133 | 4160 | """GetEnableSelection(self) -> bool""" |
54f9ee45 | 4161 | return _windows_.PrintDialogData_GetEnableSelection(*args, **kwargs) |
e811c8ce RD |
4162 | |
4163 | def GetEnablePageNumbers(*args, **kwargs): | |
a95a7133 | 4164 | """GetEnablePageNumbers(self) -> bool""" |
54f9ee45 | 4165 | return _windows_.PrintDialogData_GetEnablePageNumbers(*args, **kwargs) |
e811c8ce RD |
4166 | |
4167 | def GetEnableHelp(*args, **kwargs): | |
a95a7133 | 4168 | """GetEnableHelp(self) -> bool""" |
54f9ee45 | 4169 | return _windows_.PrintDialogData_GetEnableHelp(*args, **kwargs) |
e811c8ce RD |
4170 | |
4171 | def Ok(*args, **kwargs): | |
a95a7133 | 4172 | """Ok(self) -> bool""" |
54f9ee45 | 4173 | return _windows_.PrintDialogData_Ok(*args, **kwargs) |
e811c8ce RD |
4174 | |
4175 | def GetPrintData(*args, **kwargs): | |
a95a7133 | 4176 | """GetPrintData(self) -> PrintData""" |
54f9ee45 | 4177 | return _windows_.PrintDialogData_GetPrintData(*args, **kwargs) |
e811c8ce RD |
4178 | |
4179 | def SetPrintData(*args, **kwargs): | |
a95a7133 | 4180 | """SetPrintData(self, PrintData printData)""" |
54f9ee45 | 4181 | return _windows_.PrintDialogData_SetPrintData(*args, **kwargs) |
e811c8ce | 4182 | |
d14a1e28 | 4183 | def __nonzero__(self): return self.Ok() |
d14a1e28 RD |
4184 | |
4185 | class PrintDialogDataPtr(PrintDialogData): | |
4186 | def __init__(self, this): | |
4187 | self.this = this | |
4188 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4189 | self.__class__ = PrintDialogData | |
54f9ee45 | 4190 | _windows_.PrintDialogData_swigregister(PrintDialogDataPtr) |
d14a1e28 RD |
4191 | |
4192 | class PrintDialog(Dialog): | |
e811c8ce RD |
4193 | def __repr__(self): |
4194 | return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4195 | def __init__(self, *args, **kwargs): |
a95a7133 | 4196 | """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog""" |
54f9ee45 | 4197 | newobj = _windows_.new_PrintDialog(*args, **kwargs) |
d14a1e28 RD |
4198 | self.this = newobj.this |
4199 | self.thisown = 1 | |
4200 | del newobj.thisown | |
4201 | self._setOORInfo(self) | |
e811c8ce RD |
4202 | |
4203 | def GetPrintDialogData(*args, **kwargs): | |
a95a7133 | 4204 | """GetPrintDialogData(self) -> PrintDialogData""" |
54f9ee45 | 4205 | return _windows_.PrintDialog_GetPrintDialogData(*args, **kwargs) |
e811c8ce RD |
4206 | |
4207 | def GetPrintDC(*args, **kwargs): | |
a95a7133 | 4208 | """GetPrintDC(self) -> DC""" |
54f9ee45 | 4209 | return _windows_.PrintDialog_GetPrintDC(*args, **kwargs) |
e811c8ce RD |
4210 | |
4211 | def ShowModal(*args, **kwargs): | |
a95a7133 | 4212 | """ShowModal(self) -> int""" |
54f9ee45 | 4213 | return _windows_.PrintDialog_ShowModal(*args, **kwargs) |
e811c8ce | 4214 | |
d14a1e28 RD |
4215 | |
4216 | class PrintDialogPtr(PrintDialog): | |
4217 | def __init__(self, this): | |
4218 | self.this = this | |
4219 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4220 | self.__class__ = PrintDialog | |
54f9ee45 | 4221 | _windows_.PrintDialog_swigregister(PrintDialogPtr) |
d14a1e28 | 4222 | |
54f9ee45 RD |
4223 | PRINTER_NO_ERROR = _windows_.PRINTER_NO_ERROR |
4224 | PRINTER_CANCELLED = _windows_.PRINTER_CANCELLED | |
4225 | PRINTER_ERROR = _windows_.PRINTER_ERROR | |
4226 | class Printer(_core.Object): | |
e811c8ce RD |
4227 | def __repr__(self): |
4228 | return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4229 | def __init__(self, *args, **kwargs): |
a95a7133 | 4230 | """__init__(self, PrintDialogData data=None) -> Printer""" |
54f9ee45 | 4231 | newobj = _windows_.new_Printer(*args, **kwargs) |
d14a1e28 RD |
4232 | self.this = newobj.this |
4233 | self.thisown = 1 | |
4234 | del newobj.thisown | |
54f9ee45 | 4235 | def __del__(self, destroy=_windows_.delete_Printer): |
a95a7133 | 4236 | """__del__(self)""" |
d14a1e28 RD |
4237 | try: |
4238 | if self.thisown: destroy(self) | |
4239 | except: pass | |
e811c8ce RD |
4240 | |
4241 | def CreateAbortWindow(*args, **kwargs): | |
a95a7133 | 4242 | """CreateAbortWindow(self, Window parent, Printout printout)""" |
54f9ee45 | 4243 | return _windows_.Printer_CreateAbortWindow(*args, **kwargs) |
e811c8ce RD |
4244 | |
4245 | def GetPrintDialogData(*args, **kwargs): | |
a95a7133 | 4246 | """GetPrintDialogData(self) -> PrintDialogData""" |
54f9ee45 | 4247 | return _windows_.Printer_GetPrintDialogData(*args, **kwargs) |
e811c8ce RD |
4248 | |
4249 | def Print(*args, **kwargs): | |
a95a7133 | 4250 | """Print(self, Window parent, Printout printout, int prompt=True) -> bool""" |
54f9ee45 | 4251 | return _windows_.Printer_Print(*args, **kwargs) |
e811c8ce RD |
4252 | |
4253 | def PrintDialog(*args, **kwargs): | |
a95a7133 | 4254 | """PrintDialog(self, Window parent) -> DC""" |
54f9ee45 | 4255 | return _windows_.Printer_PrintDialog(*args, **kwargs) |
e811c8ce RD |
4256 | |
4257 | def ReportError(*args, **kwargs): | |
a95a7133 | 4258 | """ReportError(self, Window parent, Printout printout, String message)""" |
54f9ee45 | 4259 | return _windows_.Printer_ReportError(*args, **kwargs) |
e811c8ce RD |
4260 | |
4261 | def Setup(*args, **kwargs): | |
a95a7133 | 4262 | """Setup(self, Window parent) -> bool""" |
54f9ee45 | 4263 | return _windows_.Printer_Setup(*args, **kwargs) |
e811c8ce RD |
4264 | |
4265 | def GetAbort(*args, **kwargs): | |
a95a7133 | 4266 | """GetAbort(self) -> bool""" |
54f9ee45 | 4267 | return _windows_.Printer_GetAbort(*args, **kwargs) |
e811c8ce RD |
4268 | |
4269 | def GetLastError(*args, **kwargs): | |
66c033b4 | 4270 | """GetLastError() -> int""" |
54f9ee45 | 4271 | return _windows_.Printer_GetLastError(*args, **kwargs) |
e811c8ce RD |
4272 | |
4273 | GetLastError = staticmethod(GetLastError) | |
94c16279 | 4274 | |
d14a1e28 RD |
4275 | class PrinterPtr(Printer): |
4276 | def __init__(self, this): | |
4277 | self.this = this | |
4278 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4279 | self.__class__ = Printer | |
54f9ee45 | 4280 | _windows_.Printer_swigregister(PrinterPtr) |
9c4165ad | 4281 | |
e811c8ce | 4282 | def Printer_GetLastError(*args, **kwargs): |
196addbf | 4283 | """Printer_GetLastError() -> int""" |
54f9ee45 | 4284 | return _windows_.Printer_GetLastError(*args, **kwargs) |
8ab979d7 | 4285 | |
54f9ee45 | 4286 | class Printout(_core.Object): |
e811c8ce RD |
4287 | def __repr__(self): |
4288 | return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4289 | def __init__(self, *args, **kwargs): |
a95a7133 | 4290 | """__init__(self, String title=PrintoutTitleStr) -> Printout""" |
54f9ee45 | 4291 | newobj = _windows_.new_Printout(*args, **kwargs) |
d14a1e28 RD |
4292 | self.this = newobj.this |
4293 | self.thisown = 1 | |
4294 | del newobj.thisown | |
4295 | self._setCallbackInfo(self, Printout) | |
e811c8ce RD |
4296 | |
4297 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 4298 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 4299 | return _windows_.Printout__setCallbackInfo(*args, **kwargs) |
e811c8ce RD |
4300 | |
4301 | def GetTitle(*args, **kwargs): | |
a95a7133 | 4302 | """GetTitle(self) -> String""" |
54f9ee45 | 4303 | return _windows_.Printout_GetTitle(*args, **kwargs) |
e811c8ce RD |
4304 | |
4305 | def GetDC(*args, **kwargs): | |
a95a7133 | 4306 | """GetDC(self) -> DC""" |
54f9ee45 | 4307 | return _windows_.Printout_GetDC(*args, **kwargs) |
e811c8ce RD |
4308 | |
4309 | def SetDC(*args, **kwargs): | |
a95a7133 | 4310 | """SetDC(self, DC dc)""" |
54f9ee45 | 4311 | return _windows_.Printout_SetDC(*args, **kwargs) |
e811c8ce | 4312 | |
e811c8ce | 4313 | def SetPageSizePixels(*args, **kwargs): |
a95a7133 | 4314 | """SetPageSizePixels(self, int w, int h)""" |
54f9ee45 | 4315 | return _windows_.Printout_SetPageSizePixels(*args, **kwargs) |
e811c8ce | 4316 | |
322913ce RD |
4317 | def GetPageSizePixels(*args, **kwargs): |
4318 | """GetPageSizePixels() -> (w, h)""" | |
54f9ee45 | 4319 | return _windows_.Printout_GetPageSizePixels(*args, **kwargs) |
322913ce | 4320 | |
e811c8ce | 4321 | def SetPageSizeMM(*args, **kwargs): |
a95a7133 | 4322 | """SetPageSizeMM(self, int w, int h)""" |
54f9ee45 | 4323 | return _windows_.Printout_SetPageSizeMM(*args, **kwargs) |
e811c8ce RD |
4324 | |
4325 | def GetPageSizeMM(*args, **kwargs): | |
322913ce | 4326 | """GetPageSizeMM() -> (w, h)""" |
54f9ee45 | 4327 | return _windows_.Printout_GetPageSizeMM(*args, **kwargs) |
e811c8ce RD |
4328 | |
4329 | def SetPPIScreen(*args, **kwargs): | |
a95a7133 | 4330 | """SetPPIScreen(self, int x, int y)""" |
54f9ee45 | 4331 | return _windows_.Printout_SetPPIScreen(*args, **kwargs) |
e811c8ce RD |
4332 | |
4333 | def GetPPIScreen(*args, **kwargs): | |
322913ce | 4334 | """GetPPIScreen() -> (x,y)""" |
54f9ee45 | 4335 | return _windows_.Printout_GetPPIScreen(*args, **kwargs) |
e811c8ce RD |
4336 | |
4337 | def SetPPIPrinter(*args, **kwargs): | |
a95a7133 | 4338 | """SetPPIPrinter(self, int x, int y)""" |
54f9ee45 | 4339 | return _windows_.Printout_SetPPIPrinter(*args, **kwargs) |
e811c8ce RD |
4340 | |
4341 | def GetPPIPrinter(*args, **kwargs): | |
322913ce | 4342 | """GetPPIPrinter() -> (x,y)""" |
54f9ee45 | 4343 | return _windows_.Printout_GetPPIPrinter(*args, **kwargs) |
e811c8ce RD |
4344 | |
4345 | def IsPreview(*args, **kwargs): | |
a95a7133 | 4346 | """IsPreview(self) -> bool""" |
54f9ee45 | 4347 | return _windows_.Printout_IsPreview(*args, **kwargs) |
e811c8ce RD |
4348 | |
4349 | def SetIsPreview(*args, **kwargs): | |
a95a7133 | 4350 | """SetIsPreview(self, bool p)""" |
54f9ee45 | 4351 | return _windows_.Printout_SetIsPreview(*args, **kwargs) |
e811c8ce RD |
4352 | |
4353 | def base_OnBeginDocument(*args, **kwargs): | |
a95a7133 | 4354 | """base_OnBeginDocument(self, int startPage, int endPage) -> bool""" |
54f9ee45 | 4355 | return _windows_.Printout_base_OnBeginDocument(*args, **kwargs) |
e811c8ce RD |
4356 | |
4357 | def base_OnEndDocument(*args, **kwargs): | |
a95a7133 | 4358 | """base_OnEndDocument(self)""" |
54f9ee45 | 4359 | return _windows_.Printout_base_OnEndDocument(*args, **kwargs) |
e811c8ce RD |
4360 | |
4361 | def base_OnBeginPrinting(*args, **kwargs): | |
a95a7133 | 4362 | """base_OnBeginPrinting(self)""" |
54f9ee45 | 4363 | return _windows_.Printout_base_OnBeginPrinting(*args, **kwargs) |
e811c8ce RD |
4364 | |
4365 | def base_OnEndPrinting(*args, **kwargs): | |
a95a7133 | 4366 | """base_OnEndPrinting(self)""" |
54f9ee45 | 4367 | return _windows_.Printout_base_OnEndPrinting(*args, **kwargs) |
e811c8ce RD |
4368 | |
4369 | def base_OnPreparePrinting(*args, **kwargs): | |
a95a7133 | 4370 | """base_OnPreparePrinting(self)""" |
54f9ee45 | 4371 | return _windows_.Printout_base_OnPreparePrinting(*args, **kwargs) |
e811c8ce | 4372 | |
e811c8ce | 4373 | def base_HasPage(*args, **kwargs): |
a95a7133 | 4374 | """base_HasPage(self, int page) -> bool""" |
54f9ee45 | 4375 | return _windows_.Printout_base_HasPage(*args, **kwargs) |
e811c8ce | 4376 | |
322913ce RD |
4377 | def base_GetPageInfo(*args, **kwargs): |
4378 | """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)""" | |
54f9ee45 | 4379 | return _windows_.Printout_base_GetPageInfo(*args, **kwargs) |
322913ce | 4380 | |
d14a1e28 RD |
4381 | |
4382 | class PrintoutPtr(Printout): | |
4383 | def __init__(self, this): | |
4384 | self.this = this | |
4385 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4386 | self.__class__ = Printout | |
54f9ee45 | 4387 | _windows_.Printout_swigregister(PrintoutPtr) |
d14a1e28 RD |
4388 | |
4389 | class PreviewCanvas(ScrolledWindow): | |
e811c8ce RD |
4390 | def __repr__(self): |
4391 | return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4392 | def __init__(self, *args, **kwargs): |
0df68c9f | 4393 | """ |
a95a7133 | 4394 | __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition, |
0df68c9f | 4395 | Size size=DefaultSize, long style=0, |
b2dc1044 | 4396 | String name=PreviewCanvasNameStr) -> PreviewCanvas |
0df68c9f | 4397 | """ |
54f9ee45 | 4398 | newobj = _windows_.new_PreviewCanvas(*args, **kwargs) |
d14a1e28 RD |
4399 | self.this = newobj.this |
4400 | self.thisown = 1 | |
4401 | del newobj.thisown | |
fd3f2efe | 4402 | self._setOORInfo(self) |
e811c8ce | 4403 | |
d14a1e28 RD |
4404 | |
4405 | class PreviewCanvasPtr(PreviewCanvas): | |
4406 | def __init__(self, this): | |
4407 | self.this = this | |
4408 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4409 | self.__class__ = PreviewCanvas | |
54f9ee45 | 4410 | _windows_.PreviewCanvas_swigregister(PreviewCanvasPtr) |
d14a1e28 RD |
4411 | |
4412 | class PreviewFrame(Frame): | |
e811c8ce RD |
4413 | def __repr__(self): |
4414 | return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4415 | def __init__(self, *args, **kwargs): |
0df68c9f | 4416 | """ |
a95a7133 | 4417 | __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition, |
196addbf | 4418 | Size size=DefaultSize, |
b2dc1044 | 4419 | long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame |
0df68c9f | 4420 | """ |
54f9ee45 | 4421 | newobj = _windows_.new_PreviewFrame(*args, **kwargs) |
d14a1e28 RD |
4422 | self.this = newobj.this |
4423 | self.thisown = 1 | |
4424 | del newobj.thisown | |
fd3f2efe | 4425 | self._setOORInfo(self) |
e811c8ce RD |
4426 | |
4427 | def Initialize(*args, **kwargs): | |
a95a7133 | 4428 | """Initialize(self)""" |
54f9ee45 | 4429 | return _windows_.PreviewFrame_Initialize(*args, **kwargs) |
e811c8ce RD |
4430 | |
4431 | def CreateControlBar(*args, **kwargs): | |
a95a7133 | 4432 | """CreateControlBar(self)""" |
54f9ee45 | 4433 | return _windows_.PreviewFrame_CreateControlBar(*args, **kwargs) |
e811c8ce RD |
4434 | |
4435 | def CreateCanvas(*args, **kwargs): | |
a95a7133 | 4436 | """CreateCanvas(self)""" |
54f9ee45 | 4437 | return _windows_.PreviewFrame_CreateCanvas(*args, **kwargs) |
e811c8ce RD |
4438 | |
4439 | def GetControlBar(*args, **kwargs): | |
a95a7133 | 4440 | """GetControlBar(self) -> PreviewControlBar""" |
54f9ee45 | 4441 | return _windows_.PreviewFrame_GetControlBar(*args, **kwargs) |
e811c8ce | 4442 | |
d14a1e28 RD |
4443 | |
4444 | class PreviewFramePtr(PreviewFrame): | |
4445 | def __init__(self, this): | |
4446 | self.this = this | |
4447 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4448 | self.__class__ = PreviewFrame | |
54f9ee45 RD |
4449 | _windows_.PreviewFrame_swigregister(PreviewFramePtr) |
4450 | ||
4451 | PREVIEW_PRINT = _windows_.PREVIEW_PRINT | |
4452 | PREVIEW_PREVIOUS = _windows_.PREVIEW_PREVIOUS | |
4453 | PREVIEW_NEXT = _windows_.PREVIEW_NEXT | |
4454 | PREVIEW_ZOOM = _windows_.PREVIEW_ZOOM | |
4455 | PREVIEW_FIRST = _windows_.PREVIEW_FIRST | |
4456 | PREVIEW_LAST = _windows_.PREVIEW_LAST | |
4457 | PREVIEW_GOTO = _windows_.PREVIEW_GOTO | |
4458 | PREVIEW_DEFAULT = _windows_.PREVIEW_DEFAULT | |
4459 | ID_PREVIEW_CLOSE = _windows_.ID_PREVIEW_CLOSE | |
4460 | ID_PREVIEW_NEXT = _windows_.ID_PREVIEW_NEXT | |
4461 | ID_PREVIEW_PREVIOUS = _windows_.ID_PREVIEW_PREVIOUS | |
4462 | ID_PREVIEW_PRINT = _windows_.ID_PREVIEW_PRINT | |
4463 | ID_PREVIEW_ZOOM = _windows_.ID_PREVIEW_ZOOM | |
4464 | ID_PREVIEW_FIRST = _windows_.ID_PREVIEW_FIRST | |
4465 | ID_PREVIEW_LAST = _windows_.ID_PREVIEW_LAST | |
4466 | ID_PREVIEW_GOTO = _windows_.ID_PREVIEW_GOTO | |
d14a1e28 | 4467 | class PreviewControlBar(Panel): |
e811c8ce RD |
4468 | def __repr__(self): |
4469 | return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4470 | def __init__(self, *args, **kwargs): |
0df68c9f | 4471 | """ |
a95a7133 | 4472 | __init__(self, PrintPreview preview, long buttons, Window parent, |
0df68c9f | 4473 | Point pos=DefaultPosition, Size size=DefaultSize, |
196addbf | 4474 | long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar |
0df68c9f | 4475 | """ |
54f9ee45 | 4476 | newobj = _windows_.new_PreviewControlBar(*args, **kwargs) |
d14a1e28 RD |
4477 | self.this = newobj.this |
4478 | self.thisown = 1 | |
4479 | del newobj.thisown | |
fd3f2efe | 4480 | self._setOORInfo(self) |
e811c8ce RD |
4481 | |
4482 | def GetZoomControl(*args, **kwargs): | |
a95a7133 | 4483 | """GetZoomControl(self) -> int""" |
54f9ee45 | 4484 | return _windows_.PreviewControlBar_GetZoomControl(*args, **kwargs) |
e811c8ce RD |
4485 | |
4486 | def SetZoomControl(*args, **kwargs): | |
a95a7133 | 4487 | """SetZoomControl(self, int zoom)""" |
54f9ee45 | 4488 | return _windows_.PreviewControlBar_SetZoomControl(*args, **kwargs) |
e811c8ce RD |
4489 | |
4490 | def GetPrintPreview(*args, **kwargs): | |
a95a7133 | 4491 | """GetPrintPreview(self) -> PrintPreview""" |
54f9ee45 | 4492 | return _windows_.PreviewControlBar_GetPrintPreview(*args, **kwargs) |
e811c8ce RD |
4493 | |
4494 | def OnNext(*args, **kwargs): | |
a95a7133 | 4495 | """OnNext(self)""" |
54f9ee45 | 4496 | return _windows_.PreviewControlBar_OnNext(*args, **kwargs) |
e811c8ce RD |
4497 | |
4498 | def OnPrevious(*args, **kwargs): | |
a95a7133 | 4499 | """OnPrevious(self)""" |
54f9ee45 | 4500 | return _windows_.PreviewControlBar_OnPrevious(*args, **kwargs) |
e811c8ce RD |
4501 | |
4502 | def OnFirst(*args, **kwargs): | |
a95a7133 | 4503 | """OnFirst(self)""" |
54f9ee45 | 4504 | return _windows_.PreviewControlBar_OnFirst(*args, **kwargs) |
e811c8ce RD |
4505 | |
4506 | def OnLast(*args, **kwargs): | |
a95a7133 | 4507 | """OnLast(self)""" |
54f9ee45 | 4508 | return _windows_.PreviewControlBar_OnLast(*args, **kwargs) |
e811c8ce RD |
4509 | |
4510 | def OnGoto(*args, **kwargs): | |
a95a7133 | 4511 | """OnGoto(self)""" |
54f9ee45 | 4512 | return _windows_.PreviewControlBar_OnGoto(*args, **kwargs) |
e811c8ce | 4513 | |
d14a1e28 RD |
4514 | |
4515 | class PreviewControlBarPtr(PreviewControlBar): | |
4516 | def __init__(self, this): | |
4517 | self.this = this | |
4518 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4519 | self.__class__ = PreviewControlBar | |
54f9ee45 | 4520 | _windows_.PreviewControlBar_swigregister(PreviewControlBarPtr) |
d14a1e28 | 4521 | |
54f9ee45 | 4522 | class PrintPreview(_core.Object): |
e811c8ce RD |
4523 | def __repr__(self): |
4524 | return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4276dc52 RD |
4525 | def __init__(self, *args): |
4526 | """ | |
a95a7133 RD |
4527 | __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview |
4528 | __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview | |
4276dc52 | 4529 | """ |
54f9ee45 | 4530 | newobj = _windows_.new_PrintPreview(*args) |
d14a1e28 RD |
4531 | self.this = newobj.this |
4532 | self.thisown = 1 | |
4533 | del newobj.thisown | |
e811c8ce | 4534 | def SetCurrentPage(*args, **kwargs): |
a95a7133 | 4535 | """SetCurrentPage(self, int pageNum) -> bool""" |
54f9ee45 | 4536 | return _windows_.PrintPreview_SetCurrentPage(*args, **kwargs) |
e811c8ce RD |
4537 | |
4538 | def GetCurrentPage(*args, **kwargs): | |
a95a7133 | 4539 | """GetCurrentPage(self) -> int""" |
54f9ee45 | 4540 | return _windows_.PrintPreview_GetCurrentPage(*args, **kwargs) |
e811c8ce RD |
4541 | |
4542 | def SetPrintout(*args, **kwargs): | |
a95a7133 | 4543 | """SetPrintout(self, Printout printout)""" |
54f9ee45 | 4544 | return _windows_.PrintPreview_SetPrintout(*args, **kwargs) |
e811c8ce RD |
4545 | |
4546 | def GetPrintout(*args, **kwargs): | |
a95a7133 | 4547 | """GetPrintout(self) -> Printout""" |
54f9ee45 | 4548 | return _windows_.PrintPreview_GetPrintout(*args, **kwargs) |
e811c8ce RD |
4549 | |
4550 | def GetPrintoutForPrinting(*args, **kwargs): | |
a95a7133 | 4551 | """GetPrintoutForPrinting(self) -> Printout""" |
54f9ee45 | 4552 | return _windows_.PrintPreview_GetPrintoutForPrinting(*args, **kwargs) |
e811c8ce RD |
4553 | |
4554 | def SetFrame(*args, **kwargs): | |
a95a7133 | 4555 | """SetFrame(self, Frame frame)""" |
54f9ee45 | 4556 | return _windows_.PrintPreview_SetFrame(*args, **kwargs) |
e811c8ce RD |
4557 | |
4558 | def SetCanvas(*args, **kwargs): | |
a95a7133 | 4559 | """SetCanvas(self, PreviewCanvas canvas)""" |
54f9ee45 | 4560 | return _windows_.PrintPreview_SetCanvas(*args, **kwargs) |
e811c8ce RD |
4561 | |
4562 | def GetFrame(*args, **kwargs): | |
a95a7133 | 4563 | """GetFrame(self) -> Frame""" |
54f9ee45 | 4564 | return _windows_.PrintPreview_GetFrame(*args, **kwargs) |
e811c8ce RD |
4565 | |
4566 | def GetCanvas(*args, **kwargs): | |
a95a7133 | 4567 | """GetCanvas(self) -> PreviewCanvas""" |
54f9ee45 | 4568 | return _windows_.PrintPreview_GetCanvas(*args, **kwargs) |
e811c8ce RD |
4569 | |
4570 | def PaintPage(*args, **kwargs): | |
a95a7133 | 4571 | """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool""" |
54f9ee45 | 4572 | return _windows_.PrintPreview_PaintPage(*args, **kwargs) |
e811c8ce RD |
4573 | |
4574 | def DrawBlankPage(*args, **kwargs): | |
a95a7133 | 4575 | """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool""" |
54f9ee45 | 4576 | return _windows_.PrintPreview_DrawBlankPage(*args, **kwargs) |
e811c8ce RD |
4577 | |
4578 | def RenderPage(*args, **kwargs): | |
a95a7133 | 4579 | """RenderPage(self, int pageNum) -> bool""" |
54f9ee45 | 4580 | return _windows_.PrintPreview_RenderPage(*args, **kwargs) |
e811c8ce RD |
4581 | |
4582 | def AdjustScrollbars(*args, **kwargs): | |
a95a7133 | 4583 | """AdjustScrollbars(self, PreviewCanvas canvas)""" |
54f9ee45 | 4584 | return _windows_.PrintPreview_AdjustScrollbars(*args, **kwargs) |
e811c8ce RD |
4585 | |
4586 | def GetPrintDialogData(*args, **kwargs): | |
a95a7133 | 4587 | """GetPrintDialogData(self) -> PrintDialogData""" |
54f9ee45 | 4588 | return _windows_.PrintPreview_GetPrintDialogData(*args, **kwargs) |
e811c8ce RD |
4589 | |
4590 | def SetZoom(*args, **kwargs): | |
a95a7133 | 4591 | """SetZoom(self, int percent)""" |
54f9ee45 | 4592 | return _windows_.PrintPreview_SetZoom(*args, **kwargs) |
e811c8ce RD |
4593 | |
4594 | def GetZoom(*args, **kwargs): | |
a95a7133 | 4595 | """GetZoom(self) -> int""" |
54f9ee45 | 4596 | return _windows_.PrintPreview_GetZoom(*args, **kwargs) |
e811c8ce RD |
4597 | |
4598 | def GetMaxPage(*args, **kwargs): | |
a95a7133 | 4599 | """GetMaxPage(self) -> int""" |
54f9ee45 | 4600 | return _windows_.PrintPreview_GetMaxPage(*args, **kwargs) |
e811c8ce RD |
4601 | |
4602 | def GetMinPage(*args, **kwargs): | |
a95a7133 | 4603 | """GetMinPage(self) -> int""" |
54f9ee45 | 4604 | return _windows_.PrintPreview_GetMinPage(*args, **kwargs) |
e811c8ce RD |
4605 | |
4606 | def Ok(*args, **kwargs): | |
a95a7133 | 4607 | """Ok(self) -> bool""" |
54f9ee45 | 4608 | return _windows_.PrintPreview_Ok(*args, **kwargs) |
e811c8ce RD |
4609 | |
4610 | def SetOk(*args, **kwargs): | |
a95a7133 | 4611 | """SetOk(self, bool ok)""" |
54f9ee45 | 4612 | return _windows_.PrintPreview_SetOk(*args, **kwargs) |
e811c8ce RD |
4613 | |
4614 | def Print(*args, **kwargs): | |
a95a7133 | 4615 | """Print(self, bool interactive) -> bool""" |
54f9ee45 | 4616 | return _windows_.PrintPreview_Print(*args, **kwargs) |
e811c8ce RD |
4617 | |
4618 | def DetermineScaling(*args, **kwargs): | |
a95a7133 | 4619 | """DetermineScaling(self)""" |
54f9ee45 | 4620 | return _windows_.PrintPreview_DetermineScaling(*args, **kwargs) |
e811c8ce | 4621 | |
d14a1e28 | 4622 | def __nonzero__(self): return self.Ok() |
d14a1e28 RD |
4623 | |
4624 | class PrintPreviewPtr(PrintPreview): | |
4625 | def __init__(self, this): | |
4626 | self.this = this | |
4627 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4628 | self.__class__ = PrintPreview | |
54f9ee45 | 4629 | _windows_.PrintPreview_swigregister(PrintPreviewPtr) |
d14a1e28 RD |
4630 | |
4631 | class PyPrintPreview(PrintPreview): | |
e811c8ce RD |
4632 | def __repr__(self): |
4633 | return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4276dc52 RD |
4634 | def __init__(self, *args): |
4635 | """ | |
a95a7133 RD |
4636 | __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview |
4637 | __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview | |
4276dc52 | 4638 | """ |
54f9ee45 | 4639 | newobj = _windows_.new_PyPrintPreview(*args) |
d14a1e28 RD |
4640 | self.this = newobj.this |
4641 | self.thisown = 1 | |
4642 | del newobj.thisown | |
4643 | self._setCallbackInfo(self, PyPrintPreview) | |
e811c8ce RD |
4644 | |
4645 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 4646 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 4647 | return _windows_.PyPrintPreview__setCallbackInfo(*args, **kwargs) |
e811c8ce RD |
4648 | |
4649 | def base_SetCurrentPage(*args, **kwargs): | |
a95a7133 | 4650 | """base_SetCurrentPage(self, int pageNum) -> bool""" |
54f9ee45 | 4651 | return _windows_.PyPrintPreview_base_SetCurrentPage(*args, **kwargs) |
e811c8ce RD |
4652 | |
4653 | def base_PaintPage(*args, **kwargs): | |
a95a7133 | 4654 | """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool""" |
54f9ee45 | 4655 | return _windows_.PyPrintPreview_base_PaintPage(*args, **kwargs) |
e811c8ce RD |
4656 | |
4657 | def base_DrawBlankPage(*args, **kwargs): | |
a95a7133 | 4658 | """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool""" |
54f9ee45 | 4659 | return _windows_.PyPrintPreview_base_DrawBlankPage(*args, **kwargs) |
e811c8ce RD |
4660 | |
4661 | def base_RenderPage(*args, **kwargs): | |
a95a7133 | 4662 | """base_RenderPage(self, int pageNum) -> bool""" |
54f9ee45 | 4663 | return _windows_.PyPrintPreview_base_RenderPage(*args, **kwargs) |
e811c8ce RD |
4664 | |
4665 | def base_SetZoom(*args, **kwargs): | |
a95a7133 | 4666 | """base_SetZoom(self, int percent)""" |
54f9ee45 | 4667 | return _windows_.PyPrintPreview_base_SetZoom(*args, **kwargs) |
e811c8ce RD |
4668 | |
4669 | def base_Print(*args, **kwargs): | |
a95a7133 | 4670 | """base_Print(self, bool interactive) -> bool""" |
54f9ee45 | 4671 | return _windows_.PyPrintPreview_base_Print(*args, **kwargs) |
e811c8ce RD |
4672 | |
4673 | def base_DetermineScaling(*args, **kwargs): | |
a95a7133 | 4674 | """base_DetermineScaling(self)""" |
54f9ee45 | 4675 | return _windows_.PyPrintPreview_base_DetermineScaling(*args, **kwargs) |
e811c8ce | 4676 | |
d14a1e28 RD |
4677 | |
4678 | class PyPrintPreviewPtr(PyPrintPreview): | |
4679 | def __init__(self, this): | |
4680 | self.this = this | |
4681 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4682 | self.__class__ = PyPrintPreview | |
54f9ee45 | 4683 | _windows_.PyPrintPreview_swigregister(PyPrintPreviewPtr) |
d14a1e28 RD |
4684 | |
4685 | class PyPreviewFrame(PreviewFrame): | |
e811c8ce RD |
4686 | def __repr__(self): |
4687 | return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4688 | def __init__(self, *args, **kwargs): |
0df68c9f | 4689 | """ |
a95a7133 | 4690 | __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition, |
196addbf | 4691 | Size size=DefaultSize, |
b2dc1044 | 4692 | long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame |
0df68c9f | 4693 | """ |
54f9ee45 | 4694 | newobj = _windows_.new_PyPreviewFrame(*args, **kwargs) |
d14a1e28 RD |
4695 | self.this = newobj.this |
4696 | self.thisown = 1 | |
4697 | del newobj.thisown | |
4698 | self._setCallbackInfo(self, PyPreviewFrame); self._setOORInfo(self) | |
e811c8ce RD |
4699 | |
4700 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 4701 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 4702 | return _windows_.PyPreviewFrame__setCallbackInfo(*args, **kwargs) |
e811c8ce RD |
4703 | |
4704 | def SetPreviewCanvas(*args, **kwargs): | |
a95a7133 | 4705 | """SetPreviewCanvas(self, PreviewCanvas canvas)""" |
54f9ee45 | 4706 | return _windows_.PyPreviewFrame_SetPreviewCanvas(*args, **kwargs) |
e811c8ce RD |
4707 | |
4708 | def SetControlBar(*args, **kwargs): | |
a95a7133 | 4709 | """SetControlBar(self, PreviewControlBar bar)""" |
54f9ee45 | 4710 | return _windows_.PyPreviewFrame_SetControlBar(*args, **kwargs) |
e811c8ce RD |
4711 | |
4712 | def base_Initialize(*args, **kwargs): | |
a95a7133 | 4713 | """base_Initialize(self)""" |
54f9ee45 | 4714 | return _windows_.PyPreviewFrame_base_Initialize(*args, **kwargs) |
e811c8ce RD |
4715 | |
4716 | def base_CreateCanvas(*args, **kwargs): | |
a95a7133 | 4717 | """base_CreateCanvas(self)""" |
54f9ee45 | 4718 | return _windows_.PyPreviewFrame_base_CreateCanvas(*args, **kwargs) |
e811c8ce RD |
4719 | |
4720 | def base_CreateControlBar(*args, **kwargs): | |
a95a7133 | 4721 | """base_CreateControlBar(self)""" |
54f9ee45 | 4722 | return _windows_.PyPreviewFrame_base_CreateControlBar(*args, **kwargs) |
e811c8ce | 4723 | |
d14a1e28 RD |
4724 | |
4725 | class PyPreviewFramePtr(PyPreviewFrame): | |
4726 | def __init__(self, this): | |
4727 | self.this = this | |
4728 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4729 | self.__class__ = PyPreviewFrame | |
54f9ee45 | 4730 | _windows_.PyPreviewFrame_swigregister(PyPreviewFramePtr) |
d14a1e28 RD |
4731 | |
4732 | class PyPreviewControlBar(PreviewControlBar): | |
e811c8ce RD |
4733 | def __repr__(self): |
4734 | return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4735 | def __init__(self, *args, **kwargs): |
0df68c9f | 4736 | """ |
a95a7133 | 4737 | __init__(self, PrintPreview preview, long buttons, Window parent, |
0df68c9f | 4738 | Point pos=DefaultPosition, Size size=DefaultSize, |
196addbf | 4739 | long style=0, String name=PanelNameStr) -> PyPreviewControlBar |
0df68c9f | 4740 | """ |
54f9ee45 | 4741 | newobj = _windows_.new_PyPreviewControlBar(*args, **kwargs) |
d14a1e28 RD |
4742 | self.this = newobj.this |
4743 | self.thisown = 1 | |
4744 | del newobj.thisown | |
4745 | self._setCallbackInfo(self, PyPreviewControlBar); self._setOORInfo(self) | |
e811c8ce RD |
4746 | |
4747 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 4748 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 4749 | return _windows_.PyPreviewControlBar__setCallbackInfo(*args, **kwargs) |
e811c8ce RD |
4750 | |
4751 | def SetPrintPreview(*args, **kwargs): | |
a95a7133 | 4752 | """SetPrintPreview(self, PrintPreview preview)""" |
54f9ee45 | 4753 | return _windows_.PyPreviewControlBar_SetPrintPreview(*args, **kwargs) |
e811c8ce RD |
4754 | |
4755 | def base_CreateButtons(*args, **kwargs): | |
a95a7133 | 4756 | """base_CreateButtons(self)""" |
54f9ee45 | 4757 | return _windows_.PyPreviewControlBar_base_CreateButtons(*args, **kwargs) |
e811c8ce RD |
4758 | |
4759 | def base_SetZoomControl(*args, **kwargs): | |
a95a7133 | 4760 | """base_SetZoomControl(self, int zoom)""" |
54f9ee45 | 4761 | return _windows_.PyPreviewControlBar_base_SetZoomControl(*args, **kwargs) |
e811c8ce | 4762 | |
d14a1e28 RD |
4763 | |
4764 | class PyPreviewControlBarPtr(PyPreviewControlBar): | |
4765 | def __init__(self, this): | |
4766 | self.this = this | |
4767 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4768 | self.__class__ = PyPreviewControlBar | |
54f9ee45 | 4769 | _windows_.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr) |
8ab979d7 | 4770 | |
8ab979d7 | 4771 |