listbox.py 文件源码

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

项目:CoolesSpiel 作者: AlinaGri 项目源码 文件源码
def __init__(self, x, y, width, height, editable = False, font = textwidget.defaultFont, selectioncolor = selectiontextwidget.defaultSelection):
        """
        Initialisation of an Listbox

        parameters:     int x-coordinate of the Listbox (left)
                        int y-coordinate of the Listbox (top)
                        int width of the Listbox
                        int height of the Listbox
                        boolean if the Listbox should be editable
                        pygame.font.Font font of the Listbox
                        tuple of format pygame.Color representing the Listbox's selection-color
        return values:  -
        """
        super(Listbox, self).__init__(x, y, width, height, "", font, selectioncolor = selectiontextwidget.defaultSelection)
        self._list      = []
        self._editable  = editable
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号