PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 6 19:35:59 2025
@author: Win10
"""
# Import Module
from tkinter import Tk, Label, Button, Entry,Radiobutton
root=Tk()
root.title(" BMI Calculator")
label1= Label(root,text=" Enter Your Age")
label2=Label(root,text="Choose your Gender")
label3=Label(root,text="Weight")
label4=Label(root,text="Height")
entryA= Entry(root)
entryA.bind("<FocusIn>", lambda event: set_active(entryA))
radiob1=Radiobutton(root,text="Male")
radiob2=Radiobutton(root,text="Female")
Enter to Rename, Shift+Enter to Preview
OUTPUT
Uruchom