summaryrefslogtreecommitdiff
path: root/grc/gui
diff options
context:
space:
mode:
authorClayton Smith <argilo@gmail.com>2020-10-12 16:13:19 -0400
committerSebastian Koslowski <sebastian.koslowski@gmail.com>2020-10-20 15:16:48 +0200
commit272d38407f0a7460b0e3958a8dfeb71dfb342b3e (patch)
tree630b0288a329adecb70aff4036a3366e8f79b131 /grc/gui
parent629d8854863ab9ea782d0c0d648f525ed5d4c71b (diff)
grc: fix pylint C0303: Trailing whitespace
Diffstat (limited to 'grc/gui')
-rw-r--r--grc/gui/Application.py4
-rw-r--r--grc/gui/Bars.py2
-rw-r--r--grc/gui/Dialogs.py18
-rw-r--r--grc/gui/Executor.py2
-rw-r--r--grc/gui/ParamWidgets.py7
-rw-r--r--grc/gui/canvas/__init__.py2
-rw-r--r--grc/gui/canvas/param.py2
7 files changed, 18 insertions, 19 deletions
diff --git a/grc/gui/Application.py b/grc/gui/Application.py
index ad106530c9..ed31b1103a 100644
--- a/grc/gui/Application.py
+++ b/grc/gui/Application.py
@@ -443,7 +443,7 @@ class Application(Gtk.Application):
elif action == Actions.TYPES_WINDOW_DISPLAY:
Dialogs.show_types(main)
elif action == Actions.KEYBOARD_SHORTCUTS_WINDOW_DISPLAY:
- Dialogs.show_keyboard_shortcuts(main)
+ Dialogs.show_keyboard_shortcuts(main)
elif action == Actions.ERRORS_WINDOW_DISPLAY:
Dialogs.ErrorsDialog(main, flow_graph).run_and_destroy()
elif action == Actions.TOGGLE_CONSOLE_WINDOW:
@@ -713,7 +713,7 @@ class Application(Gtk.Application):
self.generator = generator
except Exception as e:
Messages.send_fail_gen(e)
-
+
elif action == Actions.FLOW_GRAPH_EXEC:
if not page.process:
diff --git a/grc/gui/Bars.py b/grc/gui/Bars.py
index 67f77755b5..8d393db8f9 100644
--- a/grc/gui/Bars.py
+++ b/grc/gui/Bars.py
@@ -83,7 +83,7 @@ MENU_BAR_LIST = [
[Actions.TOGGLE_SHOW_FLOWGRAPH_COMPLEXITY]
]),
('_Help', [
- [Actions.HELP_WINDOW_DISPLAY, Actions.TYPES_WINDOW_DISPLAY, Actions.KEYBOARD_SHORTCUTS_WINDOW_DISPLAY, Actions.XML_PARSER_ERRORS_DISPLAY],
+ [Actions.HELP_WINDOW_DISPLAY, Actions.TYPES_WINDOW_DISPLAY, Actions.KEYBOARD_SHORTCUTS_WINDOW_DISPLAY, Actions.XML_PARSER_ERRORS_DISPLAY],
[Actions.GET_INVOLVED_WINDOW_DISPLAY, Actions.ABOUT_WINDOW_DISPLAY]
])]
diff --git a/grc/gui/Dialogs.py b/grc/gui/Dialogs.py
index b6eed88532..d77a32651e 100644
--- a/grc/gui/Dialogs.py
+++ b/grc/gui/Dialogs.py
@@ -2,7 +2,7 @@
# This file is part of GNU Radio
#
# SPDX-License-Identifier: GPL-2.0-or-later
-#
+#
import sys
@@ -276,14 +276,14 @@ def show_help(parent):
markup = textwrap.dedent("""\
<b>Usage Tips</b>
\n\
- <u>Add block</u>: drag and drop or double click a block in the block
+ <u>Add block</u>: drag and drop or double click a block in the block
selection window.
<u>Rotate block</u>: Select a block, press left/right on the keyboard.
<u>Change type</u>: Select a block, press up/down on the keyboard.
<u>Edit parameters</u>: double click on a block in the flow graph.
- <u>Make connection</u>: click on the source port of one block, then
+ <u>Make connection</u>: click on the source port of one block, then
click on the sink port of another block.
- <u>Remove connection</u>: select the connection and press delete, or
+ <u>Remove connection</u>: select the connection and press delete, or
drag the connection.
\n\
*Press Ctrl+K or see menu for Keyboard - Shortcuts
@@ -324,12 +324,12 @@ def show_keyboard_shortcuts(parent):
<u>Ctrl+D/B/R</u>: Toggle visibility of disabled blocks or
connections/block tree widget/console.
<u>Shift+T/M/B/L/C/R</u>: Vertical Align Top/Middle/Bottom and
- Horizontal Align Left/Center/Right respectively of the
+ Horizontal Align Left/Center/Right respectively of the
selected block.
\
""")
markup = markup.replace("Ctrl", Utils.get_modifier_key())
-
+
MessageDialogWrapper(
parent, Gtk.MessageType.INFO, Gtk.ButtonsType.CLOSE, title='Keyboard - Shortcuts', markup=markup
).run_and_destroy()
@@ -345,10 +345,10 @@ def show_get_involved(parent):
You can also join our <a href="https://chat.gnuradio.org/">Matrix chat server</a>, IRC Channel (#gnuradio) or contact through our <a href="https://lists.gnu.org/mailman/listinfo/discuss-gnuradio">mailing list (discuss-gnuradio)</a>.
\
""")
-
+
MessageDialogWrapper(
parent, Gtk.MessageType.QUESTION, Gtk.ButtonsType.CLOSE, title='Get - Involved', markup=markup
- ).run_and_destroy()
+ ).run_and_destroy()
def show_types(parent):
@@ -364,7 +364,7 @@ def show_types(parent):
MessageDialogWrapper(
parent, Gtk.MessageType.INFO, Gtk.ButtonsType.CLOSE, title='Types - Color Mapping', markup=message
- ).run_and_destroy()
+ ).run_and_destroy()
def show_missing_xterm(parent, xterm):
diff --git a/grc/gui/Executor.py b/grc/gui/Executor.py
index b3b8e6c58a..66558c96eb 100644
--- a/grc/gui/Executor.py
+++ b/grc/gui/Executor.py
@@ -2,7 +2,7 @@
# This file is part of GNU Radio
#
# SPDX-License-Identifier: GPL-2.0-or-later
-#
+#
import os
diff --git a/grc/gui/ParamWidgets.py b/grc/gui/ParamWidgets.py
index 6114618b52..4e3ac5f8f1 100644
--- a/grc/gui/ParamWidgets.py
+++ b/grc/gui/ParamWidgets.py
@@ -2,7 +2,7 @@
# This file is part of GNU Radio
#
# SPDX-License-Identifier: GPL-2.0-or-later
-#
+#
import os
import configparser
@@ -343,7 +343,7 @@ class DirectoryParam(FileParam):
On success, update the entry.
"""
dirname = self.param.get_evaluated() if self.param.is_valid() else ''
-
+
if not os.path.isdir(dirname): # Check if directory exists, if not fall back to workdir
dirname = os.getcwd()
@@ -360,7 +360,7 @@ class DirectoryParam(FileParam):
dir_dialog.set_current_folder(dirname)
dir_dialog.set_local_only(True)
dir_dialog.set_select_multiple(False)
-
+
# Show dialog and update paramter on success
if Gtk.ResponseType.OK == dir_dialog.run():
path = dir_dialog.get_filename()
@@ -370,4 +370,3 @@ class DirectoryParam(FileParam):
# Cleanup dialog
dir_dialog.destroy()
-
diff --git a/grc/gui/canvas/__init__.py b/grc/gui/canvas/__init__.py
index 052694ec72..60d46fa0ad 100644
--- a/grc/gui/canvas/__init__.py
+++ b/grc/gui/canvas/__init__.py
@@ -2,7 +2,7 @@
# This file is part of GNU Radio
#
# SPDX-License-Identifier: GPL-2.0-or-later
-#
+#
from .block import Block
from .connection import Connection
diff --git a/grc/gui/canvas/param.py b/grc/gui/canvas/param.py
index e0fd359a82..26a3090153 100644
--- a/grc/gui/canvas/param.py
+++ b/grc/gui/canvas/param.py
@@ -2,7 +2,7 @@
# This file is part of GNU Radio
#
# SPDX-License-Identifier: GPL-2.0-or-later
-#
+#
import numbers