Пример #1
0
 def createPeacockApp(self, args):
     from peacock import PeacockApp
     self.app = PeacockApp.PeacockApp(
         ["-size", "1024", "1024", "-w",
          os.getcwd()] + args, self.qapp)
     process_events(self.qapp, 4)
     self.app.main_widget.tab_plugin.ExecuteTabPlugin.ExecuteRunnerPlugin.runProgress.connect(
         self.run_finished)
     return self.app
Пример #2
0
 def setUp(self):
     """
     Creates the peacock application.cd
     """
     args = ["-size", "1024", "768", "-w", os.getcwd(), "-i", "../../common/simple_diffusion.i", "-e", find_moose_test_exe()]
     self._app = PeacockApp.PeacockApp(args)
     self._window = self._app.main_widget.tab_plugin.ExodusViewer.currentWidget().VTKWindowPlugin
     set_window_size(self._window)
     clean_files()
Пример #3
0
    def setUp(self):
        """
        Creates the peacock application.
        """

        args = ["-size", "1024", "768", "-i", "../../common/time_data.i", "-e", Testing.find_moose_test_exe(), "-w", os.getcwd()]
        self._app = PeacockApp.PeacockApp(args, self.qapp)
        self._window = self._app.main_widget.tab_plugin.VectorPostprocessorViewer.currentWidget().FigurePlugin
        Testing.set_window_size(self._window)
        Testing.remove_file('peacock_run_exe_tmp_out.e')
    def setUp(self):
        """
        Creates the peacock application.
        """

        args = ["-size", "1024", "768", "-i", "../../common/transient_big.i", "-e", Testing.find_moose_test_exe()]
        working_dir = os.getcwd()
        self._app = PeacockApp.PeacockApp(args, self.qapp)
        os.chdir(working_dir)
        self._window = self._app.main_widget.tab_plugin.ExodusViewer.currentWidget().VTKWindowPlugin
        Testing.set_window_size(self._window)
        Testing.remove_file('peacock_run_exe_tmp_out.e')