Questions tagged [tkinter]

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

Filter by
Sorted by
Tagged with
5
votes
1answer
4k views

Python GUI for cropping and saving images quickly

I wrote a simple GUI applications to help me select 'positive' regions of a bunch of photos for the purpose of training an object detectir using OpenCV Haar Cascades. For training purposes, you need ...
5
votes
1answer
974 views

“Lights Off” puzzle in tkinter

I'm a newbie in Tkinter and I've managed to make the "Lights Off" puzzle using Tkinter with Python 3. The game starts by presenting 9 buttons arranged in a 3x3 matrix. The text of the button will be ...
10
votes
1answer
2k views

Python snake game

If anyone has the patience to take a look at my first python snake game, I'd be very grateful for any feedback. I am fairly new to programming and Python, but am looking to improve so any constructive ...
3
votes
0answers
93 views

Elo Rating Tracking Applet - Release into GNU? [closed]

I have a little applet that I wrote in Python and Tkinter, and I was wondering what a good way would be to make it public, or open source or whatever. I think it's quite fun. You can add players, ...
3
votes
1answer
216 views

Linux/Windows Text Editor in Tkinter

Over the past couple of days I have been working on a super-basic text editor with Tkinter. It can: Open new files Open files (general) Save files Obviously you can edit any file you open or make. ...
10
votes
1answer
12k views

Tkinter GUI for making very simple edits to pandas DataFrames

It is part of a separate application that allows users to interact very loosely with different databases and check for possible errors and make corrections. ...
5
votes
1answer
132 views

Charting daily balance

I have been trying my hand at Python lately. I have been able to look at code examples and create a custom application that queries a Microsoft SQL Server, pulls out two columns (date, balance) and ...
7
votes
2answers
4k views

Very Ugly Tkinter Calculator

I have been working for about a week on a calculator in Tkinter, and the result is a very ugly, but functional calculator. Is it possible to clean up the code, and make it more readable? ...
8
votes
2answers
40k views

Classic Snake game using Python, Tkinter, and threading

I have just installed Ubuntu and am re-familiarizing myself with Python. I learned the basics in late 2012-early 2013 and I'm practicing with it in order to get better at programming concepts and ...
3
votes
1answer
2k views

Pythagorean Theorem Calculator

My code seems a bit sloppy to me, but I don't know how to improve it to make it cleaner and more understandable. I'm just learning Python, as well as Tkinter. I figured a Pythagorean Theorem ...
0
votes
1answer
435 views

Canvas in Tkinter app for Conway's Game of Life updates so slowly

This is Conway's Game of Life written in Python and using Tkinter for GUI. Problems are: The "Play" button works so slowly. I can see how the canvas is redrawing from top to bottom. But when I ...
3
votes
1answer
7k views

OOP TictacToe with Tkinter

This is my implementation of a Tic Tac Toe game with Tkinter GUI. So far I've set up the game to play with another player. For an interview coming up, I am suppose to build additional feature such ...
-1
votes
1answer
3k views

Drawing with canvas in python

Is there a function or some easier way to draw this, each of this little circles should have 8 other smaller circles around them like the big circle... So far i made big circle in center with 8 ...
3
votes
1answer
3k views

General purpose input validation GUI

I decided to build a GUI that would seemlessly create user interfaces for validation functions, functions that check if a string satisfies given rules. An example '...
3
votes
1answer
18k views

Python TKinter data entry window GUI for SQLITE3 table

I would like to offer for review a simple tkinter GUI window in Python 3 to be used for data entry into an SQLite database table. As a noob, this is my first attempt at OOP and my first experience ...
6
votes
1answer
2k views

CAPTCHA reader and maker

I've made some CAPTCHA reader and maker in Python using Tkinter. Do you know if it's possible to keep image and output files in "memory" not writing them on disc? Because right now everything is '...
1
vote
1answer
160 views

GUI for products and orders [closed]

I am building a simple Store Management System and I have 4 classes, 3 of which are for Product, Vendor and ...
4
votes
2answers
4k views

Autoclicker Tkinter Program

I made my first program that I might actually use and I was wondering if anyone had some tips on how I could improve it. My code is an auto-clicker that uses Python3 ctypes for the clicking and ...
4
votes
1answer
792 views

C IDE in Python with Tkinter

I have decided to code an IDE for C using Python with Tkinter. I tried to use my best functional style and keep functions small. This programme works perfectly in Linux with Python 2.7, but it should ...
2
votes
1answer
4k views

Memory game with Turtle

A while back I had to do a project for school in Python, creating a game or something interesting. I decided to make a memory game. The code isn't really nice and neither are the variable names. It's ...
4
votes
3answers
7k views

Basic text editor in Python with Tkinter

I have finished writing my nice and little text editor in Python with Tkinter. I tried to achieve the best user experience that I could. I want this code to be 2/3 compatible, I tested it in both ...
7
votes
2answers
2k views

Caesar cipher with GUI

I have created a functional Caesar cipher in Python 3 and I have implemented a GUI using Tkinter. ...
3
votes
2answers
258 views

Tkinter program that displays 28 numbers on the screen [closed]

I created a simple program that displays 28 numbers on the screen. ...
7
votes
2answers
5k views

Displaying a scrolling stock exchange ticker in a window

I've written my first OOP program (194 lines including docstring and comments) in Python that uses Tkinter as GUI and Threads. The program shows a window and displays a scrolling stock exchange ...
7
votes
1answer
3k views

Refactoring Tkinter GUI that reads from and updates csv files, and opens E-Run files

Background My lab administers four computer programs in three separate appointments. At each appointment, the subject does the programs in a pseudo-randomized order. Also, three of the programs have ...
11
votes
1answer
230 views

Creating an app for selecting a folder

The script creates a simple app with a GUI containing an input field and a button to select a folder. On startup a default value is set to the input field. If the user types a value or selects a ...
11
votes
2answers
3k views

A general purpose GUI data input, with validation, but unclear about best object design

When I'm throwing together prototype code, I don't want to spend extra time setting up parameters, or chasing down problems from entering parameters wrongly. So this is a general purpose, fairly easy ...
4
votes
2answers
81 views

Changing attributes in different objects

First some background - I am developing a Python program which has thousands of lines spread across many files. I have intermediate programming skills - and no commercial OOP experience, and have ...
2
votes
1answer
349 views

Making a list from user input - follow-up

I have made the changes that people have suggested from my previous question. I want to try and make it even tidier if possible. What can I change to make it more optimized? My ...
4
votes
1answer
6k views

Making a list from user input

I have wrote a program that lets the user open up their text file that would look something like this: 1 2 3 4 5 6 It would then let the user enter a name for ...
6
votes
1answer
4k views

Does this tkinter-based web browser widget use a well implemented class?

I have fully functional code in class format, and as far as I am aware from my previous question, it conforms to PEP 8 and the code logic and implementation is suitably pythonic. My main concerns here ...
6
votes
1answer
6k views

Tkinter file searching program

This is my first relatively big program. First it shows an askdirectory() screen to get the path. It gets all subfolders of that path and appends them to a list. It ...
8
votes
1answer
5k views

Clean code and SOLID principles for a simple Python TicTacToe game

I recently read the book Clean Code and I also did some research on the SOLID principles. I'm looking for general feedback on if I was able to transpose the examples (written in Java) to Python while ...
6
votes
2answers
2k views

Python tkinter GUI

I'm making a little Python script that reads a text file and puts it on a HTML page. I haven't finished that part yet, but I've been working on the GUI with tkinter. Is my code sloppy? ...
4
votes
1answer
901 views

Python Tkinter OOPS code optimization

I have the following oops code, I am also monitoring user activity to see if it is idle for more than 5 seconds. I am very new to oops, so just want to understand if there are better way to implement ...
6
votes
1answer
2k views

Game of Life, separation of logic / GUI

This is one of my first steps with GUI. I've tried an implementation of Conway's Game of Life with TkInter. I would appreciate any opinions about my code, especially about the separation of GUI and ...
2
votes
2answers
7k views

Animation with 5x5 map of cubes

I am trying to learn how to animate with tkinter. The code below is an example I was able to build. It creates a small 5x5 map of cubes, then one of them randomly moves around the screen (preferably ...
2
votes
1answer
7k views

Battleship in Python TKinter

I am very new to GUI programming, and I'm pretty sure I'm doing it wrong. Please take a look at my code, and suggest some changes. I feel it's way too complicated for what it's actually doing. For ...
5
votes
1answer
7k views

Python Sudoku GUI

This code implements a data structure for representing a Sudoku board, a very simple algorithm for setting up the board, and a GUI written in tkinter(requires tkinter and tkinter.tix). ...
3
votes
4answers
5k views

Binary/decimal/hex converter using Tkinter

I debated long and hard before posting this question, and I did a lot of experimenting. I just can't seem to work out an 'elegant', concise way to get done what I want done in the manner I want it ...
16
votes
2answers
1k views

Python Manga Image Viewer

I'm currently making a manga (read: comic) viewer in Python. This project has been a code-as-you-learn project, because I have been trying to code this as I learned about Tkinter. Python I have known ...

1 2 3 4 5
6