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