equal
deleted
inserted
replaced
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) |