[rhythmbox/wip/python3] convert sample python plugin to python 3
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox/wip/python3] convert sample python plugin to python 3
- Date: Thu, 18 Apr 2013 08:43:30 +0000 (UTC)
commit 63fbfdb7a07227916f7a4804439c48588339ae32
Author: Jonathan Matthew <jonathan d14n org>
Date: Thu Apr 18 18:42:46 2013 +1000
convert sample python plugin to python 3
sample-plugins/sample-python/sample-python.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/sample-plugins/sample-python/sample-python.py b/sample-plugins/sample-python/sample-python.py
index e21fdee..517e228 100644
--- a/sample-plugins/sample-python/sample-python.py
+++ b/sample-plugins/sample-python/sample-python.py
@@ -12,7 +12,7 @@ class SamplePython(GObject.Object, Peas.Activatable):
GObject.Object.__init__(self)
def do_activate(self):
- print "activating sample python plugin"
+ print("activating sample python plugin")
shell = self.object
db = shell.props.db
@@ -23,7 +23,7 @@ class SamplePython(GObject.Object, Peas.Activatable):
shell.append_display_page(self.source, group)
def do_deactivate(self):
- print "deactivating sample python plugin"
+ print("deactivating sample python plugin")
self.source.delete_thyself()
self.source = None
@@ -39,6 +39,4 @@ class PythonSource(RB.Source):
songs.show_all()
self.pack_start(songs, expand=True, fill=True, padding=0)
-
-
GObject.type_register(PythonSource)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]