def onPrefChanged(self, category, name):
    Window.onPrefChanged(self, category, name)
    if ((category != self.prefCategory) or (name != self.prefName)):
        return
    self.updateLabel()
def onPrefChanged(self, category, name):
    Window.onPrefChanged(self, category, name)
    if ((category != self.prefCategory) or (name != self.prefName)):
        return
    self.updateLabel()