def setLastPathByEvent(_keyPath, _path): from Core import Settings sets = Settings.settingForPaths() sets.setValue(_keyPath, trQVariant(_path))
def getLastPathByEvent(_keyPath, _defaultPath): from Core import Settings sets = Settings.settingForPaths() return str(trStr(sets.value(_keyPath, trQVariant(_defaultPath))))