Kivy Tutorial 4 : Kivy ListView & ListAdapter
Why Stack Overflow recommends it
Stack Overflow users link it as a worked example of building a list-based Kivy app with a .kv file and a ListAdapter.
Recommended by 0 people across 0 different months, 2017 to 2018.
What it is
Part 4 of Derek Banas's Kivy tutorial series in Python. He builds a student database interface with a toolbar and shows how Kivy's ListView and ListAdapter work, tying it to an earlier database lesson in his learn-to-program series.
What people said
Cites JED · 2017-05 · Stack Overflow · on “Python SQLite3 query concatenating two values”
The only reason I don't want to do split is because you could have names like "Mary Ann" for a first name... which could cause problems. The name "John Doe" comes from a python dictionary. The dictionary is currently set up as a list of full names. I'm sure the dictionary could be modified, but I was trying to follow a embellish upon a tutorial I found for Kivy [this video]
Cites fabocode · 2018-07 · Stack Overflow · on “How could I translate this code to work with a .kv file?”
After try with an example from this tutorial on youtube: Kivy Tutorial 4: Kivy ListView & ListAdapter [this video] This is a working code of what I was trying to accomplish. studentdb.py: from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.properties import ObjectProperty from kivy.uix.listview import ListItemButton from kivy.clock import Clock import subprocess class StudentListButton(ListItemButton): pass class StudentDB(BoxLayout): student_list = ObjectProperty() cnt = 0 list_2 = [] def __init__(self, **kwargs): super(StudentDB, self).__init__(**kwargs) Clock.schedule_interval(self.update_list_data, 1) def update_list_data(self, dt): list_1 = [] index = -1 #out = subpro
Cites Dylan Claytor · 2018-12 · Stack Overflow · on “How do I get rid of extra padding at the top of my Kivy boxlayout?”
I created a box layout in kivy with a few buttons and text input boxes. The boxes that I sized all get pushed to the bottom of the window with a large amount of extra padding on the top of them. How do I get rid of this padding at the top OR how do I get the window to fit to the layout exactly, without a large margin at the top? BalanceGridLayout: id: Balance orientation: "vertical" display: ChekingsEntry, SavingsEntry padding: 10 spacing: 10 BoxLayout: size_hint_y: None height: "40dp" Label: text:"Chekcings" TextInput: id: ChekingsEntry font_size: 18 multiline: False BoxLayout: size_hint_y: None height: "40dp" Button: text: "Deposite" size_hint_x: 15 on_press: Balance.Deposite(0, ChekingsEn