Add __getitem__ to ConfigStub.

This commit is contained in:
Florian Bruhin 2015-08-19 20:39:48 +02:00
parent b3395a1a9c
commit b11e075047

View File

@ -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.