Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # *Note Body-----------------------------------------------------------
- body_container = BoxLayout()
- # The ScrollView
- self.body_scroll = ScrollView(size_hint=(1, 1),
- size=(1, 1),
- bar_color=app_settings.text_color,
- bar_pos_y='right', )
- # Body TextInput Widget
- self.notebody_textinput = CustomTextInput(hint_text="Enter note body",
- multiline=True,
- size_hint_y=None,
- padding=(10, 10),
- on_text=self.save)
- # Bind the two widgets to the greater height
- self.body_scroll.bind(height=self.textinput_height)
- self.notebody_textinput.bind(minimum_height=self.textinput_height)
- self.body_scroll.add_widget(self.notebody_textinput)
- body_container.add_widget(self.body_scroll)
- self.note_container.add_widget(body_container)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement