Replies: 5 comments 2 replies
-
But labels aren't changed outside script control? Labels don't change on user input, this doesn't make much sense to me |
Beta Was this translation helpful? Give feedback.
-
I'm talking about the situation where someone elses' code in a script that you don't have access to changes a label in an interface that you wish to override in some way. |
Beta Was this translation helpful? Give feedback.
-
That sounds like a very specific case that I don't think is universal enough, try listening to the |
Beta Was this translation helpful? Give feedback.
-
That's a good idea. I'll try that, but I do think a signal for "text_changed" would be better, however, I have given a very specific case. |
Beta Was this translation helpful? Give feedback.
-
Thanks for that. It worked really well, the "draw" signal connection. I thought I'd tried that option, but anyway... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed that the Label control doesn't have a "text_changed" kind of signal. The bulk of the time, a Label contains static text, however, there are situations where the text for a Label control changes to indicate something. Using a LineEdit that is not "editable" in this situation may not be necessary/doesn't fit the context, etc, and so a Label control is used. The ability to be informed when the text changes could be useful in some situations, eg. when your code didn't directly create the control, and there is just no way of providing for this functionality as Label stands at the moment.
Is this a viable possibility for enhancing/extending the Label class in this way ?
Beta Was this translation helpful? Give feedback.
All reactions