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-05-10 01:20:18 (GMT)
committer Agustin Zubiaga <aguz@sugarlabs.org>2012-05-10 01:20:18 (GMT)
commitc7185090f153c089d530a6596c120f1e272cd813 (patch)
treeaf4f6bb098ef1078763a9ce33ba92eb8a73ce5ba
parent2ac0dfa8e2d5961437165be1afd61429dd039f3f (diff)
PEP8 and pylint fixes
-rw-r--r--illustrate.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/illustrate.py b/illustrate.py
index 618f8d2..5dc6a7d 100644
--- a/illustrate.py
+++ b/illustrate.py
@@ -30,11 +30,8 @@ from sugar.activity import activity
from sugar.activity.widgets import StopButton
from sugar.activity.widgets import ActivityToolbarButton
from sugar.activity.widgets import ToolbarButton
-from sugar.graphics import style
-from sugar.graphics import tray
from sugar.graphics.icon import Icon
from sugar.graphics.colorbutton import ColorToolButton
-from sugar.graphics.xocolor import XoColor
from sugar.graphics.toolbarbox import ToolbarBox
from sugar.graphics.toolbutton import ToolButton
from sugar.graphics.objectchooser import ObjectChooser
@@ -74,7 +71,8 @@ class IllustrateActivity(activity.Activity):
activity_button = ActivityToolbarButton(self)
open_from_journal_button = ToolButton("open-from-journal")
open_from_journal_button.connect("clicked", self.load_objectchooser)
- open_from_journal_button.props.tooltip = _("Load text from Sugar Journal")
+ open_from_journal_button.props.tooltip = \
+ _("Load text from Sugar Journal")
open_from_journal_button.show()
activity_button.page.insert(open_from_journal_button, -1)
toolbarbox.toolbar.insert(activity_button, 0)
@@ -157,7 +155,7 @@ class IllustrateActivity(activity.Activity):
return
def _show_example_dialog(self, widget):
- exampledialog = ExampleDialog()
+ ExampleDialog()
def _set_fill_color(self, widget, pspec):
self._icon.props.fill_color = rgb2html(widget.get_color())
@@ -183,7 +181,8 @@ class IllustrateActivity(activity.Activity):
helpbutton = HelpButton()
helpbutton.add_section(_("A section"))
helpbutton.add_paragraph(_("A paragraph with an icon"), "help-icon")
- helpbutton.add_paragraph(_("You can add as many paragraphs you'd like."))
+ helpbutton.add_paragraph(
+ _("You can add as many paragraphs you'd like."))
helpbutton.add_section(
_("Why should your activity be well integrated?"))
helpbutton.add_paragraph(_("There are many Sugar activities;\