Skip to main content
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
Results tagged with
Search options not deleted user 241327

Tkinter is the standard Python interface to the "Tk" graphical user interface toolkit.

6 votes
1 answer
1k views

Go Chess (weiqi) in Python using Tkinter

Please criticise me in all ways, The code import tkinter as tk import tkinter.messagebox as msg import numpy as np from pprint import pprint class Main: def __init__(self, komi=4.5, theme=['gray' …
2 votes
1 answer
93 views

Tkinter Minesweeper Clone V2

The code import random import tkinter as tk import tkinter.messagebox as msgbox from typing import List, Literal, Tuple # TODO # improve astethics and change colors # add colors of numbers class Main … = 'dark green': widget.config(bg = 'red') def setupTkinter(self) -> Literal[None]: ''' An encapsulating function with Tkinter setup and layouting. …
1 vote
0 answers
129 views

Minesweeper using Tkinter

So, I have completed a Minesweeper program in Python using Tkinter. A few questions: I feel I should convert this to Object-Oriented Programming. Any starting tips? … as messagebox from tkinter import Widget from tkinter import simpledialog import applescript def printArr(): for row in arr: print(" ".join(str(cell) for cell in row)) print("") …
2 votes
0 answers
104 views

Minesweeper program using Tkinter

I have complete my minesweeper game using Tkinter and would like to know ways to improve. … Here is my code, accepting all comments: Please criticize, readability comments and performance comments accepted import tkinter as tk import random import sys import applescript import tkinter.messagebox …
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 …