diff --git a/gui/mainFrame.py b/gui/mainFrame.py index 61a5573b9..4fa5866d1 100644 --- a/gui/mainFrame.py +++ b/gui/mainFrame.py @@ -568,7 +568,7 @@ class MainFrame(wx.Frame): overwrites cached message and updates dialog """ if info == -1: - self.progressDialog.Destroy() + self.progressDialog.Hide() elif info != self.progressDialog.message and info is not None: self.progressDialog.message = info self.progressDialog.Pulse(info) @@ -610,9 +610,8 @@ class MainFrame(wx.Frame): self.progressDialog.ShowModal() def backupCallback(self, info): - #print info if info == -1: - self.progressDialog.Destroy() + self.progressDialog.Hide() else: self.progressDialog.Update(info) @@ -670,9 +669,8 @@ class MainFrame(wx.Frame): max = sFit.countAllFits() path = settings.getPath() - print max self.progressDialog = wx.ProgressDialog("Backup fits", - "Generating HTML file at:\n%s"%path, + "Generating HTML file at: %s"%path, maximum=max, parent=self, style=wx.PD_APP_MODAL | wx.PD_ELAPSED_TIME) diff --git a/gui/utils/exportHtml.py b/gui/utils/exportHtml.py index 281b5c32c..726bec265 100644 --- a/gui/utils/exportHtml.py +++ b/gui/utils/exportHtml.py @@ -157,7 +157,6 @@ class exportHtmlThread(threading.Thread): return fit = fits[0] try: - print fit[0] dnaFit = sFit.exportDna(fit[0]) HTMLgroup += ( '
  • ' + ship.name + ": " + fit[1] + '
  • \n')