I'm trying to make an extension script, at some point when the user clicks a button, a prompt box should appear asking him for some input text, that is then used in the script.
However, when it gets to initiating the prompt box it doesn't show up:
here's the snippet I am working on:
Code: Select all
function createGUI()
main_layout = vlc.dialog("Caption tracker")
-- some GUI widgets
capture_moment_b = main_layout:add_button(" Capture Moment ",capture_moment,1, 4, 1, 1)
end
function capture_moment()
--some logic statements
prompt_caption()
end
function prompt_caption()
-- vlc.msg.dbg("here")
prompt_box = vlc.dialog("Moment's caption")
prompt_text_input = prompt_box:add_text_input("Enter caption!")
confirm_caption_b = prompt_box:add_button("caption recorder",confirm_caption)
prompt_box:show()
end
I'm using VLC 2.1.5
So, is there a way to prompt some user's input ?
also, is there a way to disable text inputs, buttons, other widgets ? it should be a no brainer but , weirdly, I can't find a 'set_enabled' function.