登录界面是根据个人设想简单设计的,效果如下:
代码如下,新建login.kv
<LoginPage>: FloatLayout: canvas.before: Rectangle: size:self.size pos:self.pos source:"image/bg2.png" Image: source:"image/home.png" pos_hint:{'x':0,'y':.3} GridLayout: size_hint:.6,.2 pos_hint:{'x':0.2,'y':.6} cols:1 Label: text:'Sign in' color:255,218,185,1 bold:True font_size:30 font_name:'packages/DroidSansFallback.ttf' GridLayout: