summaryrefslogtreecommitdiff
path: root/portato/gui
diff options
context:
space:
mode:
Diffstat (limited to '')
-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()