Skip to content

Commit

Permalink
temp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcouffin committed Feb 6, 2024
1 parent 785d567 commit a7fd6c4
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,16 @@ def convert_style(self, line_element):
class ConvertLineStylesWindow(forms.WPFWindow):
def __init__(self, xaml_file_name):
forms.WPFWindow.__init__(self, xaml_file_name)
self.Closing += self.Close_Click
self._setup_styles()


def Close_Click(self, sender, args):
try:
print('Closing window')
except Exception as ex:
print(ex)

def _setup_styles(self):
self._styles = revit.query.get_line_styles(doc=revit.doc)
self._styleops = [StyleOption(x) for x in self._styles]
Expand Down

0 comments on commit a7fd6c4

Please sign in to comment.