Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tkinter]

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

-1
votes
0answers
26 views

Python Battleships with tkinter [on hold]

I am doing my best to create a battleships game in python with tkinter. Currently the board is consists of a list with lists of "~" and "around" it is a border of "#". The border is there to check ...
0
votes
1answer
43 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 ...
1
vote
0answers
27 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
59 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 ...
3
votes
1answer
64 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 ...
0
votes
0answers
24 views

Best practices for tracing a menu using Python Tkinter

I made a function that traces a menu in Tkinter and disables entries accordingly. I didn't complicate stuff up as the menu didn't contain many items. I want to ask if this code is following the best ...
6
votes
1answer
100 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 ...
3
votes
0answers
26 views

OOP Othello in Python with tkinter UI and basic AI

I wrote an Othello version with limited UI to try to learn python(3.7) and OOP. The game has 8 classes. Start creates a controller object which is responsible for the logical flow of the game. ...
1
vote
0answers
35 views

Tkinter prank to display a bouncing picture

I have programmed a virus prank in Python with the tkinter module. The program creates a window with a picture of Jake Paul's face on it. The window bounces around the screen. I am planning on ...
1
vote
1answer
19 views

On tkinter: scrolling multiple widgets simultaneously in different frames

Below is an example on how to scroll two canvasses in two separate frames simultaneously. The trick is on how to pass on *args from the bindings to function ...
1
vote
0answers
45 views

Python GUI Calculator - Passing Variables Between Classes [closed]

I've recently come across this code that another user submitted for their python calculator using tkinter and have a few questions regarding it if anyone can help. I fully understand how they made ...
3
votes
1answer
46 views

Memory Game using Tkinter/Pygame

I'm very new to python and programming in general. For a school assignment, I made this Memory Game and would love to receive feedback from you guys. ...
4
votes
1answer
81 views

Pandas/Tkinter GUI Excel report generator

I built a GUI tool that takes excel files and outputs a finished report to help automate a report at work. It was a fantastic learning experienced and I feel much more comfortable with pandas and ...
3
votes
1answer
104 views

On click, doubleclick and mouse moving

I have an application using tkinter where different actions are required on mouse click, double click and when the mouse is being moved. The following class works however I wonder if there is no ...
2
votes
1answer
34 views

Iterable and .db file searcher that imports data

This Program is a tool that allows me to import data from files that may not be easy to read just by opening; such as .db files which are wayyyyy to hard to understand just by opening the file in ...
3
votes
1answer
59 views

Enhancing a Conversion calculator

Could I please have some ideas how to improve this conversion calculator I have made. I am currently not looking to add any more quantities, but rather trying to enhance the usability and add some ...
0
votes
0answers
68 views

Badminton doubles automatic game-making GUI (Python 3, Tkinter)

