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
21k views

Python - Quiz Game with Tkinter

I have made a little Quiz Game in Python. This was my first experience in programming Gui's in Python with Tkinter. In general, I do not have much knowledge about graphic programming and have acquired ...
3
votes
0answers
375 views

JustifiedCombobox, a subclassed combobox

In an attempt to answer How to justify the characters in the drop-down list of a Combobox? I've come up with this code. JustifiedCombobox justifies the pop-down ...
1
vote
0answers
96 views

A demo for Text widget's get method

In an answer to a question about Text widget's get method, I wanted to demonstrate how the method actually works and wrote the ...
3
votes
0answers
4k views

Snake Game using python and tkinter

I have written a Snake game using Python's Tkinter library. I am a beginner to programming. I learned some python alone and in school. However, most of what we did in school is algorithms/data ...
2
votes
1answer
2k views

Simple Addition and Subtraction Game in Python

Please give me some pointers on my first Python program! Points of interest: Within the calculate() function, I wanted to return ...
1
vote
1answer
42 views

Script requester for workplace

My program allows employee's to request python scripts from me and the development team. It allows the user to enter fields and a specific developer to complete the task. Then once they click on the ...
6
votes
2answers
2k views

Conway's Game Of Life in Python 3 using tkinter

I have used tkinter in Python 3 to create my own version of Conway's Game of Life. What could I do better in terms of optimisation of speed and memory and PEP8 and cleaning up my code? Also, what can ...
21
votes
4answers
7k views

System that manages employee data for managers

This code is for an employee management system. The goal that I am trying to reach is to allow managers to access data of their employees more easily. The data that is entered is saved to a CSV file ...
4
votes
1answer
6k views

Basic File Browse

Below is a Browse class that lets the user browse files and show the path in an entry frame. This is pretty short and basic. ...
4
votes
1answer
2k views

Clipboard detector in Python

The following contains my little app that detects changes to the clipboard and displays them in the GUI. I did my best using my limited knowledge of Python, but I have a feeling that I can definitely ...
1
vote
1answer
584 views

Creating a Tkinter window that generates seven numbers from 1 - 49 and sorts them

I would like to critical advice on my code: ...
5
votes
1answer
6k views

Basic Countdown Timer

Below is a class,Countdown, that takes seconds as input from an entry, and starts counting down when the "Start" button is ...
-4
votes
1answer
146 views

Python Code Classes Tkinter [closed]

I am learning to write my codes accordingly with functions and classes. My original code can create a graphic interface that interacts with different functions. As I said before, I am trying to write ...
4
votes
2answers
203 views

A game that is going somewhere

I'm working on a clicker game in Tkinter that is very different from Bubble Blaster: ...
4
votes
1answer
998 views

Layout for a Tkinter form

I am making a GUI application for a class. I have made the form layout (make_form()) using both Frame and grid, but I am not exactly sure that one should be mixing ...
5
votes
2answers
859 views

Basic Text Editor

Below code produces a basic text editor that I have written using tkinter with python. I tried to be as well structured as I can but in some parts I have been lazy about it. Classes that are used: <...
6
votes
1answer
1k views

Python YouTube downloader with tkinter

Recently I was asked to make an application that allowed a user to download youtube videos - minus all the viruses. So far I have produced the following code: ...
1
vote
0answers
150 views

Interactive Wish List

This is an interactive tkinter program to make a list of things the user wants to buy. It also incorporates .txt files as well. I have a feeling that the global variables have been overused but I am ...
6
votes
0answers
590 views

Laminar flow in a pipe animation using Tkinter

I wrote this simple particle flow animation with Tkinter. I wanted to ask if there is some major improvements you can think of regarding the animation motor or the documentation of my code? I noticed ...
5
votes
1answer
682 views

Checkered flag: a modular usage of Tkinter's geometry management

This is code that produces a checkered flag-like GUI. I wanted to demonstrate, also learn in detail, how tkinter's geometry managers can be used modularly, so I decided that I could write code for a ...
2
votes
2answers
983 views

Subclass Tkinter Widgets to save typing

I am doing a small GUI program for a practice exercise and in order to save myself some typing I took it upon myself to subclass some Tkinter widgets so I can pass the grid placement in the ...
2
votes
1answer
4k views

Simple tkinter GUI that uses a popup menu class

I'm new to OOP and not sure if I'm importing and using my class correctly. I'm writing a simple app called MyTestApp that uses a tkinter GUI. I have a textbox widget and I created a popup menu that ...
1
vote
0answers
14k views

Tkinter Application to Read & Update a CSV File

Background I started learning Python about 3 months ago. I feel like I learned a lot, but would like to receive some advices from the pros and some feedback about my code. So I wrote a small GUI app. ...
2
votes
0answers
198 views

Annotating custom tkinter objects

I'm adding/editing the docstrings to my custom tkinter modules. These contain classes that are subclassing tkinter objects as well as each other. I'm trying to follow PEP 257, but applying to this ...
4
votes
1answer
3k views

Rolling Dice Simulation using Tkinter

I just wanted to post my code to request for any improvement. Originally, I did NOT come up with this code, but rather I 'improved' it visually (i.e. not performance). This code originally had several ...
2
votes
0answers
383 views

python tkinter Monty Hall GUI visualization

