X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ac5d357a442f162b51c3ede0e2f702ad3ffe4406..bb9e79c05e26cbb3cdf3799910e69cea359efef3:/wxPython/src/mac/_windows.py diff --git a/wxPython/src/mac/_windows.py b/wxPython/src/mac/_windows.py index 2c5a01a809..74cb59e11c 100644 --- a/wxPython/src/mac/_windows.py +++ b/wxPython/src/mac/_windows.py @@ -278,6 +278,10 @@ class ScrolledWindow(Panel): return _windows_.ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs) GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) + ScaleX = property(GetScaleX,doc="See `GetScaleX`") + ScaleY = property(GetScaleY,doc="See `GetScaleY`") + TargetWindow = property(GetTargetWindow,SetTargetWindow,doc="See `GetTargetWindow` and `SetTargetWindow`") + ViewStart = property(GetViewStart,doc="See `GetViewStart`") _windows_.ScrolledWindow_swigregister(ScrolledWindow) def PreScrolledWindow(*args, **kwargs): @@ -401,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) @@ -430,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 @@ -467,6 +471,10 @@ class TopLevelWindow(_core.Window): """ return _windows_.TopLevelWindow_GetTmpDefaultItem(*args, **kwargs) + DefaultItem = property(GetDefaultItem,SetDefaultItem,doc="See `GetDefaultItem` and `SetDefaultItem`") + Icon = property(GetIcon,SetIcon,doc="See `GetIcon` and `SetIcon`") + Title = property(GetTitle,SetTitle,doc="See `GetTitle` and `SetTitle`") + TmpDefaultItem = property(GetTmpDefaultItem,SetTmpDefaultItem,doc="See `GetTmpDefaultItem` and `SetTmpDefaultItem`") _windows_.TopLevelWindow_swigregister(TopLevelWindow) cvar = _windows_.cvar FrameNameStr = cvar.FrameNameStr @@ -671,9 +679,16 @@ class Dialog(TopLevelWindow): """CreateTextSizer(self, String message) -> Sizer""" return _windows_.Dialog_CreateTextSizer(*args, **kwargs) - def CreateButtonSizer(*args, **kwargs): - """CreateButtonSizer(self, long flags, bool separated=False, int distance=0) -> Sizer""" - return _windows_.Dialog_CreateButtonSizer(*args, **kwargs) + def _CreateButtonSizer(*args, **kwargs): + """_CreateButtonSizer(self, long flags) -> Sizer""" + return _windows_.Dialog__CreateButtonSizer(*args, **kwargs) + + def CreateButtonSizer(self, flags, *ignored): + return self._CreateButtonSizer(flags) + + def CreateSeparatedButtonSizer(*args, **kwargs): + """CreateSeparatedButtonSizer(self, long flags) -> Sizer""" + return _windows_.Dialog_CreateSeparatedButtonSizer(*args, **kwargs) def CreateStdDialogButtonSizer(*args, **kwargs): """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer""" @@ -793,6 +808,7 @@ class SplashScreenWindow(_core.Window): """GetBitmap(self) -> Bitmap""" return _windows_.SplashScreenWindow_GetBitmap(*args, **kwargs) + Bitmap = property(GetBitmap,SetBitmap,doc="See `GetBitmap` and `SetBitmap`") _windows_.SplashScreenWindow_swigregister(SplashScreenWindow) class SplashScreen(Frame): @@ -820,6 +836,9 @@ class SplashScreen(Frame): """GetTimeout(self) -> int""" return _windows_.SplashScreen_GetTimeout(*args, **kwargs) + SplashStyle = property(GetSplashStyle,doc="See `GetSplashStyle`") + SplashWindow = property(GetSplashWindow,doc="See `GetSplashWindow`") + Timeout = property(GetTimeout,doc="See `GetTimeout`") _windows_.SplashScreen_swigregister(SplashScreen) #--------------------------------------------------------------------------- @@ -919,7 +938,12 @@ class StatusBar(_core.Window): for i in range(len(items)): self.SetStatusText(items[i], i) - Fields = property(GetFields,SetFields) + BorderX = property(GetBorderX,doc="See `GetBorderX`") + BorderY = property(GetBorderY,doc="See `GetBorderY`") + FieldRect = property(GetFieldRect,doc="See `GetFieldRect`") + Fields = property(GetFields,SetFields,doc="See `GetFields` and `SetFields`") + FieldsCount = property(GetFieldsCount,SetFieldsCount,doc="See `GetFieldsCount` and `SetFieldsCount`") + StatusText = property(GetStatusText,SetStatusText,doc="See `GetStatusText` and `SetStatusText`") _windows_.StatusBar_swigregister(StatusBar) def PreStatusBar(*args, **kwargs): @@ -1243,6 +1267,15 @@ class SplitterWindow(_core.Window): return _windows_.SplitterWindow_GetClassDefaultAttributes(*args, **kwargs) GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) + BorderSize = property(GetBorderSize,SetBorderSize,doc="See `GetBorderSize` and `SetBorderSize`") + MinimumPaneSize = property(GetMinimumPaneSize,SetMinimumPaneSize,doc="See `GetMinimumPaneSize` and `SetMinimumPaneSize`") + NeedUpdating = property(GetNeedUpdating,SetNeedUpdating,doc="See `GetNeedUpdating` and `SetNeedUpdating`") + SashGravity = property(GetSashGravity,SetSashGravity,doc="See `GetSashGravity` and `SetSashGravity`") + SashPosition = property(GetSashPosition,SetSashPosition,doc="See `GetSashPosition` and `SetSashPosition`") + SashSize = property(GetSashSize,SetSashSize,doc="See `GetSashSize` and `SetSashSize`") + SplitMode = property(GetSplitMode,SetSplitMode,doc="See `GetSplitMode` and `SetSplitMode`") + Window1 = property(GetWindow1,doc="See `GetWindow1`") + Window2 = property(GetWindow2,doc="See `GetWindow2`") _windows_.SplitterWindow_swigregister(SplitterWindow) SplitterNameStr = cvar.SplitterNameStr @@ -1332,6 +1365,10 @@ class SplitterEvent(_core.NotifyEvent): """ return _windows_.SplitterEvent_GetY(*args, **kwargs) + SashPosition = property(GetSashPosition,SetSashPosition,doc="See `GetSashPosition` and `SetSashPosition`") + WindowBeingRemoved = property(GetWindowBeingRemoved,doc="See `GetWindowBeingRemoved`") + X = property(GetX,doc="See `GetX`") + Y = property(GetY,doc="See `GetY`") _windows_.SplitterEvent_swigregister(SplitterEvent) wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = _windows_.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED @@ -1456,6 +1493,12 @@ class SashWindow(_core.Window): """SizeWindows(self)""" return _windows_.SashWindow_SizeWindows(*args, **kwargs) + DefaultBorderSize = property(GetDefaultBorderSize,SetDefaultBorderSize,doc="See `GetDefaultBorderSize` and `SetDefaultBorderSize`") + ExtraBorderSize = property(GetExtraBorderSize,SetExtraBorderSize,doc="See `GetExtraBorderSize` and `SetExtraBorderSize`") + MaximumSizeX = property(GetMaximumSizeX,SetMaximumSizeX,doc="See `GetMaximumSizeX` and `SetMaximumSizeX`") + MaximumSizeY = property(GetMaximumSizeY,SetMaximumSizeY,doc="See `GetMaximumSizeY` and `SetMaximumSizeY`") + MinimumSizeX = property(GetMinimumSizeX,SetMinimumSizeX,doc="See `GetMinimumSizeX` and `SetMinimumSizeX`") + MinimumSizeY = property(GetMinimumSizeY,SetMinimumSizeY,doc="See `GetMinimumSizeY` and `SetMinimumSizeY`") _windows_.SashWindow_swigregister(SashWindow) SashNameStr = cvar.SashNameStr SashLayoutNameStr = cvar.SashLayoutNameStr @@ -1498,6 +1541,9 @@ class SashEvent(_core.CommandEvent): """GetDragStatus(self) -> int""" return _windows_.SashEvent_GetDragStatus(*args, **kwargs) + DragRect = property(GetDragRect,SetDragRect,doc="See `GetDragRect` and `SetDragRect`") + DragStatus = property(GetDragStatus,SetDragStatus,doc="See `GetDragStatus` and `SetDragStatus`") + Edge = property(GetEdge,SetEdge,doc="See `GetEdge` and `SetEdge`") _windows_.SashEvent_swigregister(SashEvent) wxEVT_SASH_DRAGGED = _windows_.wxEVT_SASH_DRAGGED @@ -1566,6 +1612,11 @@ class QueryLayoutInfoEvent(_core.Event): """GetAlignment(self) -> int""" return _windows_.QueryLayoutInfoEvent_GetAlignment(*args, **kwargs) + Alignment = property(GetAlignment,SetAlignment,doc="See `GetAlignment` and `SetAlignment`") + Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`") + Orientation = property(GetOrientation,SetOrientation,doc="See `GetOrientation` and `SetOrientation`") + RequestedLength = property(GetRequestedLength,SetRequestedLength,doc="See `GetRequestedLength` and `SetRequestedLength`") + Size = property(GetSize,SetSize,doc="See `GetSize` and `SetSize`") _windows_.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEvent) class CalculateLayoutEvent(_core.Event): @@ -1639,6 +1690,8 @@ class SashLayoutWindow(SashWindow): """SetOrientation(self, int orientation)""" return _windows_.SashLayoutWindow_SetOrientation(*args, **kwargs) + Alignment = property(GetAlignment,SetAlignment,doc="See `GetAlignment` and `SetAlignment`") + Orientation = property(GetOrientation,SetOrientation,doc="See `GetOrientation` and `SetOrientation`") _windows_.SashLayoutWindow_swigregister(SashLayoutWindow) def PreSashLayoutWindow(*args, **kwargs): @@ -1818,6 +1871,11 @@ class VScrolledWindow(Panel): """GetLinesHeight(self, size_t lineMin, size_t lineMax) -> int""" return _windows_.VScrolledWindow_GetLinesHeight(*args, **kwargs) + FirstVisibleLine = property(GetFirstVisibleLine,doc="See `GetFirstVisibleLine`") + LastVisibleLine = property(GetLastVisibleLine,doc="See `GetLastVisibleLine`") + LineCount = property(GetLineCount,SetLineCount,doc="See `GetLineCount` and `SetLineCount`") + VisibleBegin = property(GetVisibleBegin,doc="See `GetVisibleBegin`") + VisibleEnd = property(GetVisibleEnd,doc="See `GetVisibleEnd`") _windows_.VScrolledWindow_swigregister(VScrolledWindow) def PreVScrolledWindow(*args, **kwargs): @@ -1940,6 +1998,12 @@ class VListBox(VScrolledWindow): """OnDrawBackground(self, DC dc, Rect rect, size_t n)""" return _windows_.VListBox_OnDrawBackground(*args, **kwargs) + FirstSelected = property(GetFirstSelected,doc="See `GetFirstSelected`") + ItemCount = property(GetItemCount,SetItemCount,doc="See `GetItemCount` and `SetItemCount`") + Margins = property(GetMargins,SetMargins,doc="See `GetMargins` and `SetMargins`") + SelectedCount = property(GetSelectedCount,doc="See `GetSelectedCount`") + Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") + SelectionBackground = property(GetSelectionBackground,SetSelectionBackground,doc="See `GetSelectionBackground` and `SetSelectionBackground`") _windows_.VListBox_swigregister(VListBox) VListBoxNameStr = cvar.VListBoxNameStr @@ -2014,9 +2078,8 @@ class TaskBarIcon(_core.EvtHandler): Deletes the C++ object this Python object is a proxy for. """ - val = _windows_.TaskBarIcon_Destroy(*args, **kwargs) - args[0].thisown = 0 - return val + args[0].this.own(False) + return _windows_.TaskBarIcon_Destroy(*args, **kwargs) def IsOk(*args, **kwargs): """IsOk(self) -> bool""" @@ -2457,6 +2520,7 @@ class MultiChoiceDialog(Dialog): """ return _windows_.MultiChoiceDialog_GetSelections(*args, **kwargs) + Selections = property(GetSelections,SetSelections,doc="See `GetSelections` and `SetSelections`") _windows_.MultiChoiceDialog_swigregister(MultiChoiceDialog) class SingleChoiceDialog(Dialog): @@ -2498,6 +2562,8 @@ class SingleChoiceDialog(Dialog): """ return _windows_.SingleChoiceDialog_SetSelection(*args, **kwargs) + Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") + StringSelection = property(GetStringSelection,doc="See `GetStringSelection`") _windows_.SingleChoiceDialog_swigregister(SingleChoiceDialog) TextEntryDialogStyle = _windows_.TextEntryDialogStyle @@ -2533,6 +2599,7 @@ class TextEntryDialog(Dialog): """ return _windows_.TextEntryDialog_SetValue(*args, **kwargs) + Value = property(GetValue,SetValue,doc="See `GetValue` and `SetValue`") _windows_.TextEntryDialog_swigregister(TextEntryDialog) class PasswordEntryDialog(TextEntryDialog): @@ -2567,6 +2634,7 @@ class NumberEntryDialog(Dialog): """GetValue(self) -> long""" return _windows_.NumberEntryDialog_GetValue(*args, **kwargs) + Value = property(GetValue,doc="See `GetValue`") _windows_.NumberEntryDialog_swigregister(NumberEntryDialog) class FontData(_core.Object): @@ -2705,7 +2773,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) @@ -2767,6 +2834,14 @@ class MessageDialog(Dialog): _windows_.MessageDialog_swigregister(MessageDialog) +PD_AUTO_HIDE = _windows_.PD_AUTO_HIDE +PD_APP_MODAL = _windows_.PD_APP_MODAL +PD_CAN_ABORT = _windows_.PD_CAN_ABORT +PD_ELAPSED_TIME = _windows_.PD_ELAPSED_TIME +PD_ESTIMATED_TIME = _windows_.PD_ESTIMATED_TIME +PD_REMAINING_TIME = _windows_.PD_REMAINING_TIME +PD_SMOOTH = _windows_.PD_SMOOTH +PD_CAN_SKIP = _windows_.PD_CAN_SKIP class ProgressDialog(Frame): """ A dialog that shows a short message and a progress bar. Optionally, it @@ -2798,13 +2873,24 @@ class ProgressDialog(Frame): unless the Cancel button has been pressed, and ``skip`` is ``False`` unless the Skip button (if any) has been pressed. - If the ``continue`` return value is ``false``, the application can either + If the ``continue`` return value is ``False``, the application can either immediately destroy the dialog or ask the user for confirmation, and if the abort is not confirmed the dialog may be resumed with `Resume` function. """ return _windows_.ProgressDialog_Update(*args, **kwargs) + def Pulse(*args, **kwargs): + """ + 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_Pulse(*args, **kwargs) + + UpdatePulse = Pulse def Resume(*args, **kwargs): """ Resume(self) @@ -3097,14 +3183,12 @@ class MDIParentFrame(Frame): """GetClientWindow(self) -> MDIClientWindow""" return _windows_.MDIParentFrame_GetClientWindow(*args, **kwargs) - def GetToolBar(*args, **kwargs): - """GetToolBar(self) -> Window""" - return _windows_.MDIParentFrame_GetToolBar(*args, **kwargs) - def Tile(*args, **kwargs): """Tile(self, int orient=HORIZONTAL)""" return _windows_.MDIParentFrame_Tile(*args, **kwargs) + ActiveChild = property(GetActiveChild,doc="See `GetActiveChild`") + ClientWindow = property(GetClientWindow,doc="See `GetClientWindow`") _windows_.MDIParentFrame_swigregister(MDIParentFrame) def PreMDIParentFrame(*args, **kwargs): @@ -3754,10 +3838,11 @@ class PrintData(_core.Object): """GetOrientation(self) -> int""" return _windows_.PrintData_GetOrientation(*args, **kwargs) - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _windows_.PrintData_Ok(*args, **kwargs) + def IsOk(*args, **kwargs): + """IsOk(self) -> bool""" + return _windows_.PrintData_IsOk(*args, **kwargs) + Ok = IsOk def GetPrinterName(*args, **kwargs): """GetPrinterName(self) -> String""" return _windows_.PrintData_GetPrinterName(*args, **kwargs) @@ -3842,7 +3927,7 @@ class PrintData(_core.Object): """SetFilename(self, String filename)""" return _windows_.PrintData_SetFilename(*args, **kwargs) - def __nonzero__(self): return self.Ok() + def __nonzero__(self): return self.IsOk() def GetPrivData(*args, **kwargs): """GetPrivData(self) -> PyObject""" return _windows_.PrintData_GetPrivData(*args, **kwargs) @@ -3851,6 +3936,19 @@ class PrintData(_core.Object): """SetPrivData(self, PyObject data)""" return _windows_.PrintData_SetPrivData(*args, **kwargs) + Bin = property(GetBin,SetBin,doc="See `GetBin` and `SetBin`") + Collate = property(GetCollate,SetCollate,doc="See `GetCollate` and `SetCollate`") + Colour = property(GetColour,SetColour,doc="See `GetColour` and `SetColour`") + Duplex = property(GetDuplex,SetDuplex,doc="See `GetDuplex` and `SetDuplex`") + Filename = property(GetFilename,SetFilename,doc="See `GetFilename` and `SetFilename`") + NoCopies = property(GetNoCopies,SetNoCopies,doc="See `GetNoCopies` and `SetNoCopies`") + Orientation = property(GetOrientation,SetOrientation,doc="See `GetOrientation` and `SetOrientation`") + PaperId = property(GetPaperId,SetPaperId,doc="See `GetPaperId` and `SetPaperId`") + PaperSize = property(GetPaperSize,SetPaperSize,doc="See `GetPaperSize` and `SetPaperSize`") + PrintMode = property(GetPrintMode,SetPrintMode,doc="See `GetPrintMode` and `SetPrintMode`") + PrinterName = property(GetPrinterName,SetPrinterName,doc="See `GetPrinterName` and `SetPrinterName`") + PrivData = property(GetPrivData,SetPrivData,doc="See `GetPrivData` and `SetPrivData`") + Quality = property(GetQuality,SetQuality,doc="See `GetQuality` and `SetQuality`") _windows_.PrintData_swigregister(PrintData) PrintoutTitleStr = cvar.PrintoutTitleStr PreviewCanvasNameStr = cvar.PreviewCanvasNameStr @@ -3944,10 +4042,11 @@ class PageSetupDialogData(_core.Object): """GetPrintData(self) -> PrintData""" return _windows_.PageSetupDialogData_GetPrintData(*args, **kwargs) - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _windows_.PageSetupDialogData_Ok(*args, **kwargs) + def IsOk(*args, **kwargs): + """IsOk(self) -> bool""" + return _windows_.PageSetupDialogData_IsOk(*args, **kwargs) + Ok = IsOk def SetDefaultInfo(*args, **kwargs): """SetDefaultInfo(self, bool flag)""" return _windows_.PageSetupDialogData_SetDefaultInfo(*args, **kwargs) @@ -3992,7 +4091,16 @@ class PageSetupDialogData(_core.Object): """CalculatePaperSizeFromId(self)""" return _windows_.PageSetupDialogData_CalculatePaperSizeFromId(*args, **kwargs) - def __nonzero__(self): return self.Ok() + def __nonzero__(self): return self.IsOk() + DefaultInfo = property(GetDefaultInfo,SetDefaultInfo,doc="See `GetDefaultInfo` and `SetDefaultInfo`") + DefaultMinMargins = property(GetDefaultMinMargins,SetDefaultMinMargins,doc="See `GetDefaultMinMargins` and `SetDefaultMinMargins`") + MarginBottomRight = property(GetMarginBottomRight,SetMarginBottomRight,doc="See `GetMarginBottomRight` and `SetMarginBottomRight`") + MarginTopLeft = property(GetMarginTopLeft,SetMarginTopLeft,doc="See `GetMarginTopLeft` and `SetMarginTopLeft`") + MinMarginBottomRight = property(GetMinMarginBottomRight,SetMinMarginBottomRight,doc="See `GetMinMarginBottomRight` and `SetMinMarginBottomRight`") + MinMarginTopLeft = property(GetMinMarginTopLeft,SetMinMarginTopLeft,doc="See `GetMinMarginTopLeft` and `SetMinMarginTopLeft`") + PaperId = property(GetPaperId,SetPaperId,doc="See `GetPaperId` and `SetPaperId`") + PaperSize = property(GetPaperSize,SetPaperSize,doc="See `GetPaperSize` and `SetPaperSize`") + PrintData = property(GetPrintData,SetPrintData,doc="See `GetPrintData` and `SetPrintData`") _windows_.PageSetupDialogData_swigregister(PageSetupDialogData) class PageSetupDialog(_core.Object): @@ -4017,6 +4125,8 @@ class PageSetupDialog(_core.Object): return _windows_.PageSetupDialog_ShowModal(*args, **kwargs) def Destroy(self): pass + PageSetupData = property(GetPageSetupData,doc="See `GetPageSetupData`") + PageSetupDialogData = property(GetPageSetupDialogData,doc="See `GetPageSetupDialogData`") _windows_.PageSetupDialog_swigregister(PageSetupDialog) class PrintDialogData(_core.Object): @@ -4136,10 +4246,11 @@ class PrintDialogData(_core.Object): """GetEnableHelp(self) -> bool""" return _windows_.PrintDialogData_GetEnableHelp(*args, **kwargs) - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _windows_.PrintDialogData_Ok(*args, **kwargs) + def IsOk(*args, **kwargs): + """IsOk(self) -> bool""" + return _windows_.PrintDialogData_IsOk(*args, **kwargs) + Ok = IsOk def GetPrintData(*args, **kwargs): """GetPrintData(self) -> PrintData""" return _windows_.PrintDialogData_GetPrintData(*args, **kwargs) @@ -4148,7 +4259,17 @@ class PrintDialogData(_core.Object): """SetPrintData(self, PrintData printData)""" return _windows_.PrintDialogData_SetPrintData(*args, **kwargs) - def __nonzero__(self): return self.Ok() + def __nonzero__(self): return self.IsOk() + AllPages = property(GetAllPages,SetAllPages,doc="See `GetAllPages` and `SetAllPages`") + Collate = property(GetCollate,SetCollate,doc="See `GetCollate` and `SetCollate`") + FromPage = property(GetFromPage,SetFromPage,doc="See `GetFromPage` and `SetFromPage`") + MaxPage = property(GetMaxPage,SetMaxPage,doc="See `GetMaxPage` and `SetMaxPage`") + MinPage = property(GetMinPage,SetMinPage,doc="See `GetMinPage` and `SetMinPage`") + NoCopies = property(GetNoCopies,SetNoCopies,doc="See `GetNoCopies` and `SetNoCopies`") + PrintData = property(GetPrintData,SetPrintData,doc="See `GetPrintData` and `SetPrintData`") + PrintToFile = property(GetPrintToFile,SetPrintToFile,doc="See `GetPrintToFile` and `SetPrintToFile`") + Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") + ToPage = property(GetToPage,SetToPage,doc="See `GetToPage` and `SetToPage`") _windows_.PrintDialogData_swigregister(PrintDialogData) class PrintDialog(_core.Object): @@ -4177,6 +4298,9 @@ class PrintDialog(_core.Object): return _windows_.PrintDialog_GetPrintDC(*args, **kwargs) def Destroy(self): pass + PrintDC = property(GetPrintDC,doc="See `GetPrintDC`") + PrintData = property(GetPrintData,doc="See `GetPrintData`") + PrintDialogData = property(GetPrintDialogData,doc="See `GetPrintDialogData`") _windows_.PrintDialog_swigregister(PrintDialog) PRINTER_NO_ERROR = _windows_.PRINTER_NO_ERROR @@ -4224,6 +4348,8 @@ class Printer(_core.Object): return _windows_.Printer_GetLastError(*args, **kwargs) GetLastError = staticmethod(GetLastError) + Abort = property(GetAbort,doc="See `GetAbort`") + PrintDialogData = property(GetPrintDialogData,doc="See `GetPrintDialogData`") _windows_.Printer_swigregister(Printer) def Printer_GetLastError(*args): @@ -4257,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) @@ -4289,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) @@ -4355,6 +4537,12 @@ class Printout(_core.Object): base_GetPageInfo = wx._deprecated(base_GetPageInfo, "Please use Printout.GetPageInfo instead.") + DC = property(GetDC,SetDC,doc="See `GetDC` and `SetDC`") + PPIPrinter = property(GetPPIPrinter,SetPPIPrinter,doc="See `GetPPIPrinter` and `SetPPIPrinter`") + PPIScreen = property(GetPPIScreen,SetPPIScreen,doc="See `GetPPIScreen` and `SetPPIScreen`") + PageSizeMM = property(GetPageSizeMM,SetPageSizeMM,doc="See `GetPageSizeMM` and `SetPageSizeMM`") + PageSizePixels = property(GetPageSizePixels,SetPageSizePixels,doc="See `GetPageSizePixels` and `SetPageSizePixels`") + Title = property(GetTitle,doc="See `GetTitle`") _windows_.Printout_swigregister(Printout) class PreviewCanvas(ScrolledWindow): @@ -4401,6 +4589,7 @@ class PreviewFrame(Frame): """GetControlBar(self) -> PreviewControlBar""" return _windows_.PreviewFrame_GetControlBar(*args, **kwargs) + ControlBar = property(GetControlBar,doc="See `GetControlBar`") _windows_.PreviewFrame_swigregister(PreviewFrame) PREVIEW_PRINT = _windows_.PREVIEW_PRINT @@ -4464,6 +4653,8 @@ class PreviewControlBar(Panel): """OnGoto(self)""" return _windows_.PreviewControlBar_OnGoto(*args, **kwargs) + PrintPreview = property(GetPrintPreview,doc="See `GetPrintPreview`") + ZoomControl = property(GetZoomControl,SetZoomControl,doc="See `GetZoomControl` and `SetZoomControl`") _windows_.PreviewControlBar_swigregister(PreviewControlBar) class PrintPreview(_core.Object): @@ -4550,10 +4741,11 @@ class PrintPreview(_core.Object): """GetMinPage(self) -> int""" return _windows_.PrintPreview_GetMinPage(*args, **kwargs) - def Ok(*args, **kwargs): - """Ok(self) -> bool""" - return _windows_.PrintPreview_Ok(*args, **kwargs) + def IsOk(*args, **kwargs): + """IsOk(self) -> bool""" + return _windows_.PrintPreview_IsOk(*args, **kwargs) + Ok = IsOk def SetOk(*args, **kwargs): """SetOk(self, bool ok)""" return _windows_.PrintPreview_SetOk(*args, **kwargs) @@ -4566,7 +4758,16 @@ class PrintPreview(_core.Object): """DetermineScaling(self)""" return _windows_.PrintPreview_DetermineScaling(*args, **kwargs) - def __nonzero__(self): return self.Ok() + def __nonzero__(self): return self.IsOk() + Canvas = property(GetCanvas,SetCanvas,doc="See `GetCanvas` and `SetCanvas`") + CurrentPage = property(GetCurrentPage,SetCurrentPage,doc="See `GetCurrentPage` and `SetCurrentPage`") + Frame = property(GetFrame,SetFrame,doc="See `GetFrame` and `SetFrame`") + MaxPage = property(GetMaxPage,doc="See `GetMaxPage`") + MinPage = property(GetMinPage,doc="See `GetMinPage`") + PrintDialogData = property(GetPrintDialogData,doc="See `GetPrintDialogData`") + Printout = property(GetPrintout,SetPrintout,doc="See `GetPrintout` and `SetPrintout`") + PrintoutForPrinting = property(GetPrintoutForPrinting,doc="See `GetPrintoutForPrinting`") + Zoom = property(GetZoom,SetZoom,doc="See `GetZoom` and `SetZoom`") _windows_.PrintPreview_swigregister(PrintPreview) class PyPrintPreview(PrintPreview):