Receiving ValueError: invalid recstyle object
问题 I am following the instructions of a pygame project on youtube, this is the video, I am on the project called "Snake", and in the description of the video, you can find what time it starts and the actual code. I am about 10 minutes into the video. I will show you the code that I have written so far: # Snake project on python import math import random import pygame import tkinter as tk from tkinter import messagebox class cube(object): rows = 0 w = 0 def __init__(self, start,dirnx=1, dirny=0,