Ejemplo n.º 1
0
 def GenerateSheet(self, excelfile, arguments):
     pleco.SetXlsFilename(excelfile)
     pleco.run(arguments)
     SaveSheet(excelfile)
     #export completed successfully:
     self.exporting = False
     self.EnableAllControls()
     self.exportbutton.SetLabel("EXPORT TO EXCEL")
Ejemplo n.º 2
0
 def Update(self, updatebutton):
     self.updating = True
     try:
         pleco.run(self.GetCommandlineArguments())
         #Updating Completed Successfully:
         self.updating = False
     except StandardError, e:
         #Update failed
         self.updating = False
         print >> sys.stderr, e
         print >> sys.stderr, 'An error occurred! Update did not complete successfully.'
         dlg = wx.MessageDialog(self, 'An error occurred! Update did not'\
             ' complete successfully and application will close.'\
             ' If problem persists  please consult to programmer'\
             '  with application id number = 1127 via skype account: emre062011.\n\nLast log entries:\n%s'%"\n".join(self.log[-10:]),
                           'Failure',
                            wx.OK | wx.ICON_INFORMATION
                            )
         if dlg.ShowModal() == wx.ID_OK:
             self.parent.Close()
         dlg.Destroy()
         return