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