mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-25 16:07:19 +00:00
16 lines
356 B
Python
16 lines
356 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from util import *
|
|
|
|
|
|
|
|
class Config():
|
|
def __init__(self, applet):
|
|
self.applet = applet
|
|
self.config = self.applet.globalConfig()
|
|
|
|
def get(self, key, default = ''):
|
|
return self.config.readEntry(key, default).toString()
|
|
|
|
def set(self, key, value):
|
|
self.config.writeEntry(key, value) |