import webbrowser
from tkinter import *
class DeviceTracker:
def __init__(self):
[Link] = Tk()
[Link]("📱 iPhone Tracker")
[Link]("600x300")
[Link](bg='#2C3E50')
# Header
Label(
[Link],
text="📱 iPhone Tracker",
font=("Rubik", 20, "bold"),
bg='#2C3E50',
fg='white'
).pack(pady=10)
# Instruction
Label(
[Link],
text="Enter your Apple ID associated with the iPhone:",
bg='#2C3E50',
fg='white',
font=("Rubik", 12)
).pack(pady=10)
# Input field
self.apple_id_entry = Entry([Link], width=40,
font=("Rubik", 12))
self.apple_id_entry.pack(pady=5)
# Buttons
Button(
[Link],
text="Locate iPhone",
command=self.locate_device,
bg='#27AE60',
fg='white',
font=("Rubik", 12, "bold"),
width=15
).pack(pady=20)
Button(
[Link],
text="Exit",
command=[Link],
bg='#E74C3C',
fg='white',
font=("Rubik", 12, "bold"),
width=15
).pack()
# Status label
self.status_label = Label([Link], text="", bg='#2C3E50',
fg='#F39C12', font=("Rubik", 10))
self.status_label.pack(pady=10)
def locate_device(self):
apple_id = self.apple_id_entry.get()
if not apple_id:
self.status_label.config(text="❌ Please enter your Apple
ID.")
return
self.status_label.config(text="🔄 Opening iCloud Find My
iPhone in your browser...")
# Open iCloud's Find My iPhone service
[Link]("[Link]
def run(self):
[Link]()
if __name__ == "__main__":
app = DeviceTracker()
[Link]()