filmov
tv
Python Basics Tutorial Kivy Widget Spacing & Text Alignment
Показать описание
Learn how to use widget spacing and align text for kivy objects for python programming
twitter: @python_basics
#pythonprogramming #pythonbasics #pythonforever
Start:
orientation: 'vertical'
Label:
size_hint_x: 2
BoxLayout:
spacing: 46
height: '30dp'
size_hint_y: None
Label:
width: '274dp'
size_hint_x: None
text: "User Name"
pos_hint_x: 2
halign:'right'
valign:'center'
TextInput:
width: '320dp'
size_hint_x: None
BoxLayout:
height: '30dp'
size_hint_y: None
Label:
size_hint_x: 1
Label:
size_hint_x: 1
text: "Password"
TextInput:
size_hint_x: 2
Label:
BoxLayout:
orientation: 'vertical'
Label:
BoxLayout:
Label:
Button:
width: '150dp'
size_hint_x: None
text: "Login"
Label:
Label:
BoxLayout:
Label:
Button:
text: "?? Create Account ??"
Label:
Label:
twitter: @python_basics
#pythonprogramming #pythonbasics #pythonforever
Start:
orientation: 'vertical'
Label:
size_hint_x: 2
BoxLayout:
spacing: 46
height: '30dp'
size_hint_y: None
Label:
width: '274dp'
size_hint_x: None
text: "User Name"
pos_hint_x: 2
halign:'right'
valign:'center'
TextInput:
width: '320dp'
size_hint_x: None
BoxLayout:
height: '30dp'
size_hint_y: None
Label:
size_hint_x: 1
Label:
size_hint_x: 1
text: "Password"
TextInput:
size_hint_x: 2
Label:
BoxLayout:
orientation: 'vertical'
Label:
BoxLayout:
Label:
Button:
width: '150dp'
size_hint_x: None
text: "Login"
Label:
Label:
BoxLayout:
Label:
Button:
text: "?? Create Account ??"
Label:
Label:
Комментарии