svghmi/ui.py
branchwxPython4
changeset 3609 51a3d6f39944
parent 3573 1ee56fb544fc
parent 3594 30f7eade322f
child 3750 f62625418bff
equal deleted inserted replaced
3608:02229133df43 3609:51a3d6f39944
   660         paths = defs.findall("path")
   660         paths = defs.findall("path")
   661         self.paths_box.Show(len(paths)!=0)
   661         self.paths_box.Show(len(paths)!=0)
   662         for path in paths:
   662         for path in paths:
   663             self.AddPathToSignature(path)
   663             self.AddPathToSignature(path)
   664 
   664 
   665         # # TODO DEAD CODE ?
       
   666         # for widget in widgets:
       
   667         #     widget_type = widget.get("type")
       
   668         #     for path in widget.iterchildren("path"):
       
   669         #         path_value = path.get("value")
       
   670         #         path_accepts = map(
       
   671         #             str.strip, path.get("accepts", '')[1:-1].split(','))
       
   672 
       
   673         self.main_panel.SetupScrolling(scroll_x=False)
   665         self.main_panel.SetupScrolling(scroll_x=False)
   674 
   666 
   675     def GetWidgetParams(self, _context):
   667     def GetWidgetParams(self, _context):
   676         args,paths = self.GenDnDSVGParams
   668         args,paths = self.GenDnDSVGParams
   677         root = etree.Element("params")
   669         root = etree.Element("params")