|
Hi I have a problem an hope that you can help me solve it. I'm writing a simple plugin for gedit (gnome 3). My plugin class looks like this:
class Plug(GObject.Object, Gedit.WindowActivatable, PeasGtk.Configurable): bla="a" def __init__(self): ... def do_activate(self): ... ...
def do_create_configure_widget(self): widged=... ... rb1.connect("toggled", self.change, "a") rb2.connect("toggled", self.change, "b") rb2.connect("toggled", self.change, "c") ... return widget
def change(self, widget, data): self.bla=data ...
The problem is, when I change the selection in configuration widget, variable bla doesn't change. What am I doing wrong?
Thank you
|