Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.13 KB | None | 0 0
  1. # *Note Body-----------------------------------------------------------
  2.         body_container = BoxLayout()
  3.  
  4.         #       The ScrollView
  5.         self.body_scroll = ScrollView(size_hint=(1, 1),
  6.                                       size=(1, 1),
  7.                                       bar_color=app_settings.text_color,
  8.                                       bar_pos_y='right', )
  9.  
  10.         #       Body TextInput Widget
  11.         self.notebody_textinput = CustomTextInput(hint_text="Enter note body",
  12.                                                   multiline=True,
  13.                                                   size_hint_y=None,
  14.                                                   padding=(10, 10),
  15.                                                   on_text=self.save)
  16.  
  17.         # Bind the two widgets to the greater height
  18.         self.body_scroll.bind(height=self.textinput_height)
  19.         self.notebody_textinput.bind(minimum_height=self.textinput_height)
  20.  
  21.         self.body_scroll.add_widget(self.notebody_textinput)
  22.  
  23.         body_container.add_widget(self.body_scroll)
  24.  
  25.         self.note_container.add_widget(body_container)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement