needle.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:freecad-nurbs 作者: microelly2 项目源码 文件源码
def startssevents(self):
#       global table

        mw=FreeCADGui.getMainWindow()
        mdiarea=mw.findChild(QtGui.QMdiArea)


        App.activeDocument().Spreadsheet.ViewObject.startEditing(0)
        subw=mdiarea.subWindowList()
    #   print len(subw)
        for i in subw:
    #       print i.widget().metaObject().className()
            if i.widget().metaObject().className() == "SpreadsheetGui::SheetView":
                sheet = i.widget()
                table=sheet.findChild(QtGui.QTableView)

        table.clicked.connect(self.clicked)
    #   table.entered.connect(entered)
        table.pressed.connect(self.pressed)
        self.table=table
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号