Skip to content

Does TCSS support the calc() function or a similar approach? #6004

Answered by edward-jazzhands
Gu-f asked this question in Q&A
Discussion options

You must be logged in to vote

No unfortuantely the calc() function is not supported. If you want to calculate width with code you have to do it with Python in your Textual app. See here: https://textual.textualize.io/styles/width/#python

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@willmcgugan
Comment options

Answer selected by willmcgugan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants