diff options
Diffstat (limited to 'grc/gui/canvas')
-rw-r--r-- | grc/gui/canvas/flowgraph.py | 4 | ||||
-rw-r--r-- | grc/gui/canvas/param.py | 2 | ||||
-rw-r--r-- | grc/gui/canvas/port.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/grc/gui/canvas/flowgraph.py b/grc/gui/canvas/flowgraph.py index 0f4b32a942..65db00eaff 100644 --- a/grc/gui/canvas/flowgraph.py +++ b/grc/gui/canvas/flowgraph.py @@ -35,7 +35,7 @@ class _ContextMenu(object): # In GTK 3.22 Menu.popup was deprecated, we want to popup at the # pointer, so use that new function instead if we can. - if Gtk.check_version(3,22,0) is None: + if Gtk.check_version(3, 22, 0) is None: self.popup = self._menu.popup_at_pointer def popup(self, event): @@ -484,7 +484,7 @@ class FlowGraph(CoreFlowgraph, Drawable): #TODO - this is a workaround for bus ports not having a proper coordinate # until the shape is drawn. The workaround is to draw blocks before connections - for element in filter(lambda x: x.is_block, self._elements_to_draw) : + for element in filter(lambda x: x.is_block, self._elements_to_draw): element.create_shapes() for element in filter(lambda x: not x.is_block, self._elements_to_draw): diff --git a/grc/gui/canvas/param.py b/grc/gui/canvas/param.py index 26a3090153..2d472e1142 100644 --- a/grc/gui/canvas/param.py +++ b/grc/gui/canvas/param.py @@ -70,7 +70,7 @@ class Param(CoreParam): tooltip_lines = ['Key: ' + self.key, 'Type: ' + self.dtype] if self.is_valid(): value = self.get_evaluated() - if hasattr(value,"__len__"): + if hasattr(value, "__len__"): tooltip_lines.append('Length: {}'.format(len(value))) value = str(value) if len(value) > 100: diff --git a/grc/gui/canvas/port.py b/grc/gui/canvas/port.py index a4566bd91f..d963964cdc 100644 --- a/grc/gui/canvas/port.py +++ b/grc/gui/canvas/port.py @@ -112,7 +112,7 @@ class Port(CorePort, Drawable): label_width, label_height = self.label_layout.get_size() self.width = 2 * Constants.PORT_LABEL_PADDING + label_width / Pango.SCALE - self.height = (2 * Constants.PORT_LABEL_PADDING + label_height*(3 if self.dtype == 'bus' else 1) ) / Pango.SCALE + self.height = (2 * Constants.PORT_LABEL_PADDING + label_height*(3 if self.dtype == 'bus' else 1)) / Pango.SCALE self._label_layout_offsets = [0, Constants.PORT_LABEL_PADDING] self.height += self.height % 2 # uneven height |