Removed the confirmation dialog on encode
authorHarishankar <hari@localhost.(none)>
Thu, 25 Mar 2010 15:28:14 +0000 (20:58 +0530)
committerHarishankar <hari@localhost.(none)>
Thu, 25 Mar 2010 15:28:14 +0000 (20:58 +0530)
Removed the confirmation dialog on encode because of a tkinter bug.

mainwindow.py
mainwindow.pyc

index f696d69..821207d 100644 (file)
@@ -89,19 +89,21 @@ class MainWindow (Tkinter.Frame):
                        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"""
index 6c7e9df..8ccc363 100644 (file)
Binary files a/mainwindow.pyc and b/mainwindow.pyc differ