def on_but_tspl(self): logger.debug('on_but_tspl', __name__) try : cp.plottime.close() try : del cp.plottime except : pass except : cp.plottime = PlotTime(None, ifname = fnm.path_data_scan_tstamp_list(),\ ofname = fnm.path_data_time_plot()) cp.plottime.move(cp.guimain.pos().__add__(QtCore.QPoint(760,160))) cp.plottime.show()
def on_but_tspl(self): logger.debug('on_but_tspl', __name__) try: cp.plottime.close() try: del cp.plottime except: pass except: cp.plottime = PlotTime(None, ifname = fnm.path_data_scan_tstamp_list(),\ ofname = fnm.path_data_time_plot()) cp.plottime.move(cp.guimain.pos().__add__(QtCore.QPoint(760, 160))) cp.plottime.show()
def on_but_tspl(self): logger.debug('on_but_tspl', __name__) try : cp.plottime.close() try : del cp.plottime except : pass except : if not os.path.lexists(fnm.path_data_scan_tstamp_list()) : msg = 'Requested the time plot for NON-EXISTANT FILE: ' \ + str(fnm.path_data_scan_tstamp_list()) + '\nUse "Scan" first...' logger.warning(msg, __name__ ) return cp.plottime = PlotTime(None, ifname = fnm.path_data_scan_tstamp_list(),\ ofname = fnm.path_data_time_plot()) cp.plottime.move(cp.guimain.pos().__add__(QtCore.QPoint(760,160))) cp.plottime.show()