Как создавать комбо-боксы в pygame (python 2.7)
Я не хочу использовать tk, wx или любой другой графический интерфейс, просто pygame.
import pygame
class ComboBox(pygame):
def __init__(self, items, editable, dropdownWidth, width, value):
self.items = items
self.editable = editable # True, the user can type a new value False, the user can only choose from the options
self.dropdownwidth = dropdownWidth
self.width = width
self.value = value # i dont think there is need to
def onSelChange(self, selection):
pass
def onEditChange(self, text):
pass
def onFocus(self, focused):
pass
def onEnter(self):
pass
def refresh(self):
pass