Apr-21-2021, 03:42 PM
(Apr-21-2021, 03:26 PM)Axel_Erfurt Wrote: This is only part of the code and is useless.
You don't have any imports (PyQt5, matplotlib, pandas ...)
What is XYZ.Ui_Dialog?
I've written, that i left out the imports because it's not an import problem as the code is running correctly.
Here are the imports
XYZ ist the converted .ui file which I created in the QtDesigner. I created a empty widget in QtDesigner called "plotWidget" used in the init_Widget function.
from PyQt5.QtWidgets import QWidget, QApplication, QVBoxLayout,QLabel, QInputDialog, QLineEdit, QFileDialog from PyQt5 import QtCore, QtGui from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg from matplotlib.figure import Figure from matplotlib.backends.backend_qt5agg import FigureCanvas import matplotlib as mpl from matplotlib.animation import FuncAnimation from matplotlib.widgets import Cursor, MultiCursor import numpy as np import pandas as pd import sys import XYZ