码迷,mamicode.com
首页 > 其他好文 > 详细

2016/7/18 22:20:58 PyQT5 设置控件颜色(例子)

时间:2016-07-20 13:10:36      阅读:266      评论:0      收藏:0      [点我收藏+]

标签:

1. 一种样式
  1. self.Mgmt016.setStyleSheet(‘‘‘background-color:rgb(255, 132, 139);border-radius: 5px; color: rgb(255, 255, 255);‘‘‘)
  1. background-color:rgb(255, 132, 139); 控件颜色
  2. border-radius: 3px; 圆角效果
  3. color: rgb(255, 255, 255); 字体颜色
效果如下: 
技术分享
2. 第二种方式
  1. self.Mgmt017.setStyleSheet(‘‘‘background-color:blue;‘‘‘)
效果如下:
技术分享
 




2016/7/18 22:20:58 PyQT5 设置控件颜色(例子)

标签:

原文地址:http://www.cnblogs.com/topshooter/p/5687862.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!