def __init__(self, **kwargs): # inicializace
super(StatsScreen, self).__init__(**kwargs)
self.root.insertStrings.append((self, "STR_STATS"))
self.stats = BoxLayout(orientation='vertical', size_hint=(.77, .83), pos_hint={'center_x': .5, 'center_y': .49})
self.title = BoxLayout(orientation='horizontal')
self.title.add_widget(Label(font_name='font/Roboto-Bold.ttf', text=''))
self.title.add_widget(Label(font_name='font/Roboto-Bold.ttf', text=''))
self.title.add_widget(Label(font_name='font/Roboto-Bold.ttf', text=''))
self.stats.add_widget(self.title)
self.add_widget(self.stats)
self.root.insertStrings.append((self.title.children[2], "STR_TYPE"))
self.root.insertStrings.append((self.title.children[1], "STR_NAME"))
self.root.insertStrings.append((self.title.children[0], "STR_SCORE"))
评论列表
文章目录