X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6056257ab676ea10a51ef96e19b1f1092f95b40..9f4de6b2cf06f53a98b28f53640f3b9ec8cf4182:/wxPython/src/mac/printfw.py diff --git a/wxPython/src/mac/printfw.py b/wxPython/src/mac/printfw.py index f808d8ce14..70fb3b1887 100644 --- a/wxPython/src/mac/printfw.py +++ b/wxPython/src/mac/printfw.py @@ -7,6 +7,8 @@ from windows import * from gdi import * +from fonts import * + from clip_dnd import * from cmndlgs import * @@ -157,6 +159,32 @@ class wxPrintData(wxPrintDataPtr): +class wxPostScriptDCPtr(wxDCPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def GetPrintData(self, *_args, **_kwargs): + val = apply(printfwc.wxPostScriptDC_GetPrintData,(self,) + _args, _kwargs) + if val: val = wxPrintDataPtr(val) + return val + def SetPrintData(self, *_args, **_kwargs): + val = apply(printfwc.wxPostScriptDC_SetPrintData,(self,) + _args, _kwargs) + return val + def __repr__(self): + return "" % (self.this,) +class wxPostScriptDC(wxPostScriptDCPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(printfwc.new_wxPostScriptDC,_args,_kwargs) + self.thisown = 1 + + + +def wxPostScriptDC2(*_args,**_kwargs): + val = wxPostScriptDCPtr(apply(printfwc.new_wxPostScriptDC2,_args,_kwargs)) + val.thisown = 1 + return val + + class wxPageSetupDialogDataPtr(wxObjectPtr): def __init__(self,this): self.this = this @@ -576,6 +604,10 @@ class wxPreviewFrame(wxPreviewFramePtr): #-------------- FUNCTION WRAPPERS ------------------ +wxPostScriptDC_SetResolution = printfwc.wxPostScriptDC_SetResolution + +wxPostScriptDC_GetResolution = printfwc.wxPostScriptDC_GetResolution + #-------------- VARIABLE WRAPPERS ------------------