30/04/2021

This commit is contained in:
VFX - Visual Effects
2021-04-30 17:40:01 -03:00
commit f469c58828
10 changed files with 386 additions and 0 deletions
+56
View File
@@ -0,0 +1,56 @@
# ///////////////////////////////////////////////////////////////
#
# BY: WANDERSON M.PIMENTA
# PROJECT MADE WITH: Qt Designer and PySide6
# V: 1.0.0
#
# This project can be used freely for all uses, as long as they maintain the
# respective credits only in the Python scripts, any information in the visual
# interface (GUI) can be modified without any implication.
#
# There are limitations on Qt licenses if you want to use your products
# commercially, I recommend reading them on the official website:
# https://doc.qt.io/qtforpython/licenses.html
#
# ///////////////////////////////////////////////////////////////
# IMPORT PACKAGES AND MODULES
# ///////////////////////////////////////////////////////////////
import sys
# IMPORT QT CORE
# ///////////////////////////////////////////////////////////////
from qt_core import *
# IMPORT SETTINGS
# ///////////////////////////////////////////////////////////////
from gui.core.json_settings import Settings
# IMPORT PY ONE DARK WIDGETS
# ///////////////////////////////////////////////////////////////
from gui.widgets import *
# PY WINDOW
# ///////////////////////////////////////////////////////////////
class UI_MainWindow(object):
def setup_ui(self, parent):
if not parent.objectName():
parent.setObjectName("MainWindow")
# LOAD SETTINGS
# ///////////////////////////////////////////////////////////////
settings = Settings()
self.settings = settings.items
# SET INITIAL PARAMETERS
parent.setMinimumSize(self.settings["startup_size"][0], self.settings["startup_size"][1])
# LOAD PY WINDOW CUSTOM WIDGET
# ///////////////////////////////////////////////////////////////
self.window = PyWindow(parent)
# TEXT
self.label = QLabel(self.settings["app_name"], self.window)
# ADD CENTRAL WIDGET
parent.setCentralWidget(self.window)