awesome-widgets/old_versions/0.9/contents/code/config.py
arcan1s a195e0524b Pre-release 1.1
+ now you may set network device
  + now you may set to show network device
  + now you may set to show memory in Mb
  * widget consists of several labels
  * configuration interface
  - change order labels (I don't know how to do it)
  - some bugs

Version 1.0 is now available in directory 'old_version'
2013-02-24 06:04:34 +04:00

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)