tkMessageBox.showerror ("Cannot encode", "No input and/or output file specified")
else:
commandlist = self.build_mencoder_command ()
-
- if tkMessageBox.askyesno ("Confirm", "Are you sure you wish to encode (in *NIX you must have TERM environment variable set)?"):
- if sys.platform.startswith ('win'):
- po, pi = os.popen2 ("cmd /K " + subprocess.list2cmdline (commandlist))
- else:
- if "TERM" in os.environ:
- if os.environ["TERM"] == "xterm":
- term_command = os.environ["TERM"] + " -hold -e " + subprocess.list2cmdline (commandlist)
- else:
- term_command = os.environ["TERM"] + " -e " + subprocess.list2cmdline(commandlist)
- po, pi = os.popen2 (term_command)
+
+ # this line is commented out because the confirmation dialog box is not working properly
+ # TKinter bug...
+# if tkMessageBox.askyesno ("Confirm", "Are you sure you wish to encode (in *NIX you must have TERM environment variable set)?"):
+ if sys.platform.startswith ('win'):
+ po, pi = os.popen2 ("cmd /K " + subprocess.list2cmdline (commandlist))
+ else:
+ if "TERM" in os.environ:
+ if os.environ["TERM"] == "xterm":
+ term_command = os.environ["TERM"] + " -hold -e " + subprocess.list2cmdline (commandlist)
else:
- tkMessageBox.showerror ("Cannot encode", "The TERM environment variable is not set. Cannot find a suitable terminal.")
+ term_command = os.environ["TERM"] + " -e " + subprocess.list2cmdline(commandlist)
+ po, pi = os.popen2 (term_command)
+ else:
+ tkMessageBox.showerror ("Cannot encode", "The TERM environment variable is not set. Cannot find a suitable terminal.")
def on_save_profile (self):
""" Called when the save profile button is clicked"""