-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from lyl-Lynx/dev
Help menu added
- Loading branch information
Showing
12 changed files
with
229 additions
and
75 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Binary file not shown.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>About_Form</class> | ||
<widget class="QWidget" name="About_Form"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>650</width> | ||
<height>600</height> | ||
</rect> | ||
</property> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="minimumSize"> | ||
<size> | ||
<width>650</width> | ||
<height>600</height> | ||
</size> | ||
</property> | ||
<property name="maximumSize"> | ||
<size> | ||
<width>650</width> | ||
<height>600</height> | ||
</size> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>About...</string> | ||
</property> | ||
<property name="windowIcon"> | ||
<iconset> | ||
<normaloff>../../../assets/img/lyl8Lynx_logo.png</normaloff>../../../assets/img/lyl8Lynx_logo.png</iconset> | ||
</property> | ||
<layout class="QGridLayout" name="gridLayout"> | ||
<item row="0" column="0"> | ||
<layout class="QGridLayout" name="textArea_grid_layout"> | ||
<item row="0" column="0"> | ||
<widget class="QPlainTextEdit" name="plainTextEdit"> | ||
<property name="enabled"> | ||
<bool>true</bool> | ||
</property> | ||
<property name="focusPolicy"> | ||
<enum>Qt::NoFocus</enum> | ||
</property> | ||
<property name="readOnly"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
<item row="1" column="0"> | ||
<layout class="QHBoxLayout" name="bottom_horizontal_layout"> | ||
<item> | ||
<spacer name="bottom_horizontalSpacer"> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>40</width> | ||
<height>20</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
<item> | ||
<widget class="QPushButton" name="close_button"> | ||
<property name="text"> | ||
<string>Close</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Form implementation generated from reading ui file 'AboutForm.ui' | ||
# | ||
# Created by: PyQt5 UI code generator 5.15.6 | ||
# | ||
# 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. | ||
import sys | ||
|
||
from PyQt5 import QtCore, QtGui, QtWidgets | ||
|
||
|
||
class UiAboutForm(object): | ||
|
||
def __init__(self, about_form, title, icon_path, txt_file_path): | ||
|
||
about_form.setObjectName("About_Form") | ||
about_form.resize(650, 600) | ||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) | ||
sizePolicy.setHorizontalStretch(0) | ||
sizePolicy.setVerticalStretch(0) | ||
sizePolicy.setHeightForWidth(about_form.sizePolicy().hasHeightForWidth()) | ||
about_form.setSizePolicy(sizePolicy) | ||
about_form.setMinimumSize(QtCore.QSize(650, 600)) | ||
about_form.setMaximumSize(QtCore.QSize(650, 600)) | ||
icon = QtGui.QIcon() | ||
icon.addPixmap(QtGui.QPixmap(icon_path), QtGui.QIcon.Normal, QtGui.QIcon.Off) | ||
about_form.setWindowIcon(icon) | ||
about_form.setWindowTitle(title) | ||
self.about_form = about_form | ||
|
||
self.gridLayout = QtWidgets.QGridLayout(about_form) | ||
self.gridLayout.setObjectName("gridLayout") | ||
|
||
self.textArea_grid_layout = QtWidgets.QGridLayout() | ||
self.textArea_grid_layout.setObjectName("textArea_grid_layout") | ||
|
||
self.plainTextEdit = QtWidgets.QPlainTextEdit(about_form) | ||
self.plainTextEdit.setEnabled(True) | ||
self.plainTextEdit.setFocusPolicy(QtCore.Qt.NoFocus) | ||
self.plainTextEdit.setReadOnly(True) | ||
self.plainTextEdit.setObjectName("plainTextEdit") | ||
self.textArea_grid_layout.addWidget(self.plainTextEdit, 0, 0, 1, 1) | ||
|
||
self.gridLayout.addLayout(self.textArea_grid_layout, 0, 0, 1, 1) | ||
|
||
self.bottom_horizontal_layout = QtWidgets.QHBoxLayout() | ||
self.bottom_horizontal_layout.setObjectName("bottom_horizontal_layout") | ||
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) | ||
self.bottom_horizontal_layout.addItem(spacerItem) | ||
|
||
self.close_button = QtWidgets.QPushButton(about_form) | ||
self.close_button.setObjectName("close_button") | ||
self.close_button.clicked.connect(self.about_form.close) | ||
self.bottom_horizontal_layout.addWidget(self.close_button) | ||
|
||
self.gridLayout.addLayout(self.bottom_horizontal_layout, 1, 0, 1, 1) | ||
|
||
self.retranslateUi(about_form) | ||
self.set_text(txt_file_path) | ||
QtCore.QMetaObject.connectSlotsByName(about_form) | ||
|
||
def set_text(self, txt_file_path): | ||
with open(txt_file_path, 'r', encoding='utf-8') as f: | ||
content = f.read() | ||
self.plainTextEdit.setPlainText(content) | ||
|
||
def retranslateUi(self, about_form): | ||
_translate = QtCore.QCoreApplication.translate | ||
#about_form.setWindowTitle(_translate("About_Form", "About...")) | ||
self.close_button.setText(_translate("About_Form", "Close")) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.