Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAgustin Zubiaga <aguz@sugarlabs.org>2012-07-02 00:48:34 (GMT)
committer Agustin Zubiaga <aguz@sugarlabs.org>2012-07-02 00:48:34 (GMT)
commit6c0355d7194c60dcb778bb34a3df5a9bac511f37 (patch)
tree147cf3f35abac2bcb0966255176d9c67cc261491
parent1a133902641f5e81425fe330877f0c2b2c9fc17a (diff)
Some charts.py fixes (sugarpycha)
-rw-r--r--charts.py15
-rw-r--r--sugarpycha/__init__.py (renamed from sugar-pycha/__init__.py)0
-rw-r--r--sugarpycha/bar.py (renamed from sugar-pycha/bar.py)0
-rw-r--r--sugarpycha/chart.py (renamed from sugar-pycha/chart.py)0
-rw-r--r--sugarpycha/color.py (renamed from sugar-pycha/color.py)0
-rw-r--r--sugarpycha/line.py (renamed from sugar-pycha/line.py)0
-rw-r--r--sugarpycha/pie.py (renamed from sugar-pycha/pie.py)0
-rw-r--r--sugarpycha/polygonal.py (renamed from sugar-pycha/polygonal.py)0
-rw-r--r--sugarpycha/radial.py (renamed from sugar-pycha/radial.py)0
-rw-r--r--sugarpycha/scatter.py (renamed from sugar-pycha/scatter.py)0
-rw-r--r--sugarpycha/stackedbar.py (renamed from sugar-pycha/stackedbar.py)0
-rw-r--r--sugarpycha/utils.py (renamed from sugar-pycha/utils.py)0
12 files changed, 8 insertions, 7 deletions
diff --git a/charts.py b/charts.py
index 8cf81fb..ae9258c 100644
--- a/charts.py
+++ b/charts.py
@@ -20,9 +20,9 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-import pycha.bar
-import pycha.line
-import pycha.pie
+import sugarpycha.bar
+import sugarpycha.line
+import sugarpycha.pie
import cairo
import gobject
@@ -107,17 +107,18 @@ class Chart(gobject.GObject):
self.height)
if self.type == "vbar":
- chart = pycha.bar.VerticalBarChart(self.surface, self.options)
+ chart = sugarpycha.bar.VerticalBarChart(self.surface, self.options)
elif self.type == "hbar":
- chart = pycha.bar.HorizontalBarChart(self.surface, self.options)
+ chart = sugarpycha.bar.HorizontalBarChart(self.surface,
+ self.options)
elif self.type == "line":
- chart = pycha.line.LineChart(self.surface, self.options)
+ chart = sugarpycha.line.LineChart(self.surface, self.options)
elif self.type == "pie":
self.options["legend"] = {"hide": "False"}
- chart = pycha.pie.PieChart(self.surface, self.options)
+ chart = sugarpycha.pie.PieChart(self.surface, self.options)
self.dataSet = [(data[0],
[[0, data[1]]]) for data in sg.chart_data]
diff --git a/sugar-pycha/__init__.py b/sugarpycha/__init__.py
index 35bba09..35bba09 100644
--- a/sugar-pycha/__init__.py
+++ b/sugarpycha/__init__.py
diff --git a/sugar-pycha/bar.py b/sugarpycha/bar.py
index ab0eeec..ab0eeec 100644
--- a/sugar-pycha/bar.py
+++ b/sugarpycha/bar.py
diff --git a/sugar-pycha/chart.py b/sugarpycha/chart.py
index c6a1c34..c6a1c34 100644
--- a/sugar-pycha/chart.py
+++ b/sugarpycha/chart.py
diff --git a/sugar-pycha/color.py b/sugarpycha/color.py
index 82b436f..82b436f 100644
--- a/sugar-pycha/color.py
+++ b/sugarpycha/color.py
diff --git a/sugar-pycha/line.py b/sugarpycha/line.py
index 9b12152..9b12152 100644
--- a/sugar-pycha/line.py
+++ b/sugarpycha/line.py
diff --git a/sugar-pycha/pie.py b/sugarpycha/pie.py
index d7b3df2..d7b3df2 100644
--- a/sugar-pycha/pie.py
+++ b/sugarpycha/pie.py
diff --git a/sugar-pycha/polygonal.py b/sugarpycha/polygonal.py
index b470c87..b470c87 100644
--- a/sugar-pycha/polygonal.py
+++ b/sugarpycha/polygonal.py
diff --git a/sugar-pycha/radial.py b/sugarpycha/radial.py
index 9055e26..9055e26 100644
--- a/sugar-pycha/radial.py
+++ b/sugarpycha/radial.py
diff --git a/sugar-pycha/scatter.py b/sugarpycha/scatter.py
index 27656de..27656de 100644
--- a/sugar-pycha/scatter.py
+++ b/sugarpycha/scatter.py
diff --git a/sugar-pycha/stackedbar.py b/sugarpycha/stackedbar.py
index a728e50..a728e50 100644
--- a/sugar-pycha/stackedbar.py
+++ b/sugarpycha/stackedbar.py
diff --git a/sugar-pycha/utils.py b/sugarpycha/utils.py
index 9e1b692..9e1b692 100644
--- a/sugar-pycha/utils.py
+++ b/sugarpycha/utils.py