Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
4303ff38fThis file is pinned to the selected release. Download the original to open it in your design tool.
import ContextTool
import wx
class CamContextTool(ContextTool.CADContextTool):
def __init__(self, title, bitmap_name, method):
ContextTool.CADContextTool.__init__(self, title, bitmap_name, method)
def BitmapPath(self):
return wx.GetApp().cam_dir + '/bitmaps/'+ self.BitmapName() + '.png'
class CamObjectContextTool(CamContextTool):
def __init__(self, object, title, bitmap_name, method):
CamContextTool.__init__(self, title, bitmap_name, method)
self.object = object
def Run(self, event):
self.method(self.object)