[gnome-music] Make pep8 happy
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Make pep8 happy
- Date: Mon, 12 May 2014 08:45:32 +0000 (UTC)
commit 8381cbe7a087e7c5e66c1b9437e4ea38f8720fad
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Mon Oct 7 17:22:50 2013 +0200
Make pep8 happy
gnomemusic/searchbar.py | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/gnomemusic/searchbar.py b/gnomemusic/searchbar.py
index 23be16c..edba0be 100644
--- a/gnomemusic/searchbar.py
+++ b/gnomemusic/searchbar.py
@@ -4,6 +4,7 @@ import logging
logger = logging.getLogger(__name__)
+
class BaseModelColumns():
ID = 0
NAME = 1
@@ -14,9 +15,9 @@ class FilterView():
def __init__(self, manager):
self.manager = manager
self.model = Gtk.ListStore.new([
- GObject.TYPE_STRING, #ID
- GObject.TYPE_STRING, #NAME
- GObject.TYPE_STRING, #TEXT
+ GObject.TYPE_STRING, # ID
+ GObject.TYPE_STRING, # NAME
+ GObject.TYPE_STRING, # TEXT
])
self.view = Gtk.TreeView()
self.view.set_activate_on_single_click(True)
@@ -30,7 +31,7 @@ class FilterView():
self._rendererHeading = Gtk.CellRendererText(weight=Pango.Weight.BOLD, weight_set=True)
col.pack_start(self._rendererHeading, False)
- col.add_attribute(self._rendererHeading, 'text', BaseModelColumns.HEADING_TEXT);
+ col.add_attribute(self._rendererHeading, 'text', BaseModelColumns.HEADING_TEXT)
col.set_cell_data_func(self._rendererHeading, self._visibilityForHeading, True)
self._rendererRadio = Gtk.CellRendererToggle(radio=True, mode=Gtk.CellRendererMode.INERT)
@@ -39,8 +40,8 @@ class FilterView():
self._rendererText = Gtk.CellRendererText()
col.pack_start(self._rendererText, True)
- col.add_attribute(self._rendererText, 'text', BaseModelColumns.NAME);
- col.set_cell_data_func(self._rendererText, self._visibilityForHeading, True);
+ col.add_attribute(self._rendererText, 'text', BaseModelColumns.NAME)
+ col.set_cell_data_func(self._rendererText, self._visibilityForHeading, True)
self.view.show()
@@ -53,7 +54,6 @@ class FilterView():
cell.set_active(self.manager.get_active() == id)
def _visibilityForHeading(self, col, cell, model, _iter, additional_arguments):
- heading = model.get_value(_iter, BaseModelColumns.HEADING_TEXT)
additionalFunc = None
visible = additional_arguments
if isinstance(additional_arguments, list):
@@ -122,7 +122,6 @@ class BaseManager:
self.id = id
-
class Searchbar(Gd.Revealer):
@log
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]