]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_windows.py
Removed calls to wx.InitAllImageHandlers.
[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
15afbcd0
RD
30
31 Create the GUI part of the Window for 2-phase creation mode.
0df68c9f 32 """
54f9ee45 33 return _windows_.Panel_Create(*args, **kwargs)
e811c8ce
RD
34
35 def InitDialog(*args, **kwargs):
74a57fcd 36 """
a95a7133 37 InitDialog(self)
74a57fcd 38
41e2b43e
RD
39 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
40 to the dialog via validators.
74a57fcd 41 """
54f9ee45 42 return _windows_.Panel_InitDialog(*args, **kwargs)
e811c8ce 43
22bfe96c
RD
44 def GetClassDefaultAttributes(*args, **kwargs):
45 """
46 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
47
41e2b43e
RD
48 Get the default attributes for this class. This is useful if you want
49 to use the same font or colour in your own control as in a standard
50 control -- which is a much better idea than hard coding specific
db3e571a
RD
51 colours or fonts which might look completely out of place on the
52 user's system, especially if it uses themes.
22bfe96c
RD
53
54 The variant parameter is only relevant under Mac currently and is
41e2b43e 55 ignore under other platforms. Under Mac, it will change the size of
db3e571a
RD
56 the returned font. See `wx.Window.SetWindowVariant` for more about
57 this.
22bfe96c
RD
58 """
59 return _windows_.Panel_GetClassDefaultAttributes(*args, **kwargs)
60
61 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
a323d3bd 62
d14a1e28
RD
63class PanelPtr(Panel):
64 def __init__(self, this):
65 self.this = this
66 if not hasattr(self,"thisown"): self.thisown = 0
67 self.__class__ = Panel
54f9ee45 68_windows_.Panel_swigregister(PanelPtr)
b8b8dda7 69
d14a1e28 70def PrePanel(*args, **kwargs):
e811c8ce 71 """PrePanel() -> Panel"""
54f9ee45 72 val = _windows_.new_PrePanel(*args, **kwargs)
d14a1e28
RD
73 val.thisown = 1
74 return val
b8b8dda7 75
22bfe96c
RD
76def Panel_GetClassDefaultAttributes(*args, **kwargs):
77 """
78 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
79
41e2b43e
RD
80 Get the default attributes for this class. This is useful if you want
81 to use the same font or colour in your own control as in a standard
82 control -- which is a much better idea than hard coding specific
db3e571a
RD
83 colours or fonts which might look completely out of place on the
84 user's system, especially if it uses themes.
22bfe96c
RD
85
86 The variant parameter is only relevant under Mac currently and is
41e2b43e 87 ignore under other platforms. Under Mac, it will change the size of
db3e571a
RD
88 the returned font. See `wx.Window.SetWindowVariant` for more about
89 this.
22bfe96c
RD
90 """
91 return _windows_.Panel_GetClassDefaultAttributes(*args, **kwargs)
92
d14a1e28 93#---------------------------------------------------------------------------
b8b8dda7 94
d14a1e28 95class ScrolledWindow(Panel):
e811c8ce
RD
96 def __repr__(self):
97 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 98 def __init__(self, *args, **kwargs):
0df68c9f 99 """
a95a7133 100 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
0df68c9f 101 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
196addbf 102 String name=PanelNameStr) -> ScrolledWindow
0df68c9f 103 """
54f9ee45 104 newobj = _windows_.new_ScrolledWindow(*args, **kwargs)
d14a1e28
RD
105 self.this = newobj.this
106 self.thisown = 1
107 del newobj.thisown
108 self._setOORInfo(self)
e811c8ce
RD
109
110 def Create(*args, **kwargs):
0df68c9f 111 """
a95a7133 112 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
0df68c9f 113 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
196addbf 114 String name=PanelNameStr) -> bool
15afbcd0
RD
115
116 Create the GUI part of the Window for 2-phase creation mode.
0df68c9f 117 """
54f9ee45 118 return _windows_.ScrolledWindow_Create(*args, **kwargs)
e811c8ce
RD
119
120 def SetScrollbars(*args, **kwargs):
0df68c9f 121 """
a95a7133 122 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
0df68c9f
RD
123 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
124 """
54f9ee45 125 return _windows_.ScrolledWindow_SetScrollbars(*args, **kwargs)
e811c8ce
RD
126
127 def Scroll(*args, **kwargs):
a95a7133 128 """Scroll(self, int x, int y)"""
54f9ee45 129 return _windows_.ScrolledWindow_Scroll(*args, **kwargs)
e811c8ce
RD
130
131 def GetScrollPageSize(*args, **kwargs):
a95a7133 132 """GetScrollPageSize(self, int orient) -> int"""
54f9ee45 133 return _windows_.ScrolledWindow_GetScrollPageSize(*args, **kwargs)
e811c8ce
RD
134
135 def SetScrollPageSize(*args, **kwargs):
a95a7133 136 """SetScrollPageSize(self, int orient, int pageSize)"""
54f9ee45 137 return _windows_.ScrolledWindow_SetScrollPageSize(*args, **kwargs)
e811c8ce
RD
138
139 def SetScrollRate(*args, **kwargs):
a95a7133 140 """SetScrollRate(self, int xstep, int ystep)"""
54f9ee45 141 return _windows_.ScrolledWindow_SetScrollRate(*args, **kwargs)
e811c8ce
RD
142
143 def GetScrollPixelsPerUnit(*args, **kwargs):
41e2b43e 144 """GetScrollPixelsPerUnit() -> (xUnit, yUnit)"""
54f9ee45 145 return _windows_.ScrolledWindow_GetScrollPixelsPerUnit(*args, **kwargs)
e811c8ce
RD
146
147 def EnableScrolling(*args, **kwargs):
a95a7133 148 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
54f9ee45 149 return _windows_.ScrolledWindow_EnableScrolling(*args, **kwargs)
e811c8ce
RD
150
151 def GetViewStart(*args, **kwargs):
41e2b43e 152 """GetViewStart() -> (x,y)"""
54f9ee45 153 return _windows_.ScrolledWindow_GetViewStart(*args, **kwargs)
e811c8ce
RD
154
155 def SetScale(*args, **kwargs):
a95a7133 156 """SetScale(self, double xs, double ys)"""
54f9ee45 157 return _windows_.ScrolledWindow_SetScale(*args, **kwargs)
e811c8ce
RD
158
159 def GetScaleX(*args, **kwargs):
a95a7133 160 """GetScaleX(self) -> double"""
54f9ee45 161 return _windows_.ScrolledWindow_GetScaleX(*args, **kwargs)
e811c8ce
RD
162
163 def GetScaleY(*args, **kwargs):
a95a7133 164 """GetScaleY(self) -> double"""
54f9ee45 165 return _windows_.ScrolledWindow_GetScaleY(*args, **kwargs)
e811c8ce
RD
166
167 def CalcScrolledPosition(*args):
0df68c9f 168 """
a95a7133 169 CalcScrolledPosition(self, Point pt) -> Point
0df68c9f 170 CalcScrolledPosition(int x, int y) -> (sx, sy)
322913ce 171
0df68c9f
RD
172 Translate between scrolled and unscrolled coordinates.
173 """
54f9ee45 174 return _windows_.ScrolledWindow_CalcScrolledPosition(*args)
e811c8ce
RD
175
176 def CalcUnscrolledPosition(*args):
0df68c9f 177 """
a95a7133 178 CalcUnscrolledPosition(self, Point pt) -> Point
0df68c9f 179 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
322913ce 180
0df68c9f
RD
181 Translate between scrolled and unscrolled coordinates.
182 """
54f9ee45 183 return _windows_.ScrolledWindow_CalcUnscrolledPosition(*args)
e811c8ce
RD
184
185 def AdjustScrollbars(*args, **kwargs):
a95a7133 186 """AdjustScrollbars(self)"""
54f9ee45 187 return _windows_.ScrolledWindow_AdjustScrollbars(*args, **kwargs)
e811c8ce
RD
188
189 def CalcScrollInc(*args, **kwargs):
a95a7133 190 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
54f9ee45 191 return _windows_.ScrolledWindow_CalcScrollInc(*args, **kwargs)
e811c8ce
RD
192
193 def SetTargetWindow(*args, **kwargs):
a95a7133 194 """SetTargetWindow(self, Window target)"""
54f9ee45 195 return _windows_.ScrolledWindow_SetTargetWindow(*args, **kwargs)
e811c8ce
RD
196
197 def GetTargetWindow(*args, **kwargs):
a95a7133 198 """GetTargetWindow(self) -> Window"""
54f9ee45 199 return _windows_.ScrolledWindow_GetTargetWindow(*args, **kwargs)
e811c8ce 200
22bfe96c
RD
201 def GetClassDefaultAttributes(*args, **kwargs):
202 """
203 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
204
41e2b43e
RD
205 Get the default attributes for this class. This is useful if you want
206 to use the same font or colour in your own control as in a standard
207 control -- which is a much better idea than hard coding specific
db3e571a
RD
208 colours or fonts which might look completely out of place on the
209 user's system, especially if it uses themes.
22bfe96c
RD
210
211 The variant parameter is only relevant under Mac currently and is
41e2b43e 212 ignore under other platforms. Under Mac, it will change the size of
db3e571a
RD
213 the returned font. See `wx.Window.SetWindowVariant` for more about
214 this.
22bfe96c
RD
215 """
216 return _windows_.ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs)
217
218 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
d14a1e28
RD
219
220class ScrolledWindowPtr(ScrolledWindow):
221 def __init__(self, this):
222 self.this = this
223 if not hasattr(self,"thisown"): self.thisown = 0
224 self.__class__ = ScrolledWindow
54f9ee45 225_windows_.ScrolledWindow_swigregister(ScrolledWindowPtr)
d14a1e28
RD
226
227def PreScrolledWindow(*args, **kwargs):
e811c8ce 228 """PreScrolledWindow() -> ScrolledWindow"""
54f9ee45 229 val = _windows_.new_PreScrolledWindow(*args, **kwargs)
d14a1e28
RD
230 val.thisown = 1
231 return val
232
22bfe96c
RD
233def ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs):
234 """
235 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
236
41e2b43e
RD
237 Get the default attributes for this class. This is useful if you want
238 to use the same font or colour in your own control as in a standard
239 control -- which is a much better idea than hard coding specific
db3e571a
RD
240 colours or fonts which might look completely out of place on the
241 user's system, especially if it uses themes.
22bfe96c
RD
242
243 The variant parameter is only relevant under Mac currently and is
41e2b43e 244 ignore under other platforms. Under Mac, it will change the size of
db3e571a
RD
245 the returned font. See `wx.Window.SetWindowVariant` for more about
246 this.
22bfe96c
RD
247 """
248 return _windows_.ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs)
249
d14a1e28
RD
250#---------------------------------------------------------------------------
251
54f9ee45
RD
252STAY_ON_TOP = _windows_.STAY_ON_TOP
253ICONIZE = _windows_.ICONIZE
254MINIMIZE = _windows_.MINIMIZE
255MAXIMIZE = _windows_.MAXIMIZE
256CLOSE_BOX = _windows_.CLOSE_BOX
257THICK_FRAME = _windows_.THICK_FRAME
258SYSTEM_MENU = _windows_.SYSTEM_MENU
259MINIMIZE_BOX = _windows_.MINIMIZE_BOX
260MAXIMIZE_BOX = _windows_.MAXIMIZE_BOX
261TINY_CAPTION_HORIZ = _windows_.TINY_CAPTION_HORIZ
262TINY_CAPTION_VERT = _windows_.TINY_CAPTION_VERT
263RESIZE_BOX = _windows_.RESIZE_BOX
264RESIZE_BORDER = _windows_.RESIZE_BORDER
265DIALOG_NO_PARENT = _windows_.DIALOG_NO_PARENT
266DEFAULT_FRAME_STYLE = _windows_.DEFAULT_FRAME_STYLE
267DEFAULT_DIALOG_STYLE = _windows_.DEFAULT_DIALOG_STYLE
268FRAME_TOOL_WINDOW = _windows_.FRAME_TOOL_WINDOW
269FRAME_FLOAT_ON_PARENT = _windows_.FRAME_FLOAT_ON_PARENT
270FRAME_NO_WINDOW_MENU = _windows_.FRAME_NO_WINDOW_MENU
271FRAME_NO_TASKBAR = _windows_.FRAME_NO_TASKBAR
272FRAME_SHAPED = _windows_.FRAME_SHAPED
273DIALOG_MODAL = _windows_.DIALOG_MODAL
274DIALOG_MODELESS = _windows_.DIALOG_MODELESS
275USER_COLOURS = _windows_.USER_COLOURS
276NO_3D = _windows_.NO_3D
277FULLSCREEN_NOMENUBAR = _windows_.FULLSCREEN_NOMENUBAR
278FULLSCREEN_NOTOOLBAR = _windows_.FULLSCREEN_NOTOOLBAR
279FULLSCREEN_NOSTATUSBAR = _windows_.FULLSCREEN_NOSTATUSBAR
280FULLSCREEN_NOBORDER = _windows_.FULLSCREEN_NOBORDER
281FULLSCREEN_NOCAPTION = _windows_.FULLSCREEN_NOCAPTION
282FULLSCREEN_ALL = _windows_.FULLSCREEN_ALL
283TOPLEVEL_EX_DIALOG = _windows_.TOPLEVEL_EX_DIALOG
284class TopLevelWindow(_core.Window):
d14a1e28
RD
285 def __init__(self): raise RuntimeError, "No constructor defined"
286 def __repr__(self):
287 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e811c8ce 288 def Maximize(*args, **kwargs):
a95a7133 289 """Maximize(self, bool maximize=True)"""
54f9ee45 290 return _windows_.TopLevelWindow_Maximize(*args, **kwargs)
e811c8ce
RD
291
292 def Restore(*args, **kwargs):
a95a7133 293 """Restore(self)"""
54f9ee45 294 return _windows_.TopLevelWindow_Restore(*args, **kwargs)
e811c8ce
RD
295
296 def Iconize(*args, **kwargs):
a95a7133 297 """Iconize(self, bool iconize=True)"""
54f9ee45 298 return _windows_.TopLevelWindow_Iconize(*args, **kwargs)
e811c8ce
RD
299
300 def IsMaximized(*args, **kwargs):
a95a7133 301 """IsMaximized(self) -> bool"""
54f9ee45 302 return _windows_.TopLevelWindow_IsMaximized(*args, **kwargs)
e811c8ce
RD
303
304 def IsIconized(*args, **kwargs):
a95a7133 305 """IsIconized(self) -> bool"""
54f9ee45 306 return _windows_.TopLevelWindow_IsIconized(*args, **kwargs)
e811c8ce
RD
307
308 def GetIcon(*args, **kwargs):
a95a7133 309 """GetIcon(self) -> Icon"""
54f9ee45 310 return _windows_.TopLevelWindow_GetIcon(*args, **kwargs)
e811c8ce
RD
311
312 def SetIcon(*args, **kwargs):
a95a7133 313 """SetIcon(self, Icon icon)"""
54f9ee45 314 return _windows_.TopLevelWindow_SetIcon(*args, **kwargs)
e811c8ce
RD
315
316 def SetIcons(*args, **kwargs):
a95a7133 317 """SetIcons(self, wxIconBundle icons)"""
54f9ee45 318 return _windows_.TopLevelWindow_SetIcons(*args, **kwargs)
e811c8ce
RD
319
320 def ShowFullScreen(*args, **kwargs):
a95a7133 321 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
54f9ee45 322 return _windows_.TopLevelWindow_ShowFullScreen(*args, **kwargs)
e811c8ce
RD
323
324 def IsFullScreen(*args, **kwargs):
a95a7133 325 """IsFullScreen(self) -> bool"""
54f9ee45 326 return _windows_.TopLevelWindow_IsFullScreen(*args, **kwargs)
e811c8ce
RD
327
328 def SetTitle(*args, **kwargs):
15afbcd0 329 """
a95a7133 330 SetTitle(self, String title)
15afbcd0
RD
331
332 Sets the window's title. Applicable only to frames and dialogs.
333 """
54f9ee45 334 return _windows_.TopLevelWindow_SetTitle(*args, **kwargs)
e811c8ce
RD
335
336 def GetTitle(*args, **kwargs):
15afbcd0 337 """
a95a7133 338 GetTitle(self) -> String
15afbcd0
RD
339
340 Gets the window's title. Applicable only to frames and dialogs.
341 """
54f9ee45 342 return _windows_.TopLevelWindow_GetTitle(*args, **kwargs)
e811c8ce
RD
343
344 def SetShape(*args, **kwargs):
a95a7133 345 """SetShape(self, Region region) -> bool"""
54f9ee45 346 return _windows_.TopLevelWindow_SetShape(*args, **kwargs)
e811c8ce 347
8ab979d7 348
d14a1e28
RD
349class TopLevelWindowPtr(TopLevelWindow):
350 def __init__(self, this):
351 self.this = this
352 if not hasattr(self,"thisown"): self.thisown = 0
353 self.__class__ = TopLevelWindow
54f9ee45
RD
354_windows_.TopLevelWindow_swigregister(TopLevelWindowPtr)
355cvar = _windows_.cvar
b2dc1044
RD
356FrameNameStr = cvar.FrameNameStr
357DialogNameStr = cvar.DialogNameStr
358StatusLineNameStr = cvar.StatusLineNameStr
359ToolBarNameStr = cvar.ToolBarNameStr
d14a1e28
RD
360
361#---------------------------------------------------------------------------
362
363class Frame(TopLevelWindow):
e811c8ce
RD
364 def __repr__(self):
365 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 366 def __init__(self, *args, **kwargs):
0df68c9f 367 """
a95a7133 368 __init__(self, Window parent, int id, String title, Point pos=DefaultPosition,
0df68c9f 369 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
b2dc1044 370 String name=FrameNameStr) -> Frame
0df68c9f 371 """
54f9ee45 372 newobj = _windows_.new_Frame(*args, **kwargs)
d14a1e28
RD
373 self.this = newobj.this
374 self.thisown = 1
375 del newobj.thisown
376 self._setOORInfo(self)
e811c8ce
RD
377
378 def Create(*args, **kwargs):
0df68c9f 379 """
a95a7133 380 Create(self, Window parent, int id, String title, Point pos=DefaultPosition,
0df68c9f 381 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
b2dc1044 382 String name=FrameNameStr) -> bool
0df68c9f 383 """
54f9ee45 384 return _windows_.Frame_Create(*args, **kwargs)
e811c8ce
RD
385
386 def GetClientAreaOrigin(*args, **kwargs):
15afbcd0 387 """
a95a7133 388 GetClientAreaOrigin(self) -> Point
15afbcd0
RD
389
390 Get the origin of the client area of the window relative to the
391 window's top left corner (the client area may be shifted because of
392 the borders, scrollbars, other decorations...)
393 """
54f9ee45 394 return _windows_.Frame_GetClientAreaOrigin(*args, **kwargs)
e811c8ce
RD
395
396 def SendSizeEvent(*args, **kwargs):
a95a7133 397 """SendSizeEvent(self)"""
54f9ee45 398 return _windows_.Frame_SendSizeEvent(*args, **kwargs)
e811c8ce
RD
399
400 def SetMenuBar(*args, **kwargs):
a95a7133 401 """SetMenuBar(self, MenuBar menubar)"""
54f9ee45 402 return _windows_.Frame_SetMenuBar(*args, **kwargs)
e811c8ce
RD
403
404 def GetMenuBar(*args, **kwargs):
a95a7133 405 """GetMenuBar(self) -> MenuBar"""
54f9ee45 406 return _windows_.Frame_GetMenuBar(*args, **kwargs)
e811c8ce
RD
407
408 def ProcessCommand(*args, **kwargs):
a95a7133 409 """ProcessCommand(self, int winid) -> bool"""
54f9ee45 410 return _windows_.Frame_ProcessCommand(*args, **kwargs)
e811c8ce 411
d14a1e28 412 Command = ProcessCommand
e811c8ce 413 def CreateStatusBar(*args, **kwargs):
0df68c9f 414 """
a95a7133 415 CreateStatusBar(self, int number=1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
4276dc52 416 int winid=0, String name=StatusLineNameStr) -> StatusBar
0df68c9f 417 """
54f9ee45 418 return _windows_.Frame_CreateStatusBar(*args, **kwargs)
e811c8ce
RD
419
420 def GetStatusBar(*args, **kwargs):
a95a7133 421 """GetStatusBar(self) -> StatusBar"""
54f9ee45 422 return _windows_.Frame_GetStatusBar(*args, **kwargs)
e811c8ce
RD
423
424 def SetStatusBar(*args, **kwargs):
a95a7133 425 """SetStatusBar(self, StatusBar statBar)"""
54f9ee45 426 return _windows_.Frame_SetStatusBar(*args, **kwargs)
e811c8ce
RD
427
428 def SetStatusText(*args, **kwargs):
a95a7133 429 """SetStatusText(self, String text, int number=0)"""
54f9ee45 430 return _windows_.Frame_SetStatusText(*args, **kwargs)
e811c8ce
RD
431
432 def SetStatusWidths(*args, **kwargs):
a95a7133 433 """SetStatusWidths(self, int widths, int widths_field)"""
54f9ee45 434 return _windows_.Frame_SetStatusWidths(*args, **kwargs)
e811c8ce
RD
435
436 def PushStatusText(*args, **kwargs):
a95a7133 437 """PushStatusText(self, String text, int number=0)"""
54f9ee45 438 return _windows_.Frame_PushStatusText(*args, **kwargs)
e811c8ce
RD
439
440 def PopStatusText(*args, **kwargs):
a95a7133 441 """PopStatusText(self, int number=0)"""
54f9ee45 442 return _windows_.Frame_PopStatusText(*args, **kwargs)
e811c8ce
RD
443
444 def SetStatusBarPane(*args, **kwargs):
a95a7133 445 """SetStatusBarPane(self, int n)"""
54f9ee45 446 return _windows_.Frame_SetStatusBarPane(*args, **kwargs)
e811c8ce
RD
447
448 def GetStatusBarPane(*args, **kwargs):
a95a7133 449 """GetStatusBarPane(self) -> int"""
54f9ee45 450 return _windows_.Frame_GetStatusBarPane(*args, **kwargs)
e811c8ce
RD
451
452 def CreateToolBar(*args, **kwargs):
a95a7133 453 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
54f9ee45 454 return _windows_.Frame_CreateToolBar(*args, **kwargs)
e811c8ce
RD
455
456 def GetToolBar(*args, **kwargs):
a95a7133 457 """GetToolBar(self) -> wxToolBar"""
54f9ee45 458 return _windows_.Frame_GetToolBar(*args, **kwargs)
e811c8ce
RD
459
460 def SetToolBar(*args, **kwargs):
a95a7133 461 """SetToolBar(self, wxToolBar toolbar)"""
54f9ee45 462 return _windows_.Frame_SetToolBar(*args, **kwargs)
e811c8ce
RD
463
464 def DoGiveHelp(*args, **kwargs):
a95a7133 465 """DoGiveHelp(self, String text, bool show)"""
54f9ee45 466 return _windows_.Frame_DoGiveHelp(*args, **kwargs)
e811c8ce
RD
467
468 def DoMenuUpdates(*args, **kwargs):
a95a7133 469 """DoMenuUpdates(self, Menu menu=None)"""
54f9ee45 470 return _windows_.Frame_DoMenuUpdates(*args, **kwargs)
e811c8ce 471
22bfe96c
RD
472 def GetClassDefaultAttributes(*args, **kwargs):
473 """
474 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
475
41e2b43e
RD
476 Get the default attributes for this class. This is useful if you want
477 to use the same font or colour in your own control as in a standard
478 control -- which is a much better idea than hard coding specific
db3e571a
RD
479 colours or fonts which might look completely out of place on the
480 user's system, especially if it uses themes.
22bfe96c
RD
481
482 The variant parameter is only relevant under Mac currently and is
41e2b43e 483 ignore under other platforms. Under Mac, it will change the size of
db3e571a
RD
484 the returned font. See `wx.Window.SetWindowVariant` for more about
485 this.
22bfe96c
RD
486 """
487 return _windows_.Frame_GetClassDefaultAttributes(*args, **kwargs)
488
489 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
8ab979d7 490
d14a1e28
RD
491class FramePtr(Frame):
492 def __init__(self, this):
2f90df85 493 self.this = this
d14a1e28
RD
494 if not hasattr(self,"thisown"): self.thisown = 0
495 self.__class__ = Frame
54f9ee45 496_windows_.Frame_swigregister(FramePtr)
d14a1e28
RD
497
498def PreFrame(*args, **kwargs):
e811c8ce 499 """PreFrame() -> Frame"""
54f9ee45 500 val = _windows_.new_PreFrame(*args, **kwargs)
d14a1e28
RD
501 val.thisown = 1
502 return val
503
22bfe96c
RD
504def Frame_GetClassDefaultAttributes(*args, **kwargs):
505 """
506 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
507
41e2b43e
RD
508 Get the default attributes for this class. This is useful if you want
509 to use the same font or colour in your own control as in a standard
510 control -- which is a much better idea than hard coding specific
db3e571a
RD
511 colours or fonts which might look completely out of place on the
512 user's system, especially if it uses themes.
22bfe96c
RD
513
514 The variant parameter is only relevant under Mac currently and is
41e2b43e 515 ignore under other platforms. Under Mac, it will change the size of
db3e571a
RD
516 the returned font. See `wx.Window.SetWindowVariant` for more about
517 this.
22bfe96c
RD
518 """
519 return _windows_.Frame_GetClassDefaultAttributes(*args, **kwargs)
520
d14a1e28
RD
521#---------------------------------------------------------------------------
522
523class Dialog(TopLevelWindow):
e811c8ce
RD
524 def __repr__(self):
525 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 526 def __init__(self, *args, **kwargs):
0df68c9f 527 """
a95a7133 528 __init__(self, Window parent, int id, String title, Point pos=DefaultPosition,
0df68c9f 529 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
b2dc1044 530 String name=DialogNameStr) -> Dialog
0df68c9f 531 """
54f9ee45 532 newobj = _windows_.new_Dialog(*args, **kwargs)
d14a1e28
RD
533 self.this = newobj.this
534 self.thisown = 1
535 del newobj.thisown
536 self._setOORInfo(self)
e811c8ce
RD
537
538 def Create(*args, **kwargs):
0df68c9f 539 """
a95a7133 540 Create(self, Window parent, int id, String title, Point pos=DefaultPosition,
0df68c9f 541 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
b2dc1044 542 String name=DialogNameStr) -> bool
0df68c9f 543 """
54f9ee45 544 return _windows_.Dialog_Create(*args, **kwargs)
e811c8ce
RD
545
546 def SetReturnCode(*args, **kwargs):
a95a7133 547 """SetReturnCode(self, int returnCode)"""
54f9ee45 548 return _windows_.Dialog_SetReturnCode(*args, **kwargs)
e811c8ce
RD
549
550 def GetReturnCode(*args, **kwargs):
a95a7133 551 """GetReturnCode(self) -> int"""
54f9ee45 552 return _windows_.Dialog_GetReturnCode(*args, **kwargs)
e811c8ce
RD
553
554 def CreateTextSizer(*args, **kwargs):
a95a7133 555 """CreateTextSizer(self, String message) -> Sizer"""
54f9ee45 556 return _windows_.Dialog_CreateTextSizer(*args, **kwargs)
e811c8ce
RD
557
558 def CreateButtonSizer(*args, **kwargs):
a95a7133 559 """CreateButtonSizer(self, long flags) -> Sizer"""
54f9ee45 560 return _windows_.Dialog_CreateButtonSizer(*args, **kwargs)
e811c8ce 561
e811c8ce 562 def IsModal(*args, **kwargs):
a95a7133 563 """IsModal(self) -> bool"""
54f9ee45 564 return _windows_.Dialog_IsModal(*args, **kwargs)
e811c8ce
RD
565
566 def ShowModal(*args, **kwargs):
a95a7133 567 """ShowModal(self) -> int"""
54f9ee45 568 return _windows_.Dialog_ShowModal(*args, **kwargs)
e811c8ce
RD
569
570 def EndModal(*args, **kwargs):
a95a7133 571 """EndModal(self, int retCode)"""
54f9ee45 572 return _windows_.Dialog_EndModal(*args, **kwargs)
e811c8ce 573
22bfe96c
RD
574 def GetClassDefaultAttributes(*args, **kwargs):
575 """
576 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
577
41e2b43e
RD
578 Get the default attributes for this class. This is useful if you want
579 to use the same font or colour in your own control as in a standard
580 control -- which is a much better idea than hard coding specific
db3e571a
RD
581 colours or fonts which might look completely out of place on the
582 user's system, especially if it uses themes.
22bfe96c
RD
583
584 The variant parameter is only relevant under Mac currently and is
41e2b43e 585 ignore under other platforms. Under Mac, it will change the size of
db3e571a
RD
586 the returned font. See `wx.Window.SetWindowVariant` for more about
587 this.
22bfe96c
RD
588 """
589 return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs)
590
591 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
d14a1e28
RD
592
593class DialogPtr(Dialog):
594 def __init__(self, this):
595 self.this = this
596 if not hasattr(self,"thisown"): self.thisown = 0
597 self.__class__ = Dialog
54f9ee45 598_windows_.Dialog_swigregister(DialogPtr)
d14a1e28
RD
599
600def PreDialog(*args, **kwargs):
e811c8ce 601 """PreDialog() -> Dialog"""
54f9ee45 602 val = _windows_.new_PreDialog(*args, **kwargs)
d14a1e28
RD
603 val.thisown = 1
604 return val
605
22bfe96c
RD
606def Dialog_GetClassDefaultAttributes(*args, **kwargs):
607 """
608 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
609
41e2b43e
RD
610 Get the default attributes for this class. This is useful if you want
611 to use the same font or colour in your own control as in a standard
612 control -- which is a much better idea than hard coding specific
db3e571a
RD
613 colours or fonts which might look completely out of place on the
614 user's system, especially if it uses themes.
22bfe96c
RD
615
616 The variant parameter is only relevant under Mac currently and is
41e2b43e 617 ignore under other platforms. Under Mac, it will change the size of
db3e571a
RD
618 the returned font. See `wx.Window.SetWindowVariant` for more about
619 this.
22bfe96c
RD
620 """
621 return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs)
622
d14a1e28
RD
623#---------------------------------------------------------------------------
624
625class MiniFrame(Frame):
e811c8ce
RD
626 def __repr__(self):
627 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 628 def __init__(self, *args, **kwargs):
0df68c9f 629 """
a95a7133 630 __init__(self, Window parent, int id, String title, Point pos=DefaultPosition,
0df68c9f 631 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
b2dc1044 632 String name=FrameNameStr) -> MiniFrame
0df68c9f 633 """
54f9ee45 634 newobj = _windows_.new_MiniFrame(*args, **kwargs)
d14a1e28 635 self.this = newobj.this
2f90df85 636 self.thisown = 1
d14a1e28 637 del newobj.thisown
0220cbc1 638 self._setOORInfo(self)
e811c8ce
RD
639
640 def Create(*args, **kwargs):
0df68c9f 641 """
a95a7133 642 Create(self, Window parent, int id, String title, Point pos=DefaultPosition,
0df68c9f 643 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
b2dc1044 644 String name=FrameNameStr) -> bool
0df68c9f 645 """
54f9ee45 646 return _windows_.MiniFrame_Create(*args, **kwargs)
e811c8ce 647
2f90df85 648
d14a1e28
RD
649class MiniFramePtr(MiniFrame):
650 def __init__(self, this):
651 self.this = this
652 if not hasattr(self,"thisown"): self.thisown = 0
653 self.__class__ = MiniFrame
54f9ee45 654_windows_.MiniFrame_swigregister(MiniFramePtr)
2f90df85 655
d14a1e28 656def PreMiniFrame(*args, **kwargs):
e811c8ce 657 """PreMiniFrame() -> MiniFrame"""
54f9ee45 658 val = _windows_.new_PreMiniFrame(*args, **kwargs)
d14a1e28
RD
659 val.thisown = 1
660 return val
2f90df85 661
d14a1e28
RD
662#---------------------------------------------------------------------------
663
54f9ee45
RD
664SPLASH_CENTRE_ON_PARENT = _windows_.SPLASH_CENTRE_ON_PARENT
665SPLASH_CENTRE_ON_SCREEN = _windows_.SPLASH_CENTRE_ON_SCREEN
666SPLASH_NO_CENTRE = _windows_.SPLASH_NO_CENTRE
667SPLASH_TIMEOUT = _windows_.SPLASH_TIMEOUT
668SPLASH_NO_TIMEOUT = _windows_.SPLASH_NO_TIMEOUT
669class SplashScreenWindow(_core.Window):
e811c8ce
RD
670 def __repr__(self):
671 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 672 def __init__(self, *args, **kwargs):
0df68c9f 673 """
a95a7133 674 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
0df68c9f
RD
675 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
676 """
54f9ee45 677 newobj = _windows_.new_SplashScreenWindow(*args, **kwargs)
d14a1e28
RD
678 self.this = newobj.this
679 self.thisown = 1
680 del newobj.thisown
681 self._setOORInfo(self)
e811c8ce
RD
682
683 def SetBitmap(*args, **kwargs):
a95a7133 684 """SetBitmap(self, Bitmap bitmap)"""
54f9ee45 685 return _windows_.SplashScreenWindow_SetBitmap(*args, **kwargs)
e811c8ce
RD
686
687 def GetBitmap(*args, **kwargs):
a95a7133 688 """GetBitmap(self) -> Bitmap"""
54f9ee45 689 return _windows_.SplashScreenWindow_GetBitmap(*args, **kwargs)
e811c8ce 690
2f90df85 691
d14a1e28
RD
692class SplashScreenWindowPtr(SplashScreenWindow):
693 def __init__(self, this):
2f90df85 694 self.this = this
d14a1e28
RD
695 if not hasattr(self,"thisown"): self.thisown = 0
696 self.__class__ = SplashScreenWindow
54f9ee45 697_windows_.SplashScreenWindow_swigregister(SplashScreenWindowPtr)
d14a1e28
RD
698
699class SplashScreen(Frame):
e811c8ce
RD
700 def __repr__(self):
701 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 702 def __init__(self, *args, **kwargs):
0df68c9f 703 """
a95a7133 704 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
0df68c9f
RD
705 Window parent, int id, Point pos=DefaultPosition,
706 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
707 """
54f9ee45 708 newobj = _windows_.new_SplashScreen(*args, **kwargs)
d14a1e28
RD
709 self.this = newobj.this
710 self.thisown = 1
711 del newobj.thisown
712 self._setOORInfo(self)
e811c8ce
RD
713
714 def GetSplashStyle(*args, **kwargs):
a95a7133 715 """GetSplashStyle(self) -> long"""
54f9ee45 716 return _windows_.SplashScreen_GetSplashStyle(*args, **kwargs)
e811c8ce
RD
717
718 def GetSplashWindow(*args, **kwargs):
a95a7133 719 """GetSplashWindow(self) -> SplashScreenWindow"""
54f9ee45 720 return _windows_.SplashScreen_GetSplashWindow(*args, **kwargs)
e811c8ce
RD
721
722 def GetTimeout(*args, **kwargs):
a95a7133 723 """GetTimeout(self) -> int"""
54f9ee45 724 return _windows_.SplashScreen_GetTimeout(*args, **kwargs)
e811c8ce 725
d14a1e28
RD
726
727class SplashScreenPtr(SplashScreen):
728 def __init__(self, this):
729 self.this = this
730 if not hasattr(self,"thisown"): self.thisown = 0
731 self.__class__ = SplashScreen
54f9ee45 732_windows_.SplashScreen_swigregister(SplashScreenPtr)
d14a1e28
RD
733
734#---------------------------------------------------------------------------
735
54f9ee45 736class StatusBar(_core.Window):
e811c8ce
RD
737 def __repr__(self):
738 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 739 def __init__(self, *args, **kwargs):
4276dc52 740 """
a95a7133 741 __init__(self, Window parent, int id=-1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
4276dc52
RD
742 String name=StatusLineNameStr) -> StatusBar
743 """
54f9ee45 744 newobj = _windows_.new_StatusBar(*args, **kwargs)
d14a1e28 745 self.this = newobj.this
2f90df85 746 self.thisown = 1
d14a1e28 747 del newobj.thisown
0220cbc1 748 self._setOORInfo(self)
e811c8ce
RD
749
750 def Create(*args, **kwargs):
a95a7133 751 """Create(self, Window parent, int id, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
54f9ee45 752 return _windows_.StatusBar_Create(*args, **kwargs)
e811c8ce
RD
753
754 def SetFieldsCount(*args, **kwargs):
a95a7133 755 """SetFieldsCount(self, int number=1)"""
54f9ee45 756 return _windows_.StatusBar_SetFieldsCount(*args, **kwargs)
e811c8ce
RD
757
758 def GetFieldsCount(*args, **kwargs):
a95a7133 759 """GetFieldsCount(self) -> int"""
54f9ee45 760 return _windows_.StatusBar_GetFieldsCount(*args, **kwargs)
e811c8ce
RD
761
762 def SetStatusText(*args, **kwargs):
a95a7133 763 """SetStatusText(self, String text, int number=0)"""
54f9ee45 764 return _windows_.StatusBar_SetStatusText(*args, **kwargs)
e811c8ce
RD
765
766 def GetStatusText(*args, **kwargs):
a95a7133 767 """GetStatusText(self, int number=0) -> String"""
54f9ee45 768 return _windows_.StatusBar_GetStatusText(*args, **kwargs)
e811c8ce
RD
769
770 def PushStatusText(*args, **kwargs):
a95a7133 771 """PushStatusText(self, String text, int number=0)"""
54f9ee45 772 return _windows_.StatusBar_PushStatusText(*args, **kwargs)
e811c8ce
RD
773
774 def PopStatusText(*args, **kwargs):
a95a7133 775 """PopStatusText(self, int number=0)"""
54f9ee45 776 return _windows_.StatusBar_PopStatusText(*args, **kwargs)
e811c8ce
RD
777
778 def SetStatusWidths(*args, **kwargs):
a95a7133 779 """SetStatusWidths(self, int widths, int widths_field)"""
54f9ee45 780 return _windows_.StatusBar_SetStatusWidths(*args, **kwargs)
e811c8ce
RD
781
782 def GetFieldRect(*args, **kwargs):
a95a7133 783 """GetFieldRect(self, int i) -> Rect"""
54f9ee45 784 return _windows_.StatusBar_GetFieldRect(*args, **kwargs)
e811c8ce
RD
785
786 def SetMinHeight(*args, **kwargs):
a95a7133 787 """SetMinHeight(self, int height)"""
54f9ee45 788 return _windows_.StatusBar_SetMinHeight(*args, **kwargs)
e811c8ce
RD
789
790 def GetBorderX(*args, **kwargs):
a95a7133 791 """GetBorderX(self) -> int"""
54f9ee45 792 return _windows_.StatusBar_GetBorderX(*args, **kwargs)
e811c8ce
RD
793
794 def GetBorderY(*args, **kwargs):
a95a7133 795 """GetBorderY(self) -> int"""
54f9ee45 796 return _windows_.StatusBar_GetBorderY(*args, **kwargs)
e811c8ce 797
22bfe96c
RD
798 def GetClassDefaultAttributes(*args, **kwargs):
799 """
800 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
801
41e2b43e
RD
802 Get the default attributes for this class. This is useful if you want
803 to use the same font or colour in your own control as in a standard
804 control -- which is a much better idea than hard coding specific
db3e571a
RD
805 colours or fonts which might look completely out of place on the
806 user's system, especially if it uses themes.
22bfe96c
RD
807
808 The variant parameter is only relevant under Mac currently and is
41e2b43e 809 ignore under other platforms. Under Mac, it will change the size of
db3e571a
RD
810 the returned font. See `wx.Window.SetWindowVariant` for more about
811 this.
22bfe96c
RD
812 """
813 return _windows_.StatusBar_GetClassDefaultAttributes(*args, **kwargs)
814
815 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
2f90df85 816
d14a1e28
RD
817class StatusBarPtr(StatusBar):
818 def __init__(self, this):
819 self.this = this
820 if not hasattr(self,"thisown"): self.thisown = 0
821 self.__class__ = StatusBar
54f9ee45 822_windows_.StatusBar_swigregister(StatusBarPtr)
2f90df85 823
d14a1e28 824def PreStatusBar(*args, **kwargs):
e811c8ce 825 """PreStatusBar() -> StatusBar"""
54f9ee45 826 val = _windows_.new_PreStatusBar(*args, **kwargs)
d14a1e28
RD
827 val.thisown = 1
828 return val
2f90df85 829
22bfe96c
RD
830def StatusBar_GetClassDefaultAttributes(*args, **kwargs):
831 """
832 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
833
41e2b43e
RD
834 Get the default attributes for this class. This is useful if you want
835 to use the same font or colour in your own control as in a standard
836 control -- which is a much better idea than hard coding specific
db3e571a
RD
837 colours or fonts which might look completely out of place on the
838 user's system, especially if it uses themes.
22bfe96c
RD
839
840 The variant parameter is only relevant under Mac currently and is
41e2b43e 841 ignore under other platforms. Under Mac, it will change the size of
db3e571a
RD
842 the returned font. See `wx.Window.SetWindowVariant` for more about
843 this.
22bfe96c
RD
844 """
845 return _windows_.StatusBar_GetClassDefaultAttributes(*args, **kwargs)
846
d14a1e28
RD
847#---------------------------------------------------------------------------
848
54f9ee45
RD
849SP_NOBORDER = _windows_.SP_NOBORDER
850SP_NOSASH = _windows_.SP_NOSASH
851SP_PERMIT_UNSPLIT = _windows_.SP_PERMIT_UNSPLIT
852SP_LIVE_UPDATE = _windows_.SP_LIVE_UPDATE
853SP_3DSASH = _windows_.SP_3DSASH
854SP_3DBORDER = _windows_.SP_3DBORDER
855SP_NO_XP_THEME = _windows_.SP_NO_XP_THEME
856SP_BORDER = _windows_.SP_BORDER
857SP_3D = _windows_.SP_3D
858SPLIT_HORIZONTAL = _windows_.SPLIT_HORIZONTAL
859SPLIT_VERTICAL = _windows_.SPLIT_VERTICAL
860SPLIT_DRAG_NONE = _windows_.SPLIT_DRAG_NONE
861SPLIT_DRAG_DRAGGING = _windows_.SPLIT_DRAG_DRAGGING
862SPLIT_DRAG_LEFT_DOWN = _windows_.SPLIT_DRAG_LEFT_DOWN
863class SplitterWindow(_core.Window):
d00d1b88 864 """
41e2b43e
RD
865 wx.SplitterWindow manages up to two subwindows or panes, with an
866 optional vertical or horizontal split which can be used with the mouse
867 or programmatically.
d00d1b88 868 """
e811c8ce
RD
869 def __repr__(self):
870 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 871 def __init__(self, *args, **kwargs):
0df68c9f 872 """
a95a7133 873 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
74a57fcd 874 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
d00d1b88
RD
875
876 Constructor. Creates and shows a SplitterWindow.
0df68c9f 877 """
69223c70 878 if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point']
54f9ee45 879 newobj = _windows_.new_SplitterWindow(*args, **kwargs)
d14a1e28
RD
880 self.this = newobj.this
881 self.thisown = 1
882 del newobj.thisown
883 self._setOORInfo(self)
e811c8ce
RD
884
885 def Create(*args, **kwargs):
0df68c9f 886 """
a95a7133 887 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
74a57fcd 888 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
d00d1b88
RD
889
890 Create the GUI part of the SplitterWindow for the 2-phase create.
0df68c9f 891 """
54f9ee45 892 return _windows_.SplitterWindow_Create(*args, **kwargs)
e811c8ce
RD
893
894 def GetWindow1(*args, **kwargs):
d00d1b88 895 """
a95a7133 896 GetWindow1(self) -> Window
d00d1b88
RD
897
898 Gets the only or left/top pane.
899 """
54f9ee45 900 return _windows_.SplitterWindow_GetWindow1(*args, **kwargs)
e811c8ce
RD
901
902 def GetWindow2(*args, **kwargs):
d00d1b88 903 """
a95a7133 904 GetWindow2(self) -> Window
d00d1b88
RD
905
906 Gets the right/bottom pane.
907 """
54f9ee45 908 return _windows_.SplitterWindow_GetWindow2(*args, **kwargs)
e811c8ce
RD
909
910 def SetSplitMode(*args, **kwargs):
d00d1b88 911 """
a95a7133 912 SetSplitMode(self, int mode)
d00d1b88
RD
913
914 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
41e2b43e
RD
915 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
916 update the display.
d00d1b88 917 """
54f9ee45 918 return _windows_.SplitterWindow_SetSplitMode(*args, **kwargs)
e811c8ce
RD
919
920 def GetSplitMode(*args, **kwargs):
d00d1b88 921 """
a95a7133 922 GetSplitMode(self) -> int
d00d1b88
RD
923
924 Gets the split mode
925 """
54f9ee45 926 return _windows_.SplitterWindow_GetSplitMode(*args, **kwargs)
e811c8ce
RD
927
928 def Initialize(*args, **kwargs):
d00d1b88 929 """
a95a7133 930 Initialize(self, Window window)
d00d1b88 931
41e2b43e
RD
932 Initializes the splitter window to have one pane. This should be
933 called if you wish to initially view only a single pane in the
934 splitter window.
d00d1b88 935 """
54f9ee45 936 return _windows_.SplitterWindow_Initialize(*args, **kwargs)
e811c8ce
RD
937
938 def SplitVertically(*args, **kwargs):
d00d1b88 939 """
a95a7133 940 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
d00d1b88
RD
941
942 Initializes the left and right panes of the splitter window.
d00d1b88 943 """
54f9ee45 944 return _windows_.SplitterWindow_SplitVertically(*args, **kwargs)
e811c8ce
RD
945
946 def SplitHorizontally(*args, **kwargs):
d00d1b88 947 """
a95a7133 948 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
d00d1b88
RD
949
950 Initializes the top and bottom panes of the splitter window.
d00d1b88 951 """
54f9ee45 952 return _windows_.SplitterWindow_SplitHorizontally(*args, **kwargs)
e811c8ce
RD
953
954 def Unsplit(*args, **kwargs):
d00d1b88 955 """
a95a7133 956 Unsplit(self, Window toRemove=None) -> bool
d00d1b88 957
41e2b43e
RD
958 Unsplits the window. Pass the pane to remove, or None to remove the
959 right or bottom pane. Returns True if successful, False otherwise (the
960 window was not split).
d00d1b88
RD
961
962 This function will not actually delete the pane being
963 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
964 for the desired behaviour. By default, the pane being
965 removed is only hidden.
966 """
54f9ee45 967 return _windows_.SplitterWindow_Unsplit(*args, **kwargs)
e811c8ce
RD
968
969 def ReplaceWindow(*args, **kwargs):
d00d1b88 970 """
a95a7133 971 ReplaceWindow(self, Window winOld, Window winNew) -> bool
d00d1b88
RD
972
973 This function replaces one of the windows managed by the
41e2b43e
RD
974 SplitterWindow with another one. It is in general better to use it
975 instead of calling Unsplit() and then resplitting the window back
976 because it will provoke much less flicker. It is valid to call this
977 function whether the splitter has two windows or only one.
978
979 Both parameters should be non-None and winOld must specify one of the
980 windows managed by the splitter. If the parameters are incorrect or
981 the window couldn't be replaced, False is returned. Otherwise the
982 function will return True, but please notice that it will not Destroy
983 the replaced window and you may wish to do it yourself.
d00d1b88 984 """
54f9ee45 985 return _windows_.SplitterWindow_ReplaceWindow(*args, **kwargs)
e811c8ce 986
d00d1b88
RD
987 def UpdateSize(*args, **kwargs):
988 """
a95a7133 989 UpdateSize(self)
d00d1b88 990
41e2b43e
RD
991 Causes any pending sizing of the sash and child panes to take place
992 immediately.
d00d1b88 993
41e2b43e
RD
994 Such resizing normally takes place in idle time, in order to wait for
995 layout to be completed. However, this can cause unacceptable flicker
996 as the panes are resized after the window has been shown. To work
997 around this, you can perform window layout (for example by sending a
998 size event to the parent window), and then call this function, before
999 showing the top-level window.
d00d1b88 1000 """
54f9ee45 1001 return _windows_.SplitterWindow_UpdateSize(*args, **kwargs)
d00d1b88 1002
e811c8ce 1003 def IsSplit(*args, **kwargs):
d00d1b88 1004 """
a95a7133 1005 IsSplit(self) -> bool
d00d1b88
RD
1006
1007 Is the window split?
1008 """
54f9ee45 1009 return _windows_.SplitterWindow_IsSplit(*args, **kwargs)
e811c8ce
RD
1010
1011 def SetSashSize(*args, **kwargs):
d00d1b88 1012 """
a95a7133 1013 SetSashSize(self, int width)
d00d1b88
RD
1014
1015 Sets the sash size
1016 """
54f9ee45 1017 return _windows_.SplitterWindow_SetSashSize(*args, **kwargs)
e811c8ce
RD
1018
1019 def SetBorderSize(*args, **kwargs):
d00d1b88 1020 """
a95a7133 1021 SetBorderSize(self, int width)
d00d1b88
RD
1022
1023 Sets the border size
1024 """
54f9ee45 1025 return _windows_.SplitterWindow_SetBorderSize(*args, **kwargs)
e811c8ce
RD
1026
1027 def GetSashSize(*args, **kwargs):
d00d1b88 1028 """
a95a7133 1029 GetSashSize(self) -> int
d00d1b88
RD
1030
1031 Gets the sash size
1032 """
54f9ee45 1033 return _windows_.SplitterWindow_GetSashSize(*args, **kwargs)
e811c8ce
RD
1034
1035 def GetBorderSize(*args, **kwargs):
d00d1b88 1036 """
a95a7133 1037 GetBorderSize(self) -> int
d00d1b88
RD
1038
1039 Gets the border size
1040 """
54f9ee45 1041 return _windows_.SplitterWindow_GetBorderSize(*args, **kwargs)
e811c8ce
RD
1042
1043 def SetSashPosition(*args, **kwargs):
d00d1b88 1044 """
a95a7133 1045 SetSashPosition(self, int position, bool redraw=True)
d00d1b88 1046
41e2b43e
RD
1047 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1048 are resized and the sash and border are redrawn.
d00d1b88 1049 """
54f9ee45 1050 return _windows_.SplitterWindow_SetSashPosition(*args, **kwargs)
e811c8ce
RD
1051
1052 def GetSashPosition(*args, **kwargs):
d00d1b88 1053 """
a95a7133 1054 GetSashPosition(self) -> int
d00d1b88
RD
1055
1056 Returns the surrent sash position.
1057 """
54f9ee45 1058 return _windows_.SplitterWindow_GetSashPosition(*args, **kwargs)
e811c8ce
RD
1059
1060 def SetMinimumPaneSize(*args, **kwargs):
d00d1b88 1061 """
a95a7133 1062 SetMinimumPaneSize(self, int min)
d00d1b88
RD
1063
1064 Sets the minimum pane size in pixels.
1065
41e2b43e
RD
1066 The default minimum pane size is zero, which means that either pane
1067 can be reduced to zero by dragging the sash, thus removing one of the
1068 panes. To prevent this behaviour (and veto out-of-range sash
1069 dragging), set a minimum size, for example 20 pixels. If the
1070 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1071 the window may be unsplit even if minimum size is non-zero.
d00d1b88 1072 """
54f9ee45 1073 return _windows_.SplitterWindow_SetMinimumPaneSize(*args, **kwargs)
e811c8ce
RD
1074
1075 def GetMinimumPaneSize(*args, **kwargs):
d00d1b88 1076 """
a95a7133 1077 GetMinimumPaneSize(self) -> int
d00d1b88
RD
1078
1079 Gets the minimum pane size in pixels.
1080 """
54f9ee45 1081 return _windows_.SplitterWindow_GetMinimumPaneSize(*args, **kwargs)
e811c8ce
RD
1082
1083 def SashHitTest(*args, **kwargs):
d00d1b88 1084 """
a95a7133 1085 SashHitTest(self, int x, int y, int tolerance=5) -> bool
d00d1b88
RD
1086
1087 Tests for x, y over the sash
1088 """
54f9ee45 1089 return _windows_.SplitterWindow_SashHitTest(*args, **kwargs)
e811c8ce
RD
1090
1091 def SizeWindows(*args, **kwargs):
d00d1b88 1092 """
a95a7133 1093 SizeWindows(self)
d00d1b88
RD
1094
1095 Resizes subwindows
1096 """
54f9ee45 1097 return _windows_.SplitterWindow_SizeWindows(*args, **kwargs)
e811c8ce
RD
1098
1099 def SetNeedUpdating(*args, **kwargs):
a95a7133 1100 """SetNeedUpdating(self, bool needUpdating)"""
54f9ee45 1101 return _windows_.SplitterWindow_SetNeedUpdating(*args, **kwargs)
e811c8ce
RD
1102
1103 def GetNeedUpdating(*args, **kwargs):
a95a7133 1104 """GetNeedUpdating(self) -> bool"""
54f9ee45 1105 return _windows_.SplitterWindow_GetNeedUpdating(*args, **kwargs)
e811c8ce 1106
22bfe96c
RD
1107 def GetClassDefaultAttributes(*args, **kwargs):
1108 """
1109 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1110
41e2b43e
RD
1111 Get the default attributes for this class. This is useful if you want
1112 to use the same font or colour in your own control as in a standard
1113 control -- which is a much better idea than hard coding specific
db3e571a
RD
1114 colours or fonts which might look completely out of place on the
1115 user's system, especially if it uses themes.
22bfe96c
RD
1116
1117 The variant parameter is only relevant under Mac currently and is
41e2b43e 1118 ignore under other platforms. Under Mac, it will change the size of
db3e571a
RD
1119 the returned font. See `wx.Window.SetWindowVariant` for more about
1120 this.
22bfe96c
RD
1121 """
1122 return _windows_.SplitterWindow_GetClassDefaultAttributes(*args, **kwargs)
1123
1124 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
2f90df85 1125
d14a1e28
RD
1126class SplitterWindowPtr(SplitterWindow):
1127 def __init__(self, this):
8ab979d7 1128 self.this = this
d14a1e28
RD
1129 if not hasattr(self,"thisown"): self.thisown = 0
1130 self.__class__ = SplitterWindow
54f9ee45 1131_windows_.SplitterWindow_swigregister(SplitterWindowPtr)
b2dc1044 1132SplitterNameStr = cvar.SplitterNameStr
d14a1e28
RD
1133
1134def PreSplitterWindow(*args, **kwargs):
d00d1b88
RD
1135 """
1136 PreSplitterWindow() -> SplitterWindow
1137
1138 Precreate a SplitterWindow for 2-phase creation.
1139 """
54f9ee45 1140 val = _windows_.new_PreSplitterWindow(*args, **kwargs)
d14a1e28
RD
1141 val.thisown = 1
1142 return val
1143
22bfe96c
RD
1144def SplitterWindow_GetClassDefaultAttributes(*args, **kwargs):
1145 """
1146 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1147
41e2b43e
RD
1148 Get the default attributes for this class. This is useful if you want
1149 to use the same font or colour in your own control as in a standard
1150 control -- which is a much better idea than hard coding specific
db3e571a
RD
1151 colours or fonts which might look completely out of place on the
1152 user's system, especially if it uses themes.
22bfe96c
RD
1153
1154 The variant parameter is only relevant under Mac currently and is
41e2b43e 1155 ignore under other platforms. Under Mac, it will change the size of
db3e571a
RD
1156 the returned font. See `wx.Window.SetWindowVariant` for more about
1157 this.
22bfe96c
RD
1158 """
1159 return _windows_.SplitterWindow_GetClassDefaultAttributes(*args, **kwargs)
1160
54f9ee45 1161class SplitterEvent(_core.NotifyEvent):
d00d1b88 1162 """This class represents the events generated by a splitter control."""
e811c8ce
RD
1163 def __repr__(self):
1164 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1165 def __init__(self, *args, **kwargs):
d00d1b88 1166 """
a95a7133 1167 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
d00d1b88
RD
1168
1169 This class represents the events generated by a splitter control.
1170 """
54f9ee45 1171 newobj = _windows_.new_SplitterEvent(*args, **kwargs)
d14a1e28
RD
1172 self.this = newobj.this
1173 self.thisown = 1
1174 del newobj.thisown
e811c8ce 1175 def SetSashPosition(*args, **kwargs):
d00d1b88 1176 """
a95a7133 1177 SetSashPosition(self, int pos)
d00d1b88 1178
41e2b43e
RD
1179 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1180 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1181 events, sets the the new sash position. In the case of _CHANGING
1182 events, sets the new tracking bar position so visual feedback during
1183 dragging will represent that change that will actually take place. Set
1184 to -1 from the event handler code to prevent repositioning.
d00d1b88 1185 """
54f9ee45 1186 return _windows_.SplitterEvent_SetSashPosition(*args, **kwargs)
e811c8ce
RD
1187
1188 def GetSashPosition(*args, **kwargs):
d00d1b88 1189 """
a95a7133 1190 GetSashPosition(self) -> int
d00d1b88 1191
41e2b43e
RD
1192 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1193 and EVT_SPLITTER_SASH_POS_CHANGED events.
d00d1b88 1194 """
54f9ee45 1195 return _windows_.SplitterEvent_GetSashPosition(*args, **kwargs)
e811c8ce
RD
1196
1197 def GetWindowBeingRemoved(*args, **kwargs):
d00d1b88 1198 """
a95a7133 1199 GetWindowBeingRemoved(self) -> Window
d00d1b88 1200
41e2b43e
RD
1201 Returns a pointer to the window being removed when a splitter window
1202 is unsplit.
d00d1b88 1203 """
54f9ee45 1204 return _windows_.SplitterEvent_GetWindowBeingRemoved(*args, **kwargs)
e811c8ce
RD
1205
1206 def GetX(*args, **kwargs):
d00d1b88 1207 """
a95a7133 1208 GetX(self) -> int
d00d1b88
RD
1209
1210 Returns the x coordinate of the double-click point in a
1211 EVT_SPLITTER_DCLICK event.
1212 """
54f9ee45 1213 return _windows_.SplitterEvent_GetX(*args, **kwargs)
e811c8ce
RD
1214
1215 def GetY(*args, **kwargs):
d00d1b88 1216 """
a95a7133 1217 GetY(self) -> int
d00d1b88
RD
1218
1219 Returns the y coordinate of the double-click point in a
1220 EVT_SPLITTER_DCLICK event.
1221 """
54f9ee45 1222 return _windows_.SplitterEvent_GetY(*args, **kwargs)
e811c8ce 1223
d14a1e28
RD
1224
1225class SplitterEventPtr(SplitterEvent):
1226 def __init__(self, this):
1227 self.this = this
1228 if not hasattr(self,"thisown"): self.thisown = 0
1229 self.__class__ = SplitterEvent
54f9ee45 1230_windows_.SplitterEvent_swigregister(SplitterEventPtr)
d14a1e28 1231
54f9ee45
RD
1232wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = _windows_.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1233wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = _windows_.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1234wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = _windows_.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1235wxEVT_COMMAND_SPLITTER_UNSPLIT = _windows_.wxEVT_COMMAND_SPLITTER_UNSPLIT
d14a1e28
RD
1236EVT_SPLITTER_SASH_POS_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, 1 )
1237EVT_SPLITTER_SASH_POS_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, 1 )
1238EVT_SPLITTER_DOUBLECLICKED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, 1 )
1239EVT_SPLITTER_UNSPLIT = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT, 1 )
4f89f6a3 1240EVT_SPLITTER_DCLICK = EVT_SPLITTER_DOUBLECLICKED
d14a1e28
RD
1241
1242#---------------------------------------------------------------------------
1243
54f9ee45
RD
1244SASH_DRAG_NONE = _windows_.SASH_DRAG_NONE
1245SASH_DRAG_DRAGGING = _windows_.SASH_DRAG_DRAGGING
1246SASH_DRAG_LEFT_DOWN = _windows_.SASH_DRAG_LEFT_DOWN
1247SW_NOBORDER = _windows_.SW_NOBORDER
1248SW_BORDER = _windows_.SW_BORDER
1249SW_3DSASH = _windows_.SW_3DSASH
1250SW_3DBORDER = _windows_.SW_3DBORDER
1251SW_3D = _windows_.SW_3D
1252SASH_TOP = _windows_.SASH_TOP
1253SASH_RIGHT = _windows_.SASH_RIGHT
1254SASH_BOTTOM = _windows_.SASH_BOTTOM
1255SASH_LEFT = _windows_.SASH_LEFT
1256SASH_NONE = _windows_.SASH_NONE
1257class SashWindow(_core.Window):
e811c8ce
RD
1258 def __repr__(self):
1259 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1260 def __init__(self, *args, **kwargs):
0df68c9f 1261 """
a95a7133 1262 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
0df68c9f 1263 long style=wxCLIP_CHILDREN|wxSW_3D,
b2dc1044 1264 String name=SashNameStr) -> SashWindow
0df68c9f 1265 """
54f9ee45 1266 newobj = _windows_.new_SashWindow(*args, **kwargs)
d14a1e28 1267 self.this = newobj.this
8ab979d7 1268 self.thisown = 1
d14a1e28 1269 del newobj.thisown
0220cbc1 1270 self._setOORInfo(self)
e811c8ce
RD
1271
1272 def Create(*args, **kwargs):
0df68c9f 1273 """
a95a7133 1274 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
0df68c9f 1275 long style=wxCLIP_CHILDREN|wxSW_3D,
b2dc1044 1276 String name=SashNameStr) -> bool
0df68c9f 1277 """
54f9ee45 1278 return _windows_.SashWindow_Create(*args, **kwargs)
e811c8ce
RD
1279
1280 def SetSashVisible(*args, **kwargs):
a95a7133 1281 """SetSashVisible(self, int edge, bool sash)"""
54f9ee45 1282 return _windows_.SashWindow_SetSashVisible(*args, **kwargs)
e811c8ce
RD
1283
1284 def GetSashVisible(*args, **kwargs):
a95a7133 1285 """GetSashVisible(self, int edge) -> bool"""
54f9ee45 1286 return _windows_.SashWindow_GetSashVisible(*args, **kwargs)
e811c8ce
RD
1287
1288 def SetSashBorder(*args, **kwargs):
a95a7133 1289 """SetSashBorder(self, int edge, bool border)"""
54f9ee45 1290 return _windows_.SashWindow_SetSashBorder(*args, **kwargs)
e811c8ce
RD
1291
1292 def HasBorder(*args, **kwargs):
a95a7133 1293 """HasBorder(self, int edge) -> bool"""
54f9ee45 1294 return _windows_.SashWindow_HasBorder(*args, **kwargs)
e811c8ce
RD
1295
1296 def GetEdgeMargin(*args, **kwargs):
a95a7133 1297 """GetEdgeMargin(self, int edge) -> int"""
54f9ee45 1298 return _windows_.SashWindow_GetEdgeMargin(*args, **kwargs)
e811c8ce
RD
1299
1300 def SetDefaultBorderSize(*args, **kwargs):
a95a7133 1301 """SetDefaultBorderSize(self, int width)"""
54f9ee45 1302 return _windows_.SashWindow_SetDefaultBorderSize(*args, **kwargs)
e811c8ce
RD
1303
1304 def GetDefaultBorderSize(*args, **kwargs):
a95a7133 1305 """GetDefaultBorderSize(self) -> int"""
54f9ee45 1306 return _windows_.SashWindow_GetDefaultBorderSize(*args, **kwargs)
e811c8ce
RD
1307
1308 def SetExtraBorderSize(*args, **kwargs):
a95a7133 1309 """SetExtraBorderSize(self, int width)"""
54f9ee45 1310 return _windows_.SashWindow_SetExtraBorderSize(*args, **kwargs)
e811c8ce
RD
1311
1312 def GetExtraBorderSize(*args, **kwargs):
a95a7133 1313 """GetExtraBorderSize(self) -> int"""
54f9ee45 1314 return _windows_.SashWindow_GetExtraBorderSize(*args, **kwargs)
e811c8ce
RD
1315
1316 def SetMinimumSizeX(*args, **kwargs):
a95a7133 1317 """SetMinimumSizeX(self, int min)"""
54f9ee45 1318 return _windows_.SashWindow_SetMinimumSizeX(*args, **kwargs)
e811c8ce
RD
1319
1320 def SetMinimumSizeY(*args, **kwargs):
a95a7133 1321 """SetMinimumSizeY(self, int min)"""
54f9ee45 1322 return _windows_.SashWindow_SetMinimumSizeY(*args, **kwargs)
e811c8ce
RD
1323
1324 def GetMinimumSizeX(*args, **kwargs):
a95a7133 1325 """GetMinimumSizeX(self) -> int"""
54f9ee45 1326 return _windows_.SashWindow_GetMinimumSizeX(*args, **kwargs)
e811c8ce
RD
1327
1328 def GetMinimumSizeY(*args, **kwargs):
a95a7133 1329 """GetMinimumSizeY(self) -> int"""
54f9ee45 1330 return _windows_.SashWindow_GetMinimumSizeY(*args, **kwargs)
e811c8ce
RD
1331
1332 def SetMaximumSizeX(*args, **kwargs):
a95a7133 1333 """SetMaximumSizeX(self, int max)"""
54f9ee45 1334 return _windows_.SashWindow_SetMaximumSizeX(*args, **kwargs)
e811c8ce
RD
1335
1336 def SetMaximumSizeY(*args, **kwargs):
a95a7133 1337 """SetMaximumSizeY(self, int max)"""
54f9ee45 1338 return _windows_.SashWindow_SetMaximumSizeY(*args, **kwargs)
e811c8ce
RD
1339
1340 def GetMaximumSizeX(*args, **kwargs):
a95a7133 1341 """GetMaximumSizeX(self) -> int"""
54f9ee45 1342 return _windows_.SashWindow_GetMaximumSizeX(*args, **kwargs)
e811c8ce
RD
1343
1344 def GetMaximumSizeY(*args, **kwargs):
a95a7133 1345 """GetMaximumSizeY(self) -> int"""
54f9ee45 1346 return _windows_.SashWindow_GetMaximumSizeY(*args, **kwargs)
e811c8ce
RD
1347
1348 def SashHitTest(*args, **kwargs):
a95a7133 1349 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
54f9ee45 1350 return _windows_.SashWindow_SashHitTest(*args, **kwargs)
e811c8ce
RD
1351
1352 def SizeWindows(*args, **kwargs):
a95a7133 1353 """SizeWindows(self)"""
54f9ee45 1354 return _windows_.SashWindow_SizeWindows(*args, **kwargs)
e811c8ce 1355
8ab979d7 1356
d14a1e28
RD
1357class SashWindowPtr(SashWindow):
1358 def __init__(self, this):
1359 self.this = this
1360 if not hasattr(self,"thisown"): self.thisown = 0
1361 self.__class__ = SashWindow
54f9ee45 1362_windows_.SashWindow_swigregister(SashWindowPtr)
b2dc1044
RD
1363SashNameStr = cvar.SashNameStr
1364SashLayoutNameStr = cvar.SashLayoutNameStr
8ab979d7 1365
d14a1e28 1366def PreSashWindow(*args, **kwargs):
e811c8ce 1367 """PreSashWindow() -> SashWindow"""
54f9ee45 1368 val = _windows_.new_PreSashWindow(*args, **kwargs)
aa2a5b86
RD
1369 val.thisown = 1
1370 return val
1371
54f9ee45
RD
1372SASH_STATUS_OK = _windows_.SASH_STATUS_OK
1373SASH_STATUS_OUT_OF_RANGE = _windows_.SASH_STATUS_OUT_OF_RANGE
1374class SashEvent(_core.CommandEvent):
e811c8ce
RD
1375 def __repr__(self):
1376 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1377 def __init__(self, *args, **kwargs):
a95a7133 1378 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
54f9ee45 1379 newobj = _windows_.new_SashEvent(*args, **kwargs)
d14a1e28
RD
1380 self.this = newobj.this
1381 self.thisown = 1
1382 del newobj.thisown
e811c8ce 1383 def SetEdge(*args, **kwargs):
a95a7133 1384 """SetEdge(self, int edge)"""
54f9ee45 1385 return _windows_.SashEvent_SetEdge(*args, **kwargs)
e811c8ce
RD
1386
1387 def GetEdge(*args, **kwargs):
a95a7133 1388 """GetEdge(self) -> int"""
54f9ee45 1389 return _windows_.SashEvent_GetEdge(*args, **kwargs)
e811c8ce
RD
1390
1391 def SetDragRect(*args, **kwargs):
a95a7133 1392 """SetDragRect(self, Rect rect)"""
54f9ee45 1393 return _windows_.SashEvent_SetDragRect(*args, **kwargs)
e811c8ce
RD
1394
1395 def GetDragRect(*args, **kwargs):
a95a7133 1396 """GetDragRect(self) -> Rect"""
54f9ee45 1397 return _windows_.SashEvent_GetDragRect(*args, **kwargs)
e811c8ce
RD
1398
1399 def SetDragStatus(*args, **kwargs):
a95a7133 1400 """SetDragStatus(self, int status)"""
54f9ee45 1401 return _windows_.SashEvent_SetDragStatus(*args, **kwargs)
e811c8ce
RD
1402
1403 def GetDragStatus(*args, **kwargs):
a95a7133 1404 """GetDragStatus(self) -> int"""
54f9ee45 1405 return _windows_.SashEvent_GetDragStatus(*args, **kwargs)
e811c8ce 1406
8ab979d7 1407
d14a1e28
RD
1408class SashEventPtr(SashEvent):
1409 def __init__(self, this):
8ab979d7 1410 self.this = this
d14a1e28
RD
1411 if not hasattr(self,"thisown"): self.thisown = 0
1412 self.__class__ = SashEvent
54f9ee45 1413_windows_.SashEvent_swigregister(SashEventPtr)
d14a1e28 1414
54f9ee45 1415wxEVT_SASH_DRAGGED = _windows_.wxEVT_SASH_DRAGGED
d14a1e28
RD
1416EVT_SASH_DRAGGED = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 1 )
1417EVT_SASH_DRAGGED_RANGE = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 2 )
1418
1419#---------------------------------------------------------------------------
1420
54f9ee45
RD
1421LAYOUT_HORIZONTAL = _windows_.LAYOUT_HORIZONTAL
1422LAYOUT_VERTICAL = _windows_.LAYOUT_VERTICAL
1423LAYOUT_NONE = _windows_.LAYOUT_NONE
1424LAYOUT_TOP = _windows_.LAYOUT_TOP
1425LAYOUT_LEFT = _windows_.LAYOUT_LEFT
1426LAYOUT_RIGHT = _windows_.LAYOUT_RIGHT
1427LAYOUT_BOTTOM = _windows_.LAYOUT_BOTTOM
1428LAYOUT_LENGTH_Y = _windows_.LAYOUT_LENGTH_Y
1429LAYOUT_LENGTH_X = _windows_.LAYOUT_LENGTH_X
1430LAYOUT_MRU_LENGTH = _windows_.LAYOUT_MRU_LENGTH
1431LAYOUT_QUERY = _windows_.LAYOUT_QUERY
1432wxEVT_QUERY_LAYOUT_INFO = _windows_.wxEVT_QUERY_LAYOUT_INFO
1433wxEVT_CALCULATE_LAYOUT = _windows_.wxEVT_CALCULATE_LAYOUT
1434class QueryLayoutInfoEvent(_core.Event):
e811c8ce
RD
1435 def __repr__(self):
1436 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1437 def __init__(self, *args, **kwargs):
a95a7133 1438 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
54f9ee45 1439 newobj = _windows_.new_QueryLayoutInfoEvent(*args, **kwargs)
d14a1e28
RD
1440 self.this = newobj.this
1441 self.thisown = 1
1442 del newobj.thisown
e811c8ce 1443 def SetRequestedLength(*args, **kwargs):
a95a7133 1444 """SetRequestedLength(self, int length)"""
54f9ee45 1445 return _windows_.QueryLayoutInfoEvent_SetRequestedLength(*args, **kwargs)
e811c8ce
RD
1446
1447 def GetRequestedLength(*args, **kwargs):
a95a7133 1448 """GetRequestedLength(self) -> int"""
54f9ee45 1449 return _windows_.QueryLayoutInfoEvent_GetRequestedLength(*args, **kwargs)
e811c8ce
RD
1450
1451 def SetFlags(*args, **kwargs):
a95a7133 1452 """SetFlags(self, int flags)"""
54f9ee45 1453 return _windows_.QueryLayoutInfoEvent_SetFlags(*args, **kwargs)
e811c8ce
RD
1454
1455 def GetFlags(*args, **kwargs):
a95a7133 1456 """GetFlags(self) -> int"""
54f9ee45 1457 return _windows_.QueryLayoutInfoEvent_GetFlags(*args, **kwargs)
e811c8ce
RD
1458
1459 def SetSize(*args, **kwargs):
a95a7133 1460 """SetSize(self, Size size)"""
54f9ee45 1461 return _windows_.QueryLayoutInfoEvent_SetSize(*args, **kwargs)
e811c8ce
RD
1462
1463 def GetSize(*args, **kwargs):
a95a7133 1464 """GetSize(self) -> Size"""
54f9ee45 1465 return _windows_.QueryLayoutInfoEvent_GetSize(*args, **kwargs)
e811c8ce
RD
1466
1467 def SetOrientation(*args, **kwargs):
a95a7133 1468 """SetOrientation(self, int orient)"""
54f9ee45 1469 return _windows_.QueryLayoutInfoEvent_SetOrientation(*args, **kwargs)
e811c8ce
RD
1470
1471 def GetOrientation(*args, **kwargs):
a95a7133 1472 """GetOrientation(self) -> int"""
54f9ee45 1473 return _windows_.QueryLayoutInfoEvent_GetOrientation(*args, **kwargs)
e811c8ce
RD
1474
1475 def SetAlignment(*args, **kwargs):
a95a7133 1476 """SetAlignment(self, int align)"""
54f9ee45 1477 return _windows_.QueryLayoutInfoEvent_SetAlignment(*args, **kwargs)
e811c8ce
RD
1478
1479 def GetAlignment(*args, **kwargs):
a95a7133 1480 """GetAlignment(self) -> int"""
54f9ee45 1481 return _windows_.QueryLayoutInfoEvent_GetAlignment(*args, **kwargs)
e811c8ce 1482
d14a1e28
RD
1483
1484class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent):
1485 def __init__(self, this):
1486 self.this = this
1487 if not hasattr(self,"thisown"): self.thisown = 0
1488 self.__class__ = QueryLayoutInfoEvent
54f9ee45 1489_windows_.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr)
d14a1e28 1490
54f9ee45 1491class CalculateLayoutEvent(_core.Event):
e811c8ce
RD
1492 def __repr__(self):
1493 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1494 def __init__(self, *args, **kwargs):
a95a7133 1495 """__init__(self, int id=0) -> CalculateLayoutEvent"""
54f9ee45 1496 newobj = _windows_.new_CalculateLayoutEvent(*args, **kwargs)
d14a1e28 1497 self.this = newobj.this
8ab979d7 1498 self.thisown = 1
d14a1e28 1499 del newobj.thisown
e811c8ce 1500 def SetFlags(*args, **kwargs):
a95a7133 1501 """SetFlags(self, int flags)"""
54f9ee45 1502 return _windows_.CalculateLayoutEvent_SetFlags(*args, **kwargs)
e811c8ce
RD
1503
1504 def GetFlags(*args, **kwargs):
a95a7133 1505 """GetFlags(self) -> int"""
54f9ee45 1506 return _windows_.CalculateLayoutEvent_GetFlags(*args, **kwargs)
e811c8ce
RD
1507
1508 def SetRect(*args, **kwargs):
a95a7133 1509 """SetRect(self, Rect rect)"""
54f9ee45 1510 return _windows_.CalculateLayoutEvent_SetRect(*args, **kwargs)
e811c8ce
RD
1511
1512 def GetRect(*args, **kwargs):
a95a7133 1513 """GetRect(self) -> Rect"""
54f9ee45 1514 return _windows_.CalculateLayoutEvent_GetRect(*args, **kwargs)
e811c8ce 1515
d14a1e28
RD
1516
1517class CalculateLayoutEventPtr(CalculateLayoutEvent):
1518 def __init__(self, this):
1519 self.this = this
1520 if not hasattr(self,"thisown"): self.thisown = 0
1521 self.__class__ = CalculateLayoutEvent
54f9ee45 1522_windows_.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr)
8ab979d7 1523
d14a1e28
RD
1524EVT_QUERY_LAYOUT_INFO = wx.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO )
1525EVT_CALCULATE_LAYOUT = wx.PyEventBinder( wxEVT_CALCULATE_LAYOUT )
8ab979d7 1526
d14a1e28 1527class SashLayoutWindow(SashWindow):
e811c8ce
RD
1528 def __repr__(self):
1529 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1530 def __init__(self, *args, **kwargs):
0df68c9f 1531 """
a95a7133 1532 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
0df68c9f 1533 long style=wxCLIP_CHILDREN|wxSW_3D,
b2dc1044 1534 String name=SashLayoutNameStr) -> SashLayoutWindow
0df68c9f 1535 """
54f9ee45 1536 newobj = _windows_.new_SashLayoutWindow(*args, **kwargs)
d14a1e28
RD
1537 self.this = newobj.this
1538 self.thisown = 1
1539 del newobj.thisown
1540 self._setOORInfo(self)
e811c8ce
RD
1541
1542 def Create(*args, **kwargs):
0df68c9f 1543 """
a95a7133 1544 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
0df68c9f 1545 long style=wxCLIP_CHILDREN|wxSW_3D,
b2dc1044 1546 String name=SashLayoutNameStr) -> bool
0df68c9f 1547 """
54f9ee45 1548 return _windows_.SashLayoutWindow_Create(*args, **kwargs)
e811c8ce
RD
1549
1550 def GetAlignment(*args, **kwargs):
a95a7133 1551 """GetAlignment(self) -> int"""
54f9ee45 1552 return _windows_.SashLayoutWindow_GetAlignment(*args, **kwargs)
e811c8ce
RD
1553
1554 def GetOrientation(*args, **kwargs):
a95a7133 1555 """GetOrientation(self) -> int"""
54f9ee45 1556 return _windows_.SashLayoutWindow_GetOrientation(*args, **kwargs)
e811c8ce
RD
1557
1558 def SetAlignment(*args, **kwargs):
a95a7133 1559 """SetAlignment(self, int alignment)"""
54f9ee45 1560 return _windows_.SashLayoutWindow_SetAlignment(*args, **kwargs)
e811c8ce
RD
1561
1562 def SetDefaultSize(*args, **kwargs):
a95a7133 1563 """SetDefaultSize(self, Size size)"""
54f9ee45 1564 return _windows_.SashLayoutWindow_SetDefaultSize(*args, **kwargs)
e811c8ce
RD
1565
1566 def SetOrientation(*args, **kwargs):
a95a7133 1567 """SetOrientation(self, int orientation)"""
54f9ee45 1568 return _windows_.SashLayoutWindow_SetOrientation(*args, **kwargs)
e811c8ce 1569
8ab979d7 1570
d14a1e28
RD
1571class SashLayoutWindowPtr(SashLayoutWindow):
1572 def __init__(self, this):
1573 self.this = this
1574 if not hasattr(self,"thisown"): self.thisown = 0
1575 self.__class__ = SashLayoutWindow
54f9ee45 1576_windows_.SashLayoutWindow_swigregister(SashLayoutWindowPtr)
d14a1e28
RD
1577
1578def PreSashLayoutWindow(*args, **kwargs):
e811c8ce 1579 """PreSashLayoutWindow() -> SashLayoutWindow"""
54f9ee45 1580 val = _windows_.new_PreSashLayoutWindow(*args, **kwargs)
aa2a5b86
RD
1581 val.thisown = 1
1582 return val
1583
54f9ee45 1584class LayoutAlgorithm(_core.Object):
e811c8ce
RD
1585 def __repr__(self):
1586 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1587 def __init__(self, *args, **kwargs):
a95a7133 1588 """__init__(self) -> LayoutAlgorithm"""
54f9ee45 1589 newobj = _windows_.new_LayoutAlgorithm(*args, **kwargs)
d14a1e28
RD
1590 self.this = newobj.this
1591 self.thisown = 1
1592 del newobj.thisown
54f9ee45 1593 def __del__(self, destroy=_windows_.delete_LayoutAlgorithm):
a95a7133 1594 """__del__(self)"""
d14a1e28
RD
1595 try:
1596 if self.thisown: destroy(self)
1597 except: pass
e811c8ce
RD
1598
1599 def LayoutMDIFrame(*args, **kwargs):
a95a7133 1600 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
54f9ee45 1601 return _windows_.LayoutAlgorithm_LayoutMDIFrame(*args, **kwargs)
e811c8ce
RD
1602
1603 def LayoutFrame(*args, **kwargs):
a95a7133 1604 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
54f9ee45 1605 return _windows_.LayoutAlgorithm_LayoutFrame(*args, **kwargs)
e811c8ce
RD
1606
1607 def LayoutWindow(*args, **kwargs):
a95a7133 1608 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
54f9ee45 1609 return _windows_.LayoutAlgorithm_LayoutWindow(*args, **kwargs)
e811c8ce 1610
d14a1e28
RD
1611
1612class LayoutAlgorithmPtr(LayoutAlgorithm):
1613 def __init__(self, this):
1614 self.this = this
1615 if not hasattr(self,"thisown"): self.thisown = 0
1616 self.__class__ = LayoutAlgorithm
54f9ee45 1617_windows_.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr)
d14a1e28
RD
1618
1619#---------------------------------------------------------------------------
1620
54f9ee45 1621class PopupWindow(_core.Window):
e811c8ce
RD
1622 def __repr__(self):
1623 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1624 def __init__(self, *args, **kwargs):
a95a7133 1625 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
54f9ee45 1626 newobj = _windows_.new_PopupWindow(*args, **kwargs)
d14a1e28
RD
1627 self.this = newobj.this
1628 self.thisown = 1
1629 del newobj.thisown
1630 self._setOORInfo(self)
e811c8ce
RD
1631
1632 def Create(*args, **kwargs):
a95a7133 1633 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
54f9ee45 1634 return _windows_.PopupWindow_Create(*args, **kwargs)
e811c8ce
RD
1635
1636 def Position(*args, **kwargs):
a95a7133 1637 """Position(self, Point ptOrigin, Size size)"""
54f9ee45 1638 return _windows_.PopupWindow_Position(*args, **kwargs)
e811c8ce 1639
8ab979d7 1640
d14a1e28
RD
1641class PopupWindowPtr(PopupWindow):
1642 def __init__(self, this):
8ab979d7 1643 self.this = this
d14a1e28
RD
1644 if not hasattr(self,"thisown"): self.thisown = 0
1645 self.__class__ = PopupWindow
54f9ee45 1646_windows_.PopupWindow_swigregister(PopupWindowPtr)
d14a1e28
RD
1647
1648def PrePopupWindow(*args, **kwargs):
e811c8ce 1649 """PrePopupWindow() -> PopupWindow"""
54f9ee45 1650 val = _windows_.new_PrePopupWindow(*args, **kwargs)
d14a1e28
RD
1651 val.thisown = 1
1652 return val
1653
1654#---------------------------------------------------------------------------
1655
1656class PopupTransientWindow(PopupWindow):
e811c8ce
RD
1657 def __repr__(self):
1658 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1659 def __init__(self, *args, **kwargs):
a95a7133 1660 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
54f9ee45 1661 newobj = _windows_.new_PopupTransientWindow(*args, **kwargs)
d14a1e28
RD
1662 self.this = newobj.this
1663 self.thisown = 1
1664 del newobj.thisown
1665 self._setOORInfo(self);self._setCallbackInfo(self, PopupTransientWindow)
e811c8ce
RD
1666
1667 def _setCallbackInfo(*args, **kwargs):
a95a7133 1668 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
54f9ee45 1669 return _windows_.PopupTransientWindow__setCallbackInfo(*args, **kwargs)
e811c8ce
RD
1670
1671 def Popup(*args, **kwargs):
a95a7133 1672 """Popup(self, Window focus=None)"""
54f9ee45 1673 return _windows_.PopupTransientWindow_Popup(*args, **kwargs)
e811c8ce
RD
1674
1675 def Dismiss(*args, **kwargs):
a95a7133 1676 """Dismiss(self)"""
54f9ee45 1677 return _windows_.PopupTransientWindow_Dismiss(*args, **kwargs)
e811c8ce 1678
d14a1e28
RD
1679
1680class PopupTransientWindowPtr(PopupTransientWindow):
1681 def __init__(self, this):
1682 self.this = this
1683 if not hasattr(self,"thisown"): self.thisown = 0
1684 self.__class__ = PopupTransientWindow
54f9ee45 1685_windows_.PopupTransientWindow_swigregister(PopupTransientWindowPtr)
d14a1e28
RD
1686
1687def PrePopupTransientWindow(*args, **kwargs):
e811c8ce 1688 """PrePopupTransientWindow() -> PopupTransientWindow"""
54f9ee45 1689 val = _windows_.new_PrePopupTransientWindow(*args, **kwargs)
d14a1e28
RD
1690 val.thisown = 1
1691 return val
1692
1693#---------------------------------------------------------------------------
1694
1695class TipWindow(PopupTransientWindow):
e811c8ce
RD
1696 def __repr__(self):
1697 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1698 def __init__(self, *args, **kwargs):
a95a7133 1699 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
54f9ee45 1700 newobj = _windows_.new_TipWindow(*args, **kwargs)
d14a1e28 1701 self.this = newobj.this
8ab979d7 1702 self.thisown = 1
d14a1e28 1703 del newobj.thisown
0220cbc1 1704 self._setOORInfo(self)
e811c8ce
RD
1705
1706 def SetBoundingRect(*args, **kwargs):
a95a7133 1707 """SetBoundingRect(self, Rect rectBound)"""
54f9ee45 1708 return _windows_.TipWindow_SetBoundingRect(*args, **kwargs)
e811c8ce
RD
1709
1710 def Close(*args, **kwargs):
a95a7133 1711 """Close(self)"""
54f9ee45 1712 return _windows_.TipWindow_Close(*args, **kwargs)
e811c8ce 1713
8ab979d7 1714
d14a1e28
RD
1715class TipWindowPtr(TipWindow):
1716 def __init__(self, this):
1717 self.this = this
1718 if not hasattr(self,"thisown"): self.thisown = 0
1719 self.__class__ = TipWindow
54f9ee45 1720_windows_.TipWindow_swigregister(TipWindowPtr)
8ab979d7 1721
d14a1e28 1722#---------------------------------------------------------------------------
8ab979d7 1723
d14a1e28 1724class VScrolledWindow(Panel):
e811c8ce
RD
1725 def __repr__(self):
1726 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1727 def __init__(self, *args, **kwargs):
0df68c9f 1728 """
a95a7133 1729 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
196addbf 1730 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
0df68c9f 1731 """
54f9ee45 1732 newobj = _windows_.new_VScrolledWindow(*args, **kwargs)
d14a1e28
RD
1733 self.this = newobj.this
1734 self.thisown = 1
1735 del newobj.thisown
1736 self._setOORInfo(self); self._setCallbackInfo(self, VScrolledWindow)
e811c8ce
RD
1737
1738 def _setCallbackInfo(*args, **kwargs):
a95a7133 1739 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
54f9ee45 1740 return _windows_.VScrolledWindow__setCallbackInfo(*args, **kwargs)
e811c8ce
RD
1741
1742 def Create(*args, **kwargs):
0df68c9f 1743 """
a95a7133 1744 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
196addbf 1745 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
0df68c9f 1746 """
54f9ee45 1747 return _windows_.VScrolledWindow_Create(*args, **kwargs)
e811c8ce
RD
1748
1749 def SetLineCount(*args, **kwargs):
a95a7133 1750 """SetLineCount(self, size_t count)"""
54f9ee45 1751 return _windows_.VScrolledWindow_SetLineCount(*args, **kwargs)
e811c8ce
RD
1752
1753 def ScrollToLine(*args, **kwargs):
a95a7133 1754 """ScrollToLine(self, size_t line) -> bool"""
54f9ee45 1755 return _windows_.VScrolledWindow_ScrollToLine(*args, **kwargs)
e811c8ce
RD
1756
1757 def ScrollLines(*args, **kwargs):
15afbcd0 1758 """
a95a7133 1759 ScrollLines(self, int lines) -> bool
15afbcd0
RD
1760
1761 If the platform and window class supports it, scrolls the window by
1762 the given number of lines down, if lines is positive, or up if lines
1763 is negative. Returns True if the window was scrolled, False if it was
1764 already on top/bottom and nothing was done.
1765 """
54f9ee45 1766 return _windows_.VScrolledWindow_ScrollLines(*args, **kwargs)
e811c8ce
RD
1767
1768 def ScrollPages(*args, **kwargs):
15afbcd0 1769 """
a95a7133 1770 ScrollPages(self, int pages) -> bool
15afbcd0 1771
41e2b43e 1772 If the platform and window class supports it, scrolls the window by
15afbcd0
RD
1773 the given number of pages down, if pages is positive, or up if pages
1774 is negative. Returns True if the window was scrolled, False if it was
1775 already on top/bottom and nothing was done.
1776 """
54f9ee45 1777 return _windows_.VScrolledWindow_ScrollPages(*args, **kwargs)
e811c8ce
RD
1778
1779 def RefreshLine(*args, **kwargs):
a95a7133 1780 """RefreshLine(self, size_t line)"""
54f9ee45 1781 return _windows_.VScrolledWindow_RefreshLine(*args, **kwargs)
e811c8ce
RD
1782
1783 def RefreshLines(*args, **kwargs):
a95a7133 1784 """RefreshLines(self, size_t from, size_t to)"""
54f9ee45 1785 return _windows_.VScrolledWindow_RefreshLines(*args, **kwargs)
e811c8ce
RD
1786
1787 def HitTestXT(*args, **kwargs):
15afbcd0 1788 """
a95a7133 1789 HitTestXT(self, int x, int y) -> int
15afbcd0
RD
1790
1791 Test where the given (in client coords) point lies
1792 """
54f9ee45 1793 return _windows_.VScrolledWindow_HitTestXT(*args, **kwargs)
e811c8ce
RD
1794
1795 def HitTest(*args, **kwargs):
15afbcd0 1796 """
a95a7133 1797 HitTest(self, Point pt) -> int
15afbcd0
RD
1798
1799 Test where the given (in client coords) point lies
1800 """
54f9ee45 1801 return _windows_.VScrolledWindow_HitTest(*args, **kwargs)
e811c8ce
RD
1802
1803 def RefreshAll(*args, **kwargs):
a95a7133 1804 """RefreshAll(self)"""
54f9ee45 1805 return _windows_.VScrolledWindow_RefreshAll(*args, **kwargs)
e811c8ce
RD
1806
1807 def GetLineCount(*args, **kwargs):
a95a7133 1808 """GetLineCount(self) -> size_t"""
54f9ee45 1809 return _windows_.VScrolledWindow_GetLineCount(*args, **kwargs)
e811c8ce
RD
1810
1811 def GetFirstVisibleLine(*args, **kwargs):
a95a7133 1812 """GetFirstVisibleLine(self) -> size_t"""
54f9ee45 1813 return _windows_.VScrolledWindow_GetFirstVisibleLine(*args, **kwargs)
e811c8ce
RD
1814
1815 def GetLastVisibleLine(*args, **kwargs):
a95a7133 1816 """GetLastVisibleLine(self) -> size_t"""
54f9ee45 1817 return _windows_.VScrolledWindow_GetLastVisibleLine(*args, **kwargs)
e811c8ce
RD
1818
1819 def IsVisible(*args, **kwargs):
a95a7133 1820 """IsVisible(self, size_t line) -> bool"""
54f9ee45 1821 return _windows_.VScrolledWindow_IsVisible(*args, **kwargs)
e811c8ce 1822
d14a1e28
RD
1823
1824class VScrolledWindowPtr(VScrolledWindow):
1825 def __init__(self, this):
1826 self.this = this
1827 if not hasattr(self,"thisown"): self.thisown = 0
1828 self.__class__ = VScrolledWindow
54f9ee45 1829_windows_.VScrolledWindow_swigregister(VScrolledWindowPtr)
d14a1e28
RD
1830
1831def PreVScrolledWindow(*args, **kwargs):
e811c8ce 1832 """PreVScrolledWindow() -> VScrolledWindow"""
54f9ee45 1833 val = _windows_.new_PreVScrolledWindow(*args, **kwargs)
aa2a5b86
RD
1834 val.thisown = 1
1835 return val
1836
d14a1e28 1837class VListBox(VScrolledWindow):
e811c8ce
RD
1838 def __repr__(self):
1839 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1840 def __init__(self, *args, **kwargs):
0df68c9f 1841 """
a95a7133 1842 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
b2dc1044 1843 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
0df68c9f 1844 """
54f9ee45 1845 newobj = _windows_.new_VListBox(*args, **kwargs)
d14a1e28
RD
1846 self.this = newobj.this
1847 self.thisown = 1
1848 del newobj.thisown
1849 self._setOORInfo(self);self._setCallbackInfo(self, VListBox)
e811c8ce
RD
1850
1851 def _setCallbackInfo(*args, **kwargs):
a95a7133 1852 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
54f9ee45 1853 return _windows_.VListBox__setCallbackInfo(*args, **kwargs)
e811c8ce
RD
1854
1855 def Create(*args, **kwargs):
0df68c9f 1856 """
a95a7133 1857 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
b2dc1044 1858 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
0df68c9f 1859 """
54f9ee45 1860 return _windows_.VListBox_Create(*args, **kwargs)
e811c8ce
RD
1861
1862 def GetItemCount(*args, **kwargs):
a95a7133 1863 """GetItemCount(self) -> size_t"""
54f9ee45 1864 return _windows_.VListBox_GetItemCount(*args, **kwargs)
e811c8ce
RD
1865
1866 def HasMultipleSelection(*args, **kwargs):
a95a7133 1867 """HasMultipleSelection(self) -> bool"""
54f9ee45 1868 return _windows_.VListBox_HasMultipleSelection(*args, **kwargs)
e811c8ce
RD
1869
1870 def GetSelection(*args, **kwargs):
a95a7133 1871 """GetSelection(self) -> int"""
54f9ee45 1872 return _windows_.VListBox_GetSelection(*args, **kwargs)
e811c8ce
RD
1873
1874 def IsCurrent(*args, **kwargs):
a95a7133 1875 """IsCurrent(self, size_t item) -> bool"""
54f9ee45 1876 return _windows_.VListBox_IsCurrent(*args, **kwargs)
e811c8ce
RD
1877
1878 def IsSelected(*args, **kwargs):
a95a7133 1879 """IsSelected(self, size_t item) -> bool"""
54f9ee45 1880 return _windows_.VListBox_IsSelected(*args, **kwargs)
e811c8ce
RD
1881
1882 def GetSelectedCount(*args, **kwargs):
a95a7133 1883 """GetSelectedCount(self) -> size_t"""
54f9ee45 1884 return _windows_.VListBox_GetSelectedCount(*args, **kwargs)
e811c8ce
RD
1885
1886 def GetFirstSelected(*args, **kwargs):
a95a7133 1887 """GetFirstSelected(self, unsigned long cookie) -> int"""
54f9ee45 1888 return _windows_.VListBox_GetFirstSelected(*args, **kwargs)
e811c8ce
RD
1889
1890 def GetNextSelected(*args, **kwargs):
a95a7133 1891 """GetNextSelected(self, unsigned long cookie) -> int"""
54f9ee45 1892 return _windows_.VListBox_GetNextSelected(*args, **kwargs)
e811c8ce
RD
1893
1894 def GetMargins(*args, **kwargs):
a95a7133 1895 """GetMargins(self) -> Point"""
54f9ee45 1896 return _windows_.VListBox_GetMargins(*args, **kwargs)
e811c8ce
RD
1897
1898 def GetSelectionBackground(*args, **kwargs):
a95a7133 1899 """GetSelectionBackground(self) -> Colour"""
54f9ee45 1900 return _windows_.VListBox_GetSelectionBackground(*args, **kwargs)
e811c8ce
RD
1901
1902 def SetItemCount(*args, **kwargs):
a95a7133 1903 """SetItemCount(self, size_t count)"""
54f9ee45 1904 return _windows_.VListBox_SetItemCount(*args, **kwargs)
e811c8ce
RD
1905
1906 def Clear(*args, **kwargs):
a95a7133 1907 """Clear(self)"""
54f9ee45 1908 return _windows_.VListBox_Clear(*args, **kwargs)
e811c8ce
RD
1909
1910 def SetSelection(*args, **kwargs):
a95a7133 1911 """SetSelection(self, int selection)"""
54f9ee45 1912 return _windows_.VListBox_SetSelection(*args, **kwargs)
e811c8ce
RD
1913
1914 def Select(*args, **kwargs):
a95a7133 1915 """Select(self, size_t item, bool select=True) -> bool"""
54f9ee45 1916 return _windows_.VListBox_Select(*args, **kwargs)
e811c8ce
RD
1917
1918 def SelectRange(*args, **kwargs):
a95a7133 1919 """SelectRange(self, size_t from, size_t to) -> bool"""
54f9ee45 1920 return _windows_.VListBox_SelectRange(*args, **kwargs)
e811c8ce
RD
1921
1922 def Toggle(*args, **kwargs):
a95a7133 1923 """Toggle(self, size_t item)"""
54f9ee45 1924 return _windows_.VListBox_Toggle(*args, **kwargs)
e811c8ce
RD
1925
1926 def SelectAll(*args, **kwargs):
a95a7133 1927 """SelectAll(self) -> bool"""
54f9ee45 1928 return _windows_.VListBox_SelectAll(*args, **kwargs)
e811c8ce
RD
1929
1930 def DeselectAll(*args, **kwargs):
a95a7133 1931 """DeselectAll(self) -> bool"""
54f9ee45 1932 return _windows_.VListBox_DeselectAll(*args, **kwargs)
e811c8ce
RD
1933
1934 def SetMargins(*args, **kwargs):
a95a7133 1935 """SetMargins(self, Point pt)"""
54f9ee45 1936 return _windows_.VListBox_SetMargins(*args, **kwargs)
e811c8ce
RD
1937
1938 def SetMarginsXY(*args, **kwargs):
a95a7133 1939 """SetMarginsXY(self, int x, int y)"""
54f9ee45 1940 return _windows_.VListBox_SetMarginsXY(*args, **kwargs)
e811c8ce
RD
1941
1942 def SetSelectionBackground(*args, **kwargs):
a95a7133 1943 """SetSelectionBackground(self, Colour col)"""
54f9ee45 1944 return _windows_.VListBox_SetSelectionBackground(*args, **kwargs)
e811c8ce 1945
8ab979d7 1946
d14a1e28
RD
1947class VListBoxPtr(VListBox):
1948 def __init__(self, this):
8ab979d7 1949 self.this = this
d14a1e28
RD
1950 if not hasattr(self,"thisown"): self.thisown = 0
1951 self.__class__ = VListBox
54f9ee45 1952_windows_.VListBox_swigregister(VListBoxPtr)
b2dc1044 1953VListBoxNameStr = cvar.VListBoxNameStr
d14a1e28
RD
1954
1955def PreVListBox(*args, **kwargs):
e811c8ce 1956 """PreVListBox() -> VListBox"""
54f9ee45 1957 val = _windows_.new_PreVListBox(*args, **kwargs)
d14a1e28
RD
1958 val.thisown = 1
1959 return val
1960
1961class HtmlListBox(VListBox):
e811c8ce
RD
1962 def __repr__(self):
1963 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1964 def __init__(self, *args, **kwargs):
0df68c9f 1965 """
a95a7133 1966 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
b2dc1044 1967 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
0df68c9f 1968 """
54f9ee45 1969 newobj = _windows_.new_HtmlListBox(*args, **kwargs)
d14a1e28
RD
1970 self.this = newobj.this
1971 self.thisown = 1
1972 del newobj.thisown
1973 self._setOORInfo(self);self._setCallbackInfo(self, HtmlListBox)
e811c8ce
RD
1974
1975 def _setCallbackInfo(*args, **kwargs):
a95a7133 1976 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
54f9ee45 1977 return _windows_.HtmlListBox__setCallbackInfo(*args, **kwargs)
e811c8ce
RD
1978
1979 def Create(*args, **kwargs):
0df68c9f 1980 """
a95a7133 1981 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
b2dc1044 1982 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
0df68c9f 1983 """
54f9ee45 1984 return _windows_.HtmlListBox_Create(*args, **kwargs)
e811c8ce
RD
1985
1986 def RefreshAll(*args, **kwargs):
a95a7133 1987 """RefreshAll(self)"""
54f9ee45 1988 return _windows_.HtmlListBox_RefreshAll(*args, **kwargs)
e811c8ce
RD
1989
1990 def SetItemCount(*args, **kwargs):
a95a7133 1991 """SetItemCount(self, size_t count)"""
54f9ee45 1992 return _windows_.HtmlListBox_SetItemCount(*args, **kwargs)
e811c8ce 1993
7fdaaabe
RD
1994 def GetFileSystem(*args, **kwargs):
1995 """GetFileSystem(self) -> FileSystem"""
1996 return _windows_.HtmlListBox_GetFileSystem(*args, **kwargs)
1997
d14a1e28
RD
1998
1999class HtmlListBoxPtr(HtmlListBox):
2000 def __init__(self, this):
2001 self.this = this
2002 if not hasattr(self,"thisown"): self.thisown = 0
2003 self.__class__ = HtmlListBox
54f9ee45 2004_windows_.HtmlListBox_swigregister(HtmlListBoxPtr)
d14a1e28
RD
2005
2006def PreHtmlListBox(*args, **kwargs):
e811c8ce 2007 """PreHtmlListBox() -> HtmlListBox"""
54f9ee45 2008 val = _windows_.new_PreHtmlListBox(*args, **kwargs)
d14a1e28
RD
2009 val.thisown = 1
2010 return val
2011
2012#---------------------------------------------------------------------------
2013
54f9ee45 2014class TaskBarIcon(_core.EvtHandler):
e811c8ce
RD
2015 def __repr__(self):
2016 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2017 def __init__(self, *args, **kwargs):
a95a7133 2018 """__init__(self) -> TaskBarIcon"""
54f9ee45 2019 newobj = _windows_.new_TaskBarIcon(*args, **kwargs)
d14a1e28 2020 self.this = newobj.this
8ab979d7 2021 self.thisown = 1
d14a1e28 2022 del newobj.thisown
54f9ee45 2023 def __del__(self, destroy=_windows_.delete_TaskBarIcon):
a95a7133 2024 """__del__(self)"""
d14a1e28
RD
2025 try:
2026 if self.thisown: destroy(self)
2027 except: pass
e811c8ce 2028
74a57fcd
RD
2029 def Destroy(*args, **kwargs):
2030 """
a95a7133 2031 Destroy(self)
74a57fcd
RD
2032
2033 Deletes the C++ object this Python object is a proxy for.
2034 """
54f9ee45 2035 return _windows_.TaskBarIcon_Destroy(*args, **kwargs)
74a57fcd 2036
e811c8ce 2037 def IsOk(*args, **kwargs):
a95a7133 2038 """IsOk(self) -> bool"""
54f9ee45 2039 return _windows_.TaskBarIcon_IsOk(*args, **kwargs)
e811c8ce 2040
4276dc52 2041 def __nonzero__(self): return self.IsOk()
e811c8ce 2042 def IsIconInstalled(*args, **kwargs):
a95a7133 2043 """IsIconInstalled(self) -> bool"""
54f9ee45 2044 return _windows_.TaskBarIcon_IsIconInstalled(*args, **kwargs)
e811c8ce
RD
2045
2046 def SetIcon(*args, **kwargs):
a95a7133 2047 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
54f9ee45 2048 return _windows_.TaskBarIcon_SetIcon(*args, **kwargs)
e811c8ce
RD
2049
2050 def RemoveIcon(*args, **kwargs):
a95a7133 2051 """RemoveIcon(self) -> bool"""
54f9ee45 2052 return _windows_.TaskBarIcon_RemoveIcon(*args, **kwargs)
e811c8ce
RD
2053
2054 def PopupMenu(*args, **kwargs):
a95a7133 2055 """PopupMenu(self, Menu menu) -> bool"""
54f9ee45 2056 return _windows_.TaskBarIcon_PopupMenu(*args, **kwargs)
e811c8ce 2057
8ab979d7 2058
d14a1e28
RD
2059class TaskBarIconPtr(TaskBarIcon):
2060 def __init__(self, this):
2061 self.this = this
2062 if not hasattr(self,"thisown"): self.thisown = 0
2063 self.__class__ = TaskBarIcon
54f9ee45 2064_windows_.TaskBarIcon_swigregister(TaskBarIconPtr)
d14a1e28 2065
54f9ee45 2066class TaskBarIconEvent(_core.Event):
e811c8ce
RD
2067 def __repr__(self):
2068 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2069 def __init__(self, *args, **kwargs):
a95a7133 2070 """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
54f9ee45 2071 newobj = _windows_.new_TaskBarIconEvent(*args, **kwargs)
d14a1e28
RD
2072 self.this = newobj.this
2073 self.thisown = 1
2074 del newobj.thisown
8ab979d7 2075
d14a1e28
RD
2076class TaskBarIconEventPtr(TaskBarIconEvent):
2077 def __init__(self, this):
2078 self.this = this
2079 if not hasattr(self,"thisown"): self.thisown = 0
2080 self.__class__ = TaskBarIconEvent
54f9ee45
RD
2081_windows_.TaskBarIconEvent_swigregister(TaskBarIconEventPtr)
2082
2083wxEVT_TASKBAR_MOVE = _windows_.wxEVT_TASKBAR_MOVE
2084wxEVT_TASKBAR_LEFT_DOWN = _windows_.wxEVT_TASKBAR_LEFT_DOWN
2085wxEVT_TASKBAR_LEFT_UP = _windows_.wxEVT_TASKBAR_LEFT_UP
2086wxEVT_TASKBAR_RIGHT_DOWN = _windows_.wxEVT_TASKBAR_RIGHT_DOWN
2087wxEVT_TASKBAR_RIGHT_UP = _windows_.wxEVT_TASKBAR_RIGHT_UP
2088wxEVT_TASKBAR_LEFT_DCLICK = _windows_.wxEVT_TASKBAR_LEFT_DCLICK
2089wxEVT_TASKBAR_RIGHT_DCLICK = _windows_.wxEVT_TASKBAR_RIGHT_DCLICK
d14a1e28
RD
2090EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE )
2091EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN )
2092EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP )
2093EVT_TASKBAR_RIGHT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN )
2094EVT_TASKBAR_RIGHT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP )
2095EVT_TASKBAR_LEFT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK )
2096EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK )
2097
2098#---------------------------------------------------------------------------
2099
54f9ee45 2100class ColourData(_core.Object):
66c033b4
RD
2101 """
2102 This class holds a variety of information related to the colour
03e37cd5
RD
2103 chooser dialog, used to transfer settings and results to and from the
2104 `wx.ColourDialog`.
66c033b4 2105 """
e811c8ce
RD
2106 def __repr__(self):
2107 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2108 def __init__(self, *args, **kwargs):
fcafa8a9 2109 """
a95a7133 2110 __init__(self) -> ColourData
fcafa8a9
RD
2111
2112 Constructor, sets default values.
2113 """
54f9ee45 2114 newobj = _windows_.new_ColourData(*args, **kwargs)
d14a1e28
RD
2115 self.this = newobj.this
2116 self.thisown = 1
2117 del newobj.thisown
54f9ee45 2118 def __del__(self, destroy=_windows_.delete_ColourData):
a95a7133 2119 """__del__(self)"""
d14a1e28
RD
2120 try:
2121 if self.thisown: destroy(self)
2122 except: pass
e811c8ce
RD
2123
2124 def GetChooseFull(*args, **kwargs):
fcafa8a9 2125 """
a95a7133 2126 GetChooseFull(self) -> bool
fcafa8a9 2127
66c033b4
RD
2128 Under Windows, determines whether the Windows colour dialog will
2129 display the full dialog with custom colour selection controls. Has no
2130 meaning under other platforms. The default value is true.
fcafa8a9 2131 """
54f9ee45 2132 return _windows_.ColourData_GetChooseFull(*args, **kwargs)
e811c8ce
RD
2133
2134 def GetColour(*args, **kwargs):
fcafa8a9 2135 """
a95a7133 2136 GetColour(self) -> Colour
fcafa8a9
RD
2137
2138 Gets the colour (pre)selected by the dialog.
2139 """
54f9ee45 2140 return _windows_.ColourData_GetColour(*args, **kwargs)
e811c8ce
RD
2141
2142 def GetCustomColour(*args, **kwargs):
fcafa8a9 2143 """
a95a7133 2144 GetCustomColour(self, int i) -> Colour
fcafa8a9 2145
66c033b4
RD
2146 Gets the i'th custom colour associated with the colour dialog. i
2147 should be an integer between 0 and 15. The default custom colours are
2148 all white.
fcafa8a9 2149 """
54f9ee45 2150 return _windows_.ColourData_GetCustomColour(*args, **kwargs)
e811c8ce
RD
2151
2152 def SetChooseFull(*args, **kwargs):
fcafa8a9 2153 """
a95a7133 2154 SetChooseFull(self, int flag)
fcafa8a9 2155
66c033b4
RD
2156 Under Windows, tells the Windows colour dialog to display the full
2157 dialog with custom colour selection controls. Under other platforms,
2158 has no effect. The default value is true.
fcafa8a9 2159 """
54f9ee45 2160 return _windows_.ColourData_SetChooseFull(*args, **kwargs)
e811c8ce
RD
2161
2162 def SetColour(*args, **kwargs):
fcafa8a9 2163 """
a95a7133 2164 SetColour(self, Colour colour)
fcafa8a9 2165
66c033b4
RD
2166 Sets the default colour for the colour dialog. The default colour is
2167 black.
fcafa8a9 2168 """
54f9ee45 2169 return _windows_.ColourData_SetColour(*args, **kwargs)
e811c8ce
RD
2170
2171 def SetCustomColour(*args, **kwargs):
fcafa8a9 2172 """
a95a7133 2173 SetCustomColour(self, int i, Colour colour)
fcafa8a9 2174
66c033b4
RD
2175 Sets the i'th custom colour for the colour dialog. i should be an
2176 integer between 0 and 15. The default custom colours are all white.
fcafa8a9 2177 """
54f9ee45 2178 return _windows_.ColourData_SetCustomColour(*args, **kwargs)
e811c8ce 2179
8ab979d7 2180
d14a1e28
RD
2181class ColourDataPtr(ColourData):
2182 def __init__(self, this):
2183 self.this = this
2184 if not hasattr(self,"thisown"): self.thisown = 0
2185 self.__class__ = ColourData
54f9ee45 2186_windows_.ColourData_swigregister(ColourDataPtr)
b2dc1044
RD
2187FileSelectorPromptStr = cvar.FileSelectorPromptStr
2188DirSelectorPromptStr = cvar.DirSelectorPromptStr
2189DirDialogNameStr = cvar.DirDialogNameStr
2190FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr
2191GetTextFromUserPromptStr = cvar.GetTextFromUserPromptStr
2192MessageBoxCaptionStr = cvar.MessageBoxCaptionStr
d14a1e28
RD
2193
2194class ColourDialog(Dialog):
fcafa8a9 2195 """This class represents the colour chooser dialog."""
e811c8ce
RD
2196 def __repr__(self):
2197 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2198 def __init__(self, *args, **kwargs):
fcafa8a9 2199 """
a95a7133 2200 __init__(self, Window parent, ColourData data=None) -> ColourDialog
fcafa8a9 2201
66c033b4
RD
2202 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2203 which will be copied to the colour dialog's internal ColourData
2204 instance.
fcafa8a9 2205 """
54f9ee45 2206 newobj = _windows_.new_ColourDialog(*args, **kwargs)
d14a1e28
RD
2207 self.this = newobj.this
2208 self.thisown = 1
2209 del newobj.thisown
2210 self._setOORInfo(self)
e811c8ce
RD
2211
2212 def GetColourData(*args, **kwargs):
fcafa8a9 2213 """
a95a7133 2214 GetColourData(self) -> ColourData
e811c8ce 2215
66c033b4 2216 Returns a reference to the `wx.ColourData` used by the dialog.
fcafa8a9 2217 """
54f9ee45 2218 return _windows_.ColourDialog_GetColourData(*args, **kwargs)
e811c8ce 2219
8ab979d7 2220
d14a1e28
RD
2221class ColourDialogPtr(ColourDialog):
2222 def __init__(self, this):
8ab979d7 2223 self.this = this
d14a1e28
RD
2224 if not hasattr(self,"thisown"): self.thisown = 0
2225 self.__class__ = ColourDialog
54f9ee45 2226_windows_.ColourDialog_swigregister(ColourDialogPtr)
d14a1e28
RD
2227
2228class DirDialog(Dialog):
66c033b4
RD
2229 """
2230 wx.DirDialog allows the user to select a directory by browising the
2231 file system.
66c033b4 2232 """
e811c8ce
RD
2233 def __repr__(self):
2234 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2235 def __init__(self, *args, **kwargs):
0df68c9f 2236 """
a95a7133 2237 __init__(self, Window parent, String message=DirSelectorPromptStr,
196addbf
RD
2238 String defaultPath=EmptyString, long style=0,
2239 Point pos=DefaultPosition, Size size=DefaultSize,
b2dc1044 2240 String name=DirDialogNameStr) -> DirDialog
fcafa8a9
RD
2241
2242 Constructor. Use ShowModal method to show the dialog.
0df68c9f 2243 """
54f9ee45 2244 newobj = _windows_.new_DirDialog(*args, **kwargs)
d14a1e28
RD
2245 self.this = newobj.this
2246 self.thisown = 1
2247 del newobj.thisown
2248 self._setOORInfo(self)
e811c8ce
RD
2249
2250 def GetPath(*args, **kwargs):
fcafa8a9 2251 """
a95a7133 2252 GetPath(self) -> String
fcafa8a9
RD
2253
2254 Returns the default or user-selected path.
2255 """
54f9ee45 2256 return _windows_.DirDialog_GetPath(*args, **kwargs)
e811c8ce
RD
2257
2258 def GetMessage(*args, **kwargs):
fcafa8a9 2259 """
a95a7133 2260 GetMessage(self) -> String
fcafa8a9
RD
2261
2262 Returns the message that will be displayed on the dialog.
2263 """
54f9ee45 2264 return _windows_.DirDialog_GetMessage(*args, **kwargs)
e811c8ce
RD
2265
2266 def GetStyle(*args, **kwargs):
fcafa8a9 2267 """
a95a7133 2268 GetStyle(self) -> long
fcafa8a9
RD
2269
2270 Returns the dialog style.
2271 """
54f9ee45 2272 return _windows_.DirDialog_GetStyle(*args, **kwargs)
e811c8ce
RD
2273
2274 def SetMessage(*args, **kwargs):
fcafa8a9 2275 """
a95a7133 2276 SetMessage(self, String message)
fcafa8a9
RD
2277
2278 Sets the message that will be displayed on the dialog.
2279 """
54f9ee45 2280 return _windows_.DirDialog_SetMessage(*args, **kwargs)
e811c8ce
RD
2281
2282 def SetPath(*args, **kwargs):
fcafa8a9 2283 """
a95a7133 2284 SetPath(self, String path)
e811c8ce 2285
fcafa8a9
RD
2286 Sets the default path.
2287 """
54f9ee45 2288 return _windows_.DirDialog_SetPath(*args, **kwargs)
e811c8ce 2289
d14a1e28
RD
2290
2291class DirDialogPtr(DirDialog):
2292 def __init__(self, this):
2293 self.this = this
2294 if not hasattr(self,"thisown"): self.thisown = 0
2295 self.__class__ = DirDialog
54f9ee45 2296_windows_.DirDialog_swigregister(DirDialogPtr)
d14a1e28
RD
2297
2298class FileDialog(Dialog):
66c033b4
RD
2299 """
2300 wx.FileDialog allows the user to select one or more files from the
2301 filesystem.
66c033b4 2302 """
e811c8ce
RD
2303 def __repr__(self):
2304 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2305 def __init__(self, *args, **kwargs):
0df68c9f 2306 """
a95a7133 2307 __init__(self, Window parent, String message=FileSelectorPromptStr,
196addbf 2308 String defaultDir=EmptyString, String defaultFile=EmptyString,
b2dc1044
RD
2309 String wildcard=FileSelectorDefaultWildcardStr,
2310 long style=0, Point pos=DefaultPosition) -> FileDialog
fcafa8a9
RD
2311
2312 Constructor. Use ShowModal method to show the dialog.
0df68c9f 2313 """
54f9ee45 2314 newobj = _windows_.new_FileDialog(*args, **kwargs)
d14a1e28 2315 self.this = newobj.this
8ab979d7 2316 self.thisown = 1
d14a1e28 2317 del newobj.thisown
0220cbc1 2318 self._setOORInfo(self)
e811c8ce
RD
2319
2320 def SetMessage(*args, **kwargs):
fcafa8a9 2321 """
a95a7133 2322 SetMessage(self, String message)
fcafa8a9
RD
2323
2324 Sets the message that will be displayed on the dialog.
2325 """
54f9ee45 2326 return _windows_.FileDialog_SetMessage(*args, **kwargs)
e811c8ce
RD
2327
2328 def SetPath(*args, **kwargs):
fcafa8a9 2329 """
a95a7133 2330 SetPath(self, String path)
fcafa8a9 2331
66c033b4
RD
2332 Sets the path (the combined directory and filename that will be
2333 returned when the dialog is dismissed).
fcafa8a9 2334 """
54f9ee45 2335 return _windows_.FileDialog_SetPath(*args, **kwargs)
e811c8ce
RD
2336
2337 def SetDirectory(*args, **kwargs):
fcafa8a9 2338 """
a95a7133 2339 SetDirectory(self, String dir)
fcafa8a9
RD
2340
2341 Sets the default directory.
2342 """
54f9ee45 2343 return _windows_.FileDialog_SetDirectory(*args, **kwargs)
e811c8ce
RD
2344
2345 def SetFilename(*args, **kwargs):
fcafa8a9 2346 """
a95a7133 2347 SetFilename(self, String name)
fcafa8a9
RD
2348
2349 Sets the default filename.
2350 """
54f9ee45 2351 return _windows_.FileDialog_SetFilename(*args, **kwargs)
e811c8ce
RD
2352
2353 def SetWildcard(*args, **kwargs):
fcafa8a9 2354 """
a95a7133 2355 SetWildcard(self, String wildCard)
fcafa8a9 2356
66c033b4
RD
2357 Sets the wildcard, which can contain multiple file types, for
2358 example::
2359
fcafa8a9 2360 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
66c033b4 2361
fcafa8a9 2362 """
54f9ee45 2363 return _windows_.FileDialog_SetWildcard(*args, **kwargs)
e811c8ce
RD
2364
2365 def SetStyle(*args, **kwargs):
fcafa8a9 2366 """
a95a7133 2367 SetStyle(self, long style)
fcafa8a9
RD
2368
2369 Sets the dialog style.
2370 """
54f9ee45 2371 return _windows_.FileDialog_SetStyle(*args, **kwargs)
e811c8ce
RD
2372
2373 def SetFilterIndex(*args, **kwargs):
fcafa8a9 2374 """
a95a7133 2375 SetFilterIndex(self, int filterIndex)
fcafa8a9
RD
2376
2377 Sets the default filter index, starting from zero.
2378 """
54f9ee45 2379 return _windows_.FileDialog_SetFilterIndex(*args, **kwargs)
e811c8ce
RD
2380
2381 def GetMessage(*args, **kwargs):
fcafa8a9 2382 """
a95a7133 2383 GetMessage(self) -> String
fcafa8a9
RD
2384
2385 Returns the message that will be displayed on the dialog.
2386 """
54f9ee45 2387 return _windows_.FileDialog_GetMessage(*args, **kwargs)
e811c8ce
RD
2388
2389 def GetPath(*args, **kwargs):
fcafa8a9 2390 """
a95a7133 2391 GetPath(self) -> String
fcafa8a9
RD
2392
2393 Returns the full path (directory and filename) of the selected file.
2394 """
54f9ee45 2395 return _windows_.FileDialog_GetPath(*args, **kwargs)
e811c8ce
RD
2396
2397 def GetDirectory(*args, **kwargs):
fcafa8a9 2398 """
a95a7133 2399 GetDirectory(self) -> String
fcafa8a9
RD
2400
2401 Returns the default directory.
2402 """
54f9ee45 2403 return _windows_.FileDialog_GetDirectory(*args, **kwargs)
e811c8ce
RD
2404
2405 def GetFilename(*args, **kwargs):
fcafa8a9 2406 """
a95a7133 2407 GetFilename(self) -> String
fcafa8a9
RD
2408
2409 Returns the default filename.
2410 """
54f9ee45 2411 return _windows_.FileDialog_GetFilename(*args, **kwargs)
e811c8ce
RD
2412
2413 def GetWildcard(*args, **kwargs):
fcafa8a9 2414 """
a95a7133 2415 GetWildcard(self) -> String
fcafa8a9
RD
2416
2417 Returns the file dialog wildcard.
2418 """
54f9ee45 2419 return _windows_.FileDialog_GetWildcard(*args, **kwargs)
e811c8ce
RD
2420
2421 def GetStyle(*args, **kwargs):
fcafa8a9 2422 """
a95a7133 2423 GetStyle(self) -> long
fcafa8a9
RD
2424
2425 Returns the dialog style.
2426 """
54f9ee45 2427 return _windows_.FileDialog_GetStyle(*args, **kwargs)
e811c8ce
RD
2428
2429 def GetFilterIndex(*args, **kwargs):
fcafa8a9 2430 """
a95a7133 2431 GetFilterIndex(self) -> int
fcafa8a9
RD
2432
2433 Returns the index into the list of filters supplied, optionally, in
2434 the wildcard parameter. Before the dialog is shown, this is the index
66c033b4
RD
2435 which will be used when the dialog is first displayed. After the
2436 dialog is shown, this is the index selected by the user.
fcafa8a9 2437 """
54f9ee45 2438 return _windows_.FileDialog_GetFilterIndex(*args, **kwargs)
e811c8ce
RD
2439
2440 def GetFilenames(*args, **kwargs):
fcafa8a9 2441 """
a95a7133 2442 GetFilenames(self) -> PyObject
fcafa8a9 2443
66c033b4
RD
2444 Returns a list of filenames chosen in the dialog. This function
2445 should only be used with the dialogs which have wx.MULTIPLE style, use
fcafa8a9
RD
2446 GetFilename for the others.
2447 """
54f9ee45 2448 return _windows_.FileDialog_GetFilenames(*args, **kwargs)
e811c8ce
RD
2449
2450 def GetPaths(*args, **kwargs):
fcafa8a9 2451 """
a95a7133 2452 GetPaths(self) -> PyObject
fcafa8a9
RD
2453
2454 Fills the array paths with the full paths of the files chosen. This
66c033b4
RD
2455 function should only be used with the dialogs which have wx.MULTIPLE
2456 style, use GetPath for the others.
fcafa8a9 2457 """
54f9ee45 2458 return _windows_.FileDialog_GetPaths(*args, **kwargs)
e811c8ce 2459
8ab979d7 2460
d14a1e28
RD
2461class FileDialogPtr(FileDialog):
2462 def __init__(self, this):
2463 self.this = this
2464 if not hasattr(self,"thisown"): self.thisown = 0
2465 self.__class__ = FileDialog
54f9ee45 2466_windows_.FileDialog_swigregister(FileDialogPtr)
d14a1e28 2467
54f9ee45 2468CHOICEDLG_STYLE = _windows_.CHOICEDLG_STYLE
d14a1e28 2469class MultiChoiceDialog(Dialog):
e498079e 2470 """A simple dialog with a multi selection listbox."""
e811c8ce
RD
2471 def __repr__(self):
2472 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2473 def __init__(self, *args, **kwargs):
0df68c9f 2474 """
e498079e
RD
2475 __init__(Window parent, String message, String caption,
2476 List choices=[], long style=CHOICEDLG_STYLE,
0df68c9f 2477 Point pos=DefaultPosition) -> MultiChoiceDialog
e498079e
RD
2478
2479 Constructor. Use ShowModal method to show the dialog.
0df68c9f 2480 """
54f9ee45 2481 newobj = _windows_.new_MultiChoiceDialog(*args, **kwargs)
d14a1e28
RD
2482 self.this = newobj.this
2483 self.thisown = 1
2484 del newobj.thisown
2485 self._setOORInfo(self)
e811c8ce
RD
2486
2487 def SetSelections(*args, **kwargs):
41e2b43e 2488 """SetSelections(List selections)"""
54f9ee45 2489 return _windows_.MultiChoiceDialog_SetSelections(*args, **kwargs)
e811c8ce
RD
2490
2491 def GetSelections(*args, **kwargs):
e498079e
RD
2492 """
2493 GetSelections() -> [selections]
2494
2495 Returns a list of integers representing the items that are selected.
2496 """
54f9ee45 2497 return _windows_.MultiChoiceDialog_GetSelections(*args, **kwargs)
e811c8ce 2498
8ab979d7 2499
d14a1e28
RD
2500class MultiChoiceDialogPtr(MultiChoiceDialog):
2501 def __init__(self, this):
2502 self.this = this
2503 if not hasattr(self,"thisown"): self.thisown = 0
2504 self.__class__ = MultiChoiceDialog
54f9ee45 2505_windows_.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr)
d14a1e28
RD
2506
2507class SingleChoiceDialog(Dialog):
e498079e 2508 """A simple dialog with a single selection listbox."""
e811c8ce
RD
2509 def __repr__(self):
2510 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2511 def __init__(self, *args, **kwargs):
0df68c9f 2512 """
e498079e
RD
2513 __init__(Window parent, String message, String caption,
2514 List choices=[], long style=CHOICEDLG_STYLE,
0df68c9f 2515 Point pos=DefaultPosition) -> SingleChoiceDialog
e498079e
RD
2516
2517 Constructor. Use ShowModal method to show the dialog.
0df68c9f 2518 """
54f9ee45 2519 newobj = _windows_.new_SingleChoiceDialog(*args, **kwargs)
d14a1e28
RD
2520 self.this = newobj.this
2521 self.thisown = 1
2522 del newobj.thisown
2523 self._setOORInfo(self)
e811c8ce
RD
2524
2525 def GetSelection(*args, **kwargs):
e498079e 2526 """
a95a7133 2527 GetSelection(self) -> int
e498079e
RD
2528
2529 Get the index of teh currently selected item.
2530 """
54f9ee45 2531 return _windows_.SingleChoiceDialog_GetSelection(*args, **kwargs)
e811c8ce
RD
2532
2533 def GetStringSelection(*args, **kwargs):
e498079e 2534 """
a95a7133 2535 GetStringSelection(self) -> String
e498079e
RD
2536
2537 Returns the string value of the currently selected item
2538 """
54f9ee45 2539 return _windows_.SingleChoiceDialog_GetStringSelection(*args, **kwargs)
e811c8ce
RD
2540
2541 def SetSelection(*args, **kwargs):
e498079e 2542 """
a95a7133 2543 SetSelection(self, int sel)
e811c8ce 2544
e498079e
RD
2545 Set the current selected item to sel
2546 """
54f9ee45 2547 return _windows_.SingleChoiceDialog_SetSelection(*args, **kwargs)
e811c8ce 2548
8ab979d7 2549
d14a1e28
RD
2550class SingleChoiceDialogPtr(SingleChoiceDialog):
2551 def __init__(self, this):
2552 self.this = this
2553 if not hasattr(self,"thisown"): self.thisown = 0
2554 self.__class__ = SingleChoiceDialog
54f9ee45 2555_windows_.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr)
d14a1e28
RD
2556
2557class TextEntryDialog(Dialog):
e498079e 2558 """A dialog with text control, [ok] and [cancel] buttons"""
e811c8ce
RD
2559 def __repr__(self):
2560 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2561 def __init__(self, *args, **kwargs):
0df68c9f 2562 """
a95a7133 2563 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
196addbf 2564 String defaultValue=EmptyString,
b2dc1044 2565 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
e498079e
RD
2566
2567 Constructor. Use ShowModal method to show the dialog.
0df68c9f 2568 """
54f9ee45 2569 newobj = _windows_.new_TextEntryDialog(*args, **kwargs)
d14a1e28
RD
2570 self.this = newobj.this
2571 self.thisown = 1
2572 del newobj.thisown
2573 self._setOORInfo(self)
e811c8ce
RD
2574
2575 def GetValue(*args, **kwargs):
e498079e 2576 """
a95a7133 2577 GetValue(self) -> String
e498079e
RD
2578
2579 Returns the text that the user has entered if the user has pressed OK,
2580 or the original value if the user has pressed Cancel.
2581 """
54f9ee45 2582 return _windows_.TextEntryDialog_GetValue(*args, **kwargs)
e811c8ce
RD
2583
2584 def SetValue(*args, **kwargs):
e498079e 2585 """
a95a7133 2586 SetValue(self, String value)
e811c8ce 2587
e498079e
RD
2588 Sets the default text value.
2589 """
54f9ee45 2590 return _windows_.TextEntryDialog_SetValue(*args, **kwargs)
e811c8ce 2591
8ab979d7 2592
d14a1e28
RD
2593class TextEntryDialogPtr(TextEntryDialog):
2594 def __init__(self, this):
8ab979d7 2595 self.this = this
d14a1e28
RD
2596 if not hasattr(self,"thisown"): self.thisown = 0
2597 self.__class__ = TextEntryDialog
54f9ee45 2598_windows_.TextEntryDialog_swigregister(TextEntryDialogPtr)
d14a1e28 2599
54f9ee45 2600class FontData(_core.Object):
66c033b4
RD
2601 """
2602 This class holds a variety of information related to font dialogs and
2603 is used to transfer settings to and results from a `wx.FontDialog`.
2604 """
e811c8ce
RD
2605 def __repr__(self):
2606 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2607 def __init__(self, *args, **kwargs):
e498079e 2608 """
a95a7133 2609 __init__(self) -> FontData
e498079e 2610
66c033b4
RD
2611 This class holds a variety of information related to font dialogs and
2612 is used to transfer settings to and results from a `wx.FontDialog`.
e498079e 2613 """
54f9ee45 2614 newobj = _windows_.new_FontData(*args, **kwargs)
d14a1e28
RD
2615 self.this = newobj.this
2616 self.thisown = 1
2617 del newobj.thisown
54f9ee45 2618 def __del__(self, destroy=_windows_.delete_FontData):
a95a7133 2619 """__del__(self)"""
d14a1e28
RD
2620 try:
2621 if self.thisown: destroy(self)
2622 except: pass
e811c8ce
RD
2623
2624 def EnableEffects(*args, **kwargs):
e498079e 2625 """
a95a7133 2626 EnableEffects(self, bool enable)
e498079e 2627
66c033b4
RD
2628 Enables or disables 'effects' under MS Windows only. This refers to
2629 the controls for manipulating colour, strikeout and underline
e498079e
RD
2630 properties. The default value is true.
2631 """
54f9ee45 2632 return _windows_.FontData_EnableEffects(*args, **kwargs)
e811c8ce
RD
2633
2634 def GetAllowSymbols(*args, **kwargs):
e498079e 2635 """
a95a7133 2636 GetAllowSymbols(self) -> bool
e498079e 2637
66c033b4
RD
2638 Under MS Windows, returns a flag determining whether symbol fonts can
2639 be selected. Has no effect on other platforms. The default value is
2640 true.
e498079e 2641 """
54f9ee45 2642 return _windows_.FontData_GetAllowSymbols(*args, **kwargs)
e811c8ce
RD
2643
2644 def GetColour(*args, **kwargs):
e498079e 2645 """
a95a7133 2646 GetColour(self) -> Colour
e498079e 2647
66c033b4
RD
2648 Gets the colour associated with the font dialog. The default value is
2649 black.
e498079e 2650 """
54f9ee45 2651 return _windows_.FontData_GetColour(*args, **kwargs)
e811c8ce
RD
2652
2653 def GetChosenFont(*args, **kwargs):
e498079e 2654 """
a95a7133 2655 GetChosenFont(self) -> Font
e498079e
RD
2656
2657 Gets the font chosen by the user.
2658 """
54f9ee45 2659 return _windows_.FontData_GetChosenFont(*args, **kwargs)
e811c8ce
RD
2660
2661 def GetEnableEffects(*args, **kwargs):
e498079e 2662 """
a95a7133 2663 GetEnableEffects(self) -> bool
e498079e
RD
2664
2665 Determines whether 'effects' are enabled under Windows.
2666 """
54f9ee45 2667 return _windows_.FontData_GetEnableEffects(*args, **kwargs)
e811c8ce
RD
2668
2669 def GetInitialFont(*args, **kwargs):
e498079e 2670 """
a95a7133 2671 GetInitialFont(self) -> Font
e498079e 2672
66c033b4
RD
2673 Gets the font that will be initially used by the font dialog. This
2674 should have previously been set by the application.
e498079e 2675 """
54f9ee45 2676 return _windows_.FontData_GetInitialFont(*args, **kwargs)
e811c8ce
RD
2677
2678 def GetShowHelp(*args, **kwargs):
e498079e 2679 """
a95a7133 2680 GetShowHelp(self) -> bool
e498079e 2681
66c033b4
RD
2682 Returns true if the Help button will be shown (Windows only). The
2683 default value is false.
e498079e 2684 """
54f9ee45 2685 return _windows_.FontData_GetShowHelp(*args, **kwargs)
e811c8ce
RD
2686
2687 def SetAllowSymbols(*args, **kwargs):
e498079e 2688 """
a95a7133 2689 SetAllowSymbols(self, bool allowSymbols)
e498079e 2690
66c033b4
RD
2691 Under MS Windows, determines whether symbol fonts can be selected. Has
2692 no effect on other platforms. The default value is true.
e498079e 2693 """
54f9ee45 2694 return _windows_.FontData_SetAllowSymbols(*args, **kwargs)
e811c8ce
RD
2695
2696 def SetChosenFont(*args, **kwargs):
e498079e 2697 """
a95a7133 2698 SetChosenFont(self, Font font)
e498079e 2699
66c033b4
RD
2700 Sets the font that will be returned to the user (normally for internal
2701 use only).
e498079e 2702 """
54f9ee45 2703 return _windows_.FontData_SetChosenFont(*args, **kwargs)
e811c8ce
RD
2704
2705 def SetColour(*args, **kwargs):
e498079e 2706 """
a95a7133 2707 SetColour(self, Colour colour)
e498079e 2708
66c033b4
RD
2709 Sets the colour that will be used for the font foreground colour. The
2710 default colour is black.
e498079e 2711 """
54f9ee45 2712 return _windows_.FontData_SetColour(*args, **kwargs)
e811c8ce
RD
2713
2714 def SetInitialFont(*args, **kwargs):
e498079e 2715 """
a95a7133 2716 SetInitialFont(self, Font font)
e498079e
RD
2717
2718 Sets the font that will be initially used by the font dialog.
2719 """
54f9ee45 2720 return _windows_.FontData_SetInitialFont(*args, **kwargs)
e811c8ce
RD
2721
2722 def SetRange(*args, **kwargs):
e498079e 2723 """
a95a7133 2724 SetRange(self, int min, int max)
e498079e 2725
66c033b4
RD
2726 Sets the valid range for the font point size (Windows only). The
2727 default is 0, 0 (unrestricted range).
e498079e 2728 """
54f9ee45 2729 return _windows_.FontData_SetRange(*args, **kwargs)
e811c8ce
RD
2730
2731 def SetShowHelp(*args, **kwargs):
e498079e 2732 """
a95a7133 2733 SetShowHelp(self, bool showHelp)
e498079e 2734
66c033b4
RD
2735 Determines whether the Help button will be displayed in the font
2736 dialog (Windows only). The default value is false.
e498079e 2737 """
54f9ee45 2738 return _windows_.FontData_SetShowHelp(*args, **kwargs)
e811c8ce 2739
d14a1e28
RD
2740
2741class FontDataPtr(FontData):
2742 def __init__(self, this):
2743 self.this = this
2744 if not hasattr(self,"thisown"): self.thisown = 0
2745 self.__class__ = FontData
54f9ee45 2746_windows_.FontData_swigregister(FontDataPtr)
d14a1e28
RD
2747
2748class FontDialog(Dialog):
66c033b4
RD
2749 """
2750 wx.FontDialog allows the user to select a system font and its attributes.
2751
2752 :see: `wx.FontData`
2753
2754 """
e811c8ce
RD
2755 def __repr__(self):
2756 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
15afbcd0 2757 def __init__(self, *args, **kwargs):
e498079e 2758 """
a95a7133 2759 __init__(self, Window parent, FontData data) -> FontDialog
e498079e 2760
66c033b4
RD
2761 Constructor. Pass a parent window and the `wx.FontData` object to be
2762 used to initialize the dialog controls. Call `ShowModal` to display
2763 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2764 results with via the `wx.FontData` returned by `GetFontData`.
e498079e 2765 """
54f9ee45 2766 newobj = _windows_.new_FontDialog(*args, **kwargs)
d14a1e28 2767 self.this = newobj.this
cf694132 2768 self.thisown = 1
d14a1e28
RD
2769 del newobj.thisown
2770 self._setOORInfo(self)
e811c8ce
RD
2771
2772 def GetFontData(*args, **kwargs):
e498079e 2773 """
a95a7133 2774 GetFontData(self) -> FontData
e811c8ce 2775
66c033b4
RD
2776 Returns a reference to the internal `wx.FontData` used by the
2777 wx.FontDialog.
e498079e 2778 """
54f9ee45 2779 return _windows_.FontDialog_GetFontData(*args, **kwargs)
e811c8ce 2780
8ab979d7 2781
d14a1e28
RD
2782class FontDialogPtr(FontDialog):
2783 def __init__(self, this):
2784 self.this = this
2785 if not hasattr(self,"thisown"): self.thisown = 0
2786 self.__class__ = FontDialog
54f9ee45 2787_windows_.FontDialog_swigregister(FontDialogPtr)
d14a1e28
RD
2788
2789class MessageDialog(Dialog):
e498079e 2790 """
66c033b4
RD
2791 This class provides a simple dialog that shows a single or multi-line
2792 message, with a choice of OK, Yes, No and/or Cancel buttons.
e498079e 2793 """
e811c8ce
RD
2794 def __repr__(self):
2795 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2796 def __init__(self, *args, **kwargs):
0df68c9f 2797 """
a95a7133 2798 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
0df68c9f
RD
2799 long style=wxOK|wxCANCEL|wxCENTRE,
2800 Point pos=DefaultPosition) -> MessageDialog
e498079e 2801
66c033b4 2802 Constructor, use `ShowModal` to display the dialog.
0df68c9f 2803 """
54f9ee45 2804 newobj = _windows_.new_MessageDialog(*args, **kwargs)
d14a1e28
RD
2805 self.this = newobj.this
2806 self.thisown = 1
2807 del newobj.thisown
2808 self._setOORInfo(self)
e811c8ce 2809
8ab979d7 2810
d14a1e28
RD
2811class MessageDialogPtr(MessageDialog):
2812 def __init__(self, this):
2813 self.this = this
2814 if not hasattr(self,"thisown"): self.thisown = 0
2815 self.__class__ = MessageDialog
54f9ee45 2816_windows_.MessageDialog_swigregister(MessageDialogPtr)
d14a1e28
RD
2817
2818class ProgressDialog(Frame):
e498079e 2819 """
66c033b4
RD
2820 A dialog that shows a short message and a progress bar. Optionally, it
2821 can display an ABORT button.
e498079e 2822 """
e811c8ce
RD
2823 def __repr__(self):
2824 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2825 def __init__(self, *args, **kwargs):
0df68c9f 2826 """
a95a7133 2827 __init__(self, String title, String message, int maximum=100, Window parent=None,
196addbf 2828 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
e498079e 2829
66c033b4
RD
2830 Constructor. Creates the dialog, displays it and disables user input
2831 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2832 parent window only.
0df68c9f 2833 """
54f9ee45 2834 newobj = _windows_.new_ProgressDialog(*args, **kwargs)
d14a1e28
RD
2835 self.this = newobj.this
2836 self.thisown = 1
2837 del newobj.thisown
2838 self._setOORInfo(self)
e811c8ce
RD
2839
2840 def Update(*args, **kwargs):
e498079e 2841 """
a95a7133 2842 Update(self, int value, String newmsg=EmptyString) -> bool
e498079e 2843
66c033b4
RD
2844 Updates the dialog, setting the progress bar to the new value and, if
2845 given changes the message above it. Returns true unless the Cancel
2846 button has been pressed.
e498079e 2847
66c033b4
RD
2848 If false is returned, the application can either immediately destroy
2849 the dialog or ask the user for the confirmation and if the abort is
2850 not confirmed the dialog may be resumed with Resume function.
e498079e 2851 """
54f9ee45 2852 return _windows_.ProgressDialog_Update(*args, **kwargs)
e811c8ce
RD
2853
2854 def Resume(*args, **kwargs):
e498079e 2855 """
a95a7133 2856 Resume(self)
e498079e 2857
66c033b4
RD
2858 Can be used to continue with the dialog, after the user had chosen to
2859 abort.
e498079e 2860 """
54f9ee45 2861 return _windows_.ProgressDialog_Resume(*args, **kwargs)
e811c8ce 2862
8ab979d7 2863
d14a1e28
RD
2864class ProgressDialogPtr(ProgressDialog):
2865 def __init__(self, this):
2866 self.this = this
2867 if not hasattr(self,"thisown"): self.thisown = 0
2868 self.__class__ = ProgressDialog
54f9ee45
RD
2869_windows_.ProgressDialog_swigregister(ProgressDialogPtr)
2870
2871FR_DOWN = _windows_.FR_DOWN
2872FR_WHOLEWORD = _windows_.FR_WHOLEWORD
2873FR_MATCHCASE = _windows_.FR_MATCHCASE
2874FR_REPLACEDIALOG = _windows_.FR_REPLACEDIALOG
2875FR_NOUPDOWN = _windows_.FR_NOUPDOWN
2876FR_NOMATCHCASE = _windows_.FR_NOMATCHCASE
2877FR_NOWHOLEWORD = _windows_.FR_NOWHOLEWORD
2878wxEVT_COMMAND_FIND = _windows_.wxEVT_COMMAND_FIND
2879wxEVT_COMMAND_FIND_NEXT = _windows_.wxEVT_COMMAND_FIND_NEXT
2880wxEVT_COMMAND_FIND_REPLACE = _windows_.wxEVT_COMMAND_FIND_REPLACE
2881wxEVT_COMMAND_FIND_REPLACE_ALL = _windows_.wxEVT_COMMAND_FIND_REPLACE_ALL
2882wxEVT_COMMAND_FIND_CLOSE = _windows_.wxEVT_COMMAND_FIND_CLOSE
d14a1e28
RD
2883EVT_FIND = wx.PyEventBinder( wxEVT_COMMAND_FIND, 1 )
2884EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_COMMAND_FIND_NEXT, 1 )
2885EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE, 1 )
2886EVT_FIND_REPLACE_ALL = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL, 1 )
2887EVT_FIND_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE, 1 )
2888
2889# For backwards compatibility. Should they be removed?
2890EVT_COMMAND_FIND = EVT_FIND
2891EVT_COMMAND_FIND_NEXT = EVT_FIND_NEXT
2892EVT_COMMAND_FIND_REPLACE = EVT_FIND_REPLACE
2893EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL
2894EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE
2895
54f9ee45 2896class FindDialogEvent(_core.CommandEvent):
e498079e 2897 """Events for the FindReplaceDialog"""
e811c8ce
RD
2898 def __repr__(self):
2899 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2900 def __init__(self, *args, **kwargs):
e498079e 2901 """
a95a7133 2902 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
e498079e
RD
2903
2904 Events for the FindReplaceDialog
2905 """
54f9ee45 2906 newobj = _windows_.new_FindDialogEvent(*args, **kwargs)
d14a1e28
RD
2907 self.this = newobj.this
2908 self.thisown = 1
2909 del newobj.thisown
e811c8ce 2910 def GetFlags(*args, **kwargs):
e498079e 2911 """
a95a7133 2912 GetFlags(self) -> int
e498079e
RD
2913
2914 Get the currently selected flags: this is the combination of
2915 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2916 """
54f9ee45 2917 return _windows_.FindDialogEvent_GetFlags(*args, **kwargs)
e811c8ce
RD
2918
2919 def GetFindString(*args, **kwargs):
e498079e 2920 """
a95a7133 2921 GetFindString(self) -> String
e498079e
RD
2922
2923 Return the string to find (never empty).
2924 """
54f9ee45 2925 return _windows_.FindDialogEvent_GetFindString(*args, **kwargs)
e811c8ce
RD
2926
2927 def GetReplaceString(*args, **kwargs):
e498079e 2928 """
a95a7133 2929 GetReplaceString(self) -> String
e498079e 2930
66c033b4
RD
2931 Return the string to replace the search string with (only for replace
2932 and replace all events).
e498079e 2933 """
54f9ee45 2934 return _windows_.FindDialogEvent_GetReplaceString(*args, **kwargs)
e811c8ce
RD
2935
2936 def GetDialog(*args, **kwargs):
e498079e 2937 """
a95a7133 2938 GetDialog(self) -> FindReplaceDialog
e498079e
RD
2939
2940 Return the pointer to the dialog which generated this event.
2941 """
54f9ee45 2942 return _windows_.FindDialogEvent_GetDialog(*args, **kwargs)
e811c8ce
RD
2943
2944 def SetFlags(*args, **kwargs):
a95a7133 2945 """SetFlags(self, int flags)"""
54f9ee45 2946 return _windows_.FindDialogEvent_SetFlags(*args, **kwargs)
e811c8ce
RD
2947
2948 def SetFindString(*args, **kwargs):
a95a7133 2949 """SetFindString(self, String str)"""
54f9ee45 2950 return _windows_.FindDialogEvent_SetFindString(*args, **kwargs)
e811c8ce
RD
2951
2952 def SetReplaceString(*args, **kwargs):
a95a7133 2953 """SetReplaceString(self, String str)"""
54f9ee45 2954 return _windows_.FindDialogEvent_SetReplaceString(*args, **kwargs)
e811c8ce 2955
8ab979d7 2956
d14a1e28
RD
2957class FindDialogEventPtr(FindDialogEvent):
2958 def __init__(self, this):
2959 self.this = this
2960 if not hasattr(self,"thisown"): self.thisown = 0
2961 self.__class__ = FindDialogEvent
54f9ee45 2962_windows_.FindDialogEvent_swigregister(FindDialogEventPtr)
d14a1e28 2963
54f9ee45 2964class FindReplaceData(_core.Object):
e498079e 2965 """
66c033b4
RD
2966 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2967 to initialize the dialog with the default values and will keep the
2968 last values from the dialog when it is closed. It is also updated each
2969 time a `wx.FindDialogEvent` is generated so instead of using the
2970 `wx.FindDialogEvent` methods you can also directly query this object.
e498079e 2971
66c033b4
RD
2972 Note that all SetXXX() methods may only be called before showing the
2973 dialog and calling them has no effect later.
e498079e 2974 """
e811c8ce
RD
2975 def __repr__(self):
2976 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2977 def __init__(self, *args, **kwargs):
e498079e 2978 """
a95a7133 2979 __init__(self, int flags=0) -> FindReplaceData
e498079e
RD
2980
2981 Constuctor initializes the flags to default value (0).
2982 """
54f9ee45 2983 newobj = _windows_.new_FindReplaceData(*args, **kwargs)
d14a1e28
RD
2984 self.this = newobj.this
2985 self.thisown = 1
2986 del newobj.thisown
54f9ee45 2987 def __del__(self, destroy=_windows_.delete_FindReplaceData):
a95a7133 2988 """__del__(self)"""
d14a1e28
RD
2989 try:
2990 if self.thisown: destroy(self)
2991 except: pass
e811c8ce
RD
2992
2993 def GetFindString(*args, **kwargs):
e498079e 2994 """
a95a7133 2995 GetFindString(self) -> String
e498079e
RD
2996
2997 Get the string to find.
2998 """
54f9ee45 2999 return _windows_.FindReplaceData_GetFindString(*args, **kwargs)
e811c8ce
RD
3000
3001 def GetReplaceString(*args, **kwargs):
e498079e 3002 """
a95a7133 3003 GetReplaceString(self) -> String
e498079e
RD
3004
3005 Get the replacement string.
3006 """
54f9ee45 3007 return _windows_.FindReplaceData_GetReplaceString(*args, **kwargs)
e811c8ce
RD
3008
3009 def GetFlags(*args, **kwargs):
e498079e 3010 """
a95a7133 3011 GetFlags(self) -> int
e498079e
RD
3012
3013 Get the combination of flag values.
3014 """
54f9ee45 3015 return _windows_.FindReplaceData_GetFlags(*args, **kwargs)
e811c8ce
RD
3016
3017 def SetFlags(*args, **kwargs):
e498079e 3018 """
a95a7133 3019 SetFlags(self, int flags)
e498079e
RD
3020
3021 Set the flags to use to initialize the controls of the dialog.
3022 """
54f9ee45 3023 return _windows_.FindReplaceData_SetFlags(*args, **kwargs)
e811c8ce
RD
3024
3025 def SetFindString(*args, **kwargs):
e498079e 3026 """
a95a7133 3027 SetFindString(self, String str)
e498079e
RD
3028
3029 Set the string to find (used as initial value by the dialog).
3030 """
54f9ee45 3031 return _windows_.FindReplaceData_SetFindString(*args, **kwargs)
e811c8ce
RD
3032
3033 def SetReplaceString(*args, **kwargs):
e498079e 3034 """
a95a7133 3035 SetReplaceString(self, String str)
e498079e
RD
3036
3037 Set the replacement string (used as initial value by the dialog).
3038 """
54f9ee45 3039 return _windows_.FindReplaceData_SetReplaceString(*args, **kwargs)
e811c8ce 3040
8ab979d7 3041
d14a1e28
RD
3042class FindReplaceDataPtr(FindReplaceData):
3043 def __init__(self, this):
3044 self.this = this
3045 if not hasattr(self,"thisown"): self.thisown = 0
3046 self.__class__ = FindReplaceData
54f9ee45 3047_windows_.FindReplaceData_swigregister(FindReplaceDataPtr)
d14a1e28
RD
3048
3049class FindReplaceDialog(Dialog):
e498079e 3050 """
66c033b4
RD
3051 wx.FindReplaceDialog is a standard modeless dialog which is used to
3052 allow the user to search for some text (and possibly replace it with
3053 something else). The actual searching is supposed to be done in the
3054 owner window which is the parent of this dialog. Note that it means
3055 that unlike for the other standard dialogs this one must have a parent
3056 window. Also note that there is no way to use this dialog in a modal
3057 way; it is always, by design and implementation, modeless.
e498079e 3058 """
e811c8ce
RD
3059 def __repr__(self):
3060 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3061 def __init__(self, *args, **kwargs):
0df68c9f 3062 """
a95a7133 3063 __init__(self, Window parent, FindReplaceData data, String title,
0df68c9f 3064 int style=0) -> FindReplaceDialog
e498079e
RD
3065
3066 Create a FindReplaceDialog. The parent and data parameters must be
3067 non-None. Use Show to display the dialog.
0df68c9f 3068 """
54f9ee45 3069 newobj = _windows_.new_FindReplaceDialog(*args, **kwargs)
d14a1e28
RD
3070 self.this = newobj.this
3071 self.thisown = 1
3072 del newobj.thisown
3073 self._setOORInfo(self)
e811c8ce
RD
3074
3075 def Create(*args, **kwargs):
0df68c9f 3076 """
a95a7133 3077 Create(self, Window parent, FindReplaceData data, String title,
0df68c9f 3078 int style=0) -> bool
e498079e
RD
3079
3080 Create the dialog, for 2-phase create.
0df68c9f 3081 """
54f9ee45 3082 return _windows_.FindReplaceDialog_Create(*args, **kwargs)
e811c8ce
RD
3083
3084 def GetData(*args, **kwargs):
e498079e 3085 """
a95a7133 3086 GetData(self) -> FindReplaceData
e498079e
RD
3087
3088 Get the FindReplaceData object used by this dialog.
3089 """
54f9ee45 3090 return _windows_.FindReplaceDialog_GetData(*args, **kwargs)
e811c8ce
RD
3091
3092 def SetData(*args, **kwargs):
e498079e 3093 """
a95a7133 3094 SetData(self, FindReplaceData data)
e498079e
RD
3095
3096 Set the FindReplaceData object used by this dialog.
3097 """
54f9ee45 3098 return _windows_.FindReplaceDialog_SetData(*args, **kwargs)
e811c8ce 3099
8ab979d7 3100
d14a1e28
RD
3101class FindReplaceDialogPtr(FindReplaceDialog):
3102 def __init__(self, this):
3103 self.this = this
3104 if not hasattr(self,"thisown"): self.thisown = 0
3105 self.__class__ = FindReplaceDialog
54f9ee45 3106_windows_.FindReplaceDialog_swigregister(FindReplaceDialogPtr)
8ab979d7 3107
d14a1e28 3108def PreFindReplaceDialog(*args, **kwargs):
e498079e
RD
3109 """
3110 PreFindReplaceDialog() -> FindReplaceDialog
3111
3112 Precreate a FindReplaceDialog for 2-phase creation
3113 """
54f9ee45 3114 val = _windows_.new_PreFindReplaceDialog(*args, **kwargs)
d14a1e28 3115 val.thisown = 1
298ae144
RD
3116 return val
3117
d14a1e28
RD
3118#---------------------------------------------------------------------------
3119
54f9ee45
RD
3120IDM_WINDOWTILE = _windows_.IDM_WINDOWTILE
3121IDM_WINDOWTILEHOR = _windows_.IDM_WINDOWTILEHOR
3122IDM_WINDOWCASCADE = _windows_.IDM_WINDOWCASCADE
3123IDM_WINDOWICONS = _windows_.IDM_WINDOWICONS
3124IDM_WINDOWNEXT = _windows_.IDM_WINDOWNEXT
3125IDM_WINDOWTILEVERT = _windows_.IDM_WINDOWTILEVERT
3126FIRST_MDI_CHILD = _windows_.FIRST_MDI_CHILD
3127LAST_MDI_CHILD = _windows_.LAST_MDI_CHILD
d14a1e28 3128class MDIParentFrame(Frame):
e811c8ce
RD
3129 def __repr__(self):
3130 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3131 def __init__(self, *args, **kwargs):
0df68c9f 3132 """
a95a7133 3133 __init__(self, Window parent, int id, String title, Point pos=DefaultPosition,
0df68c9f 3134 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
b2dc1044 3135 String name=FrameNameStr) -> MDIParentFrame
0df68c9f 3136 """
54f9ee45 3137 newobj = _windows_.new_MDIParentFrame(*args, **kwargs)
d14a1e28
RD
3138 self.this = newobj.this
3139 self.thisown = 1
3140 del newobj.thisown
3141 self._setOORInfo(self)
e811c8ce
RD
3142
3143 def Create(*args, **kwargs):
0df68c9f 3144 """
a95a7133 3145 Create(self, Window parent, int id, String title, Point pos=DefaultPosition,
0df68c9f 3146 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
b2dc1044 3147 String name=FrameNameStr) -> bool
0df68c9f 3148 """
54f9ee45 3149 return _windows_.MDIParentFrame_Create(*args, **kwargs)
e811c8ce
RD
3150
3151 def ActivateNext(*args, **kwargs):
a95a7133 3152 """ActivateNext(self)"""
54f9ee45 3153 return _windows_.MDIParentFrame_ActivateNext(*args, **kwargs)
e811c8ce
RD
3154
3155 def ActivatePrevious(*args, **kwargs):
a95a7133 3156 """ActivatePrevious(self)"""
54f9ee45 3157 return _windows_.MDIParentFrame_ActivatePrevious(*args, **kwargs)
e811c8ce
RD
3158
3159 def ArrangeIcons(*args, **kwargs):
a95a7133 3160 """ArrangeIcons(self)"""
54f9ee45 3161 return _windows_.MDIParentFrame_ArrangeIcons(*args, **kwargs)
e811c8ce
RD
3162
3163 def Cascade(*args, **kwargs):
a95a7133 3164 """Cascade(self)"""
54f9ee45 3165 return _windows_.MDIParentFrame_Cascade(*args, **kwargs)
e811c8ce
RD
3166
3167 def GetActiveChild(*args, **kwargs):
a95a7133 3168 """GetActiveChild(self) -> MDIChildFrame"""
54f9ee45 3169 return _windows_.MDIParentFrame_GetActiveChild(*args, **kwargs)
e811c8ce
RD
3170
3171 def GetClientWindow(*args, **kwargs):
a95a7133 3172 """GetClientWindow(self) -> MDIClientWindow"""
54f9ee45 3173 return _windows_.MDIParentFrame_GetClientWindow(*args, **kwargs)
e811c8ce
RD
3174
3175 def GetToolBar(*args, **kwargs):
a95a7133 3176 """GetToolBar(self) -> Window"""
54f9ee45 3177 return _windows_.MDIParentFrame_GetToolBar(*args, **kwargs)
e811c8ce
RD
3178
3179 def Tile(*args, **kwargs):
a95a7133 3180 """Tile(self)"""
54f9ee45 3181 return _windows_.MDIParentFrame_Tile(*args, **kwargs)
e811c8ce 3182
d14a1e28
RD
3183
3184class MDIParentFramePtr(MDIParentFrame):
3185 def __init__(self, this):
3186 self.this = this
3187 if not hasattr(self,"thisown"): self.thisown = 0
3188 self.__class__ = MDIParentFrame
54f9ee45 3189_windows_.MDIParentFrame_swigregister(MDIParentFramePtr)
d14a1e28
RD
3190
3191def PreMDIParentFrame(*args, **kwargs):
e811c8ce 3192 """PreMDIParentFrame() -> MDIParentFrame"""
54f9ee45 3193 val = _windows_.new_PreMDIParentFrame(*args, **kwargs)
d14a1e28 3194 val.thisown = 1
298ae144
RD
3195 return val
3196
d14a1e28 3197class MDIChildFrame(Frame):
e811c8ce
RD
3198 def __repr__(self):
3199 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3200 def __init__(self, *args, **kwargs):
0df68c9f 3201 """
a95a7133 3202 __init__(self, MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
196addbf 3203 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
b2dc1044 3204 String name=FrameNameStr) -> MDIChildFrame
0df68c9f 3205 """
54f9ee45 3206 newobj = _windows_.new_MDIChildFrame(*args, **kwargs)
d14a1e28
RD
3207 self.this = newobj.this
3208 self.thisown = 1
3209 del newobj.thisown
3210 self._setOORInfo(self)
e811c8ce
RD
3211
3212 def Create(*args, **kwargs):
0df68c9f 3213 """
a95a7133 3214 Create(self, MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
196addbf 3215 Size size=DefaultSize, 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 """
a95a7133 3282 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
196addbf 3283 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 """
a95a7133 3402 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
196addbf 3403 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 """
a95a7133 3522 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1cb4a8aa
RD
3523 long style=0, String name=PanelNameStr) -> PyScrolledWindow
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