def dialog(points):
print "dialog ",points.Label
w=QtGui.QWidget()
w.source=points
box = QtGui.QVBoxLayout()
w.setLayout(box)
w.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
l=QtGui.QLabel("Model" )
box.addWidget(l)
w.mode = QtGui.QListWidget()
w.mode.addItems( ['linear','thin_plate', 'cubic','inverse','multiquadric','gaussian' ,'quintic' ])
box.addWidget(w.mode)
l=QtGui.QLabel("count grid lines" )
box.addWidget(l)
w.grid = QtGui.QLineEdit()
w.grid.setText('20')
box.addWidget(w.grid)
l=QtGui.QLabel("z-scale factor" )
box.addWidget(l)
w.zfac = QtGui.QLineEdit()
w.zfac.setText('10')
box.addWidget(w.zfac)
l=QtGui.QLabel("z-max " )
box.addWidget(l)
w.zmax = QtGui.QLineEdit()
w.zmax.setText('0')
box.addWidget(w.zmax)
w.matplot=QtGui.QCheckBox("show Matplot")
box.addWidget(w.matplot)
w.colormap=QtGui.QCheckBox("show colors")
box.addWidget(w.colormap)
# h=QtGui.QDial()
# h.setMaximum(100)
# h.setMinimum(0)
# w.ha=h
# box.addWidget(h)
w.r=QtGui.QPushButton("run")
box.addWidget(w.r)
w.r.pressed.connect(lambda :srun(w))
w.show()
return w
评论列表
文章目录