pep8 compliance: W291 trailing whitespace

This commit is contained in:
David Sowder 2012-02-21 17:54:50 -06:00
parent e56bed1092
commit 3f758184ab
4 changed files with 6 additions and 6 deletions

View File

@ -143,7 +143,7 @@ class Label(Widget):
bg = self.hover_bg_color or bg
if self.highlighted:
fg = self.highlight_color or fg
bg = self.highlight_bg_color or bg
bg = self.highlight_bg_color or bg
self.draw_with(surface, fg, bg)
@ -182,7 +182,7 @@ class Label(Widget):
class GLLabel(Label):
pass
class SmallLabel(Label):
class SmallLabel(Label):
"""Small text size. See theme.py"""
#---------------------------------------------------------------------------

View File

@ -281,7 +281,7 @@ class Field(Control, TextEditor):
# def get_value(self):
# self.commit()
# return Control.get_value(self)
#
#
# def set_value(self, x):
# Control.set_value(self, x)
# self.editing = False
@ -387,7 +387,7 @@ class TimeField(Field):
delta = -1
elif evt.button == 4:
delta = 1
else:
else:
return Field.mouse_down(self, evt)
(h,m) = self.value

View File

@ -8,7 +8,7 @@ from pygame import draw, Rect
from pygame.locals import *
from albow.widget import Widget
from albow.dialogs import Dialog, ask, alert
from albow.controls import Label, Button
from albow.controls import Label, Button
from albow.fields import TextField
from albow.layout import Row, Column
from albow.palette_view import PaletteView

View File

@ -101,7 +101,7 @@ class RootWidget(Widget):
captured_widget = None
def capture_mouse(self, widget):
#put the mouse in "virtual mode" and pass mouse moved events to the
#put the mouse in "virtual mode" and pass mouse moved events to the
#specified widget
if widget:
pygame.mouse.set_visible(False)