2018-07-18 14:49:39 +02:00
|
|
|
<Navigator>:
|
|
|
|
id: nav_drawer
|
|
|
|
NavigationDrawerIconButton:
|
|
|
|
Button:
|
|
|
|
id: btn
|
|
|
|
background_color:app.theme_cls.primary_dark
|
|
|
|
text: 'BM-2cSvewtJw8o8eqcFzmLeXHza4BVsRsirKk'
|
|
|
|
on_release: dropdown.open(self)
|
|
|
|
pos_hint: {'x': 0, 'y': 0.3}
|
|
|
|
size_hint_y: None
|
2018-07-07 14:11:58 +02:00
|
|
|
height: '48dp'
|
|
|
|
|
2018-07-18 14:49:39 +02:00
|
|
|
DropDown:
|
2018-07-07 14:11:58 +02:00
|
|
|
|
2018-07-18 14:49:39 +02:00
|
|
|
id: dropdown
|
|
|
|
on_parent: self.dismiss()
|
|
|
|
on_select: btn.text = '{}'.format(args[1])
|
|
|
|
Button:
|
|
|
|
background_color:app.theme_cls.primary_dark
|
|
|
|
text: 'BM-2cSvewtJw8o8eqcFzmLeXHza4BVsRsirKk'
|
|
|
|
size_hint_y: None
|
|
|
|
height: '48dp'
|
|
|
|
on_release: dropdown.select('BM-2cSvewtJw8o8eqcFzmLeXHza4BVsRsirKk')
|
|
|
|
on_release: app.root.ids.scr_mngr.current = 'dialog'
|
2018-07-03 11:08:02 +02:00
|
|
|
|
2018-07-18 14:49:39 +02:00
|
|
|
Button:
|
|
|
|
background_color:app.theme_cls.primary_dark
|
|
|
|
text: 'BM-2cSvewtJw8o8eqcFzmLeXHza4BVsRsirKk'
|
|
|
|
size_hint_y: None
|
|
|
|
height: '48dp'
|
|
|
|
on_release: dropdown.select('BM-2cSvewtJw8o8eqcFzmLeXHza4BVsRsirKk')
|
|
|
|
on_release: app.root.ids.scr_mngr.current = 'button'
|
|
|
|
|
|
|
|
NavigationDrawerIconButton:
|
|
|
|
icon: 'email'
|
|
|
|
text: "inbox"
|
|
|
|
on_release: app.root.ids.scr_mngr.current = 'inbox'
|
|
|
|
NavigationDrawerIconButton:
|
|
|
|
icon: 'email'
|
|
|
|
text: "sent"
|
|
|
|
on_release: app.root.ids.scr_mngr.current = 'sent'
|
|
|
|
NavigationDrawerIconButton:
|
|
|
|
icon: 'email'
|
|
|
|
text: "trash"
|
|
|
|
on_release: app.root.ids.scr_mngr.current = 'trash'
|
|
|
|
NavigationDrawerIconButton:
|
|
|
|
icon: 'email'
|
|
|
|
text: "dialog"
|
|
|
|
on_release: app.root.ids.scr_mngr.current = 'dialog'
|
|
|
|
NavigationDrawerIconButton:
|
|
|
|
icon: 'email'
|
|
|
|
text: "test"
|
|
|
|
on_release: app.root.ids.scr_mngr.current = 'test'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BoxLayout:
|
|
|
|
orientation: 'vertical'
|
|
|
|
Toolbar:
|
|
|
|
id: toolbar
|
|
|
|
title: 'PyBitmessage'
|
|
|
|
background_color: app.theme_cls.primary_dark
|
|
|
|
left_action_items: [['menu', lambda x: app.nav_drawer.toggle()]]
|
2018-07-07 14:11:58 +02:00
|
|
|
Button:
|
2018-07-18 14:49:39 +02:00
|
|
|
text:"EXIT"
|
2018-07-07 14:11:58 +02:00
|
|
|
color: 0,0,0,1
|
|
|
|
background_color: (0,0,0,0)
|
2018-07-18 14:49:39 +02:00
|
|
|
size_hint_y: 0.1
|
2018-07-07 14:11:58 +02:00
|
|
|
size_hint_x: 0.1
|
2018-07-18 14:49:39 +02:00
|
|
|
pos_hint: {'x': 0.8, 'y':0.4}
|
|
|
|
on_press: app.say_exit()
|
|
|
|
|
|
|
|
|
|
|
|
ScreenManager:
|
|
|
|
id: scr_mngr
|
|
|
|
Inbox:
|
|
|
|
id:sc1
|
|
|
|
Sent:
|
|
|
|
id:sc2
|
|
|
|
Trash:
|
|
|
|
id:sc3
|
|
|
|
Dialog:
|
|
|
|
id:sc4
|
|
|
|
Test:
|
|
|
|
id:sc5
|
|
|
|
Create:
|
|
|
|
id:sc6
|
|
|
|
|
|
|
|
Button:
|
|
|
|
height:100
|
|
|
|
size_hint_y: 0.1
|
|
|
|
size_hint_x: 0.1
|
|
|
|
pos_hint: {'x': 0.85, 'y': 0.5}
|
|
|
|
background_color: (0,0,0,0)
|
|
|
|
on_press: scr_mngr.current = 'create'
|
|
|
|
Image:
|
|
|
|
source: 'images/plus.png'
|
|
|
|
y: self.parent.y
|
|
|
|
x: self.parent.x + self.parent.width - 50
|
|
|
|
size: 70, 70
|
|
|
|
<Inbox>:
|
|
|
|
name: 'inbox'
|
|
|
|
|
|
|
|
<Sent>:
|
|
|
|
name: 'sent'
|
|
|
|
|
|
|
|
<Trash>:
|
|
|
|
name: 'trash'
|
2018-07-07 14:11:58 +02:00
|
|
|
Label:
|
2018-07-18 14:49:39 +02:00
|
|
|
text:"I am in card"
|
|
|
|
color: 0,0,0,1
|
|
|
|
<Dialog>:
|
|
|
|
name: 'dialog'
|
2018-07-07 14:11:58 +02:00
|
|
|
Label:
|
2018-07-18 14:49:39 +02:00
|
|
|
text:"I have a good dialox box"
|
|
|
|
color: 0,0,0,1
|
|
|
|
<Test>:
|
|
|
|
name: 'test'
|
2018-07-07 14:11:58 +02:00
|
|
|
Label:
|
2018-07-18 14:49:39 +02:00
|
|
|
text:"a rapid data env"
|
|
|
|
color: 0,0,0,1
|
|
|
|
|
|
|
|
<Create>:
|
|
|
|
name: 'create'
|
|
|
|
GridLayout:
|
|
|
|
rows: 5
|
|
|
|
cols: 1
|
|
|
|
padding: 100,100,100,100
|
|
|
|
spacing: 50
|
|
|
|
BoxLayout:
|
|
|
|
size_hint_y: None
|
|
|
|
height: '32dp'
|
2018-07-07 14:11:58 +02:00
|
|
|
Label:
|
2018-07-18 14:49:39 +02:00
|
|
|
text: 'FROM'
|
2018-07-07 14:11:58 +02:00
|
|
|
color: 0,0,0,1
|
|
|
|
TextInput:
|
2018-07-18 14:49:39 +02:00
|
|
|
hint_text: 'email'
|
2018-07-07 14:11:58 +02:00
|
|
|
|
2018-07-18 14:49:39 +02:00
|
|
|
BoxLayout:
|
|
|
|
size_hint_y: None
|
|
|
|
height: '32dp'
|
2018-07-07 14:11:58 +02:00
|
|
|
Label:
|
2018-07-18 14:49:39 +02:00
|
|
|
text: 'TO'
|
2018-07-07 14:11:58 +02:00
|
|
|
color: 0,0,0,1
|
|
|
|
TextInput:
|
2018-07-18 14:49:39 +02:00
|
|
|
hint_text: 'email'
|
2018-07-07 14:11:58 +02:00
|
|
|
|
2018-07-18 14:49:39 +02:00
|
|
|
BoxLayout:
|
|
|
|
size_hint_y: None
|
|
|
|
height: '32dp'
|
2018-07-07 14:11:58 +02:00
|
|
|
Label:
|
2018-07-18 14:49:39 +02:00
|
|
|
text: 'SUBJECT'
|
2018-07-07 14:11:58 +02:00
|
|
|
color: 0,0,0,1
|
2018-07-18 14:49:39 +02:00
|
|
|
TextInput:
|
|
|
|
hint_text: 'subject'
|
2018-07-07 14:11:58 +02:00
|
|
|
|
2018-07-18 14:49:39 +02:00
|
|
|
BoxLayout:
|
|
|
|
size_hint_y: None
|
|
|
|
height: '32dp'
|
|
|
|
Label:
|
|
|
|
text: 'BODY'
|
|
|
|
color: 0,0,0,1
|
2018-07-07 14:11:58 +02:00
|
|
|
TextInput:
|
|
|
|
id: msg
|
|
|
|
multiline:True
|
|
|
|
size_hint: 1,2
|
2018-07-03 11:08:02 +02:00
|
|
|
|
2018-07-18 14:49:39 +02:00
|
|
|
Button:
|
|
|
|
text: 'SEND'
|
|
|
|
size_hint_y: 0.1
|
|
|
|
size_hint_x: 0.3
|
|
|
|
height: '32dp'
|
|
|
|
pos_hint: {'x': .5, 'y': 0.1}
|