summaryrefslogtreecommitdiff
path: root/bin/reportlab/tools/pythonpoint/demos/slidebox.py
diff options
context:
space:
mode:
authorStephane Wirtel <stephane@tinyerp.com>2008-11-14 16:06:02 +0100
committerStephane Wirtel <stephane@tinyerp.com>2008-11-14 16:06:02 +0100
commit3dae09ac14990a82aa9ef8afc2a0429b877ab123 (patch)
treefd4e64f6f37c8f23f54119197fad7ea69de418e2 /bin/reportlab/tools/pythonpoint/demos/slidebox.py
parent882cd7027feca65405cfdf1337064aa676830d4b (diff)
Remove pydot, pychart and reportlab.
bzr revid: stephane@tinyerp.com-20081114150602-cpp1eeo3d0837fev
Diffstat (limited to 'bin/reportlab/tools/pythonpoint/demos/slidebox.py')
-rw-r--r--bin/reportlab/tools/pythonpoint/demos/slidebox.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/bin/reportlab/tools/pythonpoint/demos/slidebox.py b/bin/reportlab/tools/pythonpoint/demos/slidebox.py
deleted file mode 100644
index f0d9cf308e9..00000000000
--- a/bin/reportlab/tools/pythonpoint/demos/slidebox.py
+++ /dev/null
@@ -1,29 +0,0 @@
-#Autogenerated by ReportLab guiedit do not edit
-from reportlab.graphics.shapes import _DrawingEditorMixin
-from reportlab.graphics.charts.slidebox import SlideBox
-from rlextra.graphics.guiedit.datacharts import ODBCDataSource, CSVDataSource, DataAssociation, DataAwareDrawing
-
-class SlideBoxDrawing(_DrawingEditorMixin,DataAwareDrawing):
- def __init__(self,width=400,height=200,*args,**kw):
- apply(DataAwareDrawing.__init__,(self,width,height)+args,kw)
- self._add(self,SlideBox(),name='SlideBox',validate=None,desc='The main chart')
- self.height = 40
- self.width = 168
- #self.dataSource = ODBCDataSource()
- self.dataSource = CSVDataSource()
- self.dataSource.filename = 'slidebox.csv'
- self.dataSource.integerColumns = ['chartId','value','numberOfBoxes']
- self.dataSource.sql = 'SELECT chartId,numberOfBoxes,label,value FROM generic_slidebox'
- self.dataSource.associations.size = 4
- self.dataSource.associations.element00 = DataAssociation(column=0, target='chartId', assocType='scalar')
- self.dataSource.associations.element01 = DataAssociation(column=1, target='SlideBox.numberOfBoxes', assocType='scalar')
- self.dataSource.associations.element02 = DataAssociation(column=2, target='SlideBox.sourceLabelText', assocType='scalar')
- self.dataSource.associations.element03 = DataAssociation(column=3, target='SlideBox.trianglePosition', assocType='scalar')
- self.verbose = 1
- self.formats = ['eps', 'pdf']
- self.outDir = './output/'
- self.fileNamePattern = 'slidebox%03d'
-
-
-if __name__=="__main__": #NORUNTESTS
- SlideBoxDrawing().go()