8000 Merge pull request #37 from yjg30737/hotfix/all · ag-python-qt/pyqt-openai@48e39f5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 48e39f5

Browse files
authored
Merge pull request yjg30737#37 from yjg30737/hotfix/all
Hotfix/all
2 parents 7417942 + b6f3898 commit 48e39f5

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/pyqt_openai.iml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyqt_openai/notifier.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
from qtpy.QtCore import Qt, QPoint, Signal, QTimer, QPropertyAnimation
12
from qtpy.QtGui import QFont, QIcon
2-
from qtpy.QtWidgets import QWidget, QLabel, QHBoxLayout, QVBoxLayout, QDesktopWidget, QSizePolicy, qApp, QPushButton, \
3+
from qtpy.QtWidgets import QWidget, QLabel, QHBoxLayout, QVBoxLayout, QDesktopWidget, QSizePolicy, QPushButton, \
34
QApplication
4-
from qtpy.QtCore import Qt, QPoint, Signal, QTimer, QPropertyAnimation
55

66

77
class NotifierWidget(QWidget):

pyqt_openai/svgButton.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os.path, posixpath
22

33
from qtpy.QtGui import QColor, QPalette, qGray
4-
from qtpy.QtWidgets import QGraphicsColorizeEffect, QWidget, qApp, QPushButton
4+
from qtpy.QtWidgets import QGraphicsColorizeEffect, QWidget, QApplication, QPushButton
55

66

77
class SvgButton(QPushButton):
@@ -13,7 +13,7 @@ def __init__(self, base_widget: QWidget = None, parent=None):
1313

1414
def __initVal(self):
1515
# to set size accordance with scale
16-
sc = qApp.screens()[0]
16+
sc = QApplication.screens()[0]
1717
sc.logicalDotsPerInchChanged.connect(self.__scaleChanged)
1818
self.__size = sc.logicalDotsPerInch() // 4
1919
self.__padding = self.__border_radius = self.__size // 10

pyqt_openai/svgToolButton.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os.path, posixpath
22

33
from qtpy.QtGui import QColor, QPalette, qGray
4-
from qtpy.QtWidgets import QGraphicsColorizeEffect, QWidget, qApp, QToolButton
4+
from qtpy.QtWidgets import QGraphicsColorizeEffect, QWidget, QApplication, QToolButton
55

66

77
class SvgToolButton(QToolButton):
@@ -13,7 +13,7 @@ def __init__(self, base_widget: QWidget = None, *args, **kwargs):
1313

1414
def __initVal(self):
1515
# to set size accordance with scale
16-
sc = qApp.screens()[0]
16+
sc = QApplication.screens()[0]
1717
sc.logicalDotsPerInchChanged.connect(self.__scaleChanged)
1818
self.__size = sc.logicalDotsPerInch() // 4
1919
self.__padding = self.__border_radius = self.__size // 10

0 commit comments

Comments
 (0)
0