Richard Terry wrote:
the wx.ID_PASTE seems to come from a deprecated file, and on my system had a value of 5033 (I think from memory).
If I removed wx.ID_PASTE and changed it to this the problem disappears:
ID_PASTE = wx.NewId()
Yet another example of why we should never used explicit IDs.
I haven't tested it with AddTool, but you may be able to do:
tbar.AddTool(bitmap1=images.get_rt_pasteBitmap(), shortHelpString="Paste")
And it will use a default ID.
-Chris