equal
deleted
inserted
replaced
20 #You should have received a copy of the GNU Lesser General Public |
20 #You should have received a copy of the GNU Lesser General Public |
21 #License along with this library; if not, write to the Free Software |
21 #License along with this library; if not, write to the Free Software |
22 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 |
23 |
24 import wx |
24 import wx |
|
25 import wx.grid |
25 |
26 |
26 import os |
27 import os |
27 |
28 |
28 from node import BE_to_LE, LE_to_BE |
29 from node import BE_to_LE, LE_to_BE |
29 |
30 |
1482 self.Values[row][colname] = int(value, 16) |
1483 self.Values[row][colname] = int(value, 16) |
1483 except: |
1484 except: |
1484 message = wx.MessageDialog(self, "\"%s\" is not a valid value!"%value, "Error", wx.OK|wx.ICON_ERROR) |
1485 message = wx.MessageDialog(self, "\"%s\" is not a valid value!"%value, "Error", wx.OK|wx.ICON_ERROR) |
1485 message.ShowModal() |
1486 message.ShowModal() |
1486 message.Destroy() |
1487 message.Destroy() |
1487 finally: |
1488 wx.CallAfter(self.RefreshValues) |
1488 wx.CallAfter(self.RefreshValues) |
1489 event.Skip() |
1489 event.Skip() |
|
1490 |
1490 |
1491 def OnValuesGridSelectCell(self, event): |
1491 def OnValuesGridSelectCell(self, event): |
1492 wx.CallAfter(self.RefreshButtons) |
1492 wx.CallAfter(self.RefreshButtons) |
1493 event.Skip() |
1493 event.Skip() |
1494 |
1494 |