diff --git a/albow/controls.py b/albow/controls.py index dc64c6d..2c58f37 100644 --- a/albow/controls.py +++ b/albow/controls.py @@ -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""" #--------------------------------------------------------------------------- diff --git a/albow/fields.py b/albow/fields.py index 4cbea28..dd5d33d 100644 --- a/albow/fields.py +++ b/albow/fields.py @@ -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 diff --git a/albow/file_dialogs.py b/albow/file_dialogs.py index 67ba00e..468f002 100644 --- a/albow/file_dialogs.py +++ b/albow/file_dialogs.py @@ -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 diff --git a/albow/root.py b/albow/root.py index b8f99c4..d080804 100644 --- a/albow/root.py +++ b/albow/root.py @@ -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)