def model_run( self, model_context ): from camelot.container.chartcontainer import BarContainer from camelot.view.action_steps import PrintChart chart = BarContainer( [1, 2, 3, 4], [5, 1, 7, 2] ) print_chart_step = PrintChart( chart ) print_chart_step.page_orientation = QtGui.QPrinter.Landscape yield print_chart_step
def print_preview(self): """Popup a print preview dialog for the Chart""" from camelot.view.action_steps import PrintChart print_chart = PrintChart(self._value) print_chart.gui_run(self.gui_context)
def print_preview(self): """Popup a print preview dialog for the Chart""" from camelot.view.action_steps import PrintChart print_chart = PrintChart( self._value ) print_chart.gui_run( self.gui_context )