def widget_changed(self, widget, v):
<EOL>if v.type is NUMBER:<EOL><INDENT>self.bot._namespace[v.name] = widget.get_value()<EOL>self.bot._vars[v.name].value = widget.get_value()  <EOL>publish_event(VARIABLE_UPDATED_EVENT, v)  <EOL><DEDENT>elif v.type is BOOLEAN:<EOL><INDENT>self.bot._namespace[v.name] = widget.get_active()<EOL>self.bot._vars[v.name].value = widget.get_active()  <EOL>publish_event(VARIABLE_UPDATED_EVENT, v)  <EOL><DEDENT>elif v.type is TEXT:<EOL><INDENT>self.bot._namespace[v.name] = widget.get_text()<EOL>self.bot._vars[v.name].value = widget.get_text()  <EOL>publish_event(VARIABLE_UPDATED_EVENT, v)<EOL><DEDENT>
Called when a slider is adjusted.