You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The need to display text on a screen is obviously common, and often Static will be used. The problem here is that if you want to select all your "labels" in a query, or style them all in a particular way, you can't just style Static as it is an ancestor of some other widgets too.
So... perhaps let's add a Label widget that simply inherits from Static to help separate out text from other forms of widgets?
The text was updated successfully, but these errors were encountered:
For the moment this does nothing more than inherit from a Static; but what
it does do is make it easier for someone to add text to their application
and to style it by styling all the Labels. Before now it would be common to
use a Static but if you try and style (or query) all Statics, you'd also get
things like Buttons, which inherit from Static.
See Textualize#1190
The need to display text on a screen is obviously common, and often
Static
will be used. The problem here is that if you want to select all your "labels" in a query, or style them all in a particular way, you can't just styleStatic
as it is an ancestor of some other widgets too.So... perhaps let's add a
Label
widget that simply inherits fromStatic
to help separate out text from other forms of widgets?The text was updated successfully, but these errors were encountered: