def __init__(self, express, selector): Gtk.Switch.__init__(self) self.express = express self.selector = selector self.connect("notify::active", self.switch_toggle, None)