Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Pygame is a portable Python package for video games, built on SDL.
2
votes
1
answer
196
views
Go chess (weiqi) in Python using Pygame
The code:
import os
from tkinter.simpledialog import askfloat
import numpy as np
import pygame
from pygame.locals import K_ESCAPE, KEYDOWN, MOUSEBUTTONUP, QUIT, K_p
WHITE = (255, 255, 255)
BOARDCOLOR …
2
votes
1
answer
199
views
Python MP3 player with pygame.mixer and tkinter for MacOS
I made a Tkinter MP3 Player with Pygame and am looking for tips to improve. Explanation offered in comments in code, but it generally works by getting all the files in a folder. … (Have censored filepaths for privacy.)
import os
import glob
import shutil
import pygame
import tkinter as tk
from pytube import YouTube
import tkinter.messagebox
from tkinter import filedialog as fd
from …