Skip to content
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...
1 parent 09e820a commit ea5a38394cdfba7be4026c8007c3d4ae198bdabc @buchuki committed
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"

0 comments on commit ea5a383

Please sign in to comment.
Something went wrong with that request. Please try again.