Exemple #1
0
    def __init__(self, parent=None):
        super(PyplaneMainWindow, self).__init__()
        QtGui.QWidget.__init__(self, parent)
        self.setupUi(self)
        self.setWindowTitle('PyPlane')

        myLogger.register_output(self.logField)

        # Check if LaTeX and dvipng is installed on the system. This
        # is required in order to ensure that advanced formatting in
        # matplotlib works correctly (\left, \begin{array} etc.)
        self.latex_installed = myHelpers.check_if_latex()

        # Embed SettingsWidget:
        self.mySettings = SettingsWidget()
        self.SettingsLayout.addWidget(self.mySettings)

        self.fct_stack = []
        self.linearization_stack = []

        self.systems = []

        self.xDotLabel.setText(u"\u1E8B(x,y) = ")
        self.yDotLabel.setText(u"\u1E8F(x,y) = ")

        try:
            test = myConfig.read("Test", "test_var")
        except:
            test = "Could not load config file. Please check existence"

        myLogger.debug_message("Loading config file: " + test)
Exemple #2
0
    def __init__(self, parent=None):
        super(PyplaneMainWindow, self).__init__()
        QtWidgets.QWidget.__init__(self, parent)
        self.setupUi(self)
        self.setWindowTitle('PyPlane')

        myLogger.register_output(self.logField)

        # Check if LaTeX and dvipng is installed on the system. This
        # is required in order to ensure that advanced formatting in
        # matplotlib works correctly (\left, \begin{array} etc.)
        self.latex_installed = myHelpers.check_if_latex()

        # Embed SettingsWidget:
        self.mySettings = SettingsWidget()
        self.SettingsLayout.addWidget(self.mySettings)

        self.fct_stack = []
        self.linearization_stack = []

        self.systems = []

        self.xDotLabel.setText("\u1E8B(x,y) = ")
        self.yDotLabel.setText("\u1E8F(x,y) = ")

        try:
            test = myConfig.read("Test", "test_var")
        except:
            test = "Could not load config file. Please check existence"

        myLogger.debug_message("Loading config file: " + test)
Exemple #3
0
    def test_check_if_latex(self):

        res = pph.check_if_latex()

        # this assumes that latex and dvipng are installed on the
        # testing machine
        expected_res = True

        self.assertEqual(res, expected_res)
Exemple #4
0
    def test_check_if_latex(self):

        res = pph.check_if_latex()

        # this assumes that latex and dvipng are installed on the
        # testing machine
        expected_res = True

        self.assertEqual(res, expected_res)