setWindowIcon (QtGui.QIcon("python.jpg")). 它將視窗圖示設定為 python.jpg 。 setWindowIcon 方法的引數是來自 QtGui 模組的 QIcon 物件。
確定! 回上一頁