diff options
Diffstat (limited to 'deluge/ui/gtk3/__init__.py')
-rw-r--r-- | deluge/ui/gtk3/__init__.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/deluge/ui/gtk3/__init__.py b/deluge/ui/gtk3/__init__.py index 3b9d2b1..8db2773 100644 --- a/deluge/ui/gtk3/__init__.py +++ b/deluge/ui/gtk3/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2007-2009 Andrew Resch <andrewresch@gmail.com> # @@ -7,13 +6,14 @@ # See LICENSE for more details. # -from __future__ import unicode_literals - import logging +from os import environ from deluge.ui.ui import UI log = logging.getLogger(__name__) +# Hide pygame community banner +environ['PYGAME_HIDE_SUPPORT_PROMPT'] = '1' # Keep this class in __init__.py to avoid the console having to import everything in gtkui.py @@ -22,7 +22,7 @@ class Gtk(UI): cmd_description = """GTK-based graphical user interface""" def __init__(self, *args, **kwargs): - super(Gtk, self).__init__( + super().__init__( 'gtk', *args, description='Starts the Deluge GTK+ interface', **kwargs ) @@ -39,10 +39,11 @@ class Gtk(UI): ) def start(self): - super(Gtk, self).start() - from .gtkui import GtkUI + super().start() import deluge.common + from .gtkui import GtkUI + def run(options): try: gtkui = GtkUI(options) |