Don't subscript Qt signals (unsubscriptable-object)
This commit is contained in:
parent
cc6508bb7b
commit
62f3e21bd4
4 changed files with 12 additions and 8 deletions
4
convo.py
4
convo.py
|
@ -386,7 +386,7 @@ class PesterText(QtWidgets.QTextEdit):
|
|||
self.setReadOnly(True)
|
||||
self.setMouseTracking(True)
|
||||
self.textSelected = False
|
||||
self.copyAvailable[bool].connect(self.textReady)
|
||||
self.copyAvailable.connect(self.textReady) # (bool yes)
|
||||
self.urls = {}
|
||||
self.lastmsg = None
|
||||
for k in smiledict:
|
||||
|
@ -407,7 +407,7 @@ class PesterText(QtWidgets.QTextEdit):
|
|||
movie = PesterMovie(self)
|
||||
movie.setFileName(fileName)
|
||||
self.urls[movie] = url
|
||||
movie.frameChanged[int].connect(movie.animate)
|
||||
movie.frameChanged.connect(movie.animate) # (int frameNumber)
|
||||
|
||||
"""
|
||||
@QtCore.pyqtSlot(bool)
|
||||
|
|
2
memos.py
2
memos.py
|
@ -316,7 +316,7 @@ class MemoText(PesterText):
|
|||
self.setReadOnly(True)
|
||||
self.setMouseTracking(True)
|
||||
self.textSelected = False
|
||||
self.copyAvailable[bool].connect(self.textReady)
|
||||
self.copyAvailable.connect(self.textReady) # (bool yes)
|
||||
self.urls = {}
|
||||
for k in smiledict:
|
||||
self.addAnimation(
|
||||
|
|
6
menus.py
6
menus.py
|
@ -53,7 +53,9 @@ class PesterQuirkList(QtWidgets.QTreeWidget):
|
|||
self.mainwindow = mainwindow
|
||||
self.setStyleSheet("background:black; color:white;")
|
||||
|
||||
self.itemChanged[QtWidgets.QTreeWidgetItem, int].connect(self.changeCheckState)
|
||||
self.itemChanged.connect(
|
||||
self.changeCheckState
|
||||
) # [QtWidgets.QTreeWidgetItem, int]
|
||||
|
||||
for q in mainwindow.userprofile.quirks:
|
||||
item = PesterQuirkItem(q)
|
||||
|
@ -1960,7 +1962,7 @@ class PesterMemoList(QtWidgets.QDialog):
|
|||
self.channelarea.setColumnWidth(1, 10)
|
||||
self.channelarea.setSortingEnabled(True)
|
||||
self.channelarea.sortByColumn(0, QtCore.Qt.SortOrder.AscendingOrder)
|
||||
self.channelarea.itemDoubleClicked[QtWidgets.QTreeWidgetItem, int].connect(
|
||||
self.channelarea.itemDoubleClicked.connect( # [QtWidgets.QTreeWidgetItem, int]
|
||||
self.AcceptSelection
|
||||
)
|
||||
|
||||
|
|
|
@ -473,7 +473,9 @@ class chumArea(RightClickTree):
|
|||
self.setAnimated(True)
|
||||
self.setRootIsDecorated(False)
|
||||
|
||||
self.itemDoubleClicked[QtWidgets.QTreeWidgetItem, int].connect(self.expandGroup)
|
||||
self.itemDoubleClicked.connect(
|
||||
self.expandGroup
|
||||
) # [QtWidgets.QTreeWidgetItem, int]
|
||||
|
||||
@QtCore.pyqtSlot()
|
||||
def beginNotify(self):
|
||||
|
@ -1588,7 +1590,7 @@ class PesterWindow(MovingWindow):
|
|||
|
||||
chums = [PesterProfile(c, chumdb=self.chumdb) for c in set(self.config.chums())]
|
||||
self.chumList = chumArea(chums, self)
|
||||
self.chumList.itemActivated[QtWidgets.QTreeWidgetItem, int].connect(
|
||||
self.chumList.itemActivated.connect( # [QtWidgets.QTreeWidgetItem, int]
|
||||
self.pesterSelectedChum
|
||||
)
|
||||
self.chumList.removeChumSignal[str].connect(self.removeChum)
|
||||
|
@ -4350,7 +4352,7 @@ class MainProgram(QtCore.QObject):
|
|||
|
||||
self.trayicon.setContextMenu(self.traymenu)
|
||||
self.trayicon.show()
|
||||
self.trayicon.activated[QtWidgets.QSystemTrayIcon.ActivationReason].connect(
|
||||
self.trayicon.activated.connect( # [QtWidgets.QSystemTrayIcon.ActivationReason]
|
||||
self.widget.systemTrayActivated
|
||||
)
|
||||
self.widget.trayIconSignal[int].connect(self.trayicon.changeTrayIcon)
|
||||
|
|
Loading…
Reference in a new issue