From 6cd663d84815b818d281ff5a939016891a773018 Mon Sep 17 00:00:00 2001 From: "Anders H. Rebner" <anderhre@stud.ntnu.no> Date: Fri, 3 Apr 2020 16:09:19 +0200 Subject: [PATCH] =?UTF-8?q?#87=20Pr=C3=B8ver=20=C3=A5=20ignorere=20korrekt?= =?UTF-8?q?=20linjeduplisering=20inline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- soitool/modules/code_table_base.py | 4 ++-- soitool/modules/module_authentication_board.py | 3 +++ soitool/modules/module_subtractorcodes.py | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/soitool/modules/code_table_base.py b/soitool/modules/code_table_base.py index 2208608..95ed2cf 100644 --- a/soitool/modules/code_table_base.py +++ b/soitool/modules/code_table_base.py @@ -205,11 +205,11 @@ class CodeTableBase(ModuleBase, QTableWidget, metaclass=Meta): return data @staticmethod - def get_user_friendly_name(): + def get_icon(): """Abstract method, should be implemented by derived class.""" raise NotImplementedError @staticmethod - def get_icon(): + def get_user_friendly_name(): """Abstract method, should be implemented by derived class.""" raise NotImplementedError diff --git a/soitool/modules/module_authentication_board.py b/soitool/modules/module_authentication_board.py index ffbb57f..f2ac91a 100644 --- a/soitool/modules/module_authentication_board.py +++ b/soitool/modules/module_authentication_board.py @@ -44,6 +44,9 @@ class AuthenticationBoardModule(CodeTableBase): The widget does not use more room than needed, and resizes dynamically. It has shortcuts for adding and removing rows. + + Codes are not horizontally centered because 'BGD' is wider than 'III' + (example) in certain fonts. """ def __init__(self, size=None, data=None): diff --git a/soitool/modules/module_subtractorcodes.py b/soitool/modules/module_subtractorcodes.py index 51898f8..e045503 100644 --- a/soitool/modules/module_subtractorcodes.py +++ b/soitool/modules/module_subtractorcodes.py @@ -48,7 +48,7 @@ class SubtractorcodesModule(CodeTableBase): "Invalid value for CONSTANT 'START_NO_OF_CODES': " "'{}'".format(START_NO_OF_CODES) ) - + # pylint: disable=R0801 self.start_no_of_codes = START_NO_OF_CODES self.code_length = CODE_LENGTH self.space_interval = SPACE_INTERVAL @@ -57,7 +57,7 @@ class SubtractorcodesModule(CodeTableBase): self.headline = HEADLINE_TEXT CodeTableBase.__init__(self, size, data) - # Rwsize table when headline changes + # Resize table when headline changes self.cellChanged.connect( lambda: resize_table( self, -- GitLab