diff --git a/pyrevitlib/pyrevit/forms/__init__.py b/pyrevitlib/pyrevit/forms/__init__.py index cf5385996..5ce6c77ea 100644 --- a/pyrevitlib/pyrevit/forms/__init__.py +++ b/pyrevitlib/pyrevit/forms/__init__.py @@ -138,10 +138,9 @@ def set_image_source(self, wpf_element, image_file): """Set source file for image element. Args: - element_name (str): xaml image element name + element_name (System.Windows.Controls.Image): xaml image element image_file (str): image file path """ - # wpfel = getattr(self, element_name) if not op.exists(image_file): wpf_element.Source = \ utils.bitmap_from_file(