Lua Extensions - Disable Widget

Discuss your Lua playlist, album art and interface scripts.
jazzmatazz
New Cone
New Cone
Posts: 2
Joined: 03 Nov 2010 14:07

Lua Extensions - Disable Widget

Postby jazzmatazz » 03 Nov 2010 14:11

Hello,

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

Code: Select all

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Lua Extensions - Disable Widget

Postby Jean-Baptiste Kempf » 04 Nov 2010 01:32

set_enabled is for button, not widget, is it?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

jazzmatazz
New Cone
New Cone
Posts: 2
Joined: 03 Nov 2010 14:07

Re: Lua Extensions - Disable Widget

Postby jazzmatazz » 05 Nov 2010 17:12

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!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Lua Extensions - Disable Widget

Postby Jean-Baptiste Kempf » 06 Nov 2010 20:37

How would react a disabled dialog?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

aur
New Cone
New Cone
Posts: 3
Joined: 24 Aug 2014 18:36

Re: Lua Extensions - Disable Widget

Postby aur » 25 Aug 2014 03:44

Is there even a "disable/enable" function for button or text inputs or other GUI components in VLC's Lua ?

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Lua Extensions - Disable Widget

Postby mederi » 25 Aug 2014 12:14

No disable/enable, only add/delete widgets and show/hide/delete dialog box: https://forum.videolan.org/viewtopic.ph ... 65#p408965


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 15 guests