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
评论列表
文章目录