Advertisement

PyQt5:QFontDialog(21)字体对话框

阅读量:

研读《PyQt4入门指南 PDF中文版.pdf》过程中所整理的学习记录

字体对话框是一种用于调整字体样式的交互式界面组件。

复制代码
 <span style="font-size:12px;">#!/usr/bin/python

    
 # fontdialog.py
    
  
    
 from PyQt5.QtWidgets import QApplication, QPushButton, QFontDialog,  QHBoxLayout, QLabel
    
 from PyQt5 import QtWidgets
    
 from PyQt5.QtCore import Qt
    
  
    
 class FontDialog(QtWidgets.QWidget):
    
     def __init__(self, parent= None):

全部评论 (0)

还没有任何评论哟~