IDEFrame.py
changeset 1762 fcc406143e5b
parent 1749 d73b64672238
child 1763 bcc07ff2362c
equal deleted inserted replaced
1761:8c98bad90b8d 1762:fcc406143e5b
  2555 #-------------------------------------------------------------------------------
  2555 #-------------------------------------------------------------------------------
  2556 #                               Viewer Printout
  2556 #                               Viewer Printout
  2557 #-------------------------------------------------------------------------------
  2557 #-------------------------------------------------------------------------------
  2558 
  2558 
  2559 
  2559 
  2560 UPPER_DIV = lambda x, y: (x / y) + {True: 0, False: 1}[(x % y) == 0]
  2560 def UPPER_DIV(x, y):
       
  2561     return (x / y) + {True: 0, False: 1}[(x % y) == 0]
  2561 
  2562 
  2562 
  2563 
  2563 class GraphicPrintout(wx.Printout):
  2564 class GraphicPrintout(wx.Printout):
  2564     def __init__(self, viewer, page_size, margins, preview=False):
  2565     def __init__(self, viewer, page_size, margins, preview=False):
  2565         wx.Printout.__init__(self)
  2566         wx.Printout.__init__(self)