plugger.py
changeset 652 eb2d9f2b3567
parent 639 85dad46ae0f6
child 655 5becd66cca02
--- a/plugger.py	Wed Dec 14 15:17:36 2011 +0100
+++ b/plugger.py	Wed Dec 14 15:17:47 2011 +0100
@@ -137,6 +137,9 @@
         return os.path.join(self.PlugParent.PlugPath(),
                             PlugName + NameTypeSeparator + self.PlugType)
     
+    def GetIconPath(self, name):
+        return opjimg(name)
+    
     def PlugTestModified(self):
         return self.ChangesToSave
 
@@ -294,7 +297,7 @@
 
     def BlockTypesFactory(self):
         if self.LibraryControler is not None:
-            return [{"name" : "%s POUs" % self.PlugType, "list": self.LibraryControler.Project.GetCustomBlockTypes()}]
+            return [{"name" : _("%s POUs") % self.PlugType, "list": self.LibraryControler.Project.GetCustomBlockTypes()}]
         return []
 
     def ParentsBlockTypesFactory(self):
@@ -790,6 +793,8 @@
             ID_STATUSTIMER = wx.NewId()
             self.StatusTimer = wx.Timer(self.AppFrame, ID_STATUSTIMER)
             self.AppFrame.Bind(wx.EVT_TIMER, self.PullPLCStatusProc, self.StatusTimer)
+        
+            self.RefreshPluginsBlockLists()
 
     def ResetAppFrame(self, logger):
         if self.AppFrame is not None: