Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Ortiz <rafael@activitycentral.com>2011-06-01 00:27:57 (GMT)
committer Rafael Ortiz <rafael@activitycentral.com>2011-06-01 00:27:57 (GMT)
commit08ce2f1d40dd15a25b7eb383e53c27df1b3b20ed (patch)
treea5302b038199cc2e8467b9fbb1d5dee9c611f3a8
parent12c914e83842e94714021fbfca569ae9848af682 (diff)
pep8 fixesv10
-rw-r--r--ircactivity.py26
1 files changed, 14 insertions, 12 deletions
diff --git a/ircactivity.py b/ircactivity.py
index e1d7d05..8c63f41 100644
--- a/ircactivity.py
+++ b/ircactivity.py
@@ -55,11 +55,12 @@ class IRCActivity(activity.Activity):
# TOOLBAR
OLD_TOOLBAR = False
-
+
try:
from sugar.graphics.toolbarbox import ToolbarBox, ToolbarButton
- from sugar.activity.widgets import ActivityToolbarButton, StopButton, \
- ShareButton, KeepButton, TitleEntry, ActivityButton
+ from sugar.activity.widgets import
+ ActivityToolbarButton, StopButton, \
+ ShareButton, KeepButton, TitleEntry, ActivityButton
except ImportError:
OLD_TOOLBAR = True
@@ -79,36 +80,36 @@ class IRCActivity(activity.Activity):
self.activity_button = ActivityButton(self)
toolbar_box.toolbar.insert(self.activity_button, 0)
self.activity_button.show()
-
+
title_entry = TitleEntry(self)
toolbar_box.toolbar.insert(title_entry, -1)
title_entry.show()
-
+
# share_button = ShareButton(self) not sharable activity.
# toolbar_box.toolbar.insert(share_button, -1)
# share_button.show()
-
+
keep_button = KeepButton(self)
toolbar_box.toolbar.insert(keep_button, -1)
keep_button.show()
-
+
separator = gtk.SeparatorToolItem()
separator.props.draw = False
separator.set_expand(True)
toolbar_box.toolbar.insert(separator, -1)
separator.show()
-
+
stop_button = StopButton(self)
toolbar_box.toolbar.insert(stop_button, -1)
stop_button.show()
-
+
self.set_toolbar_box(toolbar_box)
toolbar_box.show()
def __visibility_notify_event_cb(self, window, event):
self.is_visible = event.state != gtk.gdk.VISIBILITY_FULLY_OBSCURED
- #Configuracion por defecto
-
+ #Configuracion por defecto
+
def default_config(self):
self.client.join_server('us.freenode.net')
self.client.add_channel('#sugar')
@@ -164,7 +165,8 @@ class IRCActivity(activity.Activity):
if win.is_channel():
data['channels'].append(win.id)
buf = win.output.get_buffer()
- data['scrollback'][win.id] = buf.get_text(buf.get_start_iter(), buf.get_end_iter(), True)
+ data['scrollback'][win.id] =
+ buf.get_text(buf.get_start_iter(), buf.get_end_iter(), True)
fd = open(file_path, 'w')
text = simplejson.dumps(data)