def set_modality(self, modality):
        self.widget.setWindowModality(MODALITY[modality])
Set the modality of the window.
dataset/ETHPy150Open nucleic/enaml/enaml/qt/qt_window.py/QtWindow.set_modality