619 # TODO: check that only last arg has multiple ordinality |
619 # TODO: check that only last arg has multiple ordinality |
620 args += [args[-1]]*(len(prefillargs)-len(args)) |
620 args += [args[-1]]*(len(prefillargs)-len(args)) |
621 self.args_box.Show(len(args)!=0) |
621 self.args_box.Show(len(args)!=0) |
622 for arg, prefillarg in izip(args,prefillargs): |
622 for arg, prefillarg in izip(args,prefillargs): |
623 self.AddArgToSignature(arg, prefillarg) |
623 self.AddArgToSignature(arg, prefillarg) |
|
624 |
|
625 # TODO support predefined path count (as for XYGraph) |
624 paths = defs.findall("path") |
626 paths = defs.findall("path") |
625 self.paths_box.Show(len(paths)!=0) |
627 self.paths_box.Show(len(paths)!=0) |
626 for path in paths: |
628 for path in paths: |
627 self.AddPathToSignature(path) |
629 self.AddPathToSignature(path) |
628 |
630 |
629 for widget in widgets: |
631 # # TODO DEAD CODE ? |
630 widget_type = widget.get("type") |
632 # for widget in widgets: |
631 for path in widget.iterchildren("path"): |
633 # widget_type = widget.get("type") |
632 path_value = path.get("value") |
634 # for path in widget.iterchildren("path"): |
633 path_accepts = map( |
635 # path_value = path.get("value") |
634 str.strip, path.get("accepts", '')[1:-1].split(',')) |
636 # path_accepts = map( |
|
637 # str.strip, path.get("accepts", '')[1:-1].split(',')) |
635 |
638 |
636 self.main_panel.SetupScrolling(scroll_x=False) |
639 self.main_panel.SetupScrolling(scroll_x=False) |
637 |
640 |
638 def GetWidgetParams(self, _context): |
641 def GetWidgetParams(self, _context): |
639 args,paths = self.GenDnDSVGParams |
642 args,paths = self.GenDnDSVGParams |