首页 > 其他 > 详细

pyqt在控件上创建图片

时间:2015-09-19 22:51:31      阅读:449      评论:0      收藏:0      [点我收藏+]

# text=self.UserName.text()
        # if  text.isEmpty():
        #     imgpath=r‘Image/lineclose.png‘
        #     self.ButtonShowKeyboard = QToolButton(self)
        #     self.ButtonShowKeyboard.setCursor(Qt.PointingHandCursor)
        #     self.ButtonShowKeyboard.setFocusPolicy(Qt.NoFocus)
        #     self.ButtonShowKeyboard.setIcon(QIcon(imgpath))
        #     self.ButtonShowKeyboard.setStyleSheet("background: transparent; border:

none;")
        #     layout = QHBoxLayout(self)
        #     layout.addWidget(self.ButtonShowKeyboard,0,Qt.AlignRight)
        #     layout.setSpacing(0)
        #     layout.setMargin(5)
        #
        #     self.UserName.setLayout(layout)
        #     layout.addWidget(self.ButtonShowKeyboard,0,Qt.AlignRight)
        #     self.PassWords.setLayout(layout)
        #
        #     self.ButtonShowKeyboard.setToolTip(QApplication.translate("None", "Show

virtual keyboard", None, QApplication.UnicodeUTF8))



pyqt在控件上创建图片

原文:http://mafirpy.blog.51cto.com/5482339/1696361

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!