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