-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1、OCR取词无法使用; 2、界面上的一些错误; 3、解决无法输入中文的问题; 4、优化取词界面。 5、解决系统通知不显示的问题。
- Loading branch information
Allan
committed
Oct 29, 2021
1 parent
9105b71
commit f48d7c9
Showing
14 changed files
with
172 additions
and
77 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Package:mydict | ||
Version:0.2.2 | ||
Version:0.0.0 | ||
Section:free | ||
Priority:optional | ||
Architecture:amd64 | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,24 @@ | ||
from PyQt5.QtCore import Qt | ||
from PyQt5.QtGui import QPainter, QColor | ||
from PyQt5.QtWidgets import QWidget | ||
|
||
|
||
class BaseWidget(QWidget): | ||
"""圆角边框类""" | ||
def __init__(self, parent=None): | ||
super().__init__(parent) | ||
# 设置 窗口无边框和背景透明 *必须 | ||
self.setAttribute(Qt.WA_TranslucentBackground) | ||
self.color_background = QColor(128, 128, 128, 0.7 * 255) | ||
|
||
def paintEvent(self, event): | ||
pat = QPainter(self) | ||
pat.setRenderHint(pat.Antialiasing) | ||
pat.setPen(self.color_background) | ||
pat.setBrush(self.color_background) | ||
rect = self.rect() | ||
rect.setLeft(5) | ||
rect.setTop(5) | ||
rect.setWidth(rect.width() - 5) | ||
rect.setHeight(rect.height() - 5) | ||
pat.drawRoundedRect(rect, 4, 4) |
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
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
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.