Questions tagged [tkinter]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
45 views

Adding more functionality to tkinter for projects (Revised)

After taking advice from Reinderien, I have completely rewritten the code for my Window() subclass. EDIT *reason for posting was unclear: I would like for someone ...
2
votes
1answer
31 views

Adding more functionality to tkinter for projects

This code adds the following functionality to the basic tkinter.Tk() class... settings-file interaction for persistent application settings fullscreen ...
4
votes
0answers
46 views

Python program for address normalization and geocoding

This is a school project I have been working on. I have created a program utilizing Tkinter, and I was hoping to get some feedback on the way I have gone about things. I feel like it is pretty messy ...
3
votes
1answer
71 views

A simple arcade shooter game in python tkinter

This was a simple game I was making in python. Below is the main class. This is more or less of a prototype for the game. Any criticism or advice is welcome. Source Code ...
3
votes
2answers
93 views

Tkinter program to teach Arabic

I am writing a lesson-based program to help teach friends and family the basics of Arabic. The program consists of different sections (letters, numbers, personnel pronouns, etc.) and each of those ...
3
votes
2answers
51 views

Tic-Tac-Toe code using Python with Tkinter

`I made this Tic-Tac-Toe game first, by using user input in the console here: https://pastebin.com/6zLjrWcf , and now new and improved using Tkinter: ...
2
votes
1answer
40 views

Python Tkinter login GUI with database

I created a simple login program that works how I wanted them to work. I separated the GUI and database codes into two different python files. I named the files as login.py and dbaseManip.py. The ...
2
votes
2answers
50 views

Symmetries of Triangle Python Turtle

I made a program to explore the symmetries of an equilateral triangle using Python and Turtle Graphics. It's formatted using Black Playground. As usual, my goal is to be writing "code that doesn't ...
3
votes
1answer
40 views

Simplified board for X's and O's using Tkinter

Recently I am learning to program in Python and in order to practice I tried to program a little game which consists in a board with 9 cells. In this board each player draw an 'X' or 'O' with left or ...
3
votes
0answers
36 views

Double pendulum real time plot

Double Pendulum I made a little application that embeds a matplotlib dynamic plot into tkinter that enables control through the ...
2
votes
0answers
41 views

Python Script that sends emails to a list of people and their emails and attaches specific documents (w/ tkinter menu)

This is my first Python project. Any tips on making it more efficient, less cluttered, and could you think of some cases that I haven't in which my code will break. For clarification the vendor list ...
2
votes
0answers
22 views

Matplotlib embedded in tkinter

Investigating how to use tkinter controls with buttons and sliders and to combine these with matplotlib, I have come to the following code. Suggestions for improvements and tips are most welcome. ...
1
vote
0answers
70 views

Python 3 Tkinter Calculator - follow-up

I'm a beginner developer, and it's my very first project: a simple math operations calculator in Python 3 using Tkinter for GUI. Obs: This code is an evolution of my previous code of the same project:...
1
vote
0answers
134 views

Tkinter application with multiple windows

I'm creating an application that requires multiple tkinter windows. The code below works the way how I want it to work, but I'm not sure if I'm doing it in the proper way. The first window (and in ...
3
votes
2answers
48 views

Target number sum finder

This is a Target number solution finder which I made with tkinter and is where the user enters a number they want and enters 4 other numbers to find the sum to make the number they want. This is a ...
7
votes
1answer
80 views

Simple integration of async and tkinter in Python

I've been a fan of coroutines and asynchronous programming for a while, and I recently took a trip down memory lane to when I was using Python's tkinter module for ...
3
votes
1answer
56 views

Computer Science glossary made with Tkinter

This is a Computer science glossary that I made with Tkinter. The user inputs the word that they want and then the code searches the text file for it and then ouputs it to the user. ...
6
votes
2answers
168 views

Calculator in Python 3 using Tkinter

Edit: New version at Python 3 Tkinter Calculator - follow-up New status: I´ve refactored the code trying to follow the recommendations from the guys who answered this question. The new version is on ...
4
votes
1answer
66 views

Create the logic game Mastermind using a GUI

This code uses a single Mastermind class to hold everything needed as a tkinter widget that inherits from tk.Frame. Is this the best way of organising something like this or would it be better to use ...
2
votes
1answer
49 views

Converting words/numbers to Discord “letter/number emojis”

I am a beginner to Python (and programming overall) and I decided that it would be funny if I wrote a program that could convert Letters/Numbers to these "Letter Emojis" in Discord. It works but I am ...
4
votes
2answers
81 views

Python - Random Mandala

I did a project in Python where I combined user-input, random, and the turtle module to make a sort of "Mandala Generator", or a program that can generate a simple design either randomly or by the ...
8
votes
2answers
305 views

First Python GUI Calculator with exponentiation function and percents

I made my first Python project with the help of Tkinter. I was trying to make it works like iPhone calculator. I am a beginner and I am looking for ways to improve my code. I use PyCharm and got rid ...
2
votes
1answer
67 views

2-team fraction quiz/test in Python 3 with Tkinter

I created a math quiz/game called "Factions". In the game, there are 2 teams. Red team and Blue team. They take turns answering questions relating to fractions. If they get it correct, they gain ...
3
votes
1answer
121 views

Tkinter stopwatch

As part of a personal project, I wanted to make a stopwatch with Python. I wish to show my friend but at the moment it is a little messy and long. Is there any way to make it more compact or easier to ...
3
votes
0answers
84 views

Python 3 tkinter calculator

After a bit of a break away from any coding, I decided to return with something simple. As I haven't done much of GUI programming with python, and I would like to do more, I decided to make a simple ...
2
votes
1answer
43 views

SQLite3 account creator

This program allows users to create and log into their account. The database is created using SQLite3 and the GUI is just simple tkinter boxes. I just want to know how to improve my code, organise it, ...
0
votes
1answer
40 views

Simple tkinter application that choose a random string

I am really new to programming, and I made this simple tkinter app in python. Please tell me what can be improved and how to use classes correctly in combination with tkinter. Github to clone if you ...
5
votes
2answers
149 views

Area and volume calculator

I'm a beginner coder, doing it solely for fun, having started coding about two months ago with Python. I have a working piece of code for calculating area and volume of different geometric shapes, ...
3
votes
1answer
108 views

First python program: basic calculator

I want to start learning python for fun and so I could dig into machine learning projects later in the future maybe. I started off with a small calculator project just to get the hang of the language ...
4
votes
0answers
65 views

Tkinter application to manage school tasks

I'm a beginner in OOP programming and I'm wondering what is the best way to put all the windows and functions of a window application in the code. My biggest questions are: Am I using classes and ...
3
votes
1answer
153 views

Python 3 minesweeper tkinter game

I have just finished my minesweeper game using tkinter and would like to know how I could improve my program. ...
2
votes
1answer
45 views

GIF/PPM to greyscale converter

This is my take on an image → greyscale converter. ...
0
votes
0answers
904 views

Tic Tac Toe game in Python 3.X using tkinter GUI version 2

I am completely new to programming and to python and as my first self-learning project I am creating a simple Tic-Tac-Toe game. I have already posted a version of my code here on stack: Tic Tac Toe ...
1
vote
1answer
49 views

BTC price checker with web scraping, regex and Tkinter GUI

The purpose of this was to practice web scraping, regex and GUI. I use a popular bitcoin website to scrape the names and prices of the top 16 cryptocurrencies. I then create a data frame and make a ...
2
votes
1answer
788 views

Tic Tac Toe game in Python 3.X using tkinter UI

I am learning to program in Python and as my first project I decided to create a simple Tic Tac Toe game. The game is working properly now and I am wondering if there is anything I could do to improve ...
4
votes
2answers
396 views

Treasure hunt game

This code is for a board game program, which works by placing the user on a grid which then tasks the user with finding all the treasure chests. Each chest landed on gives 10 gold. However, landing on ...
1
vote
0answers
168 views

Python UI with Tkinter

I started with Python and Tkinter and am trying to make my first steps by creating a simple UI with a header, sidebar (currently just a label) and a few labels and entries. Before I go on I want to ...
4
votes
2answers
170 views

Python coin flipper with GUI

I am doing some simple projects in an attempt to get good at programming, this is my first GUI would love some feedback, and some guidelines. ...
3
votes
1answer
137 views

Custom autoclick Python script

I'm a newbie Python programmer and I just made my first script which allows autoclicking into various positions of the screen (3 for now) an X number of times with an Y interval. I'd like to know ...
2
votes
1answer
157 views

Adding GUI to game of life hinders performance

I created a simple game of life and I used console prints to debug and visualize it at first. However, when I tried to introduce GUI (using Python tkinter), the ...
2
votes
0answers
78 views

Tkinter GUI Python implementation using classes

I'm really struggling to understand application of classes and best practices in fairly advanced level GUIs, and such an example could be extremely helpful. Please note that this is my first GUI ...
2
votes
1answer
292 views

Python tkinter Snake

I have made a little Snake game with Python tkinter. It's my first Python program with one GUI. What can I improve? ...
1
vote
0answers
63 views

Arabic Language lesson program Part 3

This is the third time I am asking for a review of this code (first time can be found here: Arabic language lesson program and the second can be found here: Arabic language lesson program Part 2). ...
5
votes
1answer
1k views

Python 3 calculator with tkinter

I have been programming for a long time. Only recently have I decided to take a stab at Python (I should be working with C# as I am in school for it, but I don't care for Windows, long story). I was ...
2
votes
1answer
596 views

Tkinter based calculator

I've recently finished building a calculator in Python using Tkinter, and would appreciate any and all feedback on it. Please ignore the use of the eval function, ...
0
votes
2answers
249 views

Battleships “AI” function

I would like some advice on how I could shorten my function from my battleships game (below). Essentially what it does is it checks if a coordinate is a hit and if it is, then if checks adjacent ...
5
votes
1answer
168 views

Arabic language lesson program Part 2

This is the second time I am asking for a review of this code (first time can be found here: Arabic language lesson program). The goal of the program hasn't changed - to house Arabic language lessons ...
5
votes
1answer
138 views

Arabic language lesson program

The program I have been working on has been developed almost exclusively as "train-of-thought" style code. Things happen linearly (for the most part) thru the code. The goal of the program is to house ...
4
votes
2answers
605 views

Simple Python calculator applying MVC

I've been implementing a simple Python calculator for learning purposes. Since there are no properties or bindings like in Javafx, I implemented my own MVC pattern. I'm aware of missing logic like ...
7
votes
1answer
799 views

A little Python hex editor

First off I'm quite new to Python, there will be a lot of messy/overcomplicated code, that's why I'm posting on this site. This code is written in Python (2.7) using the Tkinter library. Questions ...