1
from settings import settings_form
class B():
def __init__(self):
settings_obj = settings_form()
self.toolButton.connect(settings_obj.show())
這裏我試圖在點擊toolbutton
時打開設置表單。我收到以下錯誤:如何在PyQt中點擊QToolButton時打開另一個表單?
TypeError: argument 1 of QObject.connect() has an invalid type
能否請你分享打開的設置形式,當我點擊toolbutton
的正確途徑。
感謝..the新的方式工作.. –
@Juna ..很高興能有幫助:) –