Hey guys I am doing a sample project on python. I have made a simple calculator. The thing is that I want that calculator in a box. I have read many articles and I found about Tkinter.
The thing is I want to get the input as a text using tkinter.
My code
import tkinter as tk
root = tk.Tk()
my_text = tk.Text(root)
my_text.pack()
my_text.insert(tk.END,"Select operation.")
When i run my_text.insert(tk.END,"Select operation.") it works fine in a box but when i run my_text.insert(input(tk.END,"Enter choice(1/2/3/4")): it doesn't work ..
Why is it so. I need Enter choice(1/2/3/4")): to be printed on the screen with box.
Hope you can find a solution for me ..Thanks in advance
StringVarto have a prompt inside the entry box if I can remember right.