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