mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-06 02:15:52 +00:00
Prerelease 1.7.2
This commit is contained in:
@ -182,8 +182,6 @@ class pyTextWidget(plasmascript.Applet):
|
||||
self.cpuText()
|
||||
if (self.cpuclockBool > 0):
|
||||
self.cpuclockText()
|
||||
if (self.customBool > 0):
|
||||
self.getCustom()
|
||||
if (self.hddBool > 0):
|
||||
self.mountText()
|
||||
if ((self.memBool > 0) and (self.memInMb == False)):
|
||||
@ -312,15 +310,6 @@ class pyTextWidget(plasmascript.Applet):
|
||||
self.label_temp.setText(text)
|
||||
|
||||
|
||||
def getCustom(self):
|
||||
"""function to get output from custom command"""
|
||||
commandOut = commands.getoutput(self.custom_command)
|
||||
line = self.customFormat
|
||||
line = line.split('$custom')[0] + commandOut + line.split('$custom')[1]
|
||||
text = self.formatLine.split('$LINE')[0] + line + self.formatLine.split('$LINE')[1]
|
||||
self.label_custom.setText(text)
|
||||
|
||||
|
||||
@pyqtSignature("dataUpdated(const QString &, const Plasma::DataEngine::Data &)")
|
||||
def dataUpdated(self, sourceName, data):
|
||||
"""function to update label"""
|
||||
|
Reference in New Issue
Block a user