Files
immoinvest/immo.kv
2020-09-15 16:20:30 +02:00

193 lines
5.4 KiB
Plaintext

ImmoScreen:
do_scroll_x: False
do_scroll_y: False if root.fullscreen else (content.height > root.height - dp(16))
AnchorLayout:
size_hint_y: None
height: root.height if root.fullscreen else max(root.height, content.height)
#GridLayout:
BoxLayout:
orientation: 'vertical'
id: content
#cols: 2
spacing: '8dp'
padding: '8dp'
size_hint: (1, 1) if root.fullscreen else (.8, None)
height: self.height if root.fullscreen else self.minimum_height
BoxLayout:
orientation: 'horizontal'
height: '32dp'
spazing: 30
Label
text: 'Name'
height: '32dp'
CTextInput:
name: 'name'
size_hint_y: None
height: '32dp'
multiline: False
focus: True
text: 'Kirschenstr. 27'
on_text: app.on_text(args)
BoxLayout:
orientation: 'horizontal'
height: '32dp'
Label
text: 'Adresse'
height: '32dp'
CTextInput:
name: 'address'
size_hint_y: None
height: '32dp'
text: 'Kirschenstr. 27'
on_text: app.on_text(args)
Label
text: 'Baujahr'
CTextInput:
name: 'year'
size_hint_y: None
height: '32dp'
text: '23'
input_filter: 'int'
on_text: app.on_text(args)
Label
text: 'Kaufpreis'
CTextInput:
id: price
name: 'price'
size_hint_y: None
height: '32dp'
text: '23'
input_filter: 'int'
on_text: app.on_text(args)
Label
text: 'davon Grundstück (in Euro oder % vom Kaufpreis)'
CTextInput:
name: 'terrain_cost'
size_hint_y: None
height: '32dp'
text: '23'
input_filter: 'int'
focus: True
on_text: app.on_text(args)
Label
text: 'davon Sanierungskosten, etc.'
CTextInput:
name: 'other_cost'
size_hint_y: None
height: '32dp'
text: '23'
input_filter: 'int'
focus: True
on_text: app.on_text(args)
Label
text: 'Kaufnebenkosten (jeweils in %)'
Label
text: 'Notar'
CTextInput:
name: 'cost_solicitor'
size_hint_y: None
height: '32dp'
text: '23'
input_filter: 'float'
on_text: app.on_text(args)
Label
text: 'Grundbuch'
CTextInput:
name: 'cost_register'
size_hint_y: None
height: '32dp'
text: '23'
input_filter: 'float'
on_text: app.on_text(args)
Label
text: 'Grunderwerbssteur'
CTextInput:
id: cost_tax
name: 'cost_tax'
size_hint_y: None
height: '32dp'
text: '23'
input_filter: 'float'
on_text: app.on_text(args)
Label
text: 'Provision'
CTextInput:
id: cost_provision
name: 'cost_provision'
size_hint_y: None
height: '32dp'
text: '23'
input_filter: 'float'
on_text: app.on_text(args)
Label
text: 'Fläche (qm)'
CTextInput:
id: surface
name: 'surface'
size_hint_y: None
height: '32dp'
text: '23'
input_filter: 'float'
on_text: app.on_text(args)
Label
text: 'pro qm'
CTextInput:
id: per_qm
size_hint_y: None
height: '32dp'
#disabled: True
input_filter: 'float'
text: 'Disabled textinput'
Label
text: 'Mieteinnahme (pro Jahr / Monat)'
CTextInput:
size_hint_y: None
height: '32dp'
text: '23'
input_filter: 'float'
on_text: app.on_text(args)
CTextInput:
size_hint_y: None
height: '32dp'
text: '23'
input_filter: 'float'
on_text: app.on_text(args)
Button:
size_hint_y: None
height: '48dp'
text: 'Hinzufügen'
Button:
size_hint_y: None
height: '48dp'
text: 'Button disabled'
disabled: True
<CTextInput@TextInput>
on_focus:
screen = self.parent.parent.parent.parent
#if screen.parent: screen.focused = self