Python wx.Printout() Examples
The following are 14
code examples of wx.Printout().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
wx
, or try the search function
.
Example #1
Source File: ListCtrlPrinter.py From bookhub with MIT License | 6 votes |
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
Example #2
Source File: backend_wx.py From Computable with MIT License | 5 votes |
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
Example #3
Source File: backend_wx.py From Mastering-Elasticsearch-7.0 with MIT License | 5 votes |
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
Example #4
Source File: backend_wx.py From matplotlib-4-abaqus with MIT License | 5 votes |
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
Example #5
Source File: backend_wx.py From neural-network-animation with MIT License | 5 votes |
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
Example #6
Source File: backend_wx.py From GraphicDesignPatternByPython with MIT License | 5 votes |
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
Example #7
Source File: backend_wx.py From python3_ios with BSD 3-Clause "New" or "Revised" License | 5 votes |
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
Example #8
Source File: backend_wx.py From ImageFusion with MIT License | 5 votes |
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
Example #9
Source File: backend_wx.py From coffeegrindsize with MIT License | 5 votes |
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
Example #10
Source File: backend_wx.py From CogAlg with MIT License | 5 votes |
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
Example #11
Source File: IDEFrame.py From OpenPLC_Editor with GNU General Public License v3.0 | 5 votes |
def ClearSearchResults(self): self.ClearHighlights(SEARCH_RESULT_HIGHLIGHT) # ------------------------------------------------------------------------------- # Viewer Printout # -------------------------------------------------------------------------------
Example #12
Source File: IDEFrame.py From OpenPLC_Editor with GNU General Public License v3.0 | 5 votes |
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]))
Example #13
Source File: OLVPrinter.py From bookhub with MIT License | 5 votes |
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
Example #14
Source File: backend_wx.py From twitter-stock-recommendation with MIT License | 5 votes |
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