I created a visualization to Monty Hall with python. this is my first program with python tkinter. I'm new to python (and OOP in python). I used three pictures for the doors. Adding them here. ...
10
votes
3answers
921 views

Feynmann lifeguard riddle graphical representation

Physicist Richard Feynman though of a very interesting riddle: Imagine you are a lifeguard at the side of the beach and there is a child drowning in the water. (You must cross both sand and water to ...
5
votes
2answers
14k views

Python tkinter bouncing ball animation

In the current code, the animation is very unclear, and not "polished" (it doesn't run smooth). Can I make the animation smoother? And/or, why it doesn't run smooth? ...
4
votes
1answer
65 views

Matching a randomly made colour using sliders

Below is a code which creates a random colour and shows it to the user in a 64 x 64 square. The user must then use the 3 sliders (R, G, B) to match the colour as closely as possible ...
1
vote
1answer
595 views

Hours and Minutes math in a work week calculator

I have written a small bit of code to tell me how many hours I need to work to finish up my 40 hours a week each day. I can add hours per day and it will calculate total hours left in the work week. ...
3
votes
1answer
519 views

Object-oriented Tamagotchi-like program with a GUI

I am currently working on a small python project for an undergraduate course in python. The task is to create a Tamagotchi-like program with a GUI. My question is whether my code is Object oriented or ...
4
votes
2answers
5k views

Autocomplete for tkinter Entry widgets

Since tkinter doesn't provide easy autocompletion settings for tkinter.Entry widgets, I decided to write a widget with autocompletion functionality myself. I've ...
1
vote
4answers
6k views

Python Tkinter game, “Bubble, Blaster”

I have 148 lines of code... ...
6
votes
1answer
295 views

YouTube playlist steganography: hide secret messages inside YouTube playlists

I have created this repo on GitHub and I have shown how this software works through a video. If you have time, please visit the repo and read the files. I'll post some relevant snippets below, but if ...
2
votes
0answers
72 views

My Jack slapped back. (tkInter learning project follow up)

This is a follow up to my question here about my slap-jack program. I've tried to implement the suggestions that were given in the accepted answer. (Though I never was able to figure out how to ditch <...
2
votes
0answers
100 views

Solve a System of linear equations with gauss algorithm

A program to solve a System of linear equations. Right now you're able to solve systems with 2 and 3 variables. It's with a tkinter-gui, where you're able to select the size of the system with the ...
4
votes
2answers
1k views

Temperature value converter

I'm trying to improve my programming skills (not just using one language). I don't have a group of other programmers to bounce ideas off other than on the web - so please forgive me if I have posted ...
3
votes
1answer
76 views

“Did I slap the Jack? Or get slapped back?” (tkInter learning project)

I wrote a very simple slapjack program as: A reintroduction to what little Python I ever knew A chance to tinker with tkinter My first foray into an event-based project Most of my experience is ...
4
votes
1answer
279 views

How to properly implement Tkinter module for software development?

I am new to Python software development, especially using Tkinter. I just wanted some pointers to help my code look and operate in a more clean manner. I posted this code which is a mini risk ...
4
votes
2answers
690 views

Encoding and Decoding In Python

My script encodes text and outputs random strings. It is different each time and loads a dictionary that has been pre-set by my dictionary gen.py (included after the main script). I've started my ...
3
votes
1answer
844 views

GUI Application for counting visitors

This code was to create how many people enter the "building" so there will be someone clicking the button "count". I am still improving. Please let me know your honest opinions! ...
7
votes
1answer
221 views

Image editing in the frequency space

I wrote a little script that should load a GUI for deciding the bandpass filter. I'm a hobbyist programmer so I look here for comments that will help to improve my code abilities. The applet should ...
5
votes
1answer
3k views

Simple interval timer in Python

I created a script for interval timer with tkinter gui. Here the part that is displaying time looks to be done not in the best way. Any ideas would be greatly appreciated. This timer is intended ...
5
votes
1answer
339 views

First time using Tkinter

This is my first time using Tkinter and really trying to get use to using classes in Python. I wonder if I'm using self entirely too much, but here is my code: ...
1
vote
0answers
290 views

Battle GUI made in canvas Tkinter

I'm cleaning up my code and I am wondering what I can do to make it better. ...
4
votes
1answer
1k views

Custom scrollbar

I have a function that will .destroy() a custom scrollbar and then recreates the scrollbar with a new theme. My IDE (Eclipse) is telling me that my function ...
2
votes
0answers
2k views

Applying Model-View-Controller to Tkinter/matplotlib Application

I'm a novice programmer. I am preparing to refactor a large project of mine to follow a model/view/controller design pattern, with separate modules for each (and eventually separate modules for the ...
2
votes
3answers
840 views

Counting characters, digits, spaces and newlines in the loaded file

I wrote an application that loads a file after pressing button and counts characters, digits, spaces and newlines in the loaded file. This application is written in Python language using tkinter ...
6
votes
1answer
21k views

GUI Calculator using tkinter

This is my python program for a GUI Calculator made using the tkinter module. This took me about 2 days to complete. However, I still believe that there is room for improvement. I am missing a few ...
6
votes
1answer
629 views

Simple Calculator with customizable button layout

How can I improve the code? Specifically, is there any way that I can move the code from App.handle into separate functions? ...