kivyterminal/py/iptv/ui/show_channels.ui
2023-10-17 18:50:28 +08:00

47 lines
817 B
XML

{
"id":"search_result",
"widgettype":"Container",
"options":{
"loader":{
"dataurl":"{{entire_url('./channel_search.dspy')}}",
"rows":60
},
"idField":"id",
"do_scroll_x":false,
"layout":{
"widgettype":"VBox",
"options":{
"size_hint":[1,null]
}
},
"viewer":{
"widgettype":"PressableBoxLayout",
"options":{
"orientation":"horizontal",
"height":"40",
"size_hint_y":null
},
"subwidgets":[
{
"widgettype":"Text",
"options":{
"i18n":false,
"wrap":true,
"halign":"left",
"otext":"{% raw -%}{{tv_name}}{%- endraw %}"
}
}
],
"binds":[
{
"wid":"self",
"event":"on_press",
"actiontype":"script",
"target":"app",
"script":"{% raw -%}self.play('{{url}}'){%- endraw %}"
}
]
}
}
}