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