wxPrintData + Custom Papersize

Madhu Alagu almadhu at gmail.com
Sat Sep 29 21:24:44 PDT 2007


Hi All

I would like to set paper size in inch....How to change the unit(mm to
inch) ?

self.PrintData = wx.PrintData()
self.PaperWidth=10.5 #inch
self.PaperHeight=10.5 #inch
self.PrintData.SetPaperSize(wx.Size(self.PaperWidth,self.PaperHeight))

or

float type

self.PrintData = wx.PrintData()
self.PaperWidth=266.70
self.PaperHeight=266.70
self.PrintData.SetPaperSize(wx.Size(self.PaperWidth,self.PaperHeight))





Thanks

Madhu







More information about the wx-users mailing list