import kivy
from kivy.app import App
from kivy.uix.gridlayout import GridLayout
from kivy.uix.label import Label
from kivy.uix.textinput import TextInput
from kivy.uix.button import Button
class childApp(GridLayout):
def __int__(self,**kwargs):
#**kwargs is so we can implement alot of arugments for the function
super(childAPP, self).__init__()
#super is used to give access to the methods of a parent class
self.cols = 2
self.add_widget (Label(text = "Player Name"))
self.s_name = TextInput()
self.add_widget (self.s_name)
self.background_color = Color(1,1,1)
class parentApp(App):
def build(self):
return childApp()
if __name__ == "__main__":
parentApp().run()
I am reading the learn-python3 the hard way book online, I am side tracking a little bit trying to just test out something with kivy, I want to make a simple app.
When I run this I get a black screen but no errors.
#let me know if anyone has any tips. Im way in over my head.