Example #1
0
	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)
Example #2
0
 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)
Example #3
0
 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)
Example #5
0
	def test_ask(self):
		response = ask("Do you like mustard and avocado ice cream?",
			["Yes", "No", "Undecided"])
		alert("You chose %r." % response)
Example #6
0
	def test_ask(self):
		response = ask("Do you like mustard and avocado ice cream?",
			["Yes", "No", "Undecided"])
		alert("You chose %r." % response)