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