How to define the vertical width in Python?

Answered in parallel thread.