8000 Merge remote-tracking branch 'origin/Dev' into Dev · ag-python-qt/pyqt-openai@096881b · GitHub
[go: up one dir, main page]

Skip to content

Commit 096881b

Browse files
committed
Merge remote-tracking branch 'origin/Dev' into Dev
2 parents dfa9f40 + 48e39f5 commit 096881b

File tree

5 files changed

+8
-8
lines changed
  • .idea
  • < 8000 div class="PRIVATE_TreeView-item-container prc-TreeView-TreeViewItemContainer--2Rkn" style="--level:1">
    pyqt_openai

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