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