KIVY and MYSQL

29 views
Skip to first unread message

3cite 3cite

unread,
Sep 24, 2022, 6:20:33 AM9/24/22
to Kivy users support
I am able to connect to mysql in kivy but how can display the data i have inserted into the database in kivy.......any suggestion will be appreciated.............especially a simple example...please do help

Elliot Garbus

unread,
Sep 24, 2022, 5:22:35 PM9/24/22
to kivy-...@googlegroups.com

Here is a suggestion:

Create a widget based on BoxLayout to create a single “line” of data from your database.

Use RecycleView to display these lines of data.

 

Give this a try, if you need more help, share an example of a row of your data, and the code you have tried as a minimal executable example.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/fb0d3895-124c-4f35-aac7-2d8eb6efefdfn%40googlegroups.com.

 

hoek rand

unread,
Sep 28, 2022, 10:12:05 AM9/28/22
to Kivy users support
As ElliotG mentioned, using RecycleView is the way to go.
I am using sqlachemy as db backbone en use a RecycleView to show all the data from my db.
Not sure if this is best practice, but I hope it helps you to get you on your way.


Op zaterdag 24 september 2022 om 23:22:35 UTC+2 schreef ElliotG:
Reply all
Reply to author
Forward
0 new messages