Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleOCR
提交
5fbe1190
P
PaddleOCR
项目概览
PaddlePaddle
/
PaddleOCR
大约 1 年 前同步成功
通知
1528
Star
32962
Fork
6643
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
108
列表
看板
标记
里程碑
合并请求
7
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleOCR
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
108
Issue
108
列表
看板
标记
里程碑
合并请求
7
合并请求
7
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5fbe1190
编写于
1月 22, 2022
作者:
H
HinGwenWoong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Code formate, Make it more standardized. Delete useless file.
上级
5876f3f4
变更
2
展开全部
显示空白变更内容
内联
并排
Showing
2 changed file
with
186 addition
and
319 deletion
+186
-319
PPOCRLabel/PPOCRLabel.py
PPOCRLabel/PPOCRLabel.py
+186
-273
PPOCRLabel/combobox.py
PPOCRLabel/combobox.py
+0
-46
未找到文件。
PPOCRLabel/PPOCRLabel.py
浏览文件 @
5fbe1190
此差异已折叠。
点击以展开。
PPOCRLabel/combobox.py
已删除
100644 → 0
浏览文件 @
5876f3f4
# Copyright (c) <2015-Present> Tzutalin
# Copyright (C) 2013 MIT, Computer Science and Artificial Intelligence Laboratory. Bryan Russell, Antonio Torralba,
# William T. Freeman. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the "Software"), to deal in the Software without restriction, including without
# limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
# Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of
# the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
# NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
# SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
# CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
import
sys
try
:
from
PyQt5.QtWidgets
import
QWidget
,
QHBoxLayout
,
QComboBox
except
ImportError
:
# needed for py3+qt4
# Ref:
# http://pyqt.sourceforge.net/Docs/PyQt4/incompatible_apis.html
# http://stackoverflow.com/questions/21217399/pyqt4-qtcore-qvariant-object-instead-of-a-string
if
sys
.
version_info
.
major
>=
3
:
import
sip
sip
.
setapi
(
'QVariant'
,
2
)
from
PyQt4.QtGui
import
QWidget
,
QHBoxLayout
,
QComboBox
class
ComboBox
(
QWidget
):
def
__init__
(
self
,
parent
=
None
,
items
=
[]):
super
(
ComboBox
,
self
).
__init__
(
parent
)
layout
=
QHBoxLayout
()
self
.
cb
=
QComboBox
()
self
.
items
=
items
self
.
cb
.
addItems
(
self
.
items
)
self
.
cb
.
currentIndexChanged
.
connect
(
parent
.
comboSelectionChanged
)
layout
.
addWidget
(
self
.
cb
)
self
.
setLayout
(
layout
)
def
update_items
(
self
,
items
):
self
.
items
=
items
self
.
cb
.
clear
()
self
.
cb
.
addItems
(
self
.
items
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录