summaryrefslogtreecommitdiff
path: root/portato/gui
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-03-18 20:02:53 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-03-18 20:02:53 +0100
commit57c377c2ea2d8f2b3c265a2f54925fd661ac3164 (patch)
tree1aa2b4650cad1516ce10680b882e2a3cfb06d42d /portato/gui
parent1024a00138be442884acbdc3ed6faf28e03ad69b (diff)
downloadportato-57c377c2ea2d8f2b3c265a2f54925fd661ac3164.tar.gz
portato-57c377c2ea2d8f2b3c265a2f54925fd661ac3164.tar.bz2
portato-57c377c2ea2d8f2b3c265a2f54925fd661ac3164.zip
Removed gtk subdir
Diffstat (limited to '')
-rw-r--r--portato/gui/__init__.py23
-rw-r--r--portato/gui/dialogs.py (renamed from portato/gui/gtk/dialogs.py)7
-rw-r--r--portato/gui/exception_handling.py (renamed from portato/gui/gtk/exception_handling.py)7
-rw-r--r--portato/gui/gtk/__init__.py33
-rw-r--r--portato/gui/queue.py2
-rw-r--r--portato/gui/session.py (renamed from portato/gui/gtk/session.py)4
-rw-r--r--portato/gui/updater.py3
-rw-r--r--portato/gui/views.py (renamed from portato/gui/gtk/views.py)9
-rw-r--r--portato/gui/windows/__init__.py (renamed from portato/gui/gtk/windows/__init__.py)6
-rw-r--r--portato/gui/windows/about.py (renamed from portato/gui/gtk/windows/about.py)4
-rw-r--r--portato/gui/windows/basic.py (renamed from portato/gui/gtk/windows/basic.py)6
-rw-r--r--portato/gui/windows/main.py (renamed from portato/gui/gtk/windows/main.py)18
-rw-r--r--portato/gui/windows/plugin.py (renamed from portato/gui/gtk/windows/plugin.py)4
-rw-r--r--portato/gui/windows/preference.py (renamed from portato/gui/gtk/windows/preference.py)4
-rw-r--r--portato/gui/windows/search.py (renamed from portato/gui/gtk/windows/search.py)4
-rw-r--r--portato/gui/windows/splash.py (renamed from portato/gui/gtk/splash.py)8
-rw-r--r--portato/gui/windows/update.py (renamed from portato/gui/gtk/windows/update.py)8
-rw-r--r--portato/gui/wrapper.py (renamed from portato/gui/gtk/wrapper.py)6
18 files changed, 67 insertions, 89 deletions
diff --git a/portato/gui/__init__.py b/portato/gui/__init__.py
index 6df684c..1349e00 100644
--- a/portato/gui/__init__.py
+++ b/portato/gui/__init__.py
@@ -3,9 +3,30 @@
# File: portato/gui/__init__.py
# This file is part of the Portato-Project, a graphical portage-frontend.
#
-# Copyright (C) 2006-2007 René 'Necoro' Neumann
+# Copyright (C) 2006-2008 René 'Necoro' Neumann
# This is free software. You may redistribute copies of it under the terms of
# the GNU General Public License version 2.
# There is NO WARRANTY, to the extent permitted by law.
#
# Written by René 'Necoro' Neumann <necoro@necoro.net>
+
+from __future__ import absolute_import
+
+from ..helper import _
+from .. import get_listener
+from .exception_handling import register_ex_handler
+
+def run ():
+ from .windows.splash import SplashScreen
+ try:
+ s = SplashScreen(_("Loading Portage"))
+ register_ex_handler()
+ s.show()
+ from .windows.main import MainWindow
+ m = MainWindow(s)
+ s.hide()
+ m.main()
+ except KeyboardInterrupt:
+ pass
+
+ get_listener().close()
diff --git a/portato/gui/gtk/dialogs.py b/portato/gui/dialogs.py
index c26835c..1beb6be 100644
--- a/portato/gui/gtk/dialogs.py
+++ b/portato/gui/dialogs.py
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
#
-# File: portato/gui/gtk/dialogs.py
+# File: portato/gui/dialogs.py
# This file is part of the Portato-Project, a graphical portage-frontend.
#
-# Copyright (C) 2006 René 'Necoro' Neumann
+# Copyright (C) 2006-2008 René 'Necoro' Neumann
# This is free software. You may redistribute copies of it under the terms of
# the GNU General Public License version 2.
# There is NO WARRANTY, to the extent permitted by law.
@@ -11,8 +11,7 @@
# Written by René 'Necoro' Neumann <necoro@necoro.net>
import gtk
-from ...helper import error
-from gettext import lgettext as _
+from ..helper import _, error
def queue_not_empty_dialog():
dialog = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_QUESTION, gtk.BUTTONS_NONE, _("There are some packages in the emerge queue and/or an emerge process is running.\nDo you really want to quit?"))
diff --git a/portato/gui/gtk/exception_handling.py b/portato/gui/exception_handling.py
index c44f554..db0cab9 100644
--- a/portato/gui/gtk/exception_handling.py
+++ b/portato/gui/exception_handling.py
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
#
-# File: portato/gui/gtk/exception_handling.py
+# File: portato/gui/exception_handling.py
# This file is part of the Portato-Project, a graphical portage-frontend.
#
-# Copyright (C) 2007 René 'Necoro' Neumann
+# Copyright (C) 2007-2008 René 'Necoro' Neumann
# This is free software. You may redistribute copies of it under the terms of
# the GNU General Public License version 2.
# There is NO WARRANTY, to the extent permitted by law.
@@ -17,10 +17,9 @@ import gtk, pango, gobject
import sys, traceback
from threading import Thread
-from gettext import lgettext as _
from StringIO import StringIO
-from ...helper import debug, error
+from ..helper import _, debug, error
from .dialogs import file_chooser_dialog, io_ex_dialog
class GtkThread (Thread):
diff --git a/portato/gui/gtk/__init__.py b/portato/gui/gtk/__init__.py
deleted file mode 100644
index 9a5338b..0000000
--- a/portato/gui/gtk/__init__.py
+++ /dev/null
@@ -1,33 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# File: portato/gui/gtk/__init__.py
-# This file is part of the Portato-Project, a graphical portage-frontend.
-#
-# Copyright (C) 2006-2007 René 'Necoro' Neumann
-# This is free software. You may redistribute copies of it under the terms of
-# the GNU General Public License version 2.
-# There is NO WARRANTY, to the extent permitted by law.
-#
-# Written by René 'Necoro' Neumann <necoro@necoro.net>
-
-from __future__ import absolute_import
-
-from gettext import lgettext as _
-
-from ... import get_listener
-from .exception_handling import register_ex_handler
-
-def run ():
- from .splash import SplashScreen
- try:
- s = SplashScreen(_("Loading Portage"))
- register_ex_handler()
- s.show()
- from .windows import MainWindow
- m = MainWindow(s)
- s.hide()
- m.main()
- except KeyboardInterrupt:
- pass
-
- get_listener().close()
diff --git a/portato/gui/queue.py b/portato/gui/queue.py
index cfd0581..40b765d 100644
--- a/portato/gui/queue.py
+++ b/portato/gui/queue.py
@@ -25,7 +25,7 @@ from ..waiting_queue import WaitingQueue
from .updater import Updater
# the wrapper
-from .gtk.wrapper import GtkConsole, GtkTree
+from .wrapper import GtkConsole, GtkTree
class EmergeQueue:
"""This class manages the emerge queue."""
diff --git a/portato/gui/gtk/session.py b/portato/gui/session.py
index 5d6c607..e356fbd 100644
--- a/portato/gui/gtk/session.py
+++ b/portato/gui/session.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
-# File: portato/gui/gtk/session.py
+# File: portato/gui/session.py
# This file is part of the Portato-Project, a graphical portage-frontend.
#
# Copyright (C) 2008 René 'Necoro' Neumann
@@ -10,7 +10,7 @@
#
# Written by René 'Necoro' Neumann <necoro@necoro.net>
-from ...helper import debug, _
+from ..helper import _, debug
# the current version for saved sessions
# change this, whenever the change is incompatible with previous versions
diff --git a/portato/gui/updater.py b/portato/gui/updater.py
index c21f547..d6087ee 100644
--- a/portato/gui/updater.py
+++ b/portato/gui/updater.py
@@ -14,9 +14,8 @@ from __future__ import absolute_import
from ..backend import system
-from gettext import lgettext as _
import threading, subprocess, time
-from ..helper import debug, error
+from ..helper import _, debug, error
class Updater (object):
"""
diff --git a/portato/gui/gtk/views.py b/portato/gui/views.py
index d341c10..b069aae 100644
--- a/portato/gui/gtk/views.py
+++ b/portato/gui/views.py
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
#
-# File: portato/gui/gtk/views.py
+# File: portato/gui/views.py
# This file is part of the Portato-Project, a graphical portage-frontend.
#
-# Copyright (C) 2006-2007 René 'Necoro' Neumann
+# Copyright (C) 2006-2008 René 'Necoro' Neumann
# This is free software. You may redistribute copies of it under the terms of
# the GNU General Public License version 2.
# There is NO WARRANTY, to the extent permitted by law.
@@ -12,13 +12,12 @@
from __future__ import absolute_import, with_statement
+import gtk
import pango
import gtksourceview2
-import gtk
import logging
-from gettext import lgettext as _
-from ...helper import warning
+from ..helper import _, warning
class LazyView (object):
def __init__ (self):
diff --git a/portato/gui/gtk/windows/__init__.py b/portato/gui/windows/__init__.py
index 0107937..394e84e 100644
--- a/portato/gui/gtk/windows/__init__.py
+++ b/portato/gui/windows/__init__.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
-# File: portato/gui/gtk/windows/__init__.py
+# File: portato/gui/gtk/__init__.py
# This file is part of the Portato-Project, a graphical portage-frontend.
#
# Copyright (C) 2008 René 'Necoro' Neumann
@@ -9,7 +9,3 @@
# There is NO WARRANTY, to the extent permitted by law.
#
# Written by René 'Necoro' Neumann <necoro@necoro.net>
-
-from __future__ import absolute_import
-
-from .main import MainWindow
diff --git a/portato/gui/gtk/windows/about.py b/portato/gui/windows/about.py
index d9297d0..df724f3 100644
--- a/portato/gui/gtk/windows/about.py
+++ b/portato/gui/windows/about.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
-# File: portato/gui/gtk/windows/about.py
+# File: portato/gui/windows/about.py
# This file is part of the Portato-Project, a graphical portage-frontend.
#
# Copyright (C) 2008 René 'Necoro' Neumann
@@ -15,7 +15,7 @@ from __future__ import absolute_import
import gtk
from .basic import AbstractDialog
-from ....constants import VERSION, APP_ICON
+from ...constants import VERSION, APP_ICON
class AboutWindow (AbstractDialog):
"""A window showing the "about"-informations."""
diff --git a/portato/gui/gtk/windows/basic.py b/portato/gui/windows/basic.py
index e202ac9..101b7ae 100644
--- a/portato/gui/gtk/windows/basic.py
+++ b/portato/gui/windows/basic.py
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
#
-# File: portato/gui/gtk/windows/basic.py
+# File: portato/gui/windows/basic.py
# This file is part of the Portato-Project, a graphical portage-frontend.
#
-# Copyright (C) 2006-2007 René 'Necoro' Neumann
+# Copyright (C) 2006-2008 René 'Necoro' Neumann
# This is free software. You may redistribute copies of it under the terms of
# the GNU General Public License version 2.
# There is NO WARRANTY, to the extent permitted by law.
@@ -20,7 +20,7 @@ import gobject
from functools import wraps
import os.path
-from ....constants import TEMPLATE_DIR, APP_ICON, APP, LOCALE_DIR
+from ...constants import TEMPLATE_DIR, APP_ICON, APP, LOCALE_DIR
gtk.glade.bindtextdomain (APP, LOCALE_DIR)
gtk.glade.textdomain (APP)
diff --git a/portato/gui/gtk/windows/main.py b/portato/gui/windows/main.py
index 0f25572..2dbecde 100644
--- a/portato/gui/gtk/windows/main.py
+++ b/portato/gui/windows/main.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
-# File: portato/gui/gtk/windows/main.py
+# File: portato/gui/windows/main.py
# This file is part of the Portato-Project, a graphical portage-frontend.
#
# Copyright (C) 2006-2008 René 'Necoro' Neumann
@@ -21,16 +21,16 @@ import os.path
import itertools as itt
# our backend stuff
-from ....backend import flags, system # must be the first to avoid circular deps
-from .... import get_listener, plugin, dependency
-from ....helper import debug, warning, error, info, unique_array, N_, _
-from ....session import Session
-from ....constants import CONFIG_LOCATION, VERSION, APP_ICON
-from ....backend.exceptions import PackageNotFoundException, BlockedException
+from ...backend import flags, system # must be the first to avoid circular deps
+from ... import get_listener, plugin, dependency
+from ...helper import debug, warning, error, info, unique_array, N_, _
+from ...session import Session
+from ...constants import CONFIG_LOCATION, VERSION, APP_ICON
+from ...backend.exceptions import PackageNotFoundException, BlockedException
# more GUI stuff
-from ...utils import Database, Config
-from ...queue import EmergeQueue
+from ..utils import Database, Config
+from ..queue import EmergeQueue
from ..session import SESSION_VERSION, SessionException, OldSessionException, NewSessionException
from ..wrapper import GtkTree, GtkConsole
from ..exception_handling import GtkThread
diff --git a/portato/gui/gtk/windows/plugin.py b/portato/gui/windows/plugin.py
index 6bb4db5..672bff5 100644
--- a/portato/gui/gtk/windows/plugin.py
+++ b/portato/gui/windows/plugin.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
-# File: portato/gui/gtk/windows/plugin.py
+# File: portato/gui/windows/plugin.py
# This file is part of the Portato-Project, a graphical portage-frontend.
#
# Copyright (C) 2008 René 'Necoro' Neumann
@@ -15,7 +15,7 @@ from __future__ import absolute_import
import gtk
from .basic import AbstractDialog
-from ....helper import debug, _
+from ...helper import _, debug
class PluginWindow (AbstractDialog):
diff --git a/portato/gui/gtk/windows/preference.py b/portato/gui/windows/preference.py
index aa5aea8..04cd329 100644
--- a/portato/gui/gtk/windows/preference.py
+++ b/portato/gui/windows/preference.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
-# File: portato/gui/gtk/windows/preference.py
+# File: portato/gui/windows/preference.py
# This file is part of the Portato-Project, a graphical portage-frontend.
#
# Copyright (C) 2008 René 'Necoro' Neumann
@@ -16,7 +16,7 @@ import gtk
from .basic import AbstractDialog
from ..dialogs import io_ex_dialog
-from ....helper import _, debug
+from ...helper import _, debug
class PreferenceWindow (AbstractDialog):
"""Window displaying some preferences."""
diff --git a/portato/gui/gtk/windows/search.py b/portato/gui/windows/search.py
index 4b1f3ae..6e34a0e 100644
--- a/portato/gui/gtk/windows/search.py
+++ b/portato/gui/windows/search.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
-# File: portato/gui/gtk/windows/search.py
+# File: portato/gui/windows/search.py
# This file is part of the Portato-Project, a graphical portage-frontend.
#
# Copyright (C) 2008 René 'Necoro' Neumann
@@ -14,7 +14,7 @@ from __future__ import absolute_import
import gtk
from .basic import AbstractDialog
-from ....helper import _, debug
+from ...helper import _, debug
class SearchWindow (AbstractDialog):
"""A window showing the results of a search process."""
diff --git a/portato/gui/gtk/splash.py b/portato/gui/windows/splash.py
index 48f8061..52c2543 100644
--- a/portato/gui/gtk/splash.py
+++ b/portato/gui/windows/splash.py
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
#
-# File: portato/gui/gtk/splash.py
+# File: portato/gui/windows/splash.py
# This file is part of the Portato-Project, a graphical portage-frontend.
#
-# Copyright (C) 2007 René 'Necoro' Neumann
+# Copyright (C) 2007-2008 René 'Necoro' Neumann
# This is free software. You may redistribute copies of it under the terms of
# the GNU General Public License version 2.
# There is NO WARRANTY, to the extent permitted by law.
@@ -13,10 +13,10 @@
from __future__ import absolute_import
import gtk
-from gettext import lgettext as _
+from .basic import Window
+from ...helper import _
from ...constants import VERSION, APP_ICON
-from .windows.basic import Window
class SplashScreen (Window):
diff --git a/portato/gui/gtk/windows/update.py b/portato/gui/windows/update.py
index a068315..8e4fad1 100644
--- a/portato/gui/gtk/windows/update.py
+++ b/portato/gui/windows/update.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
-# File: portato/gui/gtk/windows/update.py
+# File: portato/gui/windows/update.py
# This file is part of the Portato-Project, a graphical portage-frontend.
#
# Copyright (C) 2008 René 'Necoro' Neumann
@@ -15,9 +15,9 @@ from __future__ import absolute_import
import gtk
from .basic import AbstractDialog
from ..dialogs import unmask_dialog, blocked_dialog
-from ....backend import system
-from ....backend.exceptions import PackageNotFoundException, BlockedException
-from ....helper import debug, _
+from ...backend import system
+from ...backend.exceptions import PackageNotFoundException, BlockedException
+from ...helper import _, debug
class UpdateWindow (AbstractDialog):
diff --git a/portato/gui/gtk/wrapper.py b/portato/gui/wrapper.py
index ffc3c3b..8be3b6a 100644
--- a/portato/gui/gtk/wrapper.py
+++ b/portato/gui/wrapper.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
-# File: portato/gui/gtk/wrapper.py
+# File: portato/gui/wrapper.py
# This file is part of the Portato-Project, a graphical portage-frontend.
#
# Copyright (C) 2006-2008 René 'Necoro' Neumann
@@ -13,9 +13,7 @@
from __future__ import absolute_import
import vte
-from gettext import lgettext as _
-from ..wrapper import Tree, Console
-from ...helper import debug
+from ..helper import _,debug
class GtkTree (object):
"""The implementation of the abstract tree."""