BTN command output is lost when using Form()
This is based on the docstring example for YAD.Form()
$ yad --version
0.27.0
Steps to reproduce
- Run code below
- Click OK with green tick
- Click other OK
Expected output
Field would be "hi"
{0: 'hi', 'rc': 0}
Actual output
Empty string
{0: '', 'rc': 0}
from yad import YAD
yad = YAD()
x1 = (
("BTN",("gtk-ok","","OK"),"echo hi"),
)
y1 = yad.Form(fields=x1)
print(y1)