Tkinter Development

A few years ago, I created a resource to explain how to create use some of the widgets within tkinter. This is a Python widget for creating graphical user interfaces (GUIs).

The following code is what you need to get started. This creates, just a single application window.

#!/usr/bin/env python
import Tkinter # note use of caps
from Tkinter import *

window = Tk()
window.title('GUI Tkinter 1')
window.geometry("300x250") # w x h
window.resizable(0,0)

window.mainloop()

This produces

tk window

Over the next few days, I will make more posts covering adding labels, buttons and entry / text boxes.

Hopefully it will be of use to someone.

#tkinter,#python,#gui,#programming.


MastodonPeertubeQoto sign up

Donate using Liberapay