Fixing an issue of tkinter tags overlapping

If you’ve worked with tkinter’s Text widget, you may notice that when you add many tags to it sometimes things get messed. So let’s dive right into this. We will use syntax highlighting as an example. Explaining our goal Consider we have the following code, from tkinter import * class Files(Frame):     def __init__(self, parent):         Frame.__init__(self,… Continue Reading Fixing an issue of tkinter tags overlapping

a fix to tkinter output not showing

tkinter is fine once you understand it. let us see what problem user vikas was having and how to fix it! the fix a basic tkinter skeleton is import tkinter as tk root = tk.Tk() root.mainloop() now we see that the user has it in place, so no output means the label he defined is not showing. now… Continue Reading a fix to tkinter output not showing

tkinter : tackling import for python 2 and 3

tkinter is the integrated GUI package in python. It has had an import naming change in python 3. This is the main hindrance in making tkinter codes run on python 3 or vice versa. fortunately the fix is a simple one Some syntax in python 2 we imported as : import Tkinter and in python 3… Continue Reading tkinter : tackling import for python 2 and 3