kivy learning ------ kivy.uix

--------- kivy.uix.label (tag part)

  •  label size and text content : By default, the size of the label text and text do not affect each other, in order to control the size of the adjustment must be specified text_size constrained text and / or bindingsize to texture_size with text grow together .

    (The size of the label to text:
    ,
    the text label in a specified width to the height of cut and wrap:
  • Text alignment and packaging: in the label have halign and valign attributes to control the alignment of the text. In order to property align into effect, should be set text_size to specify the size of the bounding box of the text alignment. For example:

    where, about halign property text alignment (default is left), the lower position in the text valign .
  • Tab set the background color:
  • of water:

 

Guess you like

Origin www.cnblogs.com/suyun1219/p/11504685.html