pyos.py 文件源码

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

项目:PythonOS 作者: furmada 项目源码 文件源码
def __init__(self, position, text, color=DEFAULT, size=DEFAULT, justification=DEFAULT, **data):
            #Defaults are "item", and 0 (left).
            color, size, justification = GUI.Component.default(color, state.getColorPalette().getColor("item"), size, 14,
                                                         justification, 0)
            self.justification = justification
            self.color = color
            self.size = size
            self.text = text if type(text) == str or type(text) == unicode else str(text)
            self.textSurface = None
            self.font = data.get("font", state.getFont())
            self.use_freetype = data.get("freetype", False)
            super(GUI.MultiLineText, self).__init__(position, **data)
            self.refresh()
            if self.width > state.getGUI().width:
                self.width = state.getGUI().width
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号