def OnShowSettings(self): form = SettingsForm(self, self.settings, self.imageCache) if form.exec_() == QtGui.QDialog.Accepted: self.LoadSettings()