Questions tagged [tk]
The Tk toolkit is a scripted GUI toolkit that is designed to be used from dynamic languages (initially Tcl, but also Perl and Python).
11 questions
2
votes
1
answer
234
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
1
answer
142
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 ...
2
votes
0
answers
7k
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 ...
2
votes
1
answer
407
views
A clock and a fortune: a full screen clock with random quotes in Tcl/Tk
I've written a small Tcl/Tk script for a friend that displays the current time, as well as a quote. He uses it in some project with a Raspberry Pi, and since I didn't want to cobble up something up in ...
5
votes
0
answers
69
views
Python-Tk GUI, make long-running user code interact with the user, cleanly
TL;DR I have an answer, that seems to work, but I'm not happy that it's a good answer.
I am exploring some algorithms that are easiest to debug graphically and piecemeal, so I'm using a python-Tk ...
1
vote
1
answer
1k
views
Creating and calling objects sequentially in Tkinter with Python 3
I am trying to build a very simple user interface in Python 3 using Tkinter to be used in windows. and have written a code which is not efficient - it is excessively long for no good reason. I am ...
1
vote
1
answer
559
views
Selecting a random student from a class list
This selects a random student from a class list, stored in a .ss file:
...
1
vote
1
answer
539
views
2
votes
2
answers
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 ...
3
votes
1
answer
3k
views
Evaluating longest path
Here is a program which keeps track of the longest path in a graph. I think it can be written much better.
...
3
votes
3
answers
401
views
Drawing colored circles using Ruby and Tk
I am a high-school freshman who is kinda new to Ruby, and I am doing a small project on Ruby. One of the big things that I want to get out of this project is how to follow the "Ruby standards" that ...