FreeCAD作为一款基于OpenCasCAD内核的开源CAD软件,可以在GitHub上下载源代码。阅读源代码,有助于我们学习CAD软件架构,了解底层几何算法。
由博主Caesar卢尚宇自学整理(纯粹出于对三维CAD软件开发的热爱)
内容出自FreeCAD官方社区https://wiki.freecadweb.org/PySide_Beginner_Examples
from PySide import QtGui, QtCore reply = QtGui.QInputDialog.getText(None, "Ouija Central","Enter your thoughts for the day:") if reply[1]: # user clicked OK replyText = reply[0] else: # user clicked Cancel replyText = reply[0] # which will be "" if they clicked Cancel
Caesar卢尚宇
2020年3月24日