From 96efc351f5e97de55c4358247c1f0ed6df7b75cc Mon Sep 17 00:00:00 2001 From: Dpeta Date: Thu, 30 Jun 2022 10:15:06 +0200 Subject: [PATCH] :"3 --- irc.py | 4 ++++ toast.py | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/irc.py b/irc.py index acdde3d..7615e57 100644 --- a/irc.py +++ b/irc.py @@ -810,6 +810,10 @@ class PesterHandler(DefaultCommandHandler): self.parent.cannotSendToChan.emit(channel, msg) def toomanypeeps(self, *stuff): self.parent.tooManyPeeps.emit() + #def badchanmask(channel, *args): + # # Channel name is not valid. + # msg = ' '.join(args) + # self.parent.forbiddenchannel.emit(channel, msg) def forbiddenchannel(self, server, handle, channel, msg): # Channel is forbidden. self.parent.forbiddenchannel.emit(channel, msg) diff --git a/toast.py b/toast.py index 4b5a657..a687ef1 100644 --- a/toast.py +++ b/toast.py @@ -300,8 +300,9 @@ class PesterToast(QtWidgets.QWidget, DefaultToast): @QtCore.pyqtSlot(QtCore.QVariant) def updateBottomLeftAnimation(self, value): #p = QtWidgets.QApplication.desktop().availableGeometry(self).bottomRight() - for screen in QtWidgets.QApplication.screens(): - p = screen.availableGeometry().bottomRight() + screens = QtWidgets.QApplication.screens() + screen = screens[0] # Main window? + p = screen.availableGeometry().bottomRight() val = (self.height())/100 # Does type casting this to an int have any negative consequences? self.move(int(p.x()-self.width()), int(p.y() - (value * val) +1))