Pep8 and pyflakes fixes
This commit is contained in:
parent
2186c53aeb
commit
8224fefc50
@ -22,7 +22,6 @@ STABLE.
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from gi.repository import GObject
|
from gi.repository import GObject
|
||||||
from gi.repository import Pango
|
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
|
|
||||||
from sugar3.graphics.icon import Icon
|
from sugar3.graphics.icon import Icon
|
||||||
|
@ -28,7 +28,6 @@ from gi.repository import GLib
|
|||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
from gi.repository import Gdk
|
from gi.repository import Gdk
|
||||||
from gi.repository import GObject
|
from gi.repository import GObject
|
||||||
from gi.repository import Pango
|
|
||||||
|
|
||||||
from sugar3.graphics import animator
|
from sugar3.graphics import animator
|
||||||
from sugar3.graphics import style
|
from sugar3.graphics import style
|
||||||
@ -285,7 +284,8 @@ class Palette(PaletteWindow):
|
|||||||
self._secondary_label.set_max_width_chars(
|
self._secondary_label.set_max_width_chars(
|
||||||
style.MENU_WIDTH_CHARS)
|
style.MENU_WIDTH_CHARS)
|
||||||
self._secondary_label.set_line_wrap(True)
|
self._secondary_label.set_line_wrap(True)
|
||||||
self._secondary_label.set_ellipsize(style.ELLIPSIZE_MODE_DEFAULT)
|
self._secondary_label.set_ellipsize(
|
||||||
|
style.ELLIPSIZE_MODE_DEFAULT)
|
||||||
self._secondary_label.set_lines(NO_OF_LINES)
|
self._secondary_label.set_lines(NO_OF_LINES)
|
||||||
self._secondary_label.set_justify(Gtk.Justification.FILL)
|
self._secondary_label.set_justify(Gtk.Justification.FILL)
|
||||||
else:
|
else:
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
from gi.repository import GObject
|
from gi.repository import GObject
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
from gi.repository import Pango
|
|
||||||
|
|
||||||
from sugar3.graphics.icon import Icon
|
from sugar3.graphics.icon import Icon
|
||||||
from sugar3.graphics import style
|
from sugar3.graphics import style
|
||||||
|
Loading…
Reference in New Issue
Block a user