0
我正在設置PySide(python)的簡單文本編輯器,我想設置默認字體,比方說,解放單聲道。我對改變字體不感興趣,所以我只需要爲主要對象設置一次字體。我會怎麼做?設置默認字體主窗口pyside
這是我寫來實現主窗口中的代碼:
class MainWindow(QMainWindow):
def __init__(self):
super(MainWindow, self).__init__()
self.initGUI()
def initGUI(self):
self.setWindowTitle("ScribblerSeq")
self.setWindowIcon(QIcon('./icon/appicon.png'))
self.setGeometry(1200, 1800, 800, 600)
self.statusLabel = QLabel('Showing Progress')
self.CreateProgessBar()
self.CreateStatusBar()
self.center()
self.SetupComponents()
self.show()
謝謝