I draw texts with wxPython on my DC. The position of the text is depending on the width of my frame, in this case the variable "w".
It is calculated in my code like this:
dc.DrawText("Overview", w/2-wt/2, 10)
But now, if the forumlar "w/2-wt/2" is smaller than a certain value I want to set it to a fix value.
I know how to do it with an if than else, but my personal favorit would be to do it inline, to keep my code short an simple.
Is there a way to do this?