Last active
February 13, 2020 04:12
-
-
Save lfalanga/87afdd06026ea38a7170c49aefd4caef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import * | |
root = Tk() | |
e = Entry(root) | |
e.pack() | |
e.focus_set() | |
######### | |
a = 5 | |
b = "2" | |
c = a + int(b) | |
######### | |
var = IntVar() | |
e.config(textvariable=var) | |
var.set(c) | |
mainloop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment