我正在尝试这样做,一旦按下窗口上的+----+-----------+----------+---------------------------+--------------+
| Id | FirstName | LastName | Specialties | Zips |
+----+-----------+----------+---------------------------+--------------+
| 3 | Inez | Palmer | ANESTHESIOLOGY, AMBULANCE | 13090 |
| 4 | Cecilia | Adkins | AMBULANCE | 13090 |
+----+-----------+----------+---------------------------+--------------+
按钮,它就会关闭。我已经按照教程进行了操作,但是当它进入生产线时:
"X"
它引发了一个
pygame.quit()
任何人都知道这是为什么?这是我的代码:
TypeError: 'bool' object is not callable
修改
这是我的程序,现在仍然抛出相同的错误
end = False
events = pygame.event.get()
while not end:
for event in pygame.event.get():
if event.type == pygame.QUIT:
end = True
gameDisplay.fill(white)
print (end)
pygame.display.update()
clock.tick(60)
print ("end")
pygame.quit()
quit()