This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------import module-----------------------------------> | |
import random | |
import pygame | |
# --------------------------------------load-modules of pygame--------------------------> | |
pygame.init() | |
screen_height, screen_weight = 600, 400 | |
dis = pygame.display.set_mode((screen_height, screen_weight)) | |
pygame.display.set_caption('Snake game') | |
pygame.display.update() | |
# <------------------------------------color--> RGB(red,green,blue) all of zero tuple for black--------> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from tkinter.filedialog import askdirectory | |
import pygame | |
from tkinter import * | |
root = Tk() | |
root.title("Music Player") | |
root.geometry('650x450+150+150') |