mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 23:47:20 +00:00
+ 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'
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) |