projects
/
drlaunch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added logging capability if /tmp/drlaunch.log is present.
[drlaunch]
/
src
/
config.py
diff --git
a/src/config.py
b/src/config.py
index
2ea4256
..
91e0a2e
100755
(executable)
--- a/
src/config.py
+++ b/
src/config.py
@@
-66,6
+66,7
@@
class Config:
self.indiv=True
self.longpress=False
self.animate=True
self.indiv=True
self.longpress=False
self.animate=True
+ self.nobg=False
self.maxsz=(8,4)
self.maxsz=(8,4)
@@
-99,6
+100,12
@@
class Config:
def getAnimate(self):
return(self.animate)
def getAnimate(self):
return(self.animate)
+ def setNoBg(self, nobg):
+ self.nobg=nobg
+
+ def getNoBg(self):
+ return(self.nobg)
+
def setApps(self, aps):
""" apps is a dictionary of (x,y)=>appname """
self.apps=aps
def setApps(self, aps):
""" apps is a dictionary of (x,y)=>appname """
self.apps=aps
@@
-122,7
+129,7
@@
class Config:
if dt==None:
dt={
if dt==None:
dt={
- 'version': 4,
+ 'version': 5,
'data': {},
}
'data': {},
}
@@
-132,6
+139,7
@@
class Config:
'indiv': self.getIndiv(),
'longpress': self.getLongpress(),
'animate': self.getAnimate(),
'indiv': self.getIndiv(),
'longpress': self.getLongpress(),
'animate': self.getAnimate(),
+ 'nobg': self.getNoBg(),
}
fn=get_config_fn()
}
fn=get_config_fn()
@@
-175,6
+183,14
@@
class Config:
return(dt)
return(dt)
+ def parse_v4(self, dt):
+ dt['version']=5
+
+ for i in dt['data']:
+ dt['data'][i]['nobg']=False
+
+ return(dt)
+
def load_all(self):
fn=get_config_fn()
def load_all(self):
fn=get_config_fn()
@@
-195,6
+211,9
@@
class Config:
if ret['version']==3:
ret=parse_v3(ret)
if ret['version']==3:
ret=parse_v3(ret)
+
+ if ret['version']==4:
+ ret=parse_v4(ret)
except:
ret=None
except:
ret=None
@@
-217,6
+236,7
@@
class Config:
self.setIndiv(dt['indiv'])
self.setLongpress(dt['longpress'])
self.setAnimate(dt['animate'])
self.setIndiv(dt['indiv'])
self.setLongpress(dt['longpress'])
self.setAnimate(dt['animate'])
+ self.setNoBg(dt['nobg'])
def check_init(self):
if self.id==None:
def check_init(self):
if self.id==None: