Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
0
 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 )