added a comment
This commit is contained in:
@ -16,7 +16,7 @@ class DictListItem(QListWidgetItem):
|
||||
|
||||
_sort_key = None
|
||||
|
||||
@classmethod
|
||||
@classmethod # need to update the class so that all instances are always consistent
|
||||
def set_sort_key(cls, sk):
|
||||
cls._sort_key = staticmethod(sk) # need to attach as staticmethod, otherwise self is inserted as first argument
|
||||
|
||||
|
Reference in New Issue
Block a user