def dialog():
w=QtGui.QWidget()
box = QtGui.QVBoxLayout()
w.setLayout(box)
w.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
l=QtGui.QLabel("Anzahl" )
w.l=l
box.addWidget(l)
w.mina = QtGui.QLabel("Anzahl" )
w.mina.setText('3')
box.addWidget(w.mina)
w.anz = QtGui.QLabel("Anzahl" )
w.anz.setText('13')
box.addWidget(w.anz)
w.maxa = QtGui.QLabel("Anzahl" )
w.maxa.setText('3')
box.addWidget(w.maxa)
# w.random=QtGui.QCheckBox("Zufall")
# box.addWidget(w.random)
# w.r=QtGui.QPushButton("run")
# box.addWidget(w.r)
# w.r.pressed.connect(lambda :run(w))
w.show()
return w
评论列表
文章目录