wb_common_dialogs.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:scm-workbench 作者: barry-scott 项目源码 文件源码
def __init__( self, app, parent, title, error_message ):
        self.app = app

        super().__init__( parent, cancel=False )

        self.setWindowTitle( title )

        self.error_message = QtWidgets.QPlainTextEdit( self )
        self.error_message.setReadOnly( True )
        self.error_message.insertPlainText( error_message )
        self.setFont( self.app.getCodeFont() )

        em = self.fontMetrics().width( 'M' )
        self.addRow( None, self.error_message, min_width=em*60 )
        self.addButtons()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号