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
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.
Mastodon | Peertube | Join Mastodon |
AI statement : Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.