def run(args): phil = iotbx.phil.process_command_line(args=args, master_string=master_phil).show() work_params = phil.work.extract() from xfel.xpp.progress_utils import phil_validation phil_validation(work_params) if ("--help" in args) : libtbx.phil.parse(master_phil.show()) return from xfel.xpp.progress_utils import application application(work_params)
""" dlg = wx.MessageDialog(self, msg, "About", wx.OK) dlg.ShowModal() dlg.Destroy() def flash_status_message(self, msg, flash_len_ms=1500): self.statusbar.SetStatusText(msg) self.timeroff = wx.Timer(self) self.Bind( wx.EVT_TIMER, self.on_flash_status_off, self.timeroff) self.timeroff.Start(flash_len_ms, oneShot=True) def on_flash_status_off(self, event): self.statusbar.SetStatusText('') if __name__ == '__main__': args = sys.argv[1:] phil = iotbx.phil.process_command_line(args=args, master_string=master_phil).show() work_params = phil.work.extract() from xfel.xpp.progress_utils import phil_validation phil_validation(work_params) if ("--help" in args) : libtbx.phil.parse(master_phil.show()) else: app = wx.PySimpleApp() app.frame = BarsFrame(work_params) app.frame.Show() app.MainLoop()
""" dlg = wx.MessageDialog(self, msg, "About", wx.OK) dlg.ShowModal() dlg.Destroy() def flash_status_message(self, msg, flash_len_ms=1500): self.statusbar.SetStatusText(msg) self.timeroff = wx.Timer(self) self.Bind(wx.EVT_TIMER, self.on_flash_status_off, self.timeroff) self.timeroff.Start(flash_len_ms, oneShot=True) def on_flash_status_off(self, event): self.statusbar.SetStatusText('') if __name__ == '__main__': args = sys.argv[1:] phil = iotbx.phil.process_command_line(args=args, master_string=master_phil).show() work_params = phil.work.extract() from xfel.xpp.progress_utils import phil_validation phil_validation(work_params) if ("--help" in args): libtbx.phil.parse(master_phil.show()) else: app = wx.PySimpleApp() app.frame = BarsFrame(work_params) app.frame.Show() app.MainLoop()