コード例 #1
0
ファイル: file_dialogs.py プロジェクト: FinnStokes/orpheus
	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)
コード例 #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)
コード例 #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)
コード例 #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)
コード例 #5
0
	def test_ask(self):
		response = ask("Do you like mustard and avocado ice cream?",
			["Yes", "No", "Undecided"])
		alert("You chose %r." % response)
コード例 #6
0
ファイル: demo2.py プロジェクト: shaik9/rdrive
	def test_ask(self):
		response = ask("Do you like mustard and avocado ice cream?",
			["Yes", "No", "Undecided"])
		alert("You chose %r." % response)