ConfigTreeNode.py
branchsvghmi
changeset 3074 2ec1aebda927
parent 3071 e1145e6bdeec
child 3096 fc5a0b1ece10
equal deleted inserted replaced
3073:1f5a5282c41f 3074:2ec1aebda927
   468         return res
   468         return res
   469 
   469 
   470     def GetContextualMenuItems(self):
   470     def GetContextualMenuItems(self):
   471         return None
   471         return None
   472 
   472 
   473     def GetView(self):
   473     def GetView(self, onlyopened=False):
   474         if self._View is None and self.EditorType is not None:
   474         if self._View is None and not onlyopened and self.EditorType is not None:
   475             app_frame = self.GetCTRoot().AppFrame
   475             app_frame = self.GetCTRoot().AppFrame
   476             self._View = self.EditorType(app_frame.TabsOpened, self, app_frame)
   476             self._View = self.EditorType(app_frame.TabsOpened, self, app_frame)
   477 
   477 
   478         return self._View
   478         return self._View
   479 
   479 
   480     def _OpenView(self, name=None, onlyopened=False):
   480     def _OpenView(self, name=None, onlyopened=False):
   481         view = self.GetView()
   481         view = self.GetView(onlyopened)
   482 
   482 
   483         if view is not None:
   483         if view is not None:
   484             if name is None:
   484             if name is None:
   485                 name = self.CTNFullName()
   485                 name = self.CTNFullName()
   486             app_frame = self.GetCTRoot().AppFrame
   486             app_frame = self.GetCTRoot().AppFrame