本文整理汇总了Python中wx.Printout方法的典型用法代码示例。如果您正苦于以下问题:Python wx.Printout方法的具体用法?Python wx.Printout怎么用?Python wx.Printout使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wx
的用法示例。
在下文中一共展示了wx.Printout方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: import wx [as 别名]
# 或者: from wx import Printout [as 别名]
def __init__(self, olvPrinter, margins=None):
"""
"""
wx.Printout.__init__(self)
self.olvPrinter = olvPrinter
self.margins = margins or (wx.Point(15, 15), wx.Point(15, 15))
self.totalPages = -1
self.printData = wx.PrintData()
self.printData.SetPrinterName("") # Use default printer
self.printData.SetPaperId(wx.PAPER_A4)
self.printData.SetPrintMode(wx.PRINT_MODE_PRINTER)
#----------------------------------------------------------------------------
# Accessing
示例2: __init__
# 需要导入模块: import wx [as 别名]
# 或者: from wx import Printout [as 别名]
def __init__(self, canvas, width=5.5,margin=0.5, title='matplotlib'):
wx.Printout.__init__(self,title=title)
self.canvas = canvas
# width, in inches of output figure (approximate)
self.width = width
self.margin = margin
示例3: __init__
# 需要导入模块: import wx [as 别名]
# 或者: from wx import Printout [as 别名]
def __init__(self, canvas, width=5.5, margin=0.5, title='matplotlib'):
wx.Printout.__init__(self, title=title)
self.canvas = canvas
# width, in inches of output figure (approximate)
self.width = width
self.margin = margin
示例4: ClearSearchResults
# 需要导入模块: import wx [as 别名]
# 或者: from wx import Printout [as 别名]
def ClearSearchResults(self):
self.ClearHighlights(SEARCH_RESULT_HIGHLIGHT)
# -------------------------------------------------------------------------------
# Viewer Printout
# -------------------------------------------------------------------------------
示例5: __init__
# 需要导入模块: import wx [as 别名]
# 或者: from wx import Printout [as 别名]
def __init__(self, viewer, page_size, margins, preview=False):
wx.Printout.__init__(self)
self.Viewer = viewer
self.PageSize = page_size
if self.PageSize[0] == 0 or self.PageSize[1] == 0:
self.PageSize = (1050, 1485)
self.Preview = preview
self.Margins = margins
self.FontSize = 5
self.TextMargin = 3
maxx, maxy = viewer.GetMaxSize()
self.PageGrid = (UPPER_DIV(maxx, self.PageSize[0]),
UPPER_DIV(maxy, self.PageSize[1]))
示例6: __init__
# 需要导入模块: import wx [as 别名]
# 或者: from wx import Printout [as 别名]
def __init__(self, objectListView=None, title="ObjectListView Printing"):
"""
"""
wx.Printout.__init__(self, title)
self.engine = ReportEngine()
self.printData = wx.PrintData()
self.printData.SetPaperId(wx.PAPER_A4)
self.printData.SetPrintMode(wx.PRINT_MODE_PRINTER)
if objectListView is not None:
self.engine.AddListCtrl(objectListView, title)
#----------------------------------------------------------------------------
# Accessing