コード例 #1
0
ファイル: test_action.py プロジェクト: odmsolutions/Camelot
 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
コード例 #2
0
ファイル: test_action.py プロジェクト: jeroendierckx/Camelot
 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
コード例 #3
0
ファイル: charteditor.py プロジェクト: vortexR2/camelot
 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)
コード例 #4
0
ファイル: charteditor.py プロジェクト: Governa/Camelot
 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 )