User Guide
Lua Support in Wireshark
175
• Cannot be called for something not a TextWindow
• Expired TextWindow
11.7.2.8. textwindow:set_editable([editable])
Make this window editable
11.7.2.8.1. Arguments
editable (optional) A boolean flag, defaults to true
11.7.2.8.2. Returns
The TextWindow object.
11.7.2.8.3. Errors
• GUI not available
• Cannot be called for something not a TextWindow
• Expired TextWindow
11.7.2.9. textwindow:add_button(label, function)
11.7.2.9.1. Arguments
label The label of the button
function The function to be called when clicked
11.7.2.9.2. Returns
The TextWindow object.
11.7.2.9.3. Errors
• GUI not available
• Cannot be called for something not a TextWindow
• Expired TextWindow
11.7.3. Non Method Functions
11.7.3.1. gui_enabled()
Checks whether the GUI facility is enabled.
11.7.3.1.1. Returns
A boolean: true if it is enabled, false if it isn't.