Add __getitem__ to ConfigStub.
This commit is contained in:
parent
b3395a1a9c
commit
b11e075047
@ -293,6 +293,9 @@ class ConfigStub(QObject):
|
||||
super().__init__(parent)
|
||||
self.data = {}
|
||||
|
||||
def __getitem__(self, name):
|
||||
return self.section(name)
|
||||
|
||||
def section(self, name):
|
||||
"""Get a section from the config.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user