summaryrefslogtreecommitdiff
path: root/plugins/gpytage.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-07-03 23:25:24 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-07-03 23:25:24 +0200
commit1540e5c8fbba5713e0176c8812f7473ea5e91037 (patch)
tree0e22e563968875a8480cbc60f5abc2d9ee540ef3 /plugins/gpytage.py
parentdd83f2011ffee4d8eea7b78f86631c7266cdfdc2 (diff)
downloadportato-1540e5c8fbba5713e0176c8812f7473ea5e91037.tar.gz
portato-1540e5c8fbba5713e0176c8812f7473ea5e91037.tar.bz2
portato-1540e5c8fbba5713e0176c8812f7473ea5e91037.zip
Ported gpytage plugin
Diffstat (limited to 'plugins/gpytage.py')
-rw-r--r--plugins/gpytage.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/plugins/gpytage.py b/plugins/gpytage.py
new file mode 100644
index 0000000..33509e1
--- /dev/null
+++ b/plugins/gpytage.py
@@ -0,0 +1,27 @@
+# -*- coding: utf-8 -*-
+#
+# File: plugins/gpytage.py
+# This file is part of the Portato-Project, a graphical portage-frontend.
+#
+# Copyright (C) 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 subprocess import Popen
+
+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)