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

More
01 Dec 2023 11:28 #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 or Create an account to join the conversation.

More
01 Dec 2023 17:48 #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 or Create an account to join the conversation.

More
01 Dec 2023 23:36 #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.
 
Attachments:

Please Log in or Create an account to join the conversation.

More
02 Dec 2023 18:36 #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
The following user(s) said Thank You: phillc54

Please Log in or Create an account to join the conversation.

Moderators: snowgoer540
Time to create page: 0.213 seconds
Powered by Kunena Forum