On Kivy
Kivy如何使用MySQL增加对象
示例代码
import MySQLdb
connector = MySQLdb.connect(host="localhost", db="sdb", user="msusr",
passwd="mspsw", charset="utf8")
cursor = connector.cursor()
cursor.execute("select * from test_table order by code")
result = cursor.fetchall()
for row in result:
#I don't know from here
#How should i write code with class
cursor.close()
connector.close()
kivy文件在这里
<WelcomeScreen>:
Button:
text: ""
color: 0, 0, 0, 1
三江源