Page 1 of 1

Lua Extensions - Disable Widget

Posted: 03 Nov 2010 14:11
by jazzmatazz
Hello,

My question is simple: Can we disable a Dialog Widget?

Code: Select all

button:set_enabled(false)
Unfortunately this code doesn't work :)

Re: Lua Extensions - Disable Widget

Posted: 04 Nov 2010 01:32
by Jean-Baptiste Kempf
set_enabled is for button, not widget, is it?

Re: Lua Extensions - Disable Widget

Posted: 05 Nov 2010 17:12
by jazzmatazz
essentially yes, but it can be to use for text_input, checkbox, dropdown, list...
Overall, all QT widgets has this method, VLC GUI is built in QT no? :)
widgetLUA:set_enabled(...) => widgetQT::setEnable(...)
And let's go :)

PS: Congratulation and thanks for your good VLC extension's implementation model!

Re: Lua Extensions - Disable Widget

Posted: 06 Nov 2010 20:37
by Jean-Baptiste Kempf
How would react a disabled dialog?

Re: Lua Extensions - Disable Widget

Posted: 25 Aug 2014 03:44
by aur
Is there even a "disable/enable" function for button or text inputs or other GUI components in VLC's Lua ?

Re: Lua Extensions - Disable Widget

Posted: 25 Aug 2014 12:14
by mederi
No disable/enable, only add/delete widgets and show/hide/delete dialog box: https://forum.videolan.org/viewtopic.ph ... 65#p408965