X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/44127b65460984c4f994bd57bac65962eb6d3b3b..c6c489294258d129fd559bc45ca80f50661ff461:/wxPython/src/mac/windows.py?ds=sidebyside diff --git a/wxPython/src/mac/windows.py b/wxPython/src/mac/windows.py index c658e38b63..ad2feffbe6 100644 --- a/wxPython/src/mac/windows.py +++ b/wxPython/src/mac/windows.py @@ -8,13 +8,14 @@ wx = core #--------------------------------------------------------------------------- class Panel(core.Window): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, - wxString name=PanelNameStr) -> Panel""" + """ + __init__(Window parent, int id=-1, Point pos=DefaultPosition, + Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, + String name=PanelNameStr) -> Panel + """ newobj = _windows.new_Panel(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -22,9 +23,11 @@ class Panel(core.Window): self._setOORInfo(self) def Create(*args, **kwargs): - """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxTAB_TRAVERSAL|wxNO_BORDER, - wxString name=PanelNameStr) -> bool""" + """ + Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, + long style=wxTAB_TRAVERSAL|wxNO_BORDER, + String name=PanelNameStr) -> bool + """ return _windows.Panel_Create(*args, **kwargs) def InitDialog(*args, **kwargs): @@ -48,13 +51,14 @@ def PrePanel(*args, **kwargs): #--------------------------------------------------------------------------- class ScrolledWindow(Panel): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL, - wxString name=PanelNameStr) -> ScrolledWindow""" + """ + __init__(Window parent, int id=-1, Point pos=DefaultPosition, + Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL, + String name=PanelNameStr) -> ScrolledWindow + """ newobj = _windows.new_ScrolledWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -62,14 +66,18 @@ class ScrolledWindow(Panel): self._setOORInfo(self) def Create(*args, **kwargs): - """Create(Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL, - wxString name=PanelNameStr) -> bool""" + """ + Create(Window parent, int id=-1, Point pos=DefaultPosition, + Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL, + String name=PanelNameStr) -> bool + """ return _windows.ScrolledWindow_Create(*args, **kwargs) def SetScrollbars(*args, **kwargs): - """SetScrollbars(int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX, - int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)""" + """ + SetScrollbars(int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX, + int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False) + """ return _windows.ScrolledWindow_SetScrollbars(*args, **kwargs) def Scroll(*args, **kwargs): @@ -89,9 +97,11 @@ class ScrolledWindow(Panel): return _windows.ScrolledWindow_SetScrollRate(*args, **kwargs) def GetScrollPixelsPerUnit(*args, **kwargs): - """GetScrollPixelsPerUnit() -> (xUnit, yUnit) + """ + GetScrollPixelsPerUnit() -> (xUnit, yUnit) -Get the size of one logical unit in physical units.""" + Get the size of one logical unit in physical units. + """ return _windows.ScrolledWindow_GetScrollPixelsPerUnit(*args, **kwargs) def EnableScrolling(*args, **kwargs): @@ -99,9 +109,11 @@ Get the size of one logical unit in physical units.""" return _windows.ScrolledWindow_EnableScrolling(*args, **kwargs) def GetViewStart(*args, **kwargs): - """GetViewStart() -> (x,y) + """ + GetViewStart() -> (x,y) -Get the view start""" + Get the view start + """ return _windows.ScrolledWindow_GetViewStart(*args, **kwargs) def SetScale(*args, **kwargs): @@ -117,17 +129,21 @@ Get the view start""" return _windows.ScrolledWindow_GetScaleY(*args, **kwargs) def CalcScrolledPosition(*args): - """CalcScrolledPosition(Point pt) -> Point -CalcScrolledPosition(int x, int y) -> (sx, sy) + """ + CalcScrolledPosition(Point pt) -> Point + CalcScrolledPosition(int x, int y) -> (sx, sy) -Translate between scrolled and unscrolled coordinates.""" + Translate between scrolled and unscrolled coordinates. + """ return _windows.ScrolledWindow_CalcScrolledPosition(*args) def CalcUnscrolledPosition(*args): - """CalcUnscrolledPosition(Point pt) -> Point -CalcUnscrolledPosition(int x, int y) -> (ux, uy) + """ + CalcUnscrolledPosition(Point pt) -> Point + CalcUnscrolledPosition(int x, int y) -> (ux, uy) -Translate between scrolled and unscrolled coordinates.""" + Translate between scrolled and unscrolled coordinates. + """ return _windows.ScrolledWindow_CalcUnscrolledPosition(*args) def AdjustScrollbars(*args, **kwargs): @@ -170,88 +186,6 @@ def PreScrolledWindow(*args, **kwargs): #--------------------------------------------------------------------------- -class AcceleratorEntry(object): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxAcceleratorEntry instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(int flags=0, int keyCode=0, int cmd=0, MenuItem item=None) -> AcceleratorEntry""" - newobj = _windows.new_AcceleratorEntry(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_windows.delete_AcceleratorEntry): - """__del__()""" - try: - if self.thisown: destroy(self) - except: pass - - def Set(*args, **kwargs): - """Set(int flags, int keyCode, int cmd, MenuItem item=None)""" - return _windows.AcceleratorEntry_Set(*args, **kwargs) - - def SetMenuItem(*args, **kwargs): - """SetMenuItem(MenuItem item)""" - return _windows.AcceleratorEntry_SetMenuItem(*args, **kwargs) - - def GetMenuItem(*args, **kwargs): - """GetMenuItem() -> MenuItem""" - return _windows.AcceleratorEntry_GetMenuItem(*args, **kwargs) - - def GetFlags(*args, **kwargs): - """GetFlags() -> int""" - return _windows.AcceleratorEntry_GetFlags(*args, **kwargs) - - def GetKeyCode(*args, **kwargs): - """GetKeyCode() -> int""" - return _windows.AcceleratorEntry_GetKeyCode(*args, **kwargs) - - def GetCommand(*args, **kwargs): - """GetCommand() -> int""" - return _windows.AcceleratorEntry_GetCommand(*args, **kwargs) - - -class AcceleratorEntryPtr(AcceleratorEntry): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = AcceleratorEntry -_windows.AcceleratorEntry_swigregister(AcceleratorEntryPtr) - -class AcceleratorTable(core.Object): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxAcceleratorTable instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(int n, AcceleratorEntry entries) -> AcceleratorTable""" - newobj = _windows.new_AcceleratorTable(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_windows.delete_AcceleratorTable): - """__del__()""" - try: - if self.thisown: destroy(self) - except: pass - - def Ok(*args, **kwargs): - """Ok() -> bool""" - return _windows.AcceleratorTable_Ok(*args, **kwargs) - - -class AcceleratorTablePtr(AcceleratorTable): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = AcceleratorTable -_windows.AcceleratorTable_swigregister(AcceleratorTablePtr) - - -def GetAccelFromString(*args, **kwargs): - """GetAccelFromString(wxString label) -> AcceleratorEntry""" - return _windows.GetAccelFromString(*args, **kwargs) -#--------------------------------------------------------------------------- - FULLSCREEN_NOMENUBAR = _windows.FULLSCREEN_NOMENUBAR FULLSCREEN_NOTOOLBAR = _windows.FULLSCREEN_NOTOOLBAR FULLSCREEN_NOSTATUSBAR = _windows.FULLSCREEN_NOSTATUSBAR @@ -260,7 +194,6 @@ FULLSCREEN_NOCAPTION = _windows.FULLSCREEN_NOCAPTION FULLSCREEN_ALL = _windows.FULLSCREEN_ALL TOPLEVEL_EX_DIALOG = _windows.TOPLEVEL_EX_DIALOG class TopLevelWindow(core.Window): - """""" def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) @@ -285,11 +218,11 @@ class TopLevelWindow(core.Window): return _windows.TopLevelWindow_IsIconized(*args, **kwargs) def GetIcon(*args, **kwargs): - """GetIcon() -> wxIcon""" + """GetIcon() -> Icon""" return _windows.TopLevelWindow_GetIcon(*args, **kwargs) def SetIcon(*args, **kwargs): - """SetIcon(wxIcon icon)""" + """SetIcon(Icon icon)""" return _windows.TopLevelWindow_SetIcon(*args, **kwargs) def SetIcons(*args, **kwargs): @@ -305,15 +238,15 @@ class TopLevelWindow(core.Window): return _windows.TopLevelWindow_IsFullScreen(*args, **kwargs) def SetTitle(*args, **kwargs): - """SetTitle(wxString title)""" + """SetTitle(String title)""" return _windows.TopLevelWindow_SetTitle(*args, **kwargs) def GetTitle(*args, **kwargs): - """GetTitle() -> wxString""" + """GetTitle() -> String""" return _windows.TopLevelWindow_GetTitle(*args, **kwargs) def SetShape(*args, **kwargs): - """SetShape(wxRegion region) -> bool""" + """SetShape(Region region) -> bool""" return _windows.TopLevelWindow_SetShape(*args, **kwargs) @@ -324,18 +257,22 @@ class TopLevelWindowPtr(TopLevelWindow): self.__class__ = TopLevelWindow _windows.TopLevelWindow_swigregister(TopLevelWindowPtr) cvar = _windows.cvar -NullAcceleratorTable = cvar.NullAcceleratorTable +FrameNameStr = cvar.FrameNameStr +DialogNameStr = cvar.DialogNameStr +StatusLineNameStr = cvar.StatusLineNameStr +ToolBarNameStr = cvar.ToolBarNameStr #--------------------------------------------------------------------------- class Frame(TopLevelWindow): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, int id, wxString title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, - wxString name=wxPyFrameNameStr) -> Frame""" + """ + __init__(Window parent, int id, String title, Point pos=DefaultPosition, + Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, + String name=FrameNameStr) -> Frame + """ newobj = _windows.new_Frame(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -343,9 +280,11 @@ class Frame(TopLevelWindow): self._setOORInfo(self) def Create(*args, **kwargs): - """Create(Window parent, int id, wxString title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, - wxString name=wxPyFrameNameStr) -> bool""" + """ + Create(Window parent, int id, String title, Point pos=DefaultPosition, + Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, + String name=FrameNameStr) -> bool + """ return _windows.Frame_Create(*args, **kwargs) def GetClientAreaOrigin(*args, **kwargs): @@ -370,8 +309,10 @@ class Frame(TopLevelWindow): Command = ProcessCommand def CreateStatusBar(*args, **kwargs): - """CreateStatusBar(int number=1, long style=ST_SIZEGRIP, int winid=0, - wxString name=wxPyStatusLineNameStr) -> StatusBar""" + """ + CreateStatusBar(int number=1, long style=ST_SIZEGRIP, int winid=0, + String name=StatusLineNameStr) -> StatusBar + """ return _windows.Frame_CreateStatusBar(*args, **kwargs) def GetStatusBar(*args, **kwargs): @@ -383,7 +324,7 @@ class Frame(TopLevelWindow): return _windows.Frame_SetStatusBar(*args, **kwargs) def SetStatusText(*args, **kwargs): - """SetStatusText(wxString text, int number=0)""" + """SetStatusText(String text, int number=0)""" return _windows.Frame_SetStatusText(*args, **kwargs) def SetStatusWidths(*args, **kwargs): @@ -391,7 +332,7 @@ class Frame(TopLevelWindow): return _windows.Frame_SetStatusWidths(*args, **kwargs) def PushStatusText(*args, **kwargs): - """PushStatusText(wxString text, int number=0)""" + """PushStatusText(String text, int number=0)""" return _windows.Frame_PushStatusText(*args, **kwargs) def PopStatusText(*args, **kwargs): @@ -407,7 +348,7 @@ class Frame(TopLevelWindow): return _windows.Frame_GetStatusBarPane(*args, **kwargs) def CreateToolBar(*args, **kwargs): - """CreateToolBar(long style=-1, int winid=-1, wxString name=wxPyToolBarNameStr) -> wxToolBar""" + """CreateToolBar(long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar""" return _windows.Frame_CreateToolBar(*args, **kwargs) def GetToolBar(*args, **kwargs): @@ -419,7 +360,7 @@ class Frame(TopLevelWindow): return _windows.Frame_SetToolBar(*args, **kwargs) def DoGiveHelp(*args, **kwargs): - """DoGiveHelp(wxString text, bool show)""" + """DoGiveHelp(String text, bool show)""" return _windows.Frame_DoGiveHelp(*args, **kwargs) def DoMenuUpdates(*args, **kwargs): @@ -443,13 +384,14 @@ def PreFrame(*args, **kwargs): #--------------------------------------------------------------------------- class Dialog(TopLevelWindow): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, int id, wxString title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE, - wxString name=wxPyDialogNameStr) -> Dialog""" + """ + __init__(Window parent, int id, String title, Point pos=DefaultPosition, + Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE, + String name=DialogNameStr) -> Dialog + """ newobj = _windows.new_Dialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -457,9 +399,11 @@ class Dialog(TopLevelWindow): self._setOORInfo(self) def Create(*args, **kwargs): - """Create(Window parent, int id, wxString title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE, - wxString name=wxPyDialogNameStr) -> bool""" + """ + Create(Window parent, int id, String title, Point pos=DefaultPosition, + Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE, + String name=DialogNameStr) -> bool + """ return _windows.Dialog_Create(*args, **kwargs) def SetReturnCode(*args, **kwargs): @@ -471,17 +415,13 @@ class Dialog(TopLevelWindow): return _windows.Dialog_GetReturnCode(*args, **kwargs) def CreateTextSizer(*args, **kwargs): - """CreateTextSizer(wxString message) -> Sizer""" + """CreateTextSizer(String message) -> Sizer""" return _windows.Dialog_CreateTextSizer(*args, **kwargs) def CreateButtonSizer(*args, **kwargs): """CreateButtonSizer(long flags) -> Sizer""" return _windows.Dialog_CreateButtonSizer(*args, **kwargs) - def SetModal(*args, **kwargs): - """SetModal(bool flag)""" - return _windows.Dialog_SetModal(*args, **kwargs) - def IsModal(*args, **kwargs): """IsModal() -> bool""" return _windows.Dialog_IsModal(*args, **kwargs) @@ -515,13 +455,14 @@ def PreDialog(*args, **kwargs): #--------------------------------------------------------------------------- class MiniFrame(Frame): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, int id, wxString title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, - wxString name=wxPyFrameNameStr) -> MiniFrame""" + """ + __init__(Window parent, int id, String title, Point pos=DefaultPosition, + Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, + String name=FrameNameStr) -> MiniFrame + """ newobj = _windows.new_MiniFrame(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -529,9 +470,11 @@ class MiniFrame(Frame): self._setOORInfo(self) def Create(*args, **kwargs): - """Create(Window parent, int id, wxString title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, - wxString name=wxPyFrameNameStr) -> bool""" + """ + Create(Window parent, int id, String title, Point pos=DefaultPosition, + Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, + String name=FrameNameStr) -> bool + """ return _windows.MiniFrame_Create(*args, **kwargs) @@ -556,12 +499,13 @@ SPLASH_NO_CENTRE = _windows.SPLASH_NO_CENTRE SPLASH_TIMEOUT = _windows.SPLASH_TIMEOUT SPLASH_NO_TIMEOUT = _windows.SPLASH_NO_TIMEOUT class SplashScreenWindow(core.Window): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(wxBitmap bitmap, Window parent, int id, Point pos=DefaultPosition, - Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow""" + """ + __init__(Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition, + Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow + """ newobj = _windows.new_SplashScreenWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -569,11 +513,11 @@ class SplashScreenWindow(core.Window): self._setOORInfo(self) def SetBitmap(*args, **kwargs): - """SetBitmap(wxBitmap bitmap)""" + """SetBitmap(Bitmap bitmap)""" return _windows.SplashScreenWindow_SetBitmap(*args, **kwargs) def GetBitmap(*args, **kwargs): - """GetBitmap() -> wxBitmap""" + """GetBitmap() -> Bitmap""" return _windows.SplashScreenWindow_GetBitmap(*args, **kwargs) @@ -585,13 +529,14 @@ class SplashScreenWindowPtr(SplashScreenWindow): _windows.SplashScreenWindow_swigregister(SplashScreenWindowPtr) class SplashScreen(Frame): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(wxBitmap bitmap, long splashStyle, int milliseconds, - Window parent, int id, Point pos=DefaultPosition, - Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen""" + """ + __init__(Bitmap bitmap, long splashStyle, int milliseconds, + Window parent, int id, Point pos=DefaultPosition, + Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen + """ newobj = _windows.new_SplashScreen(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -621,11 +566,10 @@ _windows.SplashScreen_swigregister(SplashScreenPtr) #--------------------------------------------------------------------------- class StatusBar(core.Window): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, int id=-1, long style=ST_SIZEGRIP, wxString name=wxPyStatusLineNameStr) -> StatusBar""" + """__init__(Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar""" newobj = _windows.new_StatusBar(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -633,7 +577,7 @@ class StatusBar(core.Window): self._setOORInfo(self) def Create(*args, **kwargs): - """Create(Window parent, int id, long style=ST_SIZEGRIP, wxString name=wxPyStatusLineNameStr) -> bool""" + """Create(Window parent, int id, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool""" return _windows.StatusBar_Create(*args, **kwargs) def SetFieldsCount(*args, **kwargs): @@ -645,15 +589,15 @@ class StatusBar(core.Window): return _windows.StatusBar_GetFieldsCount(*args, **kwargs) def SetStatusText(*args, **kwargs): - """SetStatusText(wxString text, int number=0)""" + """SetStatusText(String text, int number=0)""" return _windows.StatusBar_SetStatusText(*args, **kwargs) def GetStatusText(*args, **kwargs): - """GetStatusText(int number=0) -> wxString""" + """GetStatusText(int number=0) -> String""" return _windows.StatusBar_GetStatusText(*args, **kwargs) def PushStatusText(*args, **kwargs): - """PushStatusText(wxString text, int number=0)""" + """PushStatusText(String text, int number=0)""" return _windows.StatusBar_PushStatusText(*args, **kwargs) def PopStatusText(*args, **kwargs): @@ -710,12 +654,14 @@ SPLIT_DRAG_NONE = _windows.SPLIT_DRAG_NONE SPLIT_DRAG_DRAGGING = _windows.SPLIT_DRAG_DRAGGING SPLIT_DRAG_LEFT_DOWN = _windows.SPLIT_DRAG_LEFT_DOWN class SplitterWindow(core.Window): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, int id, Point point=DefaultPosition, - Size size=DefaultSize, long style=SP_3D, wxString name=wxPySplitterNameStr) -> SplitterWindow""" + """ + __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, + long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow + """ + if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'] newobj = _windows.new_SplitterWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -723,8 +669,10 @@ class SplitterWindow(core.Window): self._setOORInfo(self) def Create(*args, **kwargs): - """Create(Window parent, int id, Point point=DefaultPosition, - Size size=DefaultSize, long style=SP_3D, wxString name=wxPySplitterNameStr) -> bool""" + """ + Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, + long style=SP_3D, String name=SplitterNameStr) -> bool + """ return _windows.SplitterWindow_Create(*args, **kwargs) def GetWindow1(*args, **kwargs): @@ -740,7 +688,7 @@ class SplitterWindow(core.Window): return _windows.SplitterWindow_SetSplitMode(*args, **kwargs) def GetSplitMode(*args, **kwargs): - """GetSplitMode() -> wxSplitMode""" + """GetSplitMode() -> int""" return _windows.SplitterWindow_GetSplitMode(*args, **kwargs) def Initialize(*args, **kwargs): @@ -822,6 +770,7 @@ class SplitterWindowPtr(SplitterWindow): if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SplitterWindow _windows.SplitterWindow_swigregister(SplitterWindowPtr) +SplitterNameStr = cvar.SplitterNameStr def PreSplitterWindow(*args, **kwargs): """PreSplitterWindow() -> SplitterWindow""" @@ -830,7 +779,6 @@ def PreSplitterWindow(*args, **kwargs): return val class SplitterEvent(core.NotifyEvent): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -892,13 +840,14 @@ SASH_BOTTOM = _windows.SASH_BOTTOM SASH_LEFT = _windows.SASH_LEFT SASH_NONE = _windows.SASH_NONE class SashWindow(core.Window): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxCLIP_CHILDREN|wxSW_3D, - wxString name=wxPySashNameStr) -> SashWindow""" + """ + __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, + long style=wxCLIP_CHILDREN|wxSW_3D, + String name=SashNameStr) -> SashWindow + """ newobj = _windows.new_SashWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -906,29 +855,31 @@ class SashWindow(core.Window): self._setOORInfo(self) def Create(*args, **kwargs): - """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxCLIP_CHILDREN|wxSW_3D, - wxString name=wxPySashNameStr) -> bool""" + """ + Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, + long style=wxCLIP_CHILDREN|wxSW_3D, + String name=SashNameStr) -> bool + """ return _windows.SashWindow_Create(*args, **kwargs) def SetSashVisible(*args, **kwargs): - """SetSashVisible(wxSashEdgePosition edge, bool sash)""" + """SetSashVisible(int edge, bool sash)""" return _windows.SashWindow_SetSashVisible(*args, **kwargs) def GetSashVisible(*args, **kwargs): - """GetSashVisible(wxSashEdgePosition edge) -> bool""" + """GetSashVisible(int edge) -> bool""" return _windows.SashWindow_GetSashVisible(*args, **kwargs) def SetSashBorder(*args, **kwargs): - """SetSashBorder(wxSashEdgePosition edge, bool border)""" + """SetSashBorder(int edge, bool border)""" return _windows.SashWindow_SetSashBorder(*args, **kwargs) def HasBorder(*args, **kwargs): - """HasBorder(wxSashEdgePosition edge) -> bool""" + """HasBorder(int edge) -> bool""" return _windows.SashWindow_HasBorder(*args, **kwargs) def GetEdgeMargin(*args, **kwargs): - """GetEdgeMargin(wxSashEdgePosition edge) -> int""" + """GetEdgeMargin(int edge) -> int""" return _windows.SashWindow_GetEdgeMargin(*args, **kwargs) def SetDefaultBorderSize(*args, **kwargs): @@ -980,7 +931,7 @@ class SashWindow(core.Window): return _windows.SashWindow_GetMaximumSizeY(*args, **kwargs) def SashHitTest(*args, **kwargs): - """SashHitTest(int x, int y, int tolerance=2) -> wxSashEdgePosition""" + """SashHitTest(int x, int y, int tolerance=2) -> int""" return _windows.SashWindow_SashHitTest(*args, **kwargs) def SizeWindows(*args, **kwargs): @@ -994,6 +945,8 @@ class SashWindowPtr(SashWindow): if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = SashWindow _windows.SashWindow_swigregister(SashWindowPtr) +SashNameStr = cvar.SashNameStr +SashLayoutNameStr = cvar.SashLayoutNameStr def PreSashWindow(*args, **kwargs): """PreSashWindow() -> SashWindow""" @@ -1004,21 +957,20 @@ def PreSashWindow(*args, **kwargs): SASH_STATUS_OK = _windows.SASH_STATUS_OK SASH_STATUS_OUT_OF_RANGE = _windows.SASH_STATUS_OUT_OF_RANGE class SashEvent(core.CommandEvent): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(int id=0, wxSashEdgePosition edge=SASH_NONE) -> SashEvent""" + """__init__(int id=0, int edge=SASH_NONE) -> SashEvent""" newobj = _windows.new_SashEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def SetEdge(*args, **kwargs): - """SetEdge(wxSashEdgePosition edge)""" + """SetEdge(int edge)""" return _windows.SashEvent_SetEdge(*args, **kwargs) def GetEdge(*args, **kwargs): - """GetEdge() -> wxSashEdgePosition""" + """GetEdge() -> int""" return _windows.SashEvent_GetEdge(*args, **kwargs) def SetDragRect(*args, **kwargs): @@ -1030,11 +982,11 @@ class SashEvent(core.CommandEvent): return _windows.SashEvent_GetDragRect(*args, **kwargs) def SetDragStatus(*args, **kwargs): - """SetDragStatus(wxSashDragStatus status)""" + """SetDragStatus(int status)""" return _windows.SashEvent_SetDragStatus(*args, **kwargs) def GetDragStatus(*args, **kwargs): - """GetDragStatus() -> wxSashDragStatus""" + """GetDragStatus() -> int""" return _windows.SashEvent_GetDragStatus(*args, **kwargs) @@ -1065,7 +1017,6 @@ LAYOUT_QUERY = _windows.LAYOUT_QUERY wxEVT_QUERY_LAYOUT_INFO = _windows.wxEVT_QUERY_LAYOUT_INFO wxEVT_CALCULATE_LAYOUT = _windows.wxEVT_CALCULATE_LAYOUT class QueryLayoutInfoEvent(core.Event): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1099,19 +1050,19 @@ class QueryLayoutInfoEvent(core.Event): return _windows.QueryLayoutInfoEvent_GetSize(*args, **kwargs) def SetOrientation(*args, **kwargs): - """SetOrientation(wxLayoutOrientation orient)""" + """SetOrientation(int orient)""" return _windows.QueryLayoutInfoEvent_SetOrientation(*args, **kwargs) def GetOrientation(*args, **kwargs): - """GetOrientation() -> wxLayoutOrientation""" + """GetOrientation() -> int""" return _windows.QueryLayoutInfoEvent_GetOrientation(*args, **kwargs) def SetAlignment(*args, **kwargs): - """SetAlignment(wxLayoutAlignment align)""" + """SetAlignment(int align)""" return _windows.QueryLayoutInfoEvent_SetAlignment(*args, **kwargs) def GetAlignment(*args, **kwargs): - """GetAlignment() -> wxLayoutAlignment""" + """GetAlignment() -> int""" return _windows.QueryLayoutInfoEvent_GetAlignment(*args, **kwargs) @@ -1123,7 +1074,6 @@ class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent): _windows.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr) class CalculateLayoutEvent(core.Event): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1160,13 +1110,14 @@ EVT_QUERY_LAYOUT_INFO = wx.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO ) EVT_CALCULATE_LAYOUT = wx.PyEventBinder( wxEVT_CALCULATE_LAYOUT ) class SashLayoutWindow(SashWindow): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxCLIP_CHILDREN|wxSW_3D, - wxString name=wxPySashLayoutNameStr) -> SashLayoutWindow""" + """ + __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, + long style=wxCLIP_CHILDREN|wxSW_3D, + String name=SashLayoutNameStr) -> SashLayoutWindow + """ newobj = _windows.new_SashLayoutWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -1174,21 +1125,23 @@ class SashLayoutWindow(SashWindow): self._setOORInfo(self) def Create(*args, **kwargs): - """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=wxCLIP_CHILDREN|wxSW_3D, - wxString name=wxPySashLayoutNameStr) -> bool""" + """ + Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, + long style=wxCLIP_CHILDREN|wxSW_3D, + String name=SashLayoutNameStr) -> bool + """ return _windows.SashLayoutWindow_Create(*args, **kwargs) def GetAlignment(*args, **kwargs): - """GetAlignment() -> wxLayoutAlignment""" + """GetAlignment() -> int""" return _windows.SashLayoutWindow_GetAlignment(*args, **kwargs) def GetOrientation(*args, **kwargs): - """GetOrientation() -> wxLayoutOrientation""" + """GetOrientation() -> int""" return _windows.SashLayoutWindow_GetOrientation(*args, **kwargs) def SetAlignment(*args, **kwargs): - """SetAlignment(wxLayoutAlignment alignment)""" + """SetAlignment(int alignment)""" return _windows.SashLayoutWindow_SetAlignment(*args, **kwargs) def SetDefaultSize(*args, **kwargs): @@ -1196,7 +1149,7 @@ class SashLayoutWindow(SashWindow): return _windows.SashLayoutWindow_SetDefaultSize(*args, **kwargs) def SetOrientation(*args, **kwargs): - """SetOrientation(wxLayoutOrientation orientation)""" + """SetOrientation(int orientation)""" return _windows.SashLayoutWindow_SetOrientation(*args, **kwargs) @@ -1214,7 +1167,6 @@ def PreSashLayoutWindow(*args, **kwargs): return val class LayoutAlgorithm(core.Object): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1250,7 +1202,6 @@ class LayoutAlgorithmPtr(LayoutAlgorithm): _windows.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr) class PopupWindow(core.Window): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1274,7 +1225,6 @@ def PrePopupWindow(*args, **kwargs): return val class PopupTransientWindow(PopupWindow): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1300,11 +1250,10 @@ def PrePopupTransientWindow(*args, **kwargs): #--------------------------------------------------------------------------- class TipWindow(Frame): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, wxString text, int maxLength=100, Rect rectBound=None) -> TipWindow""" + """__init__(Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow""" newobj = _windows.new_TipWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -1330,12 +1279,13 @@ _windows.TipWindow_swigregister(TipWindowPtr) #--------------------------------------------------------------------------- class VScrolledWindow(Panel): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, wxString name=PanelNameStr) -> VScrolledWindow""" + """ + __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition, + Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow + """ newobj = _windows.new_VScrolledWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -1347,8 +1297,10 @@ class VScrolledWindow(Panel): return _windows.VScrolledWindow__setCallbackInfo(*args, **kwargs) def Create(*args, **kwargs): - """Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, wxString name=PanelNameStr) -> bool""" + """ + Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition, + Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool + """ return _windows.VScrolledWindow_Create(*args, **kwargs) def SetLineCount(*args, **kwargs): @@ -1418,12 +1370,13 @@ def PreVScrolledWindow(*args, **kwargs): return val class VListBox(VScrolledWindow): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, wxString name=wxPyVListBoxNameStr) -> VListBox""" + """ + __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition, + Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox + """ newobj = _windows.new_VListBox(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -1435,8 +1388,10 @@ class VListBox(VScrolledWindow): return _windows.VListBox__setCallbackInfo(*args, **kwargs) def Create(*args, **kwargs): - """Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, wxString name=wxPyVListBoxNameStr) -> bool""" + """ + Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition, + Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool + """ return _windows.VListBox_Create(*args, **kwargs) def GetItemCount(*args, **kwargs): @@ -1476,7 +1431,7 @@ class VListBox(VScrolledWindow): return _windows.VListBox_GetMargins(*args, **kwargs) def GetSelectionBackground(*args, **kwargs): - """GetSelectionBackground() -> wxColour""" + """GetSelectionBackground() -> Colour""" return _windows.VListBox_GetSelectionBackground(*args, **kwargs) def SetItemCount(*args, **kwargs): @@ -1520,7 +1475,7 @@ class VListBox(VScrolledWindow): return _windows.VListBox_SetMarginsXY(*args, **kwargs) def SetSelectionBackground(*args, **kwargs): - """SetSelectionBackground(wxColour col)""" + """SetSelectionBackground(Colour col)""" return _windows.VListBox_SetSelectionBackground(*args, **kwargs) @@ -1530,6 +1485,7 @@ class VListBoxPtr(VListBox): if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = VListBox _windows.VListBox_swigregister(VListBoxPtr) +VListBoxNameStr = cvar.VListBoxNameStr def PreVListBox(*args, **kwargs): """PreVListBox() -> VListBox""" @@ -1538,12 +1494,13 @@ def PreVListBox(*args, **kwargs): return val class HtmlListBox(VListBox): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, wxString name=wxPyVListBoxNameStr) -> HtmlListBox""" + """ + __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition, + Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox + """ newobj = _windows.new_HtmlListBox(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -1555,8 +1512,10 @@ class HtmlListBox(VListBox): return _windows.HtmlListBox__setCallbackInfo(*args, **kwargs) def Create(*args, **kwargs): - """Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, wxString name=wxPyVListBoxNameStr) -> bool""" + """ + Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition, + Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool + """ return _windows.HtmlListBox_Create(*args, **kwargs) def RefreshAll(*args, **kwargs): @@ -1584,7 +1543,6 @@ def PreHtmlListBox(*args, **kwargs): #--------------------------------------------------------------------------- class TaskBarIcon(core.EvtHandler): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1608,7 +1566,6 @@ class TaskBarIconPtr(TaskBarIcon): _windows.TaskBarIcon_swigregister(TaskBarIconPtr) class TaskBarIconEvent(core.Event): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -1643,11 +1600,15 @@ EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK ) #--------------------------------------------------------------------------- class ColourData(core.Object): - """""" + """This class holds a variety of information related to colour dialogs.""" def __repr__(self): return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__() -> ColourData""" + """ + __init__() -> ColourData + + Constructor, sets default values. + """ newobj = _windows.new_ColourData(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -1659,27 +1620,57 @@ class ColourData(core.Object): except: pass def GetChooseFull(*args, **kwargs): - """GetChooseFull() -> bool""" + """ + GetChooseFull() -> bool + + Under Windows, determines whether the Windows colour dialog will display + the full dialog with custom colour selection controls. Has no meaning + under other platforms. The default value is true. + """ return _windows.ColourData_GetChooseFull(*args, **kwargs) def GetColour(*args, **kwargs): - """GetColour() -> wxColour""" + """ + GetColour() -> Colour + + Gets the colour (pre)selected by the dialog. + """ return _windows.ColourData_GetColour(*args, **kwargs) def GetCustomColour(*args, **kwargs): - """GetCustomColour(int i) -> wxColour""" + """ + GetCustomColour(int i) -> Colour + + Gets the i'th custom colour associated with the colour dialog. i should + be an integer between 0 and 15. The default custom colours are all white. + """ return _windows.ColourData_GetCustomColour(*args, **kwargs) def SetChooseFull(*args, **kwargs): - """SetChooseFull(int flag)""" + """ + SetChooseFull(int flag) + + Under Windows, tells the Windows colour dialog to display the full dialog + with custom colour selection controls. Under other platforms, has no effect. + The default value is true. + """ return _windows.ColourData_SetChooseFull(*args, **kwargs) def SetColour(*args, **kwargs): - """SetColour(wxColour colour)""" + """ + SetColour(Colour colour) + + Sets the default colour for the colour dialog. The default colour is black. + """ return _windows.ColourData_SetColour(*args, **kwargs) def SetCustomColour(*args, **kwargs): - """SetCustomColour(int i, wxColour colour)""" + """ + SetCustomColour(int i, Colour colour) + + Sets the i'th custom colour for the colour dialog. i should be an integer + between 0 and 15. The default custom colours are all white. + """ return _windows.ColourData_SetCustomColour(*args, **kwargs) @@ -1689,13 +1680,24 @@ class ColourDataPtr(ColourData): if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = ColourData _windows.ColourData_swigregister(ColourDataPtr) +FileSelectorPromptStr = cvar.FileSelectorPromptStr +DirSelectorPromptStr = cvar.DirSelectorPromptStr +DirDialogNameStr = cvar.DirDialogNameStr +FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr +GetTextFromUserPromptStr = cvar.GetTextFromUserPromptStr +MessageBoxCaptionStr = cvar.MessageBoxCaptionStr class ColourDialog(Dialog): - """""" + """This class represents the colour chooser dialog.""" def __repr__(self): return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, ColourData data=None) -> ColourDialog""" + """ + __init__(Window parent, ColourData data=None) -> ColourDialog + + Constructor. Pass a parent window, and optionally a ColourData, which + will be copied to the colour dialog's internal ColourData instance. + """ newobj = _windows.new_ColourDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -1703,12 +1705,12 @@ class ColourDialog(Dialog): self._setOORInfo(self) def GetColourData(*args, **kwargs): - """GetColourData() -> ColourData""" - return _windows.ColourDialog_GetColourData(*args, **kwargs) + """ + GetColourData() -> ColourData - def ShowModal(*args, **kwargs): - """ShowModal() -> int""" - return _windows.ColourDialog_ShowModal(*args, **kwargs) + Returns a reference to the ColourData used by the dialog. + """ + return _windows.ColourDialog_GetColourData(*args, **kwargs) class ColourDialogPtr(ColourDialog): @@ -1719,14 +1721,18 @@ class ColourDialogPtr(ColourDialog): _windows.ColourDialog_swigregister(ColourDialogPtr) class DirDialog(Dialog): - """""" + """This class represents the directory chooser dialog.""" def __repr__(self): return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, wxString message=wxPyDirSelectorPromptStr, - wxString defaultPath=wxPyEmptyString, - long style=0, Point pos=DefaultPosition, Size size=DefaultSize, - wxString name=wxPyDirDialogNameStr) -> DirDialog""" + """ + __init__(Window parent, String message=DirSelectorPromptStr, + String defaultPath=EmptyString, long style=0, + Point pos=DefaultPosition, Size size=DefaultSize, + String name=DirDialogNameStr) -> DirDialog + + Constructor. Use ShowModal method to show the dialog. + """ newobj = _windows.new_DirDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -1734,28 +1740,44 @@ class DirDialog(Dialog): self._setOORInfo(self) def GetPath(*args, **kwargs): - """GetPath() -> wxString""" + """ + GetPath() -> String + + Returns the default or user-selected path. + """ return _windows.DirDialog_GetPath(*args, **kwargs) def GetMessage(*args, **kwargs): - """GetMessage() -> wxString""" + """ + GetMessage() -> String + + Returns the message that will be displayed on the dialog. + """ return _windows.DirDialog_GetMessage(*args, **kwargs) def GetStyle(*args, **kwargs): - """GetStyle() -> long""" + """ + GetStyle() -> long + + Returns the dialog style. + """ return _windows.DirDialog_GetStyle(*args, **kwargs) def SetMessage(*args, **kwargs): - """SetMessage(wxString message)""" + """ + SetMessage(String message) + + Sets the message that will be displayed on the dialog. + """ return _windows.DirDialog_SetMessage(*args, **kwargs) def SetPath(*args, **kwargs): - """SetPath(wxString path)""" - return _windows.DirDialog_SetPath(*args, **kwargs) + """ + SetPath(String path) - def ShowModal(*args, **kwargs): - """ShowModal() -> int""" - return _windows.DirDialog_ShowModal(*args, **kwargs) + Sets the default path. + """ + return _windows.DirDialog_SetPath(*args, **kwargs) class DirDialogPtr(DirDialog): @@ -1766,15 +1788,18 @@ class DirDialogPtr(DirDialog): _windows.DirDialog_swigregister(DirDialogPtr) class FileDialog(Dialog): - """""" + """This class represents the file chooser dialog.""" def __repr__(self): return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, wxString message=wxPyFileSelectorPromptStr, - wxString defaultDir=wxPyEmptyString, - wxString defaultFile=wxPyEmptyString, wxString wildcard=wxPyFileSelectorDefaultWildcardStr, - long style=0, - Point pos=DefaultPosition) -> FileDialog""" + """ + __init__(Window parent, String message=FileSelectorPromptStr, + String defaultDir=EmptyString, String defaultFile=EmptyString, + String wildcard=FileSelectorDefaultWildcardStr, + long style=0, Point pos=DefaultPosition) -> FileDialog + + Constructor. Use ShowModal method to show the dialog. + """ newobj = _windows.new_FileDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -1782,67 +1807,140 @@ class FileDialog(Dialog): self._setOORInfo(self) def SetMessage(*args, **kwargs): - """SetMessage(wxString message)""" + """ + SetMessage(String message) + + Sets the message that will be displayed on the dialog. + """ return _windows.FileDialog_SetMessage(*args, **kwargs) def SetPath(*args, **kwargs): - """SetPath(wxString path)""" + """ + SetPath(String path) + + Sets the path (the combined directory and filename that will + be returned when the dialog is dismissed). + """ return _windows.FileDialog_SetPath(*args, **kwargs) def SetDirectory(*args, **kwargs): - """SetDirectory(wxString dir)""" + """ + SetDirectory(String dir) + + Sets the default directory. + """ return _windows.FileDialog_SetDirectory(*args, **kwargs) def SetFilename(*args, **kwargs): - """SetFilename(wxString name)""" + """ + SetFilename(String name) + + Sets the default filename. + """ return _windows.FileDialog_SetFilename(*args, **kwargs) def SetWildcard(*args, **kwargs): - """SetWildcard(wxString wildCard)""" + """ + SetWildcard(String wildCard) + + Sets the wildcard, which can contain multiple file types, for example: + "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif" + """ return _windows.FileDialog_SetWildcard(*args, **kwargs) def SetStyle(*args, **kwargs): - """SetStyle(long style)""" + """ + SetStyle(long style) + + Sets the dialog style. + """ return _windows.FileDialog_SetStyle(*args, **kwargs) def SetFilterIndex(*args, **kwargs): - """SetFilterIndex(int filterIndex)""" + """ + SetFilterIndex(int filterIndex) + + Sets the default filter index, starting from zero. + """ return _windows.FileDialog_SetFilterIndex(*args, **kwargs) def GetMessage(*args, **kwargs): - """GetMessage() -> wxString""" + """ + GetMessage() -> String + + Returns the message that will be displayed on the dialog. + """ return _windows.FileDialog_GetMessage(*args, **kwargs) def GetPath(*args, **kwargs): - """GetPath() -> wxString""" + """ + GetPath() -> String + + Returns the full path (directory and filename) of the selected file. + """ return _windows.FileDialog_GetPath(*args, **kwargs) def GetDirectory(*args, **kwargs): - """GetDirectory() -> wxString""" + """ + GetDirectory() -> String + + Returns the default directory. + """ return _windows.FileDialog_GetDirectory(*args, **kwargs) def GetFilename(*args, **kwargs): - """GetFilename() -> wxString""" + """ + GetFilename() -> String + + Returns the default filename. + """ return _windows.FileDialog_GetFilename(*args, **kwargs) def GetWildcard(*args, **kwargs): - """GetWildcard() -> wxString""" + """ + GetWildcard() -> String + + Returns the file dialog wildcard. + """ return _windows.FileDialog_GetWildcard(*args, **kwargs) def GetStyle(*args, **kwargs): - """GetStyle() -> long""" + """ + GetStyle() -> long + + Returns the dialog style. + """ return _windows.FileDialog_GetStyle(*args, **kwargs) def GetFilterIndex(*args, **kwargs): - """GetFilterIndex() -> int""" + """ + GetFilterIndex() -> int + + Returns the index into the list of filters supplied, optionally, in + the wildcard parameter. Before the dialog is shown, this is the index + which will be used when the dialog is first displayed. After the dialog + is shown, this is the index selected by the user. + """ return _windows.FileDialog_GetFilterIndex(*args, **kwargs) def GetFilenames(*args, **kwargs): - """GetFilenames() -> PyObject""" + """ + GetFilenames() -> PyObject + + Returns a list of filenames chosen in the dialog. This function should + only be used with the dialogs which have wx.MULTIPLE style, use + GetFilename for the others. + """ return _windows.FileDialog_GetFilenames(*args, **kwargs) def GetPaths(*args, **kwargs): - """GetPaths() -> PyObject""" + """ + GetPaths() -> PyObject + + Fills the array paths with the full paths of the files chosen. This + function should only be used with the dialogs which have wx.MULTIPLE style, + use GetPath for the others. + """ return _windows.FileDialog_GetPaths(*args, **kwargs) @@ -1855,13 +1953,17 @@ _windows.FileDialog_swigregister(FileDialogPtr) CHOICEDLG_STYLE = _windows.CHOICEDLG_STYLE class MultiChoiceDialog(Dialog): - """""" + """A simple dialog with a multi selection listbox.""" def __repr__(self): return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, wxString message, wxString caption, - int LCOUNT, wxString choices, long style=CHOICEDLG_STYLE, - Point pos=DefaultPosition) -> MultiChoiceDialog""" + """ + __init__(Window parent, String message, String caption, + List choices=[], long style=CHOICEDLG_STYLE, + Point pos=DefaultPosition) -> MultiChoiceDialog + + Constructor. Use ShowModal method to show the dialog. + """ newobj = _windows.new_MultiChoiceDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -1869,11 +1971,19 @@ class MultiChoiceDialog(Dialog): self._setOORInfo(self) def SetSelections(*args, **kwargs): - """SetSelections(wxArrayInt selections)""" + """ + SetSelections(List selections) + + Specify the items in the list that shoudl be selected, using a list of integers. + """ return _windows.MultiChoiceDialog_SetSelections(*args, **kwargs) def GetSelections(*args, **kwargs): - """GetSelections() -> PyObject""" + """ + GetSelections() -> [selections] + + Returns a list of integers representing the items that are selected. + """ return _windows.MultiChoiceDialog_GetSelections(*args, **kwargs) @@ -1885,13 +1995,17 @@ class MultiChoiceDialogPtr(MultiChoiceDialog): _windows.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr) class SingleChoiceDialog(Dialog): - """""" + """A simple dialog with a single selection listbox.""" def __repr__(self): return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, wxString message, wxString caption, - int choices, wxString choices_array, long style=CHOICEDLG_STYLE, - Point pos=DefaultPosition) -> SingleChoiceDialog""" + """ + __init__(Window parent, String message, String caption, + List choices=[], long style=CHOICEDLG_STYLE, + Point pos=DefaultPosition) -> SingleChoiceDialog + + Constructor. Use ShowModal method to show the dialog. + """ newobj = _windows.new_SingleChoiceDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -1899,20 +2013,28 @@ class SingleChoiceDialog(Dialog): self._setOORInfo(self) def GetSelection(*args, **kwargs): - """GetSelection() -> int""" + """ + GetSelection() -> int + + Get the index of teh currently selected item. + """ return _windows.SingleChoiceDialog_GetSelection(*args, **kwargs) def GetStringSelection(*args, **kwargs): - """GetStringSelection() -> wxString""" + """ + GetStringSelection() -> String + + Returns the string value of the currently selected item + """ return _windows.SingleChoiceDialog_GetStringSelection(*args, **kwargs) def SetSelection(*args, **kwargs): - """SetSelection(int sel)""" - return _windows.SingleChoiceDialog_SetSelection(*args, **kwargs) + """ + SetSelection(int sel) - def ShowModal(*args, **kwargs): - """ShowModal() -> int""" - return _windows.SingleChoiceDialog_ShowModal(*args, **kwargs) + Set the current selected item to sel + """ + return _windows.SingleChoiceDialog_SetSelection(*args, **kwargs) class SingleChoiceDialogPtr(SingleChoiceDialog): @@ -1923,14 +2045,17 @@ class SingleChoiceDialogPtr(SingleChoiceDialog): _windows.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr) class TextEntryDialog(Dialog): - """""" + """A dialog with text control, [ok] and [cancel] buttons""" def __repr__(self): return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, wxString message, wxString caption=wxPyGetTextFromUserPromptStr, - wxString defaultValue=wxPyEmptyString, - long style=wxOK|wxCANCEL|wxCENTRE, - Point pos=DefaultPosition) -> TextEntryDialog""" + """ + __init__(Window parent, String message, String caption=GetTextFromUserPromptStr, + String defaultValue=EmptyString, + long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog + + Constructor. Use ShowModal method to show the dialog. + """ newobj = _windows.new_TextEntryDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -1938,16 +2063,21 @@ class TextEntryDialog(Dialog): self._setOORInfo(self) def GetValue(*args, **kwargs): - """GetValue() -> wxString""" + """ + GetValue() -> String + + Returns the text that the user has entered if the user has pressed OK, + or the original value if the user has pressed Cancel. + """ return _windows.TextEntryDialog_GetValue(*args, **kwargs) def SetValue(*args, **kwargs): - """SetValue(wxString value)""" - return _windows.TextEntryDialog_SetValue(*args, **kwargs) + """ + SetValue(String value) - def ShowModal(*args, **kwargs): - """ShowModal() -> int""" - return _windows.TextEntryDialog_ShowModal(*args, **kwargs) + Sets the default text value. + """ + return _windows.TextEntryDialog_SetValue(*args, **kwargs) class TextEntryDialogPtr(TextEntryDialog): @@ -1958,11 +2088,15 @@ class TextEntryDialogPtr(TextEntryDialog): _windows.TextEntryDialog_swigregister(TextEntryDialogPtr) class FontData(core.Object): - """""" + """This class holds a variety of information related to font dialogs.""" def __repr__(self): return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__() -> FontData""" + """ + __init__() -> FontData + + This class holds a variety of information related to font dialogs. + """ newobj = _windows.new_FontData(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -1974,55 +2108,116 @@ class FontData(core.Object): except: pass def EnableEffects(*args, **kwargs): - """EnableEffects(bool enable)""" + """ + EnableEffects(bool enable) + + Enables or disables 'effects' under MS Windows only. This refers + to the controls for manipulating colour, strikeout and underline + properties. The default value is true. + """ return _windows.FontData_EnableEffects(*args, **kwargs) def GetAllowSymbols(*args, **kwargs): - """GetAllowSymbols() -> bool""" + """ + GetAllowSymbols() -> bool + + Under MS Windows, returns a flag determining whether symbol fonts can be + selected. Has no effect on other platforms. The default value is true. + """ return _windows.FontData_GetAllowSymbols(*args, **kwargs) def GetColour(*args, **kwargs): - """GetColour() -> wxColour""" + """ + GetColour() -> Colour + + Gets the colour associated with the font dialog. The default value is black. + """ return _windows.FontData_GetColour(*args, **kwargs) def GetChosenFont(*args, **kwargs): - """GetChosenFont() -> wxFont""" + """ + GetChosenFont() -> Font + + Gets the font chosen by the user. + """ return _windows.FontData_GetChosenFont(*args, **kwargs) def GetEnableEffects(*args, **kwargs): - """GetEnableEffects() -> bool""" + """ + GetEnableEffects() -> bool + + Determines whether 'effects' are enabled under Windows. + """ return _windows.FontData_GetEnableEffects(*args, **kwargs) def GetInitialFont(*args, **kwargs): - """GetInitialFont() -> wxFont""" + """ + GetInitialFont() -> Font + + Gets the font that will be initially used by the font dialog. This should have + previously been set by the application. + """ return _windows.FontData_GetInitialFont(*args, **kwargs) def GetShowHelp(*args, **kwargs): - """GetShowHelp() -> bool""" + """ + GetShowHelp() -> bool + + Returns true if the Help button will be shown (Windows only). The default + value is false. + """ return _windows.FontData_GetShowHelp(*args, **kwargs) def SetAllowSymbols(*args, **kwargs): - """SetAllowSymbols(bool allowSymbols)""" + """ + SetAllowSymbols(bool allowSymbols) + + Under MS Windows, determines whether symbol fonts can be selected. Has no + effect on other platforms. The default value is true. + """ return _windows.FontData_SetAllowSymbols(*args, **kwargs) def SetChosenFont(*args, **kwargs): - """SetChosenFont(wxFont font)""" + """ + SetChosenFont(Font font) + + Sets the font that will be returned to the user (for internal use only). + """ return _windows.FontData_SetChosenFont(*args, **kwargs) def SetColour(*args, **kwargs): - """SetColour(wxColour colour)""" + """ + SetColour(Colour colour) + + Sets the colour that will be used for the font foreground colour. The default + colour is black. + """ return _windows.FontData_SetColour(*args, **kwargs) def SetInitialFont(*args, **kwargs): - """SetInitialFont(wxFont font)""" + """ + SetInitialFont(Font font) + + Sets the font that will be initially used by the font dialog. + """ return _windows.FontData_SetInitialFont(*args, **kwargs) def SetRange(*args, **kwargs): - """SetRange(int min, int max)""" + """ + SetRange(int min, int max) + + Sets the valid range for the font point size (Windows only). The default is + 0, 0 (unrestricted range). + """ return _windows.FontData_SetRange(*args, **kwargs) def SetShowHelp(*args, **kwargs): - """SetShowHelp(bool showHelp)""" + """ + SetShowHelp(bool showHelp) + + Determines whether the Help button will be displayed in the font dialog + (Windows only). The default value is false. + """ return _windows.FontData_SetShowHelp(*args, **kwargs) @@ -2034,11 +2229,16 @@ class FontDataPtr(FontData): _windows.FontData_swigregister(FontDataPtr) class FontDialog(Dialog): - """""" + """This class represents the font chooser dialog.""" def __repr__(self): return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, FontData data) -> FontDialog""" + """ + __init__(Window parent, FontData data) -> FontDialog + + Constructor. Pass a parent window and the FontData object to be + used to initialize the dialog controls. + """ newobj = _windows.new_FontDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -2046,12 +2246,12 @@ class FontDialog(Dialog): self._setOORInfo(self) def GetFontData(*args, **kwargs): - """GetFontData() -> FontData""" - return _windows.FontDialog_GetFontData(*args, **kwargs) + """ + GetFontData() -> FontData - def ShowModal(*args, **kwargs): - """ShowModal() -> int""" - return _windows.FontDialog_ShowModal(*args, **kwargs) + Returns a reference to the internal FontData used by the FontDialog. + """ + return _windows.FontDialog_GetFontData(*args, **kwargs) class FontDialogPtr(FontDialog): @@ -2062,23 +2262,27 @@ class FontDialogPtr(FontDialog): _windows.FontDialog_swigregister(FontDialogPtr) class MessageDialog(Dialog): - """""" + """ + This class provides a dialog that shows a single or multi-line message, with + a choice of OK, Yes, No and Cancel buttons. + """ def __repr__(self): return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, wxString message, wxString caption=wxPyMessageBoxCaptionStr, - long style=wxOK|wxCANCEL|wxCENTRE, - Point pos=DefaultPosition) -> MessageDialog""" + """ + __init__(Window parent, String message, String caption=MessageBoxCaptionStr, + long style=wxOK|wxCANCEL|wxCENTRE, + Point pos=DefaultPosition) -> MessageDialog + + This class provides a dialog that shows a single or multi-line message, with + a choice of OK, Yes, No and Cancel buttons. + """ newobj = _windows.new_MessageDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown self._setOORInfo(self) - def ShowModal(*args, **kwargs): - """ShowModal() -> int""" - return _windows.MessageDialog_ShowModal(*args, **kwargs) - class MessageDialogPtr(MessageDialog): def __init__(self, this): @@ -2088,12 +2292,20 @@ class MessageDialogPtr(MessageDialog): _windows.MessageDialog_swigregister(MessageDialogPtr) class ProgressDialog(Frame): - """""" + """ + A dialog that shows a short message and a progress bar. Optionally, it can + display an ABORT button. + """ def __repr__(self): return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(wxString title, wxString message, int maximum=100, - Window parent=None, int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog""" + """ + __init__(String title, String message, int maximum=100, Window parent=None, + int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog + + Constructor. Creates the dialog, displays it and disables user input for other + windows, or, if wxPD_APP_MODAL flag is not given, for its parent window only. + """ newobj = _windows.new_ProgressDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -2101,11 +2313,25 @@ class ProgressDialog(Frame): self._setOORInfo(self) def Update(*args, **kwargs): - """Update(int value, wxString newmsg=wxPyEmptyString) -> bool""" + """ + Update(int value, String newmsg=EmptyString) -> bool + + Updates the dialog, setting the progress bar to the new value and, if given + changes the message above it. Returns true unless the Cancel button has been + pressed. + + If false is returned, the application can either immediately destroy the + dialog or ask the user for the confirmation and if the abort is not confirmed + the dialog may be resumed with Resume function. + """ return _windows.ProgressDialog_Update(*args, **kwargs) def Resume(*args, **kwargs): - """Resume()""" + """ + Resume() + + Can be used to continue with the dialog, after the user had chosen to abort. + """ return _windows.ProgressDialog_Resume(*args, **kwargs) @@ -2142,29 +2368,51 @@ EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE class FindDialogEvent(core.CommandEvent): - """""" + """Events for the FindReplaceDialog""" def __repr__(self): return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent""" + """ + __init__(wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent + + Events for the FindReplaceDialog + """ newobj = _windows.new_FindDialogEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown def GetFlags(*args, **kwargs): - """GetFlags() -> int""" + """ + GetFlags() -> int + + Get the currently selected flags: this is the combination of + wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags. + """ return _windows.FindDialogEvent_GetFlags(*args, **kwargs) def GetFindString(*args, **kwargs): - """GetFindString() -> wxString""" + """ + GetFindString() -> String + + Return the string to find (never empty). + """ return _windows.FindDialogEvent_GetFindString(*args, **kwargs) def GetReplaceString(*args, **kwargs): - """GetReplaceString() -> wxString""" + """ + GetReplaceString() -> String + + Return the string to replace the search string with (only + for replace and replace all events). + """ return _windows.FindDialogEvent_GetReplaceString(*args, **kwargs) def GetDialog(*args, **kwargs): - """GetDialog() -> FindReplaceDialog""" + """ + GetDialog() -> FindReplaceDialog + + Return the pointer to the dialog which generated this event. + """ return _windows.FindDialogEvent_GetDialog(*args, **kwargs) def SetFlags(*args, **kwargs): @@ -2172,11 +2420,11 @@ class FindDialogEvent(core.CommandEvent): return _windows.FindDialogEvent_SetFlags(*args, **kwargs) def SetFindString(*args, **kwargs): - """SetFindString(wxString str)""" + """SetFindString(String str)""" return _windows.FindDialogEvent_SetFindString(*args, **kwargs) def SetReplaceString(*args, **kwargs): - """SetReplaceString(wxString str)""" + """SetReplaceString(String str)""" return _windows.FindDialogEvent_SetReplaceString(*args, **kwargs) @@ -2188,11 +2436,33 @@ class FindDialogEventPtr(FindDialogEvent): _windows.FindDialogEvent_swigregister(FindDialogEventPtr) class FindReplaceData(core.Object): - """""" + """ + FindReplaceData holds the data for FindReplaceDialog. It is used to initialize + the dialog with the default values and will keep the last values from the + dialog when it is closed. It is also updated each time a wxFindDialogEvent is + generated so instead of using the wxFindDialogEvent methods you can also + directly query this object. + + Note that all SetXXX() methods may only be called before showing the dialog + and calling them has no effect later. + + Flags + wxFR_DOWN: downward search/replace selected (otherwise, upwards) + + wxFR_WHOLEWORD: whole word search/replace selected + + wxFR_MATCHCASE: case sensitive search/replace selected (otherwise, + case insensitive) + + """ def __repr__(self): return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(int flags=0) -> FindReplaceData""" + """ + __init__(int flags=0) -> FindReplaceData + + Constuctor initializes the flags to default value (0). + """ newobj = _windows.new_FindReplaceData(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -2204,27 +2474,51 @@ class FindReplaceData(core.Object): except: pass def GetFindString(*args, **kwargs): - """GetFindString() -> wxString""" + """ + GetFindString() -> String + + Get the string to find. + """ return _windows.FindReplaceData_GetFindString(*args, **kwargs) def GetReplaceString(*args, **kwargs): - """GetReplaceString() -> wxString""" + """ + GetReplaceString() -> String + + Get the replacement string. + """ return _windows.FindReplaceData_GetReplaceString(*args, **kwargs) def GetFlags(*args, **kwargs): - """GetFlags() -> int""" + """ + GetFlags() -> int + + Get the combination of flag values. + """ return _windows.FindReplaceData_GetFlags(*args, **kwargs) def SetFlags(*args, **kwargs): - """SetFlags(int flags)""" + """ + SetFlags(int flags) + + Set the flags to use to initialize the controls of the dialog. + """ return _windows.FindReplaceData_SetFlags(*args, **kwargs) def SetFindString(*args, **kwargs): - """SetFindString(wxString str)""" + """ + SetFindString(String str) + + Set the string to find (used as initial value by the dialog). + """ return _windows.FindReplaceData_SetFindString(*args, **kwargs) def SetReplaceString(*args, **kwargs): - """SetReplaceString(wxString str)""" + """ + SetReplaceString(String str) + + Set the replacement string (used as initial value by the dialog). + """ return _windows.FindReplaceData_SetReplaceString(*args, **kwargs) @@ -2236,12 +2530,25 @@ class FindReplaceDataPtr(FindReplaceData): _windows.FindReplaceData_swigregister(FindReplaceDataPtr) class FindReplaceDialog(Dialog): - """""" + """ + FindReplaceDialog is a standard modeless dialog which is used to allow the + user to search for some text (and possibly replace it with something + else). The actual searching is supposed to be done in the owner window which + is the parent of this dialog. Note that it means that unlike for the other + standard dialogs this one must have a parent window. Also note that there is + no way to use this dialog in a modal way; it is always, by design and + implementation, modeless. + """ def __repr__(self): return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, FindReplaceData data, wxString title, - int style=0) -> FindReplaceDialog""" + """ + __init__(Window parent, FindReplaceData data, String title, + int style=0) -> FindReplaceDialog + + Create a FindReplaceDialog. The parent and data parameters must be + non-None. Use Show to display the dialog. + """ newobj = _windows.new_FindReplaceDialog(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -2249,16 +2556,28 @@ class FindReplaceDialog(Dialog): self._setOORInfo(self) def Create(*args, **kwargs): - """Create(Window parent, FindReplaceData data, wxString title, - int style=0) -> bool""" + """ + Create(Window parent, FindReplaceData data, String title, + int style=0) -> bool + + Create the dialog, for 2-phase create. + """ return _windows.FindReplaceDialog_Create(*args, **kwargs) def GetData(*args, **kwargs): - """GetData() -> FindReplaceData""" + """ + GetData() -> FindReplaceData + + Get the FindReplaceData object used by this dialog. + """ return _windows.FindReplaceDialog_GetData(*args, **kwargs) def SetData(*args, **kwargs): - """SetData(FindReplaceData data)""" + """ + SetData(FindReplaceData data) + + Set the FindReplaceData object used by this dialog. + """ return _windows.FindReplaceDialog_SetData(*args, **kwargs) @@ -2270,7 +2589,11 @@ class FindReplaceDialogPtr(FindReplaceDialog): _windows.FindReplaceDialog_swigregister(FindReplaceDialogPtr) def PreFindReplaceDialog(*args, **kwargs): - """PreFindReplaceDialog() -> FindReplaceDialog""" + """ + PreFindReplaceDialog() -> FindReplaceDialog + + Precreate a FindReplaceDialog for 2-phase creation + """ val = _windows.new_PreFindReplaceDialog(*args, **kwargs) val.thisown = 1 return val @@ -2286,13 +2609,14 @@ IDM_WINDOWTILEVERT = _windows.IDM_WINDOWTILEVERT FIRST_MDI_CHILD = _windows.FIRST_MDI_CHILD LAST_MDI_CHILD = _windows.LAST_MDI_CHILD class MDIParentFrame(Frame): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, int id, wxString title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, - wxString name=wxPyFrameNameStr) -> MDIParentFrame""" + """ + __init__(Window parent, int id, String title, Point pos=DefaultPosition, + Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, + String name=FrameNameStr) -> MDIParentFrame + """ newobj = _windows.new_MDIParentFrame(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -2300,9 +2624,11 @@ class MDIParentFrame(Frame): self._setOORInfo(self) def Create(*args, **kwargs): - """Create(Window parent, int id, wxString title, Point pos=DefaultPosition, - Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, - wxString name=wxPyFrameNameStr) -> bool""" + """ + Create(Window parent, int id, String title, Point pos=DefaultPosition, + Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, + String name=FrameNameStr) -> bool + """ return _windows.MDIParentFrame_Create(*args, **kwargs) def ActivateNext(*args, **kwargs): @@ -2352,13 +2678,14 @@ def PreMDIParentFrame(*args, **kwargs): return val class MDIChildFrame(Frame): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(MDIParentFrame parent, int id, wxString title, Point pos=DefaultPosition, - Size size=DefaultSize, - long style=DEFAULT_FRAME_STYLE, wxString name=wxPyFrameNameStr) -> MDIChildFrame""" + """ + __init__(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition, + Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, + String name=FrameNameStr) -> MDIChildFrame + """ newobj = _windows.new_MDIChildFrame(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -2366,9 +2693,11 @@ class MDIChildFrame(Frame): self._setOORInfo(self) def Create(*args, **kwargs): - """Create(MDIParentFrame parent, int id, wxString title, Point pos=DefaultPosition, - Size size=DefaultSize, - long style=DEFAULT_FRAME_STYLE, wxString name=wxPyFrameNameStr) -> bool""" + """ + Create(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition, + Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE, + String name=FrameNameStr) -> bool + """ return _windows.MDIChildFrame_Create(*args, **kwargs) def Activate(*args, **kwargs): @@ -2398,7 +2727,6 @@ def PreMDIChildFrame(*args, **kwargs): return val class MDIClientWindow(core.Window): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -2430,12 +2758,13 @@ def PreMDIClientWindow(*args, **kwargs): #--------------------------------------------------------------------------- class PyWindow(core.Window): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, wxString name=PanelNameStr) -> PyWindow""" + """ + __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, + long style=0, String name=PanelNameStr) -> PyWindow + """ newobj = _windows.new_PyWindow(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -2527,12 +2856,13 @@ class PyWindowPtr(PyWindow): _windows.PyWindow_swigregister(PyWindowPtr) class PyPanel(Panel): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, wxString name=PanelNameStr) -> PyPanel""" + """ + __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, + long style=0, String name=PanelNameStr) -> PyPanel + """ newobj = _windows.new_PyPanel(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -2629,8 +2959,8 @@ PRINT_MODE_NONE = _windows.PRINT_MODE_NONE PRINT_MODE_PREVIEW = _windows.PRINT_MODE_PREVIEW PRINT_MODE_FILE = _windows.PRINT_MODE_FILE PRINT_MODE_PRINTER = _windows.PRINT_MODE_PRINTER +PRINT_MODE_STREAM = _windows.PRINT_MODE_STREAM class PrintData(core.Object): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -2662,7 +2992,7 @@ class PrintData(core.Object): return _windows.PrintData_Ok(*args, **kwargs) def GetPrinterName(*args, **kwargs): - """GetPrinterName() -> wxString""" + """GetPrinterName() -> String""" return _windows.PrintData_GetPrinterName(*args, **kwargs) def GetColour(*args, **kwargs): @@ -2670,11 +3000,11 @@ class PrintData(core.Object): return _windows.PrintData_GetColour(*args, **kwargs) def GetDuplex(*args, **kwargs): - """GetDuplex() -> wxDuplexMode""" + """GetDuplex() -> int""" return _windows.PrintData_GetDuplex(*args, **kwargs) def GetPaperId(*args, **kwargs): - """GetPaperId() -> wxPaperSize""" + """GetPaperId() -> int""" return _windows.PrintData_GetPaperId(*args, **kwargs) def GetPaperSize(*args, **kwargs): @@ -2682,7 +3012,7 @@ class PrintData(core.Object): return _windows.PrintData_GetPaperSize(*args, **kwargs) def GetQuality(*args, **kwargs): - """GetQuality() -> wxPrintQuality""" + """GetQuality() -> int""" return _windows.PrintData_GetQuality(*args, **kwargs) def SetNoCopies(*args, **kwargs): @@ -2698,7 +3028,7 @@ class PrintData(core.Object): return _windows.PrintData_SetOrientation(*args, **kwargs) def SetPrinterName(*args, **kwargs): - """SetPrinterName(wxString name)""" + """SetPrinterName(String name)""" return _windows.PrintData_SetPrinterName(*args, **kwargs) def SetColour(*args, **kwargs): @@ -2706,11 +3036,11 @@ class PrintData(core.Object): return _windows.PrintData_SetColour(*args, **kwargs) def SetDuplex(*args, **kwargs): - """SetDuplex(wxDuplexMode duplex)""" + """SetDuplex(int duplex)""" return _windows.PrintData_SetDuplex(*args, **kwargs) def SetPaperId(*args, **kwargs): - """SetPaperId(wxPaperSize sizeId)""" + """SetPaperId(int sizeId)""" return _windows.PrintData_SetPaperId(*args, **kwargs) def SetPaperSize(*args, **kwargs): @@ -2718,27 +3048,27 @@ class PrintData(core.Object): return _windows.PrintData_SetPaperSize(*args, **kwargs) def SetQuality(*args, **kwargs): - """SetQuality(wxPrintQuality quality)""" + """SetQuality(int quality)""" return _windows.PrintData_SetQuality(*args, **kwargs) def GetPrinterCommand(*args, **kwargs): - """GetPrinterCommand() -> wxString""" + """GetPrinterCommand() -> String""" return _windows.PrintData_GetPrinterCommand(*args, **kwargs) def GetPrinterOptions(*args, **kwargs): - """GetPrinterOptions() -> wxString""" + """GetPrinterOptions() -> String""" return _windows.PrintData_GetPrinterOptions(*args, **kwargs) def GetPreviewCommand(*args, **kwargs): - """GetPreviewCommand() -> wxString""" + """GetPreviewCommand() -> String""" return _windows.PrintData_GetPreviewCommand(*args, **kwargs) def GetFilename(*args, **kwargs): - """GetFilename() -> wxString""" + """GetFilename() -> String""" return _windows.PrintData_GetFilename(*args, **kwargs) def GetFontMetricPath(*args, **kwargs): - """GetFontMetricPath() -> wxString""" + """GetFontMetricPath() -> String""" return _windows.PrintData_GetFontMetricPath(*args, **kwargs) def GetPrinterScaleX(*args, **kwargs): @@ -2758,27 +3088,27 @@ class PrintData(core.Object): return _windows.PrintData_GetPrinterTranslateY(*args, **kwargs) def GetPrintMode(*args, **kwargs): - """GetPrintMode() -> wxPrintMode""" + """GetPrintMode() -> int""" return _windows.PrintData_GetPrintMode(*args, **kwargs) def SetPrinterCommand(*args, **kwargs): - """SetPrinterCommand(wxString command)""" + """SetPrinterCommand(String command)""" return _windows.PrintData_SetPrinterCommand(*args, **kwargs) def SetPrinterOptions(*args, **kwargs): - """SetPrinterOptions(wxString options)""" + """SetPrinterOptions(String options)""" return _windows.PrintData_SetPrinterOptions(*args, **kwargs) def SetPreviewCommand(*args, **kwargs): - """SetPreviewCommand(wxString command)""" + """SetPreviewCommand(String command)""" return _windows.PrintData_SetPreviewCommand(*args, **kwargs) def SetFilename(*args, **kwargs): - """SetFilename(wxString filename)""" + """SetFilename(String filename)""" return _windows.PrintData_SetFilename(*args, **kwargs) def SetFontMetricPath(*args, **kwargs): - """SetFontMetricPath(wxString path)""" + """SetFontMetricPath(String path)""" return _windows.PrintData_SetFontMetricPath(*args, **kwargs) def SetPrinterScaleX(*args, **kwargs): @@ -2806,9 +3136,17 @@ class PrintData(core.Object): return _windows.PrintData_SetPrinterTranslation(*args, **kwargs) def SetPrintMode(*args, **kwargs): - """SetPrintMode(wxPrintMode printMode)""" + """SetPrintMode(int printMode)""" return _windows.PrintData_SetPrintMode(*args, **kwargs) + def GetOutputStream(*args, **kwargs): + """GetOutputStream() -> OutputStream""" + return _windows.PrintData_GetOutputStream(*args, **kwargs) + + def SetOutputStream(*args, **kwargs): + """SetOutputStream(OutputStream outputstream)""" + return _windows.PrintData_SetOutputStream(*args, **kwargs) + def __nonzero__(self): return self.Ok() class PrintDataPtr(PrintData): @@ -2817,9 +3155,10 @@ class PrintDataPtr(PrintData): if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = PrintData _windows.PrintData_swigregister(PrintDataPtr) +PrintoutTitleStr = cvar.PrintoutTitleStr +PreviewCanvasNameStr = cvar.PreviewCanvasNameStr class PageSetupDialogData(core.Object): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -2899,7 +3238,7 @@ class PageSetupDialogData(core.Object): return _windows.PageSetupDialogData_GetMinMarginBottomRight(*args, **kwargs) def GetPaperId(*args, **kwargs): - """GetPaperId() -> wxPaperSize""" + """GetPaperId() -> int""" return _windows.PageSetupDialogData_GetPaperId(*args, **kwargs) def GetPaperSize(*args, **kwargs): @@ -2939,7 +3278,7 @@ class PageSetupDialogData(core.Object): return _windows.PageSetupDialogData_SetMinMarginBottomRight(*args, **kwargs) def SetPaperId(*args, **kwargs): - """SetPaperId(wxPaperSize id)""" + """SetPaperId(int id)""" return _windows.PageSetupDialogData_SetPaperId(*args, **kwargs) def SetPaperSize(*args, **kwargs): @@ -2960,7 +3299,6 @@ class PageSetupDialogDataPtr(PageSetupDialogData): _windows.PageSetupDialogData_swigregister(PageSetupDialogDataPtr) class PageSetupDialog(Dialog): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -2988,7 +3326,6 @@ class PageSetupDialogPtr(PageSetupDialog): _windows.PageSetupDialog_swigregister(PageSetupDialogPtr) class PrintDialogData(core.Object): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -3137,7 +3474,6 @@ class PrintDialogDataPtr(PrintDialogData): _windows.PrintDialogData_swigregister(PrintDialogDataPtr) class PrintDialog(Dialog): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -3153,7 +3489,7 @@ class PrintDialog(Dialog): return _windows.PrintDialog_GetPrintDialogData(*args, **kwargs) def GetPrintDC(*args, **kwargs): - """GetPrintDC() -> wxDC""" + """GetPrintDC() -> DC""" return _windows.PrintDialog_GetPrintDC(*args, **kwargs) def ShowModal(*args, **kwargs): @@ -3172,7 +3508,6 @@ PRINTER_NO_ERROR = _windows.PRINTER_NO_ERROR PRINTER_CANCELLED = _windows.PRINTER_CANCELLED PRINTER_ERROR = _windows.PRINTER_ERROR class Printer(core.Object): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -3200,11 +3535,11 @@ class Printer(core.Object): return _windows.Printer_Print(*args, **kwargs) def PrintDialog(*args, **kwargs): - """PrintDialog(Window parent) -> wxDC""" + """PrintDialog(Window parent) -> DC""" return _windows.Printer_PrintDialog(*args, **kwargs) def ReportError(*args, **kwargs): - """ReportError(Window parent, Printout printout, wxString message)""" + """ReportError(Window parent, Printout printout, String message)""" return _windows.Printer_ReportError(*args, **kwargs) def Setup(*args, **kwargs): @@ -3216,7 +3551,7 @@ class Printer(core.Object): return _windows.Printer_GetAbort(*args, **kwargs) def GetLastError(*args, **kwargs): - """Printer.GetLastError() -> wxPrinterError""" + """GetLastError() -> int""" return _windows.Printer_GetLastError(*args, **kwargs) GetLastError = staticmethod(GetLastError) @@ -3229,15 +3564,14 @@ class PrinterPtr(Printer): _windows.Printer_swigregister(PrinterPtr) def Printer_GetLastError(*args, **kwargs): - """Printer_GetLastError() -> wxPrinterError""" + """Printer_GetLastError() -> int""" return _windows.Printer_GetLastError(*args, **kwargs) class Printout(core.Object): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(wxString title=wxPyPrintoutTitleStr) -> Printout""" + """__init__(String title=PrintoutTitleStr) -> Printout""" newobj = _windows.new_Printout(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -3249,15 +3583,15 @@ class Printout(core.Object): return _windows.Printout__setCallbackInfo(*args, **kwargs) def GetTitle(*args, **kwargs): - """GetTitle() -> wxString""" + """GetTitle() -> String""" return _windows.Printout_GetTitle(*args, **kwargs) def GetDC(*args, **kwargs): - """GetDC() -> wxDC""" + """GetDC() -> DC""" return _windows.Printout_GetDC(*args, **kwargs) def SetDC(*args, **kwargs): - """SetDC(wxDC dc)""" + """SetDC(DC dc)""" return _windows.Printout_SetDC(*args, **kwargs) def SetPageSizePixels(*args, **kwargs): @@ -3337,18 +3671,19 @@ class PrintoutPtr(Printout): _windows.Printout_swigregister(PrintoutPtr) class PreviewCanvas(ScrolledWindow): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(PrintPreview preview, Window parent, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, - wxString name=wxPyPreviewCanvasNameStr) -> PreviewCanvas""" + """ + __init__(PrintPreview preview, Window parent, Point pos=DefaultPosition, + Size size=DefaultSize, long style=0, + String name=PreviewCanvasNameStr) -> PreviewCanvas + """ newobj = _windows.new_PreviewCanvas(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - self._self._setOORInfo(self) + self._setOORInfo(self) class PreviewCanvasPtr(PreviewCanvas): @@ -3359,18 +3694,19 @@ class PreviewCanvasPtr(PreviewCanvas): _windows.PreviewCanvas_swigregister(PreviewCanvasPtr) class PreviewFrame(Frame): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(PrintPreview preview, Frame parent, wxString title, - Point pos=DefaultPosition, Size size=DefaultSize, - long style=DEFAULT_FRAME_STYLE, wxString name=wxPyFrameNameStr) -> PreviewFrame""" + """ + __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition, + Size size=DefaultSize, + long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame + """ newobj = _windows.new_PreviewFrame(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - self._self._setOORInfo(self) + self._setOORInfo(self) def Initialize(*args, **kwargs): """Initialize()""" @@ -3413,18 +3749,19 @@ ID_PREVIEW_FIRST = _windows.ID_PREVIEW_FIRST ID_PREVIEW_LAST = _windows.ID_PREVIEW_LAST ID_PREVIEW_GOTO = _windows.ID_PREVIEW_GOTO class PreviewControlBar(Panel): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(PrintPreview preview, long buttons, Window parent, - Point pos=DefaultPosition, Size size=DefaultSize, - long style=TAB_TRAVERSAL, wxString name=PanelNameStr) -> PreviewControlBar""" + """ + __init__(PrintPreview preview, long buttons, Window parent, + Point pos=DefaultPosition, Size size=DefaultSize, + long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar + """ newobj = _windows.new_PreviewControlBar(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - self._self._setOORInfo(self) + self._setOORInfo(self) def GetZoomControl(*args, **kwargs): """GetZoomControl() -> int""" @@ -3467,7 +3804,6 @@ class PreviewControlBarPtr(PreviewControlBar): _windows.PreviewControlBar_swigregister(PreviewControlBarPtr) class PrintPreview(core.Object): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -3513,11 +3849,11 @@ class PrintPreview(core.Object): return _windows.PrintPreview_GetCanvas(*args, **kwargs) def PaintPage(*args, **kwargs): - """PaintPage(PreviewCanvas canvas, wxDC dc) -> bool""" + """PaintPage(PreviewCanvas canvas, DC dc) -> bool""" return _windows.PrintPreview_PaintPage(*args, **kwargs) def DrawBlankPage(*args, **kwargs): - """DrawBlankPage(PreviewCanvas canvas, wxDC dc) -> bool""" + """DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool""" return _windows.PrintPreview_DrawBlankPage(*args, **kwargs) def RenderPage(*args, **kwargs): @@ -3574,7 +3910,6 @@ class PrintPreviewPtr(PrintPreview): _windows.PrintPreview_swigregister(PrintPreviewPtr) class PyPrintPreview(PrintPreview): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): @@ -3594,11 +3929,11 @@ class PyPrintPreview(PrintPreview): return _windows.PyPrintPreview_base_SetCurrentPage(*args, **kwargs) def base_PaintPage(*args, **kwargs): - """base_PaintPage(PreviewCanvas canvas, wxDC dc) -> bool""" + """base_PaintPage(PreviewCanvas canvas, DC dc) -> bool""" return _windows.PyPrintPreview_base_PaintPage(*args, **kwargs) def base_DrawBlankPage(*args, **kwargs): - """base_DrawBlankPage(PreviewCanvas canvas, wxDC dc) -> bool""" + """base_DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool""" return _windows.PyPrintPreview_base_DrawBlankPage(*args, **kwargs) def base_RenderPage(*args, **kwargs): @@ -3626,13 +3961,14 @@ class PyPrintPreviewPtr(PyPrintPreview): _windows.PyPrintPreview_swigregister(PyPrintPreviewPtr) class PyPreviewFrame(PreviewFrame): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(PrintPreview preview, Frame parent, wxString title, - Point pos=DefaultPosition, Size size=DefaultSize, - long style=DEFAULT_FRAME_STYLE, wxString name=wxPyFrameNameStr) -> PyPreviewFrame""" + """ + __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition, + Size size=DefaultSize, + long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame + """ newobj = _windows.new_PyPreviewFrame(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -3672,13 +4008,14 @@ class PyPreviewFramePtr(PyPreviewFrame): _windows.PyPreviewFrame_swigregister(PyPreviewFramePtr) class PyPreviewControlBar(PreviewControlBar): - """""" def __repr__(self): return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(PrintPreview preview, long buttons, Window parent, - Point pos=DefaultPosition, Size size=DefaultSize, - long style=0, wxString name=PanelNameStr) -> PyPreviewControlBar""" + """ + __init__(PrintPreview preview, long buttons, Window parent, + Point pos=DefaultPosition, Size size=DefaultSize, + long style=0, String name=PanelNameStr) -> PyPreviewControlBar + """ newobj = _windows.new_PyPreviewControlBar(*args, **kwargs) self.this = newobj.this self.thisown = 1