Ejemplo 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)
Ejemplo 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)
Ejemplo 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)
Ejemplo 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)
Ejemplo 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)
Ejemplo 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)