diff -r bf9d93a06a18 -r 5998beb54a6c etherlab/etherlab.py --- a/etherlab/etherlab.py Mon May 21 09:31:15 2012 +0200 +++ b/etherlab/etherlab.py Mon May 21 10:07:11 2012 +0200 @@ -66,8 +66,8 @@ NODE_PROFILE = None EditorType = NodeEditor - def GetIconPath(self, icon): - return os.path.join(CONFNODEFOLDER, "images", icon) + def GetIconPath(self): + return os.path.join(CONFNODEFOLDER, "images", "Slave.png") def ExtractHexDecValue(self, value): return ExtractHexDecValue(value) @@ -135,13 +135,6 @@ "children": self.CTNParent.GetDeviceLocationTree(self.GetSlavePos(), self.GetCurrentLocation(), self.BaseParams.getName()) } - ConfNodeMethods = [ - {"bitmap" : os.path.join(CONFNODEFOLDER, "images", "editSlave"), - "name" : _("Edit Slave"), - "tooltip" : _("Edit Slave"), - "method" : "_OpenView"}, - ] - def CTNGenerate_C(self, buildpath, locations): """ Generate C code @@ -186,12 +179,8 @@ NODE_PROFILE = 402 EditorType = CIA402NodeEditor - ConfNodeMethods = [ - {"bitmap" : os.path.join(CONFNODEFOLDER, "images", "editCIA402Slave"), - "name" : _("Edit CIA402 Slave"), - "tooltip" : _("Edit CIA402 Slave"), - "method" : "_OpenView"}, - ] + def GetIconPath(self): + return os.path.join(CONFNODEFOLDER, "images", "CIA402Slave.png") def CTNGenerate_C(self, buildpath, locations): """