Created
January 30, 2020 00:26
-
-
Save lfalanga/a0822ce0a03be25cfef3a43844b6055b 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
import random | |
from tkinter import * | |
root = Tk() | |
e = Entry(root) | |
e.pack() | |
e.focus_set() | |
######### | |
a = 5 | |
b = "2" | |
c = a + int(b) | |
d = random.randint(1, 101) | |
f = c * d | |
######### | |
var = IntVar() | |
e.config(textvariable=var) | |
var.set(f) | |
mainloop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment