From 87bf2ac1f552b90278d04e32b722c1c59502ef2c Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Mon, 4 Mar 2019 12:26:25 +0200 Subject: [PATCH] Handled pylint warnings (closes #1436) --- src/bitmessageqt/__init__.py | 4 ++-- src/bitmessageqt/bitmessageui.py | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 49f7d058..6a0ca3cb 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -369,8 +369,6 @@ class MyForm(settingsmixin.SMainWindow): self.on_context_menuSubscriptions) def init_sent_popup_menu(self, connectSignal=True): - # Popup menu for the Sent page - self.ui.sentContextMenuToolbar = QtGui.QToolBar() # Actions self.actionTrashSentMessage = self.ui.sentContextMenuToolbar.addAction( _translate( @@ -3005,6 +3003,8 @@ class MyForm(settingsmixin.SMainWindow): self.on_action_InboxReply(self.REPLY_TYPE_UPD) def on_action_InboxReply(self, reply_type=None): + """Handle any reply action depending on reply_type""" + # pylint: disable=too-many-locals tableWidget = self.getCurrentMessagelist() if not tableWidget: return diff --git a/src/bitmessageqt/bitmessageui.py b/src/bitmessageqt/bitmessageui.py index cb3578c0..06c9bc6b 100644 --- a/src/bitmessageqt/bitmessageui.py +++ b/src/bitmessageqt/bitmessageui.py @@ -651,6 +651,10 @@ class Ui_MainWindow(object): MainWindow.setTabOrder(self.lineEditSubject, self.textEditMessage) MainWindow.setTabOrder(self.textEditMessage, self.pushButtonAddSubscription) + # Popup menu actions container for the Sent page + # pylint: disable=attribute-defined-outside-init + self.sentContextMenuToolbar = QtGui.QToolBar() + def updateNetworkSwitchMenuLabel(self, dontconnect=None): if dontconnect is None: dontconnect = BMConfigParser().safeGetBoolean(