setText("新建") # 方案二new_action = QAction("新建", menu) # 監聽行為的信號new_action.triggered.connect(lambda: print("新建文件")) ...
確定! 回上一頁