From 5a9a2dd54c83cbc5473015e7a9ee3cbf066aa821 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Thu, 21 Mar 2019 12:41:29 +0200 Subject: [PATCH] Resolve pylint warnings --- src/bitmessageqt/__init__.py | 4 ++-- src/bitmessageqt/bitmessageui.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 2129c171..3f9f98d1 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -282,8 +282,6 @@ class MyForm(settingsmixin.SMainWindow): )) def init_chan_popup_menu(self, connectSignal=True): - # Popup menu for the Channels tab - self.ui.addressContextMenuToolbar = QtGui.QToolBar() # Actions self.actionNew = self.ui.addressContextMenuToolbar.addAction(_translate( "MainWindow", "New"), self.on_action_YourIdentitiesNew) @@ -2610,6 +2608,7 @@ class MyForm(settingsmixin.SMainWindow): pass def on_action_Send(self): + """Send message to current selected address""" self.click_pushButtonClear() self.ui.lineEditTo.setText(self.getCurrentAccount()) self.ui.tabWidget.setCurrentIndex( @@ -2617,6 +2616,7 @@ class MyForm(settingsmixin.SMainWindow): ) def on_action_SpecialAddressBehaviorDialog(self): + """Show SpecialAddressBehaviorDialog""" dialogs.SpecialAddressBehaviorDialog(self, BMConfigParser()) def on_action_EmailGatewayDialog(self): diff --git a/src/bitmessageqt/bitmessageui.py b/src/bitmessageqt/bitmessageui.py index 06c9bc6b..af995065 100644 --- a/src/bitmessageqt/bitmessageui.py +++ b/src/bitmessageqt/bitmessageui.py @@ -654,6 +654,8 @@ class Ui_MainWindow(object): # Popup menu actions container for the Sent page # pylint: disable=attribute-defined-outside-init self.sentContextMenuToolbar = QtGui.QToolBar() + # Popup menu actions container for chans tree + self.addressContextMenuToolbar = QtGui.QToolBar() def updateNetworkSwitchMenuLabel(self, dontconnect=None): if dontconnect is None: