Remove pylint ignores
This commit is contained in:
parent
318a403a12
commit
db69aecb56
1 changed files with 10 additions and 8 deletions
|
@ -1257,6 +1257,9 @@ class PesterWindow(MovingWindow):
|
||||||
self.tabconvo = None
|
self.tabconvo = None
|
||||||
self.tabmemo = None
|
self.tabmemo = None
|
||||||
self.shortcuts = {}
|
self.shortcuts = {}
|
||||||
|
self.aboutwindow = None
|
||||||
|
self.moods = None
|
||||||
|
self.currentMoodIcon = None
|
||||||
|
|
||||||
self.setAutoFillBackground(False)
|
self.setAutoFillBackground(False)
|
||||||
self.setObjectName("main")
|
self.setObjectName("main")
|
||||||
|
@ -2077,8 +2080,8 @@ class PesterWindow(MovingWindow):
|
||||||
self.moodsLabel.move(*theme["main/moodlabel/loc"])
|
self.moodsLabel.move(*theme["main/moodlabel/loc"])
|
||||||
self.moodsLabel.setStyleSheet(theme["main/moodlabel/style"])
|
self.moodsLabel.setStyleSheet(theme["main/moodlabel/style"])
|
||||||
|
|
||||||
if hasattr(self, "moods"):
|
if self.moods:
|
||||||
self.moods.removeButtons() # pylint: disable=access-member-before-definition
|
self.moods.removeButtons()
|
||||||
mood_list = theme["main/moods"]
|
mood_list = theme["main/moods"]
|
||||||
mood_list = [{str(k): v for (k, v) in d.items()} for d in mood_list]
|
mood_list = [{str(k): v for (k, v) in d.items()} for d in mood_list]
|
||||||
self.moods = PesterMoodHandler(
|
self.moods = PesterMoodHandler(
|
||||||
|
@ -2131,9 +2134,9 @@ class PesterWindow(MovingWindow):
|
||||||
# if self.theme.has_key("main/mychumhandle/currentMood"):
|
# if self.theme.has_key("main/mychumhandle/currentMood"):
|
||||||
try:
|
try:
|
||||||
moodicon = self.profile().mood.icon(theme)
|
moodicon = self.profile().mood.icon(theme)
|
||||||
if hasattr(self, "currentMoodIcon"):
|
if self.currentMoodIcon:
|
||||||
if hasattr(self.currentMoodIcon, "hide"): # pylint: disable=E0203
|
if hasattr(self.currentMoodIcon, "hide"):
|
||||||
self.currentMoodIcon.hide() # pylint: disable=E0203
|
self.currentMoodIcon.hide()
|
||||||
self.currentMoodIcon = None
|
self.currentMoodIcon = None
|
||||||
self.currentMoodIcon = QtWidgets.QLabel(self)
|
self.currentMoodIcon = QtWidgets.QLabel(self)
|
||||||
self.currentMoodIcon.setPixmap(moodicon.pixmap(moodicon.realsize()))
|
self.currentMoodIcon.setPixmap(moodicon.pixmap(moodicon.realsize()))
|
||||||
|
@ -3375,8 +3378,7 @@ class PesterWindow(MovingWindow):
|
||||||
self.mycolorUpdated.emit()
|
self.mycolorUpdated.emit()
|
||||||
|
|
||||||
def aboutPesterchum(self):
|
def aboutPesterchum(self):
|
||||||
if hasattr(self, "aboutwindow"):
|
if self.aboutwindow:
|
||||||
if self.aboutwindow: # pylint: disable=access-member-before-definition
|
|
||||||
return
|
return
|
||||||
self.aboutwindow = AboutPesterchum(self)
|
self.aboutwindow = AboutPesterchum(self)
|
||||||
self.aboutwindow.exec()
|
self.aboutwindow.exec()
|
||||||
|
|
Loading…
Reference in a new issue