Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pyqt5-demo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jlc
pyqt5-demo
Commits
e64c1a0c
Commit
e64c1a0c
authored
Oct 08, 2023
by
吴斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
df6e421f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
7 deletions
+0
-7
config.py
config.py
+0
-5
custom_example.py
pages/widget_example/custom_example.py
+0
-2
No files found.
config.py
View file @
e64c1a0c
import
os
import
os
import
sass
from
PyQt5.QtCore
import
QObject
from
PyQt5.QtCore
import
QObject
class
Config
(
QObject
):
class
Config
(
QObject
):
DARK
=
"dark"
LIGHT
=
"light"
def
__init__
(
self
):
def
__init__
(
self
):
super
()
.
__init__
()
super
()
.
__init__
()
# 工程根目录
# 工程根目录
self
.
root_path
=
""
self
.
root_path
=
""
self
.
theme
=
Config
.
LIGHT
self
.
getRootPath
()
self
.
getRootPath
()
def
getRootPath
(
self
):
def
getRootPath
(
self
):
...
@@ -22,7 +18,6 @@ class Config(QObject):
...
@@ -22,7 +18,6 @@ class Config(QObject):
self
.
root_path
=
os
.
path
.
dirname
(
current_path
)
self
.
root_path
=
os
.
path
.
dirname
(
current_path
)
def
init_qss
(
self
):
def
init_qss
(
self
):
current_theme
=
self
.
theme
theme_dir
=
self
.
root_path
+
"
\\
style
\\
"
theme_dir
=
self
.
root_path
+
"
\\
style
\\
"
theme_list
=
os
.
listdir
(
theme_dir
)
theme_list
=
os
.
listdir
(
theme_dir
)
qss
=
""
qss
=
""
...
...
pages/widget_example/custom_example.py
View file @
e64c1a0c
...
@@ -60,8 +60,6 @@ class CustomExample(QScrollArea):
...
@@ -60,8 +60,6 @@ class CustomExample(QScrollArea):
button_4
.
clicked
.
connect
(
lambda
:
drawer_bottom
.
open
())
button_4
.
clicked
.
connect
(
lambda
:
drawer_bottom
.
open
())
self
.
layout
.
addWidget
(
button_4
,
3
,
3
)
self
.
layout
.
addWidget
(
button_4
,
3
,
3
)
self
.
main_widget
.
adjustSize
()
self
.
main_widget
.
adjustSize
()
def
__init_slot
(
self
):
def
__init_slot
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment