这是我用来尝试向屏幕添加文本的代码 font = pygame.font.Font('freesansbold.ttf', 20)
TextY = 100
def showTexttrying to add the writing in the space on the right, in a column preferable谁能告诉我为什么代码不允许我在屏幕上显示文本,以及我应该如何更改代码以允许将更多文本显示在屏幕上
我正在尝试使用PyQt5在python中制作小程序。这个程序将有两个按钮,中间有一个标签。当鼠标越过标签时,我想调用def,以改变按钮的颜色,并播放来自特定扬声器(左或右)的声音。import timechannel1 = pygame.mixer.Channel(0) #argument must be intprint(