mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 15:37:23 +00:00
New release 1.3.1:
bug fixes
This commit is contained in:
parent
7fd137dbdc
commit
ff0410859b
Binary file not shown.
BIN
pytextmonitor-1.3.1.plasmoid
Normal file
BIN
pytextmonitor-1.3.1.plasmoid
Normal file
Binary file not shown.
@ -178,27 +178,10 @@ class pyTextWidget(plasmascript.Applet):
|
||||
for label in self.dict_orders.keys():
|
||||
exec ('bool = self.' + self.dict_orders[label] + 'Bool')
|
||||
if (bool == 1):
|
||||
self.configpage.sliders[self.dict_orders[label]].setMaximum(len(self.label_order))
|
||||
self.configpage.sliders[self.dict_orders[label]].setValue(self.label_order.find(label)+1)
|
||||
self.configpage.sliders[self.dict_orders[label]].setEnabled(True)
|
||||
self.configpage.lineedits[self.dict_orders[label]].setEnabled(True)
|
||||
self.configpage.checkboxes[self.dict_orders[label]].setCheckState(2)
|
||||
if (self.dict_orders[label] == 'net'):
|
||||
self.configpage.ui.comboBox_numNet.setEnabled(True)
|
||||
elif (self.dict_orders[label] == 'bat'):
|
||||
self.configpage.ui.lineEdit_acdev.setEnabled(True)
|
||||
self.configpage.ui.lineEdit_batdev.setEnabled(True)
|
||||
self.configpage.sliders[self.dict_orders[label]].setValue(self.label_order.find(label)+1)
|
||||
else:
|
||||
self.configpage.sliders[self.dict_orders[label]].setMaximum(len(self.label_order))
|
||||
self.configpage.sliders[self.dict_orders[label]].setValue(1)
|
||||
self.configpage.sliders[self.dict_orders[label]].setDisabled(True)
|
||||
self.configpage.lineedits[self.dict_orders[label]].setDisabled(True)
|
||||
self.configpage.checkboxes[self.dict_orders[label]].setCheckState(0)
|
||||
if (self.dict_orders[label] == 'net'):
|
||||
self.configpage.ui.comboBox_numNet.setDisabled(True)
|
||||
elif (self.dict_orders[label] == 'bat'):
|
||||
self.configpage.ui.lineEdit_acdev.setDisabled(True)
|
||||
self.configpage.ui.lineEdit_batdev.setDisabled(True)
|
||||
if (self.dict_orders[label] == 'net'):
|
||||
self.configpage.ui.comboBox_numNet.setCurrentIndex(int(self.settings.get('num_dev', 0)))
|
||||
self.configpage.lineedits[self.dict_orders[label]].setText(str(self.settings.get(self.dict_orders[label] + 'NonFormat', self.dict_defFormat[self.dict_orders[label]])))
|
||||
@ -553,7 +536,6 @@ class pyTextWidget(plasmascript.Applet):
|
||||
try:
|
||||
self.timer.start()
|
||||
QtCore.QObject.connect(self.timer, QtCore.SIGNAL("timeout()"), self.updateLabel)
|
||||
|
||||
self.updateLabel()
|
||||
self.showTooltip('')
|
||||
except Exception as (strerror):
|
||||
|
@ -9,7 +9,7 @@ X-Plasma-MainScript=code/main.py
|
||||
X-KDE-PluginInfo-Author=Evgeniy Alexeev aka arcanis
|
||||
X-KDE-PluginInfo-Email=esalexeev@gmail.com
|
||||
X-KDE-PluginInfo-Name=py-text-monitor
|
||||
X-KDE-PluginInfo-Version=1.3.0b
|
||||
X-KDE-PluginInfo-Version=1.3.1
|
||||
X-KDE-PluginInfo-Website=http://kde-look.org/
|
||||
X-KDE-PluginInfo-Category=System Information
|
||||
X-KDE-PluginInfo-Depends=
|
||||
|
Loading…
Reference in New Issue
Block a user