def setUp(self): """ Creates a window attached to FileControl widget. """ self._filenames = Testing.get_chigger_input_list('mug_blocks_out.e', 'vector_out.e') self._widget, self._window = main(size=[600,600]) self._widget.FilePlugin.onSetFilenames(self._filenames) self._widget.FilePlugin.VariableList.setCurrentIndex(2) self._widget.FilePlugin.VariableList.currentIndexChanged.emit(2) self._window.onWindowRequiresUpdate()
def setUp(self): """ Creates a window attached to FileControl widget. """ # The file to open self._filename = Testing.get_chigger_input('mug_blocks_out.e') self._widget, self._window = main(size=[600,600]) self._window.onFileChanged(self._filename) self._window.onResultOptionsChanged({'variable':'diffused'}) self._window.onWindowRequiresUpdate()