Found the problem: self.ui.accept
instead of self.accept.
Woohoo!