def ok(self): path = self.pathname if os.path.exists(path): answer = ask("Replace existing '%s'?" % os.path.basename(path)) if answer <> "OK": return FileDialog.ok(self)
def ok(self): path = self.pathname if os.path.exists(path): answer = ask(_("Replace existing '%s'?") % os.path.basename(path)) if answer != "OK": return #FileDialog.ok(self) self.dismiss(True)
def ok(self): path = self.pathname if os.path.exists(path): answer = ask(_("Replace existing '%s'?") % os.path.basename(path)) if answer != "OK": return # FileDialog.ok(self) self.dismiss(True)
def test_ask(self): response = ask("Do you like mustard and avocado ice cream?", ["Yes", "No", "Undecided"]) alert("You chose %r." % response)