From 08ce2f1d40dd15a25b7eb383e53c27df1b3b20ed Mon Sep 17 00:00:00 2001 From: Rafael Ortiz Date: Wed, 01 Jun 2011 00:27:57 +0000 Subject: pep8 fixes --- 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) -- cgit v0.9.1