Example #1
0
    def callback_copy_item(self):
        data = tab_get_selected(self.tab)
        combine = ';'.join(data)

        cb = QApplication.clipboard()
        cb.clear(mode=cb.Clipboard)
        cb.setText(combine, mode=cb.Clipboard)
Example #2
0
	def callback_copy_item(self):
		data=tab_get_selected(self.tab)
		combine=';'.join(data)
		
		cb = QApplication.clipboard()
		cb.clear(mode=cb.Clipboard )
		cb.setText(combine, mode=cb.Clipboard)
Example #3
0
	def on_ok_clicked(self):
		ret=tab_get_selected(self.tab)
		if ret==False:
			error_dlg(self,_("You have not selected anything"))
		else:
			file_path=os.path.join(get_device_lib_path(),ret[0])
			md = yes_no_dlg(self,"You are about to import the simulation file "+file_path+" into this simulation.  The result will be that all model parameters will be overwritten.  Do you really want to do that?")

			if response == True:
				self.file_path=file_path
				self.close()
Example #4
0
	def on_ok_clicked(self):
		ret=tab_get_selected(self.tab)
		if ret==False:
			error_dlg(self,_("You have not selected anything"))
		else:
			file_path=os.path.join(get_device_lib_path(),ret[0])
			md = yes_no_dlg(self,"You are about to import the simulation file "+file_path+" into this simulation.  The result will be that all model parameters will be overwritten.  Do you really want to do that?")

			if response == True:
				self.file_path=file_path
				self.close()
Example #5
0
    def callback_fit(self):
        data = tab_get_selected(self.tab)
        if data == False:
            error_dlg(self, _("No items selected"))
            return

        d = fit_poly(float(data[0]), float(data[1]), self.data)
        d.run()
        if d.ret_math != None:
            a = self.tab.selectionModel().selectedRows()

            if len(a) > 0:
                a = a[0].row()
            tab_set_value(self.tab, a, 2, d.ret_math)
            print(d.ret_math)