Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Example 6: Render an accounts details form.

We add some meaningful labels and text input boxes, as well as a login button. Running this example renders a form that doesn't do anything and that looks pretty ugly due to the default behavior of the various layouts.
  • Loading branch information...
commit ea5a38394cdfba7be4026c8007c3d4ae198bdabc 1 parent 09e820a
@buchuki authored
Showing with 15 additions and 4 deletions.
  1. +15 −4 orkiv/orkiv.kv
View
19 orkiv/orkiv.kv
@@ -1,7 +1,18 @@
AccountDetailsForm:
<AccountDetailsForm>:
- Label:
- text: 'Hello World'
- Label:
- text: 'Another World'
+ orientation: "vertical"
+ GridLayout:
+ cols: 2
+ Label:
+ text: "Server"
+ TextInput:
+ Label:
+ text: "Username"
+ TextInput:
+ Label:
+ text: "Password"
+ TextInput:
+ password: True
+ Button:
+ text: "Login"
Please sign in to comment.
Something went wrong with that request. Please try again.