This is a program I created for my social badminton club. I've used it for the last few weeks and it's worked fairly well so far. The full code is on Github here. We operate with three courts (each ...
8
votes
1answer
335 views

Simple cryptocurrency portfolio rebalancer

EDIT: the code has been changed significantly since the OP based on the first posted answer and some refactoring. Feedback on the general design of the app itself is still more than welcome. The ...
4
votes
1answer
64 views

Small tile coloring app

I made a small app that revolves around coloring tiles - I am a newby to Python so I am unsure whether I followed the general guidelines correct (use of functions and classes, format, syntax) You can ...
2
votes
2answers
68 views

Smart Mirror utilising python API's

I am making an object-oriented python project for a smart mirror running on a raspberry pi. The code receives input from API's, formats the data and displays it on the mirror. I would like to know ...
2
votes
0answers
157 views

Python Tkinter Custom Widget (Frame) with Mousewheel Scroll Event

I try to write a GUI for practicing with one Window, containing two frames in a ttk.Notebook. Each of these Custom Widget Frames should have a scrollbar and the MouseWheel bound to a yscroll for the ...
5
votes
1answer
74 views

Disco Dancefloor Mini-Game

I was told to have my code reviewed here as I am a total beginner to Python. I made a small Tkinter script that generates a 4x4 field of buttons and randomly recolors them when clicking on any button, ...
8
votes
1answer
242 views

Tkinter 1 Player Tetris game

README.md Tetris game I am working towards making a Tetris game where you can challenge an AI. Multiple parts have been finished, but a lot is still under construction. However I would like an ...
4
votes
1answer
150 views

Changing the default printer in Windows

Where I work there's two different printers being used on a daily basis, one of them prints things from a particular program, which only uses the default printer. A lot of the times, during busy ...
8
votes
1answer
157 views

Python beginner code for a currrency converter

I am also pretty new to Python so I want to show my code for a very small currency converter with an Tkinter GUI. The code does what I want, but now I want to optimize it and find new "next level" ...
2
votes
0answers
282 views

Download song or video from Youtube using pytube

I wrote a small program which downloads song or video from the given youtube link. I used pytube library https://github.com/nficano/pytube and for GUI (Tkinter). ...
2
votes
0answers
50 views

UK Tax Calculator - First Python program

This is my first Python program and while it's not quite finished I would like to know how I could improve in general as a programmer. This project has be a lot of fun but it has felt more like ...
5
votes
1answer
587 views

Minesweeper in Python Tkinter

Out of boredom I decided to make simple minesweeper in python. I decided to do it using only libraries which are included in standard installation on Windows. I have overall been coding in Python for ...
4
votes
2answers
2k views

Binding a keyboard key to a Tkinter button

I'm specifically asking about binding a keyboard keystroke to a button in a GUI. Originally I planned to bind the keystroke to the GUI button itself, but that seemed impossible, and potentially unwise ...
11
votes
3answers
515 views

Python 3 simple Minesweeper game using tkinter

I am relatively new to programming, and I wish to use this simple minesweeper game in a portfolio. A few questions: Currently, game setup gets progressively slower with each reset button call, and ...
3
votes
2answers
196 views

GUI interface for company specific calculator

I created a customised GUI application in Python, which is a calculator that does some basic functions for my company. I would like to ask you for overall suggestions for code improvement. ...
2
votes
0answers
91 views

Inventory and stats for a game with Tkinter

It's an inventory UI and also displays the player's stats. I have been programming for a year or more and I want to improve my code. ...
2
votes
0answers
176 views

Battle-based snake game in tkinter

Disclaimer: This code is far from complete, I am aware of issues regarding my standards of naming, my lack of comments and readability, however I am encountering a large issue which is preventing me ...
3
votes
0answers
475 views

tkinter calculator college project

I had this project where we had to build a calculator from scratch in Python. GUI was completely optional though I did include it. I'm currently awaiting grading on the project. (I have found that ...
5
votes
1answer
91 views

Python program that checks connections based on URLLIB response

The main function tries to create a urllib connection, and if it fails/succeeds the label changes accordingly. However, I'm looking for ways to improve this code. Some elements I'm already aware of: ...
11
votes
1answer
907 views

2048 game written in Python

This is the first time that my code is being reviewed after two years of learning of Python as autodidact. I've never took a course or a class, but I've only read books and seen some videos on youtube....
3
votes
0answers
59 views

Investment tracker allowing users to store investment information and later access it

This investment tracker allows users to store investment information and later call upon it. This is a simple solution to making investing easier to maintain. This application has a simple login ...
6
votes
1answer
170 views

Expense Tracker for keeping track of payment information

This system is a expense tracker. It allows ordinary people to track expenses, like bills , car notes, and keep up with the payments they make. I had this idea after my father and mother began to mess ...
5
votes
2answers
116 views

Python program that pings and outputs a response in Tkinter

I have a program that allows me to check (in a nicer way than using command prompt) what my ping will be when playing League Of Legends. I've implemented all of the elements that I had hoped, however ...
3
votes
0answers
559 views

Auto clicker with a simple GUI

What do you think of my auto clicker script? Even though it's just for my own personal use, I'm thinking of using PyInstaller to turn it into an exe, so I know how to do that in the future. ...
4
votes
1answer
2k 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 ...
2
votes
0answers
110 views

JustifiedCombobox, A subclass of ttk.Combobox that has adjustable pop-down list item justification

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

Game of Life simulation using Python and Tkinter

I gave Conway's Game of life a go with Python 3 and Tkinter. I am a beginner looking for advice/commenting on my code. This is my second pseudo-real program (I posted my code for a Snake game). I ...
1
vote
0answers
36 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
831 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
297 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
36 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 ...
0
votes
0answers
69 views

Simple command system that make accessing applications easier

This code is a simple command system that allows me (seeing as though it is a personal project) to open other applications at a click of a button. There is a voice (pyttsx) after every button press, ...
5
votes
2answers
479 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 ...
20
votes
4answers
3k 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 ...