320 Preferences.getPrinter("TopMargin") * int( |
320 Preferences.getPrinter("TopMargin") * int( |
321 printer.resolution() / 2.54) - marginY |
321 printer.resolution() / 2.54) - marginY |
322 |
322 |
323 width = printer.width() - marginX \ |
323 width = printer.width() - marginX \ |
324 - Preferences.getPrinter("RightMargin") * int( |
324 - Preferences.getPrinter("RightMargin") * int( |
325 printer.resolution() / 2.54) |
325 printer.resolution() / 2.54) |
326 height = printer.height() - fontHeight - 4 - marginY \ |
326 height = printer.height() - fontHeight - 4 - marginY \ |
327 - Preferences.getPrinter("BottomMargin") * int( |
327 - Preferences.getPrinter("BottomMargin") * int( |
328 printer.resolution() / 2.54) |
328 printer.resolution() / 2.54) |
329 |
329 |
330 border = self.border == 0 and 5 or self.border |
330 border = self.border == 0 and 5 or self.border |
331 rect = self._getDiagramRect(border) |
331 rect = self._getDiagramRect(border) |
332 diagram = self.__getDiagram(rect) |
332 diagram = self.__getDiagram(rect) |
333 |
333 |