Example #1
0
 def to_default(self):  # Function to restore the
     u_defaults.txt_file(state=True)  # default colors and calling
     self.new_app()  # new app in the subprocess.
Example #2
0
# -*- coding: utf-8 -*-         #   PYTHON 3   #
import time  # Working with time/date.
import u_defaults  # Setting values, colors,
u_defaults.txt_file(state=False)  # to the application settings.
from u_tools import UTools  # Importing UTools class.
from u_style import UFrame, ULabel  # Importing styled widgets.
from u_style import ULineEd, UTextEd  # Importing styled widgets.
from u_style import UComBox, UListV, UTabView  # Importing styled widgets.
from u_style import UBut1  # Importing styled widgets.
from u_style import UProgress  # Importing styled widgets.
from u_style import UGraphView  # Importing styled widgets.
from u_window import UWindow  # Importing the Main Window.
from u_widget import UWidget  # Importing the Widget.
from u_table import UTModel  # Import of the table model.
from PyQt5 import QtPrintSupport  # Importing Printer support.
from PyQt5 import QtQuickWidgets  # Importing for using QML.


class UApp(UWindow, UTools):  # The main class of the GUI.
    def __init__(self, parent=None):  # Constructor of the class.
        super(UApp, self).__init__(parent)  # Initialization of the class.
        UTools.__init__(self)  # Initialization of the tools
        # print(self.us1)                      # class with functions.
        self.apps = QtQuickWidgets.QQuickWidget(self.twid1)
        self.apps.setSource(QtCore.QUrl("apps.qml"))
        self.properties = self.apps.rootObject()
        self.gscene = QtWidgets.QGraphicsScene()
        self.gview = UGraphView(self.twid2)  # Adding of the graphics view
        self.painter = QtGui.QPainter()  # to the tab widget, adding
        self.gvlay = QtWidgets.QGridLayout()  # scene and painter that can
        self.gvlay.addWidget(self.gview, 0, 0, 1, 1)