0

I'm learning to develop GUI applications in python, searched a lot but didn'nt find a satisfactory answer to the use of root.tk.eval() in the code

from tkinter import tix
root = tix.Tk()
root.tk.eval('package require Tix') 
kunal dubey
  • 67
  • 2
  • 8

1 Answers1

2

Tkinter is a relatively thin object-oriented wrapper around an embedded TCL interpreter (TCL is a completely different programming language). root.tk.eval lets you directly run TCL code in that embedded TCL interpreter.

Bryan Oakley
  • 370,779
  • 53
  • 539
  • 685