LISHUZUOXUN_yangjiang/LSZXPagesManagerLibrary/echarts_page_widget_define.py

76 lines
2.3 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# coding: gb2312
from PyQt5.QtWidgets import *
from BaseFrontend.based_widget import BasedWidget
class EchartsPageWidgetDefine(BasedWidget):
def __init__(self):
super().__init__()
# 定义控件按Ctrl+点击快速跳转编辑)
"""**布局对象初始化区**布局对象初始化区**布局对象初始化区**布局对象初始化区**布局对象初始化区**布局对象初始化区"""
self.overview_button = self._init_overview_button()
self.team_button = self._init_team_button()
self.person_button = self._init_person_button()
# 初始化空白控件
@staticmethod
def init_empty_widget():
empty_widget = QWidget()
return empty_widget
@staticmethod
def _init_overview_button():
overview_button = QPushButton("\n")
overview_button.setStyleSheet(
"font: 600 24px \"Microsoft YaHei UI\";"
"color: #ffffff;"
"letter-spacing: 6px;"
"border-radius: 4px;"
"border: none;"
"height: 160%;"
"border-top-left-radius: 6px;"
"border-top-right-radius: 0px;"
"border-bottom-left-radius: 6px;"
"border-bottom-right-radius: 0px;"
"background-color: #409eff;"
)
return overview_button
@staticmethod
def _init_team_button():
team_button = QPushButton("\n")
team_button.setStyleSheet(
"font: 600 24px \"Microsoft YaHei UI\";"
"color: #222222;"
"letter-spacing: 6px;"
"border-radius: 4px;"
"border: none;"
"height: 160%;"
"border-top-left-radius: 6px;"
"border-top-right-radius: 0px;"
"border-bottom-left-radius: 6px;"
"border-bottom-right-radius: 0px;"
)
return team_button
@staticmethod
def _init_person_button():
person_button = QPushButton("\n")
person_button.setStyleSheet(
"font: 600 24px \"Microsoft YaHei UI\";"
"color: #222222;"
"letter-spacing: 6px;"
"border-radius: 4px;"
"border: none;"
"height: 160%;"
"border-top-left-radius: 6px;"
"border-top-right-radius: 0px;"
"border-bottom-left-radius: 6px;"
"border-bottom-right-radius: 0px;"
)
return person_button