FreeCAD作为一款基于OpenCasCAD内核的开源CAD软件,可以在GitHub上下载源代码。阅读源代码,有助于我们学习CAD软件架构,了解底层几何算法。
由博主Caesar卢尚宇自学整理(纯粹出于对三维CAD软件开发的热爱)
内容出自FreeCAD官方社区https://wiki.freecadweb.org/PySide_Beginner_Examples
from PySide import QtGui, QtCore reply = QtGui.QMessageBox.question(None, "", "This is your chance to answer, what do you think?", QtGui.QMessageBox.Yes | QtGui.QMessageBox.No, QtGui.QMessageBox.No) if reply == QtGui.QMessageBox.Yes: # this is where the code relevant to a 'Yes' answer goes pass if reply == QtGui.QMessageBox.No: # this is where the code relevant to a 'No' answer goes pass
Caesar卢尚宇
2020年3月24日