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))
Thanks
Madhu
Robin
2
Alagu Madhu wrote:
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))
The API only allows mm, but you can convert inches to mm by multiplying by 25.4.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!