diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-07-03 23:25:24 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-07-03 23:25:24 +0200 |
commit | 1540e5c8fbba5713e0176c8812f7473ea5e91037 (patch) | |
tree | 0e22e563968875a8480cbc60f5abc2d9ee540ef3 /portato | |
parent | dd83f2011ffee4d8eea7b78f86631c7266cdfdc2 (diff) | |
download | portato-1540e5c8fbba5713e0176c8812f7473ea5e91037.tar.gz portato-1540e5c8fbba5713e0176c8812f7473ea5e91037.tar.bz2 portato-1540e5c8fbba5713e0176c8812f7473ea5e91037.zip |
Ported gpytage plugin
Diffstat (limited to '')
-rw-r--r-- | plugins/gpytage.py (renamed from portato/plugins/gpytage.py) | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/portato/plugins/gpytage.py b/plugins/gpytage.py index 22cc7ef..33509e1 100644 --- a/portato/plugins/gpytage.py +++ b/plugins/gpytage.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# File: portato/plugins/gpytage.py +# File: plugins/gpytage.py # This file is part of the Portato-Project, a graphical portage-frontend. # # Copyright (C) 2008 René 'Necoro' Neumann @@ -12,5 +12,16 @@ from subprocess import Popen -def gpytage(*args, **kwargs): - Popen(["/usr/bin/gpytage"]) +class GPytage (Plugin): + __author__ = "René 'Necoro' Neumann" + __description__ = "Adds a menu entry to directly start <b>gpytage</b>, a config editor." + __dependency__ = ["app-portage/gpytage"] + + def __init__ (self): + Plugin.__init__(self) + self.add_menu("Config _Editor", self.menu) + + def menu (self, *args): + Popen(["/usr/bin/gpytage"]) + +register(GPytage) |