# -*- coding: utf-8 -*- from enaml.widgets.api import Window, Container, FileDialogEx, PushButton import clr # If you comment out this line, click "Import clr", then click "Open file dialog", program will not freeze enamldef Main(Window): mainWin: title = 'hang test' Container: PushButton: text = "Open file dialog" clicked :: FileDialogEx.get_open_file_name(mainWin) PushButton: text = "Import clr" # If you click this button, then click "Open file dialog", program will not freeze clicked :: import clr