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