Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
k54kdk
PyQt Fluent Widgets
提交
80551f82
P
PyQt Fluent Widgets
项目概览
k54kdk
/
PyQt Fluent Widgets
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PyQt Fluent Widgets
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
80551f82
编写于
4月 07, 2023
作者:
之一Yo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复右击菜单的弹出位置问题
上级
019b6612
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
3 deletion
+8
-3
qfluentwidgets/__init__.py
qfluentwidgets/__init__.py
+1
-1
qfluentwidgets/components/widgets/menu.py
qfluentwidgets/components/widgets/menu.py
+6
-1
setup.py
setup.py
+1
-1
未找到文件。
qfluentwidgets/__init__.py
浏览文件 @
80551f82
...
@@ -12,7 +12,7 @@ Examples are available at https://github.com/zhiyiYo/PyQt-Fluent-Widgets/tree/ma
...
@@ -12,7 +12,7 @@ Examples are available at https://github.com/zhiyiYo/PyQt-Fluent-Widgets/tree/ma
:license: GPLv3, see LICENSE for more details.
:license: GPLv3, see LICENSE for more details.
"""
"""
__version__
=
"0.6.
4
"
__version__
=
"0.6.
5
"
from
.components
import
*
from
.components
import
*
from
.common
import
*
from
.common
import
*
...
...
qfluentwidgets/components/widgets/menu.py
浏览文件 @
80551f82
...
@@ -206,7 +206,6 @@ class RoundMenu(QWidget):
...
@@ -206,7 +206,6 @@ class RoundMenu(QWidget):
self
.
setShadowEffect
()
self
.
setShadowEffect
()
self
.
hBoxLayout
.
addWidget
(
self
.
view
,
1
,
Qt
.
AlignCenter
)
self
.
hBoxLayout
.
addWidget
(
self
.
view
,
1
,
Qt
.
AlignCenter
)
self
.
hBoxLayout
.
setSizeConstraint
(
QHBoxLayout
.
SetMinimumSize
)
self
.
hBoxLayout
.
setContentsMargins
(
12
,
8
,
12
,
20
)
self
.
hBoxLayout
.
setContentsMargins
(
12
,
8
,
12
,
20
)
FluentStyleSheet
.
MENU
.
apply
(
self
)
FluentStyleSheet
.
MENU
.
apply
(
self
)
...
@@ -237,6 +236,12 @@ class RoundMenu(QWidget):
...
@@ -237,6 +236,12 @@ class RoundMenu(QWidget):
self
.
menuItem
=
item
self
.
menuItem
=
item
self
.
isSubMenu
=
True
if
parent
else
False
self
.
isSubMenu
=
True
if
parent
else
False
def
adjustSize
(
self
):
m
=
self
.
layout
().
contentsMargins
()
w
=
self
.
view
.
width
()
+
m
.
left
()
+
m
.
right
()
h
=
self
.
view
.
height
()
+
m
.
top
()
+
m
.
bottom
()
self
.
setFixedSize
(
w
,
h
)
def
icon
(
self
):
def
icon
(
self
):
return
self
.
_icon
return
self
.
_icon
...
...
setup.py
浏览文件 @
80551f82
...
@@ -6,7 +6,7 @@ with open('README.md', encoding='utf-8') as f:
...
@@ -6,7 +6,7 @@ with open('README.md', encoding='utf-8') as f:
setuptools
.
setup
(
setuptools
.
setup
(
name
=
"PyQt-Fluent-Widgets"
,
name
=
"PyQt-Fluent-Widgets"
,
version
=
"0.6.
4
"
,
version
=
"0.6.
5
"
,
keywords
=
"pyqt fluent widgets"
,
keywords
=
"pyqt fluent widgets"
,
author
=
"zhiyiYo"
,
author
=
"zhiyiYo"
,
author_email
=
"shokokawaii@outlook.com"
,
author_email
=
"shokokawaii@outlook.com"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录