This repository has been archived by the owner on Mar 1, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
bitty.kv
78 lines (66 loc) · 1.83 KB
/
bitty.kv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#:kivy 1.1.0
Root:
chat: chat
scrollback: scrollback
do_default_tab: False
TabbedPanelItem:
text: 'Status'
BoxLayout:
orientation: 'vertical'
BoxLayout:
size_hint_y: None
height: 30
Button:
text: 'Connect'
on_release: root.show_connect()
TextInput:
id: scrollback
text: ''
TextInput:
id: chat
size_hint_y: None
multiline: False
height: 30
on_text_validate: root.send_from_inputbox()
focus: True
<ConnectDialog>:
BoxLayout:
size: root.size
pos: root.pos
orientation: 'vertical'
GridLayout:
cols: 2
row_default_height: "30dp"
row_force_default: True
Label:
text: 'Server'
TextInput:
id: server
multiline: False
text: '10bit.danopia.net'
Label:
text: 'Port'
TextInput:
id: port
multiline: False
text: '10817'
Label:
text: 'Username'
TextInput:
id: username
multiline: False
Label:
text: 'Password'
TextInput:
id: password
multiline: False
password: True
BoxLayout:
size_hint_y: None
height: 30
Button:
text: "Cancel"
on_release: root.cancel()
Button:
text: "Connect"
on_release: root.connect(server.text, port.text, username.text, password.text)