【发布时间】:2020-06-19 12:32:25
【问题描述】:
我设计了一个 kivy 表单,它从用户那里获取一些信息..但是没有一个显示出来..请告诉我哪里出错了。
我的代码:
import kivy
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.uix.screenmanager import ScreenManager
from kivy.uix.floatlayout import FloatLayout
class Widgets(Widget):
pass
class YourDiaryApp(App):
def build(self):
return Widgets()
if __name__ == "__main__":
YourDiaryApp().run()
基维码:
<Widgets>:
FloatLayout:
Label:
text:'What do you want me to call you'
TextInput:
id:username
Label:
text:'What do you wanna call me'
TextInput:
id:diaryname
Label:
text:'What will be your password'
TextInput:
id:password
Button:
text:'Complete Setup'
【问题讨论】:
标签: python-3.x user-interface kivy kivy-language