Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- File "./plugins/pythonhello/pythonhello.py", line 10, in <module>
- class PythonHelloPlugin(gobject.GObject, Peas.Activatable):
- File "/opt/gnome/lib/python2.6/site-packages/gi/types.py", line 217, in __init__
- cls._setup_vfuncs()
- File "/opt/gnome/lib/python2.6/site-packages/gi/types.py", line 133, in _setup_vfuncs
- vfunc_info = find_vfunc_info_in_interface(cls.__bases__, vfunc_name[len("do_"):])
- File "/opt/gnome/lib/python2.6/site-packages/gi/types.py", line 182, in find_vfunc_info_in_interface
- vfunc = find_vfunc_info_in_interface(base.__bases__, vfunc_name)
- File "/opt/gnome/lib/python2.6/site-packages/gi/types.py", line 175, in find_vfunc_info_in_interface
- not isinstance(base.__info__, InterfaceInfo):
- AttributeError: type object 'gobject.GInterface' has no attribute '__info__'
- import gobject
- from gi.repository import Peas
- from gi.repository import Gtk
- from gi.repository import GLib;
- from gi.repository import Mentiras;
- class PythonHelloPlugin(gobject.GObject, Peas.Activatable):
- __gtype_name__ = 'PythonHelloPlugin'
- object = gobject.property(type=gobject.GObject)
- def do_activate(self):
- window = self.object
- print "PythonHelloPlugin.do_activate", repr(window);
- def do_deactivate(self):
- window = self.object
- print "PythonHelloPlugin.do_deactivate", repr(window)
- def do_update_state(self):
- print "PythonHelloPlugin.do_update_state", repr(self.object)
- class PythonHelloConfigurable(gobject.GObject, PeasGtk.Configurable):
- __gtype_name__ = 'PythonHelloConfigurable'
- def do_create_configure_widget(self):
- return Gtk.Label.new("Python Hello configure widget")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement