Skip to content

Commit

Permalink
code cleaning for docstrings samples
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcouffin committed Nov 9, 2023
1 parent 2ec4ea2 commit 89998b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 1 addition & 4 deletions pyrevitlib/pyrevit/forms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,6 @@ def load_xaml(self, xaml_source, literal_string=False, handle_esc=True, set_owne
Defaults to True.
set_owner (bool, optional): Whether to se the window owner.
Defaults to True.
Returns:
None
"""
# create new id for this window
self.window_id = coreutils.new_uuid()
Expand All @@ -206,7 +203,7 @@ def load_xaml(self, xaml_source, literal_string=False, handle_esc=True, set_owne
WPFWindow.setup_resources(self)
if handle_esc:
self.setup_default_handlers()
return None


def _determine_xaml(self, xaml_source):
xaml_file = xaml_source
Expand Down
4 changes: 0 additions & 4 deletions pyrevitlib/pyrevit/revit/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,11 @@ def set_current_theme(theme='Dark'):
Args:
theme (str, optional): The theme to set. Defaults to 'Dark'.
Returns:
None
"""
if theme == 'Dark':
UIThemeManager.CurrentTheme = UITheme.Dark
else:
UIThemeManager.CurrentTheme = UITheme.Light
return None


def resolve_icon_file(directory, icon_name):
Expand Down

0 comments on commit 89998b3

Please sign in to comment.