2021-04-22 08:54:24 +12:00
# -*- coding: utf-8 -*-
2021-04-22 09:04:14 +12:00
# Form implementation generated from reading ui file 'resources/ui/components/tabs/settings/about.ui'
2021-04-22 08:54:24 +12:00
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore , QtGui , QtWidgets
class Ui_About ( object ) :
def setupUi ( self , About ) :
About . setObjectName ( " About " )
About . resize ( 499 , 396 )
self . gridLayout = QtWidgets . QGridLayout ( About )
self . gridLayout . setObjectName ( " gridLayout " )
2021-04-28 03:29:48 +12:00
self . open_browser = QtWidgets . QPushButton ( About )
self . open_browser . setObjectName ( " open_browser " )
self . gridLayout . addWidget ( self . open_browser , 4 , 1 , 1 , 1 )
self . lbl_version = QtWidgets . QLabel ( About )
self . lbl_version . setObjectName ( " lbl_version " )
self . gridLayout . addWidget ( self . lbl_version , 2 , 0 , 1 , 1 , QtCore . Qt . AlignRight )
self . lbl_license = QtWidgets . QLabel ( About )
self . lbl_license . setObjectName ( " lbl_license " )
self . gridLayout . addWidget ( self . lbl_license , 7 , 0 , 1 , 1 , QtCore . Qt . AlignRight )
self . lbl_lgd_dev = QtWidgets . QLabel ( About )
self . lbl_lgd_dev . setObjectName ( " lbl_lgd_dev " )
self . gridLayout . addWidget ( self . lbl_lgd_dev , 6 , 0 , 1 , 1 )
2021-04-22 08:54:24 +12:00
self . dev = QtWidgets . QLabel ( About )
2021-04-29 23:19:05 +12:00
self . dev . setText ( " <a href= \' https://github.com/Dummerle \' >Dummerle</a> " )
2021-04-22 08:54:24 +12:00
self . dev . setOpenExternalLinks ( True )
self . dev . setObjectName ( " dev " )
2021-04-28 03:29:48 +12:00
self . gridLayout . addWidget ( self . dev , 5 , 1 , 1 , 1 )
self . lbl_update = QtWidgets . QLabel ( About )
self . lbl_update . setObjectName ( " lbl_update " )
self . gridLayout . addWidget ( self . lbl_update , 3 , 0 , 1 , 1 , QtCore . Qt . AlignRight )
2021-04-22 08:54:24 +12:00
self . version = QtWidgets . QLabel ( About )
2021-04-29 23:19:05 +12:00
self . version . setText ( " error " )
2021-04-22 08:54:24 +12:00
self . version . setObjectName ( " version " )
2021-04-28 03:29:48 +12:00
self . gridLayout . addWidget ( self . version , 2 , 1 , 1 , 1 )
self . lbl_dev = QtWidgets . QLabel ( About )
self . lbl_dev . setObjectName ( " lbl_dev " )
self . gridLayout . addWidget ( self . lbl_dev , 5 , 0 , 1 , 1 , QtCore . Qt . AlignRight )
self . license = QtWidgets . QLabel ( About )
self . license . setObjectName ( " license " )
self . gridLayout . addWidget ( self . license , 7 , 1 , 1 , 1 )
self . update = QtWidgets . QLabel ( About )
2021-04-29 23:19:05 +12:00
self . update . setText ( " error " )
2021-04-28 03:29:48 +12:00
self . update . setObjectName ( " update " )
self . gridLayout . addWidget ( self . update , 3 , 1 , 1 , 1 )
self . lgd_dev = QtWidgets . QLabel ( About )
2021-04-29 23:19:05 +12:00
self . lgd_dev . setText ( " <a href= \' https://github.com/derrod/ \' >derrod</a> " )
2021-04-28 03:29:48 +12:00
self . lgd_dev . setOpenExternalLinks ( True )
self . lgd_dev . setObjectName ( " lgd_dev " )
self . gridLayout . addWidget ( self . lgd_dev , 6 , 1 , 1 , 1 )
2021-04-22 08:54:24 +12:00
self . info_text = QtWidgets . QLabel ( About )
self . info_text . setWordWrap ( True )
self . info_text . setOpenExternalLinks ( True )
self . info_text . setObjectName ( " info_text " )
2021-04-28 03:29:48 +12:00
self . gridLayout . addWidget ( self . info_text , 14 , 0 , 1 , 3 )
spacerItem = QtWidgets . QSpacerItem ( 20 , 40 , QtWidgets . QSizePolicy . Minimum , QtWidgets . QSizePolicy . Expanding )
self . gridLayout . addItem ( spacerItem , 15 , 0 , 1 , 3 )
self . title = QtWidgets . QLabel ( About )
self . title . setObjectName ( " title " )
self . gridLayout . addWidget ( self . title , 1 , 0 , 1 , 3 )
spacerItem1 = QtWidgets . QSpacerItem ( 40 , 20 , QtWidgets . QSizePolicy . Expanding , QtWidgets . QSizePolicy . Minimum )
self . gridLayout . addItem ( spacerItem1 , 2 , 2 , 6 , 1 )
2021-04-22 08:54:24 +12:00
self . retranslateUi ( About )
QtCore . QMetaObject . connectSlotsByName ( About )
def retranslateUi ( self , About ) :
_translate = QtCore . QCoreApplication . translate
2021-04-28 03:29:48 +12:00
About . setWindowTitle ( _translate ( " About " , " About " ) )
self . open_browser . setText ( _translate ( " About " , " Download latest release " ) )
self . lbl_version . setText ( _translate ( " About " , " Version: " ) )
self . lbl_license . setText ( _translate ( " About " , " License: " ) )
self . lbl_lgd_dev . setText ( _translate ( " About " , " Legendary Developer: " ) )
2021-04-22 09:04:14 +12:00
self . dev . setToolTip ( _translate ( " About " , " Github " ) )
2021-04-28 03:29:48 +12:00
self . lbl_update . setText ( _translate ( " About " , " Update available: " ) )
self . lbl_dev . setText ( _translate ( " About " , " Rare Developer: " ) )
self . license . setText ( _translate ( " About " , " GNU General Public License v3.0 " ) )
self . lgd_dev . setToolTip ( _translate ( " About " , " Github " ) )
2021-04-22 08:54:24 +12:00
self . info_text . setText ( _translate ( " About " , " This is a beta version, so you can get bugs. If you get a bug, please report it by creating an Issue on <a href= \' https://github.com/Dummerle/Rare/issues \' >Github</a>. You can also contact me on Discord (Dummerle#7419). Or you can join the <a href= \' https://discord.gg/YvmABK9YSk \' >Discord server</a> " ) )
2021-04-28 03:29:48 +12:00
self . title . setText ( _translate ( " About " , " <h2>About</h2> " ) )
2021-04-22 08:54:24 +12:00
if __name__ == " __main__ " :
import sys
app = QtWidgets . QApplication ( sys . argv )
About = QtWidgets . QWidget ( )
ui = Ui_About ( )
ui . setupUi ( About )
About . show ( )
sys . exit ( app . exec_ ( ) )