diff options
author | necoro <> | 2007-08-10 02:22:40 +0000 |
---|---|---|
committer | necoro <> | 2007-08-10 02:22:40 +0000 |
commit | a6a5cace4864c37b7a820c89540f85069d842521 (patch) | |
tree | 72379c0060510ee05635466fcb41c86191497077 /portato/gui/gtk/__init__.py | |
parent | e3e2339cf2156a12b61b91f56c9ea596df57198e (diff) | |
download | portato-a6a5cace4864c37b7a820c89540f85069d842521.tar.gz portato-a6a5cace4864c37b7a820c89540f85069d842521.tar.bz2 portato-a6a5cace4864c37b7a820c89540f85069d842521.zip |
add splash screen
Diffstat (limited to 'portato/gui/gtk/__init__.py')
-rw-r--r-- | portato/gui/gtk/__init__.py | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/portato/gui/gtk/__init__.py b/portato/gui/gtk/__init__.py index 41161d6..0714f39 100644 --- a/portato/gui/gtk/__init__.py +++ b/portato/gui/gtk/__init__.py @@ -10,21 +10,29 @@ # # Written by René 'Necoro' Neumann <necoro@necoro.net> -import gtk -from portato import plugin -from portato.backend import system -from windows import MainWindow, SearchWindow, EbuildWindow +from gettext import lgettext as _ + from exception_handling import register_ex_handler def run (): + from splash import SplashScreen try: - m = MainWindow() + s = SplashScreen(_("Loading Portage")) register_ex_handler() + s.show() + from windows import MainWindow + m = MainWindow(s) + s.hide() m.main() except KeyboardInterrupt: pass -def show_ebuild (pkg): +def show_ebuild (pkg): + import gtk + from portato import plugin + from portato.backend import system + from windows import SearchWindow, EbuildWindow + plugin.load_plugins("gtk") register_ex_handler() |