:"3
This commit is contained in:
parent
4e2035408c
commit
96efc351f5
2 changed files with 7 additions and 2 deletions
4
irc.py
4
irc.py
|
@ -810,6 +810,10 @@ class PesterHandler(DefaultCommandHandler):
|
||||||
self.parent.cannotSendToChan.emit(channel, msg)
|
self.parent.cannotSendToChan.emit(channel, msg)
|
||||||
def toomanypeeps(self, *stuff):
|
def toomanypeeps(self, *stuff):
|
||||||
self.parent.tooManyPeeps.emit()
|
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):
|
def forbiddenchannel(self, server, handle, channel, msg):
|
||||||
# Channel is forbidden.
|
# Channel is forbidden.
|
||||||
self.parent.forbiddenchannel.emit(channel, msg)
|
self.parent.forbiddenchannel.emit(channel, msg)
|
||||||
|
|
5
toast.py
5
toast.py
|
@ -300,8 +300,9 @@ class PesterToast(QtWidgets.QWidget, DefaultToast):
|
||||||
@QtCore.pyqtSlot(QtCore.QVariant)
|
@QtCore.pyqtSlot(QtCore.QVariant)
|
||||||
def updateBottomLeftAnimation(self, value):
|
def updateBottomLeftAnimation(self, value):
|
||||||
#p = QtWidgets.QApplication.desktop().availableGeometry(self).bottomRight()
|
#p = QtWidgets.QApplication.desktop().availableGeometry(self).bottomRight()
|
||||||
for screen in QtWidgets.QApplication.screens():
|
screens = QtWidgets.QApplication.screens()
|
||||||
p = screen.availableGeometry().bottomRight()
|
screen = screens[0] # Main window?
|
||||||
|
p = screen.availableGeometry().bottomRight()
|
||||||
val = (self.height())/100
|
val = (self.height())/100
|
||||||
# Does type casting this to an int have any negative consequences?
|
# Does type casting this to an int have any negative consequences?
|
||||||
self.move(int(p.x()-self.width()), int(p.y() - (value * val) +1))
|
self.move(int(p.x()-self.width()), int(p.y() - (value * val) +1))
|
||||||
|
|
Loading…
Reference in a new issue