summaryrefslogtreecommitdiff
path: root/portato/gui
diff options
context:
space:
mode:
Diffstat (limited to 'portato/gui')
-rw-r--r--portato/gui/exception_handling.py3
-rw-r--r--portato/gui/queue.py3
-rw-r--r--portato/gui/windows/main.py12
3 files changed, 8 insertions, 10 deletions
diff --git a/portato/gui/exception_handling.py b/portato/gui/exception_handling.py
index 2e9c76c..3928680 100644
--- a/portato/gui/exception_handling.py
+++ b/portato/gui/exception_handling.py
@@ -14,14 +14,13 @@
from __future__ import absolute_import, with_statement
import gtk, pango, gobject
-import sys, traceback, os
+import sys, traceback
from StringIO import StringIO
from ..helper import debug, error, get_runsystem
from .dialogs import file_chooser_dialog, io_ex_dialog
from .windows.mailinfo import MailInfoWindow
-from .utils import GtkThread
class UncaughtExceptionDialog(gtk.MessageDialog):
"""Original idea by Gustavo Carneiro - original code: http://www.daa.com.au/pipermail/pygtk/attachments/20030828/2d304204/gtkexcepthook.py."""
diff --git a/portato/gui/queue.py b/portato/gui/queue.py
index d7b1e3f..5261fc9 100644
--- a/portato/gui/queue.py
+++ b/portato/gui/queue.py
@@ -15,14 +15,13 @@ from __future__ import absolute_import
# some stuff needed
import os, pty
import signal, threading, time
-import itertools as itt
from subprocess import Popen
# some backend things
from .. import backend, plugin
from ..backend import flags, system
from ..backend.exceptions import BlockedException
-from ..helper import debug, info, warning, error, send_signal_to_group, unique_array, flatten
+from ..helper import debug, info, warning, error
from ..waiting_queue import WaitingQueue
from ..odict import OrderedDict
from .updater import Updater
diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py
index 103b792..a0127e0 100644
--- a/portato/gui/windows/main.py
+++ b/portato/gui/windows/main.py
@@ -17,17 +17,17 @@ import gtk
import gobject
# other
-import os.path
+import os
import itertools as itt
from collections import defaultdict
# our backend stuff
from ...backend import flags, system # must be the first to avoid circular deps
from ... import get_listener, plugin
-from ...helper import debug, warning, error, info, unique_array
+from ...helper import debug, warning, error, info
from ...session import Session
from ...db import Database
-from ...constants import CONFIG_LOCATION, VERSION, APP_ICON, ICON_DIR
+from ...constants import CONFIG_LOCATION, VERSION, APP_ICON
from ...backend.exceptions import PackageNotFoundException, BlockedException, VersionsNotFoundException
# more GUI stuff
@@ -186,12 +186,12 @@ class PackageTable:
# useflags
flaglist = list(itt.ifilterfalse(pkg.use_expanded, pkg.get_iuse_flags()))
flaglist.sort()
- flags = ", ".join(flaglist)
+ flagstr = ", ".join(flaglist)
- if flags:
+ if flagstr:
self.useFlagsLL.show()
self.useFlagsLabel.show()
- self.useFlagsLabel.set_label(flags)
+ self.useFlagsLabel.set_label(flagstr)
else:
self.useFlagsLL.hide()
self.useFlagsLabel.hide()
00'>2020-05-10Fix building cacheRené 'Necoro' Neumann1-1/+3 2020-05-10Update READMERené 'Necoro' Neumann1-5/+44 2020-05-10Ignore 'dist' folder and build productsRené 'Necoro' Neumann1-0/+2 2020-05-08Print item hashes in debug modeRené 'Necoro' Neumann1-1/+7 2020-05-07Improve html renderingRené 'Necoro' Neumann2-53/+32 2020-05-07Do not assume items to be new when their published date is newer than the ↵René 'Necoro' Neumann2-7/+1 last run 2020-05-07Updating some depsRené 'Necoro' Neumann2-2/+7 2020-05-07Better detection if a text starts with html or notRené 'Necoro' Neumann2-4/+13 2020-05-07go fmtRené 'Necoro' Neumann1-3/+2 2020-05-07Add header X-Feed2Imap-GUIDRené 'Necoro' Neumann3-1/+7 2020-05-07update changelogRené 'Necoro' Neumann1-0/+1 2020-05-07FixRené 'Necoro' Neumann1-1/+1 2020-05-07Unified publishedDate and updatedDate into one (just as the old feed2imap...)René 'Necoro' Neumann5-21/+32 2020-05-06Print version during startupRené 'Necoro' Neumann1-1/+1 2020-05-06Improve templateRené 'Necoro' Neumann3-20/+28 2020-05-05Fix pipelineRené 'Necoro' Neumann1-2/+5 2020-05-05Make changelog a part of the release pipeline (untested)René 'Necoro' Neumann2-0/+12