Tkinter is the standard Python interface to the "Tk" graphical user interface toolkit.
7
votes
2answers
151 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 ...
6
votes
1answer
78 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 ...
3
votes
0answers
41 views
Proof of concept and learning exercise for the 'ports and adapters' architecture
The script creates a simple app with a GUI containing a 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 ...
5
votes
0answers
108 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
62 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 ...
1
vote
1answer
55 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 ...
3
votes
1answer
75 views
Making a list from user input
I have wrote a program that lets the user open up there 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
509 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 ...
4
votes
1answer
476 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
1k 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 ...
4
votes
2answers
237 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?
...
3
votes
1answer
204 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 ...
5
votes
1answer
423 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
3k 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 ...
1
vote
1answer
1k views
Implementation of 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
429 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).
...
1
vote
4answers
378 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 ...