def __init__(self, **kwargs):
super(AboutScreen, self).__init__(**kwargs)
self.layout = FloatLayout()
self.layout.width = Window.width
self.layout.height = Window.height
self.layout.x = Window.width/2 - self.layout.width/2
self.layout.y = Window.height/2 - self.layout.height/2
self.add_widget(self.layout)
self.img = Image(source = self.aboutImage)
self.img.size = (Window.width*1.0, Window.height*1.0)
self.img.pos = (-Window.width*0.0, -Window.height*0.0)
self.img.opacity = 0.4
self.add_widget(self.img)
self.aboutText = Label(text= 'GravBox is the interface application for the Augmented Reality (AR) Sandbox for gravitational dynamics simulations designed and built\n by Dr. Hai Fu\'s Introduction to Astrophysics class during the 2016-2017 academic year and beyond.\n GravBox itself was designed by Zachary Luppen, Erin Maier, and Mason Reed.\n\nAR Sandbox is the result of an NSF-funded project on informal science education for freshwater lake and watershed science developed by the\n UC Davis\' W.M. Keck Center for Active Visualization in the Earth Sciences (KeckCAVES),\n together with the UC Davis Tahoe Environmental Research Center, Lawrence Hall of Science, and ECHO Lake Aquarium and Science Center.')
self.aboutText.pos = (.5, .5)
#self.aboutText.size = self.size
self.add_widget(self.aboutText)
tmpBtn1 = MyButton(text = 'BACK') #start button
tmpBtn1.size_hint = (.1, .1)
tmpBtn1.pos_hint ={'x': 0, 'y': .90}
tmpBtn1.background_color = [.4, .4, .4, 1]
tmpBtn1.bind(on_release = self.backButton) #when the button is released the callback function is called
self.layout.add_widget(tmpBtn1)
评论列表
文章目录