-
Notifications
You must be signed in to change notification settings - Fork 0
/
app-ui.py
32 lines (23 loc) · 816 Bytes
/
app-ui.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import kivy
kivy.require('1.0.6') # replace with your current kivy version !
from kivy.app import App
from kivy.uix.gridlayout import GridLayout
from kivy.uix.label import Label
from kivy.uix.textinput import TextInput
from pygame import mixer
class LoginScreen(GridLayout):
def __init__(self, **kwargs):
super(LoginScreen, self).__init__(**kwargs)
self.cols = 2
self.add_widget(Label(text='User Name'))
self.number = TextInput(multiline=False)
self.add_widget(self.number)
self.add_widget(Label(text=str(self.number)))
print(self.number)
print("songs/happy/"+str(self.number)+".mp3")
class MyApp(App):
def build(self):
return LoginScreen()
#return Label(username)
if __name__ == '__main__':
MyApp().run()