main file for binary creation
This commit is contained in:
20
main.py
20
main.py
@@ -1,6 +1,20 @@
|
|||||||
from src.logic import userInterface
|
from src.logic import userInterface
|
||||||
from src.logic.dataclass import Subjects
|
from src.ui.widgets.graph import GraphWidget
|
||||||
|
|
||||||
|
|
||||||
|
def display_graph():
|
||||||
|
import sys
|
||||||
|
from PyQt6 import QtWidgets
|
||||||
|
app = QtWidgets.QApplication(sys.argv)
|
||||||
|
data = {
|
||||||
|
"x": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
|
||||||
|
"y": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
|
||||||
|
"y2": [10, 9, 8, 7, 6, 5, 4, 3, 2, 1],
|
||||||
|
}
|
||||||
|
widget = GraphWidget(data=data, legend_labels=["+", "-"])
|
||||||
|
widget.show()
|
||||||
|
sys.exit(app.exec())
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
userInterface.launch_gui()
|
userInterface.launch_gui()
|
||||||
# print(Subjects.get_index("Physik"))
|
# display_graph()
|
||||||
# print(SEMAP_MEDIA_ACCOUNTS)
|
|
||||||
Reference in New Issue
Block a user