RockTableEditor.py 文件源码

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

项目:GRIPy 作者: giruenf 项目源码 文件源码
def AppendRows(self, numRows=1):
        rocktype = self.GrainEntry()
#        rocktype = self._OM.new('rocktype')
        rocktype.defaultdata = np.nan
        self._OM.add(rocktype, self.rocktableuid)

        self.rocktypemap.append(rocktype.uid)
        color = self.get_color(0)
        self.set_color(-1,color)

        self.GetView().BeginBatch()
        msg = wx.grid.GridTableMessage(self, wx.grid.GRIDTABLE_NOTIFY_ROWS_APPENDED, numRows)
        self.GetView().ProcessTableMessage(msg)
        self.GetView().EndBatch()

        return True
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号