You can set the
height of widgets in guizero.
Widgets are sized by pixels or characters depending on the widget and what it contains.
Some widgets size can also be set to
"fill" where it will use up all of the available space.
from guizero import App, PushButton, Slider, ListBox app = App() # a PushButton's size is noted in characters button = PushButton(app, width=30, height=5) # a Slider's size is noted in pixels slider = Slider(app, width=300, height=30) # some widgets, such as ListBox can also be told to fill all the available space listbox = ListBox(app, width="fill", height="fill") app.display()
|Widget||Characters or Pixels||Fill||Notes|
|Box||Pixels||Yes||If a Box is sized in Pixels, both width and height must be specified.|
|ButtonGroup||Characters||Yes||The height of a ButtonGroup must divide by the number of buttons in it|
|Picture||Pixels||No||See Images for more information|
|PushButton with image||Pixels||No||PushButton's which have images are sized in pixels|
|TextBox||Characters||Yes||Only a TextBox's width can be set|