Random examples of tkinter snippets
![]() Rounded corners A tkinter main window with rounded corners (Windows only). |
![]() Progressbar demo A demo of pausing and changing the color of a progressbar. |
![]() Long Press A tkinter button or keyboard key that repeats the same command over and over as long as the button is held down. |
||
![]() Grow Text A Text or ScrolledText widget that will expand vertically depending on how much text is in it. |
![]() Text Hyperlink Demo of how to make a hyperlink in a Text widget. |
![]() Marquee A Label that scrolls text left to right like a marquee. |
||
![]() Autocomplete An entry widget that you can provide with a list of options and have it provide suggestions while typing. |
![]() Select Labelframe A labelframe with a checkbutton, so that you can disable or collapse the content. |
![]() Dualchoice The classic double listbox to choose a number of values and an order. |
||
![]() Multi-column Listbox A multicolumn Listbox made by packing normal listboxes together with a common scrollbar. |
Geometry Keeper Code to remember the window geometry for the next time you open the program. |
![]() Animated Label A Label that displays images, and plays them if they are gifs. |
- Cursors = Show all the available cursors available in tkinter.
- Colors = Show all the named colors in tkinter
- Winfo functions = Show the outputs from various winfo functions
- Keypress = Show all the attributes of a keypress Event.
- Help docs = Print the help doc for all attributes of an object.
- Sudoku = Draws an even grid. Mostly a demo of the undocumented "uniform" feature.
- Login window = A demo of how to swap frames, in this case to make a password login window before showing the main application.
- Word map = Place words on a canvas, move them around, then calculate the distance between them.
- Icon Maker = Make tkinter icons embedded into the source code.
- Image to source = Make tkinter images embedded into the source code.
- Screenshot clipper = Screenshot and clip tool
- Measure tool = A tool to measure random lines drawn on an image.
- Hex Viewer tool = Vey basic hex viewer that allows you to set the line length.










