hi @codeman and welcome to the forum,
Looks like you’re expecting output to be a function in the global namespace.
But output is an attribute of the the class Form1 and so you need to access it as an attribute.
self.output()
is what you want here
self is an instance of Form1 and when you do self.output(), self will become the first argument to that function.