Moving to PEP-8

This commit is contained in:
Eduardo Silva 2007-01-04 16:17:10 -03:00
parent 3dd0def247
commit 15f586e61a
7 changed files with 470 additions and 458 deletions

View File

@ -60,6 +60,12 @@ services/presence/Makefile
services/nm/Makefile services/nm/Makefile
services/clipboard/Makefile services/clipboard/Makefile
services/datastore/Makefile services/datastore/Makefile
shell/Makefile
shell/data/Makefile
shell/view/Makefile
shell/view/home/Makefile
shell/view/frame/Makefile
shell/model/Makefile
shell/console/lib/Makefile shell/console/lib/Makefile
shell/console/lib/procmem/Makefile shell/console/lib/procmem/Makefile
shell/console/Makefile shell/console/Makefile

View File

@ -30,7 +30,6 @@ from sugar import env
class MultiLogView(gtk.VBox): class MultiLogView(gtk.VBox):
def __init__(self, path): def __init__(self, path):
self._active_log = None self._active_log = None
self._iters = [] self._iters = []
@ -155,6 +154,11 @@ class LogView(gtk.ScrolledWindow):
self.textview = gtk.TextView() self.textview = gtk.TextView()
self.textview.set_wrap_mode(gtk.WRAP_WORD) self.textview.set_wrap_mode(gtk.WRAP_WORD)
# Set background color
bgcolor = gtk.gdk.color_parse("#FFFFFF")
self.textview.modify_base(gtk.STATE_NORMAL, bgcolor)
self.textview.set_editable(False) self.textview.set_editable(False)
self.add(self.textview) self.add(self.textview)

View File

@ -16,7 +16,8 @@
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
import sys, os import sys
import os
import string import string
import wnck import wnck
import plugin import plugin

View File

@ -84,6 +84,7 @@ class Terminal(gtk.HBox):
else: else:
blink = False blink = False
conf.set('terminal', 'cursor_blink', blink) conf.set('terminal', 'cursor_blink', blink)
self._vte.set_cursor_blinks(blink) self._vte.set_cursor_blinks(blink)
if conf.has_option('terminal', 'bell'): if conf.has_option('terminal', 'bell'):