def fix_channelbox_font():
from PyQt4 import QtCore, QtGui
import maya.cmds as cmds
import maya.OpenMayaUI as mui
import sip
ptr = mui.MQtUtil.findControl('mainChannelBox')
channelBox = sip.wrapinstance(long(ptr), QtCore.QObject)
# styleSheet = '''
# QWidget {
# /* font-family: "Courier New"; */
# font: normal %spx;
# }
# ''' % '16'
# channelBox.setStyleSheet(styleSheet)
channelBox.verticalHeader().setDefaultSectionSize(18)
评论列表
文章目录