def menu_button(self, title, action, diameter, center):
btn = ui.Button(
title=title,
action=action,
tint_color='white',
background_color=self.menu_color
)
btn.width = btn.height = diameter
btn.corner_radius = diameter/2
btn.center = center
self.menu.add_subview(btn)
# def menu_player_field(self, action, name, text, corner, width):
# (x,y) = corner
# fld = ui.TextField(
# action=action,
# name=name,
# text=text,
# tint_color='white',
# corner_radius=5,
# background_color=self.menu_color,
# frame=(x, y, width, 30)
# )
# self.menu.add_subview(fld)
评论列表
文章目录