I am just trying to run a class function when my button is clicked. It works when you write it like this (outside of a class):
from PySide2 import QtWidgets w