def open_output(self, filename): self.ofile = filename basename = os.path.split(filename)[1] title = 'out: ' + basename try: vout = Viewer.OutputViewer(filename, \ title, self.qsize) except: self.err('Can\'t open output file', filename) return self.close_output() self.vout = vout self.out_file.label = basename if self.vin: self.vout.setinfo(self.vin.getinfo()) self.oshow()
#! /usr/bin/env python