Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道如何在 pygame 窗口中放置滚动条?
请帮忙,谢谢
我认为没有pygame内置的方法可以在屏幕上放置滚动条,也许你必须自己做。但是如果你想尝试一下,有一个名为pygame-menu的包,你可以使用 pip 安装并导入到你的项目中。有了这个东西,你可以使用 pygame-menu 的小部件组织你的屏幕对象,如果屏幕的大小小于显示所有菜单小部件所需的大小,它会自动创建一个滚动条以允许用户查看它们。