Widgets#

Button#

The Button widget provides a command button. The command button, is perhaps the most commonly used widget in any graphical user interface. Click a button to execute a command. It is rectangular and typically displays a text label describing its action.

Button widget displaying command action interface

Image#

The Image widget displays an image. The source of the image is specified as a URL using the source property. By default, specifying the width and height of the item causes the image to be scaled to that size. This behavior can be changed by setting the fill_mode property, allowing the image to be stretched or scaled instead. The property alignment controls where to align the scaled image.

Image widget displaying scaled URL-sourced image

Spacer#

The Spacer class provides blank space. Normally, it’s used to place other widgets correctly in a layout.

Here is an example of a Spacer between two Buttons.

Spacer widget providing blank space layout

Label#

The Label widget provides a text to display. Label is used for displaying text. No additional to Widget user interaction functionality is provided.

Here is an example of a Label between two Buttons.

Label widget displaying text content

Line#

This widget will create a colored 2 dimensional Line.

Line widget creating colored 2D geometric line

Rectangle#

This widget will create a colored geometric Rectangle.

Rectangle widget creating colored geometric rectangle

Circle#

This widget will create a colored geometric Circle.

Circle widget creating colored geometric circle

Triangle#

This widget will create a colored geometric Triangle.

Triangle widget creating colored geometric triangle