问题描述
我一直在努力想出一种方法来制作一个简单的字典迭代器,并带有一些过滤器,以便能够访问包含数据库链接的每个特定子目录。 我已经尝试过单独执行每个按钮,但它不起作用...主要是因为我对这种环境有点陌生。
类过滤器(应用程序):
def build(self):
root_widget = BoxLayout(orientation ='vertical')
button_symbols= (
"Precio",'Ubicacion',"Informacion de Envio","Sabores","Dieta Especial","Fotos","Reviews","Puntos","Tiempo de Preparacion","Porciones","Nombre","Adicionales",)
button_grid = GridLayout(cols= 4,size_hint_y= 6)
for symbol in button_symbols:
button_grid.add_widget(Button(text = symbol))
root_widget.add_widget(button_grid)
return root_widget
class MyButton(ButtonBehavior,App):
def __init__(self,**kwargs):
super(MyButton,self).__init__(**kwargs)
def on_state(self,widget,value):
if value == 'down':
prec_lay = GridLayout(cols= 2,size_hint_y=5)
prec_net = "Precio Neto"
prec_tot = "Precio Total"
prec_lay.add_widget(Button(text= prec_org))
return prec_lay
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)