Пример #1
0
    def setUp(self):
        """
        Loads an Exodus file in the VTKWindowWidget object using a structure similar to the ExodusViewer widget.
        """
        self._widget = main(size=[400,400])
        self._widget.onSetFilenames([self._filename])

        # Start with 'diffused' variable
        self._widget.currentWidget().VariablePlugin.VariableList.setCurrentIndex(2)
        self._widget.currentWidget().VariablePlugin.VariableList.currentIndexChanged.emit(2)
Пример #2
0
    def setUp(self):
        """
        Loads an Exodus file in the VTKWindowWidget object using a structure similar to the ExodusViewer widget.
        """
        self._widget = main(size=[400,400])
        self._widget.onSetFilenames([self._filename])

        # Start with 'diffused' variable
        self._widget.currentWidget().VariablePlugin.VariableList.setCurrentIndex(2)
        self._widget.currentWidget().VariablePlugin.VariableList.currentIndexChanged.emit(2)
Пример #3
0
    def setUp(self):
        """
        Loads an Exodus file in the VTKWindowWidget object using a structure similar to the ExodusViewer widget.
        """
        message.MOOSE_TESTING_MODE = True
        qtutils.setAppInformation("peacock_exodusviewer")

        settings = QtCore.QSettings()
        settings.clear()
        settings.sync()

        self._widget, self._main_window = main(size=[400,400])
        self._widget.onSetFilenames([self._filename])

        # Start with 'diffused' variable
        self._widget.currentWidget().FilePlugin.VariableList.setCurrentIndex(2)
        self._widget.currentWidget().FilePlugin.VariableList.currentIndexChanged.emit(2)
Пример #4
0
    def setUp(self):
        """
        Loads an Exodus file in the VTKWindowWidget object using a structure similar to the ExodusViewer widget.
        """
        message.MOOSE_TESTING_MODE = True
        qtutils.setAppInformation("peacock_exodusviewer")

        settings = QtCore.QSettings()
        settings.clear()
        settings.sync()

        self._widget, self._main_window = main(size=[400,400])
        self._widget.onSetFilenames([self._filename])

        # Start with 'diffused' variable
        self._widget.currentWidget().FilePlugin.VariableList.setCurrentIndex(2)
        self._widget.currentWidget().FilePlugin.VariableList.currentIndexChanged.emit(2)
Пример #5
0
 def setUp(self):
     self._widget, self._main_window = main(size=[400, 400])
     self._widget.onSetFilenames([self._filename])
     self._window = self._widget.currentWidget().VTKWindowPlugin
Пример #6
0
 def setUp(self):
     self._widget, self._main_window = main(size=[400,400])
     self._widget.onSetFilenames([self._filename])
     self._window = self._widget.currentWidget().VTKWindowPlugin