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