当前位置: 首页>>代码示例>>Python>>正文


Python wx.Printout方法代码示例

本文整理汇总了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 
开发者ID:JackonYang,项目名称:bookhub,代码行数:18,代码来源:ListCtrlPrinter.py

示例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 
开发者ID:ktraunmueller,项目名称:Computable,代码行数:8,代码来源:backend_wx.py

示例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 
开发者ID:PacktPublishing,项目名称:Mastering-Elasticsearch-7.0,代码行数:8,代码来源:backend_wx.py

示例4: ClearSearchResults

# 需要导入模块: import wx [as 别名]
# 或者: from wx import Printout [as 别名]
def ClearSearchResults(self):
        self.ClearHighlights(SEARCH_RESULT_HIGHLIGHT)

# -------------------------------------------------------------------------------
#                               Viewer Printout
# ------------------------------------------------------------------------------- 
开发者ID:thiagoralves,项目名称:OpenPLC_Editor,代码行数:8,代码来源:IDEFrame.py

示例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])) 
开发者ID:thiagoralves,项目名称:OpenPLC_Editor,代码行数:16,代码来源:IDEFrame.py

示例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 
开发者ID:JackonYang,项目名称:bookhub,代码行数:17,代码来源:OLVPrinter.py


注:本文中的wx.Printout方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。