Skip to content
Snippets Groups Projects
Commit 6cd663d8 authored by Anders H. Rebner's avatar Anders H. Rebner
Browse files

#87 Prøver å ignorere korrekt linjeduplisering inline

parent 02291ade
No related branches found
No related tags found
1 merge request!53#87 Subtraktorkoder
Pipeline #78609 failed
......@@ -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
......@@ -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):
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment