It looks like you're new here. If you want to get involved, click one of these buttons!
I would like to bind a QPushButton to a function,
If I run the simple script bellow, I get a "Button clicked" printed when starting the program and no action when clicking on the pushbutton,
what is it that I am missing?
def test(): print("Button clicked") return dialog = pya.QDialog.new(pya.Application.instance().main_window()) pya.QPushButton("ok....",dialog).clicked = test() dialog.show()