mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-13 22:05:48 +00:00
added scrollbar
added AC configuration
This commit is contained in:
@ -296,12 +296,12 @@ class pyTextWidget(plasmascript.Applet):
|
||||
try:
|
||||
with open (self.ptm['vars']['adv']['acDev'], 'r') as batFile:
|
||||
bat = batFile.readline()[:-1]
|
||||
if (bat == '1'):
|
||||
bat = "(*)"
|
||||
if (bat == "1"):
|
||||
bat = self.ptm['vars']['adv']['acOnline']
|
||||
else:
|
||||
bat = "( )"
|
||||
bat = self.ptm['vars']['adv']['acOffline']
|
||||
except:
|
||||
bat = "(?)"
|
||||
bat = "N\\A"
|
||||
line = line.split('$ac')[0] + bat + line.split('$ac')[1]
|
||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||
self.setText("bat", text)
|
||||
|
Reference in New Issue
Block a user