# Python Tkinter GUI based "LOVE CALCULATOR" # import tkinter from tkinter import * # import random module import random # Creating GUI window root = Tk() # Defining the container size, width=400, height=240 root.geometry('400x240') # Title of the container root.title('Love Calculator????') # Function to calculate love percentage # between the user ans partner def calculate_love(): # value will contain digits between 0-9 st = '0123456789' # result will be in double digits digit = 2 temp = "".join(random.sample(st, digit)) result.config(text=temp) # Heading on Top heading = Label(root, text='Love Calculator - How much is he/she into you') heading.pack() # Slot/input for the first name slot1 = Label(root, text="Enter Your Name:") slot1.pack() name1 = Entry(root, border=5) name1.pack() # Slot/input for the partner name slot2 = Label(root, text="Enter Your Partner Name:") slot2.pack() name2 = ...
<! DOCTYPE html > < html lang = "en" > < head > < meta charset = "UTF-8" > < meta name = "viewport" content = "width=device-width, initial-scale=1.0" > < meta name = "description" content = "This is description" > <!-- below line is to represent if people search like that as in content it show's our website --> < meta name = "keywords" content = "html, html tutorials, web development" > <!-- below line decide to "INDEX", "FOLLOW" to ur website --> < meta name = "robots" content = "INDEX, FOLLOW" > < title > Title, Link, Script and Meta tags </ title > <!-- This is how u include external css --> < link rel = "stylesheet" href = "harry.css" > <!-- This is how you include external JavaScript --> ...
Comments
Post a Comment