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).

Filter by
Sorted by
Tagged with
1
vote
0answers
29 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
1answer
204 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
0answers
51 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
1answer
845 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
1answer
417 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
1answer
397 views

Automatically growing label in Python Tkinter (just for fun)

...
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 ...
3
votes
1answer
2k 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
3answers
240 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 ...