X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b39fe9514578dc76bd595e243e88e412be70bb61..17949b1bff2f385bf23fc3abc806f896fb5eb116:/wxPython/src/mac/_windows.py diff --git a/wxPython/src/mac/_windows.py b/wxPython/src/mac/_windows.py index 3735287566..ecf63a52bf 100644 --- a/wxPython/src/mac/_windows.py +++ b/wxPython/src/mac/_windows.py @@ -405,6 +405,10 @@ class TopLevelWindow(_core.Window): """GetTitle(self) -> String""" return _windows_.TopLevelWindow_GetTitle(*args, **kwargs) + def EnableCloseButton(*args, **kwargs): + """EnableCloseButton(self, bool enable) -> bool""" + return _windows_.TopLevelWindow_EnableCloseButton(*args, **kwargs) + def SetShape(*args, **kwargs): """SetShape(self, Region region) -> bool""" return _windows_.TopLevelWindow_SetShape(*args, **kwargs) @@ -434,10 +438,6 @@ class TopLevelWindow(_core.Window): return _windows_.TopLevelWindow_CenterOnScreen(*args, **kwargs) CentreOnScreen = CenterOnScreen - def EnableCloseButton(*args, **kwargs): - """EnableCloseButton(self, bool enable=True) -> bool""" - return _windows_.TopLevelWindow_EnableCloseButton(*args, **kwargs) - def GetDefaultItem(*args, **kwargs): """ GetDefaultItem(self) -> Window @@ -753,6 +753,7 @@ def Dialog_GetClassDefaultAttributes(*args, **kwargs): #--------------------------------------------------------------------------- +DEFAULT_MINIFRAME_STYLE = _windows_.DEFAULT_MINIFRAME_STYLE class MiniFrame(Frame): """Proxy of C++ MiniFrame class""" thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') @@ -761,7 +762,7 @@ class MiniFrame(Frame): """ __init__(self, Window parent, int id=-1, String title=EmptyString, Point pos=DefaultPosition, Size size=DefaultSize, - long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame + long style=DEFAULT_MINIFRAME_STYLE, String name=FrameNameStr) -> MiniFrame """ _windows_.MiniFrame_swiginit(self,_windows_.new_MiniFrame(*args, **kwargs)) self._setOORInfo(self) @@ -770,7 +771,7 @@ class MiniFrame(Frame): """ Create(self, Window parent, int id=-1, String title=EmptyString, Point pos=DefaultPosition, Size size=DefaultSize, - long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool + long style=DEFAULT_MINIFRAME_STYLE, String name=FrameNameStr) -> bool """ return _windows_.MiniFrame_Create(*args, **kwargs) @@ -2773,7 +2774,6 @@ class FontData(_core.Object): AllowSymbols = property(GetAllowSymbols,SetAllowSymbols,doc="See `GetAllowSymbols` and `SetAllowSymbols`") ChosenFont = property(GetChosenFont,SetChosenFont,doc="See `GetChosenFont` and `SetChosenFont`") Colour = property(GetColour,SetColour,doc="See `GetColour` and `SetColour`") - EnableEffects = property(GetEnableEffects,doc="See `GetEnableEffects`") InitialFont = property(GetInitialFont,SetInitialFont,doc="See `GetInitialFont` and `SetInitialFont`") ShowHelp = property(GetShowHelp,SetShowHelp,doc="See `GetShowHelp` and `SetShowHelp`") _windows_.FontData_swigregister(FontData) @@ -2881,16 +2881,17 @@ class ProgressDialog(Frame): """ return _windows_.ProgressDialog_Update(*args, **kwargs) - def UpdatePulse(*args, **kwargs): + def Pulse(*args, **kwargs): """ - UpdatePulse(self, String newmsg) --> (continue, skip) + Pulse(self, String newmsg) --> (continue, skip) Just like `Update` but switches the dialog to use a gauge in interminante mode and calls `wx.Gauge.Pulse` to show the user a bit of progress. """ - return _windows_.ProgressDialog_UpdatePulse(*args, **kwargs) + return _windows_.ProgressDialog_Pulse(*args, **kwargs) + UpdatePulse = Pulse def Resume(*args, **kwargs): """ Resume(self) @@ -3268,10 +3269,7 @@ class PyWindow(_core.Window): """_setCallbackInfo(self, PyObject self, PyObject _class)""" return _windows_.PyWindow__setCallbackInfo(*args, **kwargs) - def SetBestSize(*args, **kwargs): - """SetBestSize(self, Size size)""" - return _windows_.PyWindow_SetBestSize(*args, **kwargs) - + SetBestSize = wx.Window.SetInitialSize def DoEraseBackground(*args, **kwargs): """DoEraseBackground(self, DC dc) -> bool""" return _windows_.PyWindow_DoEraseBackground(*args, **kwargs) @@ -3448,10 +3446,7 @@ class PyPanel(Panel): """_setCallbackInfo(self, PyObject self, PyObject _class)""" return _windows_.PyPanel__setCallbackInfo(*args, **kwargs) - def SetBestSize(*args, **kwargs): - """SetBestSize(self, Size size)""" - return _windows_.PyPanel_SetBestSize(*args, **kwargs) - + SetBestSize = wx.Window.SetInitialSize def DoEraseBackground(*args, **kwargs): """DoEraseBackground(self, DC dc) -> bool""" return _windows_.PyPanel_DoEraseBackground(*args, **kwargs) @@ -3628,10 +3623,7 @@ class PyScrolledWindow(ScrolledWindow): """_setCallbackInfo(self, PyObject self, PyObject _class)""" return _windows_.PyScrolledWindow__setCallbackInfo(*args, **kwargs) - def SetBestSize(*args, **kwargs): - """SetBestSize(self, Size size)""" - return _windows_.PyScrolledWindow_SetBestSize(*args, **kwargs) - + SetBestSize = wx.Window.SetInitialSize def DoEraseBackground(*args, **kwargs): """DoEraseBackground(self, DC dc) -> bool""" return _windows_.PyScrolledWindow_DoEraseBackground(*args, **kwargs) @@ -3875,6 +3867,10 @@ class PrintData(_core.Object): """GetPrintMode(self) -> int""" return _windows_.PrintData_GetPrintMode(*args, **kwargs) + def GetMedia(*args, **kwargs): + """GetMedia(self) -> int""" + return _windows_.PrintData_GetMedia(*args, **kwargs) + def SetNoCopies(*args, **kwargs): """SetNoCopies(self, int v)""" return _windows_.PrintData_SetNoCopies(*args, **kwargs) @@ -3919,6 +3915,10 @@ class PrintData(_core.Object): """SetPrintMode(self, int printMode)""" return _windows_.PrintData_SetPrintMode(*args, **kwargs) + def SetMedia(*args, **kwargs): + """SetMedia(self, int media)""" + return _windows_.PrintData_SetMedia(*args, **kwargs) + def GetFilename(*args, **kwargs): """GetFilename(self) -> String""" return _windows_.PrintData_GetFilename(*args, **kwargs) @@ -4383,6 +4383,54 @@ class Printout(_core.Object): """SetDC(self, DC dc)""" return _windows_.Printout_SetDC(*args, **kwargs) + def FitThisSizeToPaper(*args, **kwargs): + """FitThisSizeToPaper(self, Size imageSize)""" + return _windows_.Printout_FitThisSizeToPaper(*args, **kwargs) + + def FitThisSizeToPage(*args, **kwargs): + """FitThisSizeToPage(self, Size imageSize)""" + return _windows_.Printout_FitThisSizeToPage(*args, **kwargs) + + def FitThisSizeToPageMargins(*args, **kwargs): + """FitThisSizeToPageMargins(self, Size imageSize, PageSetupDialogData pageSetupData)""" + return _windows_.Printout_FitThisSizeToPageMargins(*args, **kwargs) + + def MapScreenSizeToPaper(*args, **kwargs): + """MapScreenSizeToPaper(self)""" + return _windows_.Printout_MapScreenSizeToPaper(*args, **kwargs) + + def MapScreenSizeToPage(*args, **kwargs): + """MapScreenSizeToPage(self)""" + return _windows_.Printout_MapScreenSizeToPage(*args, **kwargs) + + def MapScreenSizeToPageMargins(*args, **kwargs): + """MapScreenSizeToPageMargins(self, PageSetupDialogData pageSetupData)""" + return _windows_.Printout_MapScreenSizeToPageMargins(*args, **kwargs) + + def MapScreenSizeToDevice(*args, **kwargs): + """MapScreenSizeToDevice(self)""" + return _windows_.Printout_MapScreenSizeToDevice(*args, **kwargs) + + def GetLogicalPaperRect(*args, **kwargs): + """GetLogicalPaperRect(self) -> Rect""" + return _windows_.Printout_GetLogicalPaperRect(*args, **kwargs) + + def GetLogicalPageRect(*args, **kwargs): + """GetLogicalPageRect(self) -> Rect""" + return _windows_.Printout_GetLogicalPageRect(*args, **kwargs) + + def GetLogicalPageMarginsRect(*args, **kwargs): + """GetLogicalPageMarginsRect(self, PageSetupDialogData pageSetupData) -> Rect""" + return _windows_.Printout_GetLogicalPageMarginsRect(*args, **kwargs) + + def SetLogicalOrigin(*args, **kwargs): + """SetLogicalOrigin(self, int x, int y)""" + return _windows_.Printout_SetLogicalOrigin(*args, **kwargs) + + def OffsetLogicalOrigin(*args, **kwargs): + """OffsetLogicalOrigin(self, int xoff, int yoff)""" + return _windows_.Printout_OffsetLogicalOrigin(*args, **kwargs) + def SetPageSizePixels(*args, **kwargs): """SetPageSizePixels(self, int w, int h)""" return _windows_.Printout_SetPageSizePixels(*args, **kwargs) @@ -4415,6 +4463,14 @@ class Printout(_core.Object): """GetPPIPrinter() -> (x,y)""" return _windows_.Printout_GetPPIPrinter(*args, **kwargs) + def SetPaperRectPixels(*args, **kwargs): + """SetPaperRectPixels(self, Rect paperRectPixels)""" + return _windows_.Printout_SetPaperRectPixels(*args, **kwargs) + + def GetPaperRectPixels(*args, **kwargs): + """GetPaperRectPixels(self) -> Rect""" + return _windows_.Printout_GetPaperRectPixels(*args, **kwargs) + def IsPreview(*args, **kwargs): """IsPreview(self) -> bool""" return _windows_.Printout_IsPreview(*args, **kwargs)