def OnCellLeftClick(self, event): if event.GetRow() == 0: row = event.GetRow() col = event.GetCol() diag = UnitSelectDiag(self,col,row) if diag.ShowModal() == wx.ID_OK: unitlabel = diag.getunit() self.SetValue(row,col,unitlabel) event.Skip()
def OnCellLeftClick(self, event): if event.GetRow() == 0: row = event.GetRow() col = event.GetCol() diag = UnitSelectDiag(self, col, row) if diag.ShowModal() == wx.ID_OK: unitlabel = diag.getunit() self.SetValue(row, col, unitlabel) event.Skip()
def OnCellLeftClick(self, event): if event.GetRow() == 0: row = event.GetRow() col = event.GetCol() diag = UnitSelectDiag(self, col, row) if diag.ShowModal() == wx.ID_OK: unitlabel = diag.getunit() if unitlabel != originalvalue: self.SetValue(row, col, unitlabel) pub.sendMessage("OnCommand", "*post_pdata_edit_unit,%s" % parent) event.Skip()
def OnCellLeftClick(self, event): if event.GetRow() == 0: row = event.GetRow() col = event.GetCol() diag = UnitSelectDiag(self,col,row) if diag.ShowModal() == wx.ID_OK: unitlabel = diag.getunit() if unitlabel != originalvalue: self.SetValue(row,col,unitlabel) pub.sendMessage("OnCommand", '*post_pdata_edit_unit,%s' % parent) event.Skip()