def __checkUpload(self,msg):
if msg.text()=="Yes":
name = QtGui.QFileDialog.getOpenFileName(filter=".py (*.py)")
file_name = name[0]
if len(file_name) > 0:
if hasattr(self,"i10"):
self.algorithmArgTree.removeTopLevelItem(self.i10)
delattr(self,"i10")
delattr(self,"myFilter")
self.myFilter = imp.load_source("filter_design",file_name)
self.i10 = pg.TreeWidgetItem([""])
myFilterWgtt = QtGui.QPushButton()
myFilterWgtt.setText("myFilter")
myFilterWgtt.setFixedWidth(60)
myFilterWgtt.setStyleSheet("background-color: rgb(190,190,190);border-radius: 6px;")
# rpWgtt.clicked.connect(self.__setrp)
self.i10.setWidget(1,myFilterWgtt)
self.algorithmArgTree.addTopLevelItem(self.i10)
elif msg.text()=="Cancel":
pass
# This class is used to draw multiple lines for the AnalogFilter class in a memory-efficient way
评论列表
文章目录