A Label with border

Widget name: BorderedLabel

This custom widget gives you a label with a choice of border of customizable width and color. One of the uses of this is to create a table like structure for displaying data.

This class inherits from the Label class and hence has all its properties.

Following additional properties are available with the widget which gives its custom characteristics.

  1. border_color - This defines color of the label border.
  2. border_width - This sets the label border width.

Sample Output





Code(GitHub)






Usage

Adding label though python



Adding widget through kv laguage



Popular posts from this blog

Boxlayout with rounded edges and a border