Пример #1
0
    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()
Пример #2
0
    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()
Пример #3
0
    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()
Пример #4
0
    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()