Button erstellt und er soll auch schalten Button created and he should also swit

More
2 years 10 months ago #286962 by phillc54
The material overlay text is set in a method in qtplasmac_handler.py named get_overlay_text, you could patch that similar to how power_state is patched in qtplasmac_custom.py and just remove the line if self.pmx485Exists:

The label with 'ON' is created as l1 = QLabel('ON'), you could rename it self.some_name and change wherever l1 appears to the new name. Then the text could be set anywhere with self.some_name.setText('NEW TEXT')
doc.qt.io/qtforpython-5/PySide2/QtWidgets/QLabel.html

Please Log in to join the conversation.

More
2 years 10 months ago #286980 by Plasmanfm
Hallo phillc54
I can't handle that, I need an example !!
The label with 'ON' is created as l1 = QLabel('ON'), you could rename it self.some_name and change wherever l1 appears to the new name

King regarde and thankˋs
Juergen

Please Log in to join the conversation.

More
2 years 10 months ago #287002 by phillc54
I modified the last custom code that you posted:
The label is named self.pwmgn_label.
I have also added cut amps to the overlay in a more simple way than I described earlier.
All the changes are commented.
 

Please Log in to join the conversation.

More
2 years 10 months ago #287042 by Plasmanfm
Hallo phillc54
my heartfelt thanks again
I wouldn't have been able to do that with my limited programming knowledge.
yes, everything works also the highlights ( the on..off , and the cut amps )

king regarde and thank´s
Jürgen

Please Log in to join the conversation.

Time to create page: 0.044 seconds
Powered by Kunena Forum