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