Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgnacio Rodríguez <ignacio@sugarlabs.org>2013-02-15 15:21:07 (GMT)
committer Ignacio Rodríguez <ignacio@sugarlabs.org>2013-02-15 15:21:07 (GMT)
commit3f03b2f92ce25e16f5b167042269fb89856bf2c1 (patch)
tree427eb610cdb4aa53f01737132c383f3ebbc08a93
parent4b6226e64eccfa2841f259fa44c6080773e62b7c (diff)
Pep8 Fixes
-rw-r--r--canvas.py32
1 files changed, 17 insertions, 15 deletions
diff --git a/canvas.py b/canvas.py
index f4a8b3d..6f14d48 100644
--- a/canvas.py
+++ b/canvas.py
@@ -46,23 +46,25 @@ def _gen_activity(_id, parent):
_activity_props = parent._list[_id]
text1 = "<b>Description: </b>%s" % _activity_props[3]
text2 = "<b>Version: </b>%s" % _activity_props[4]
- text3 = "<b>Works with: </b>%s" % (_activity_props[5] + ' - ' + _activity_props[6])
+ text3 = "<b>Works with: </b>%s" % (_activity_props[5] + ' - ' +\
+ _activity_props[6])
text4 = "<b>Updated: </b>%s" % _activity_props[7]
text5 = "<b>Downloads: </b>%s" % _activity_props[8]
text6 = "<b>Homepage: </b>%s" % _activity_props[9]
- text = text1 + "\n" + text2 + "\n" + text3 + "\n" + text4 + "\n" + text5 + "\n" + text6
+ text = text1 + "\n" + text2 + "\n" + text3 + "\n" + text4 + "\n" +\
+ text5 + "\n" + text6
pixbuf_icon = _activity_props[0]
- name = "<b>%s</b>" % _activity_props[2]
+ name = "<b>%s</b>" % _activity_props[2]
- status = _activity_props[1]
+ status = _activity_props[1]
if status == "E":
- status = _("Experimental")
- else:
- status = _("Public")
- info = [pixbuf_icon, name, text, status]
- return info
+ status = _("Experimental")
+ else:
+ status = _("Public")
+ info = [pixbuf_icon, name, text, status]
+ return info
class Canvas(gtk.Notebook):
@@ -112,22 +114,22 @@ class List(gtk.TreeView):
self._model = gtk.ListStore(str, str, str, str)
self.set_model(self._model)
+ self.set_rules_hint(True)
self.icon = CellRendererIcon(self)
- self.icon._buffer.width = style.zoom(100)
- self.icon._buffer.height = style.zoom(100)
- self.icon._xo_color = color
+ self.icon._buffer.width = style.zoom(100)
+ self.icon._buffer.height = style.zoom(100)
+ self.icon._xo_color = color
self._name = gtk.CellRendererText()
self.description = gtk.CellRendererText()
self.status = gtk.CellRendererText()
self.description.props.wrap_mode = True
-
+
self.icon_column = gtk.TreeViewColumn(_("Icon"))
self._name_column = gtk.TreeViewColumn(_("Activity"))
self.description_column = gtk.TreeViewColumn(_("Description"))
self.status_column = gtk.TreeViewColumn(_("Status"))
-
self.icon_column.pack_start(self.icon, False)
self._name_column.pack_start(self._name, True)
self.description_column.pack_start(self.description, True)
@@ -144,7 +146,7 @@ class List(gtk.TreeView):
self.append_column(self._name_column)
self.append_column(self.description_column)
self.append_column(self.status_column)
-
+
self.download_list = DownloadList()
self._parent = parent