hexeditor.py 文件源码

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

项目:serenity 作者: nyxxxie 项目源码 文件源码
def setFont(self, font):
        """Sets the font to use in the hex editor.

        :param font: Font to use.
        :type  font: QFont
        """
        # Set font
        super().setFont(font)

        # Calculate font width and height
        fm = QFontMetrics(font)
        self.font_width = fm.width(" ")
        self.font_height = int(fm.height()/2) - 1

        # Recalc vars since font has changed
        self._adjust()
        self.viewport().update()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号