def on_subtract(self): self.path = tk.filedialog.askopenfilename() self.data.apply_operation(read_ds_file(self.path), op='-') self.draw_on_canvas(clear=True)
def open_time_dialog(self): self.path = tk.filedialog.askopenfilename() self.data.signals = [read_ds_file(self.path)] self.draw_on_canvas(clear=True)
def on_append(self): self.path = tk.filedialog.askopenfilename() self.data.signals.append(read_ds_file(self.path)) self.draw_on_canvas()
def open_freq_dialog(self): self.data.signals = [] self.path = tk.filedialog.askopenfilename() freq, amp, phase = read_ds_file(self.path) self.data.frequency = (freq, amp, phase) self.draw_multi_axes(freq, amp, phase)