def onProcessAction(self, event):
"""Executes the requested action"""
if self.rbx_action.GetSelection() == 0:
count = SetTeardrops(self.sp_hpercent.GetValue(),
self.sp_vpercent.GetValue(),
self.sp_nbseg.GetValue(),
self.board)
wx.MessageBox("{0} Teardrops inserted".format(count))
else:
count = RmTeardrops(pcb=self.board)
wx.MessageBox("{0} Teardrops removed".format(count))
self.Destroy()
评论列表
文章目录