0% found this document useful (0 votes)
1 views2 pages

Python Py

Uploaded by

Faraz Mahboob
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views2 pages

Python Py

Uploaded by

Faraz Mahboob
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 2

import webbrowser

from tkinter import *

class DeviceTracker:
def __init__(self):
self.root = Tk()
self.root.title("📱 iPhone Tracker")
self.root.geometry("600x300")
self.root.configure(bg='#2C3E50')

# Header
Label(
self.root,
text="📱 iPhone Tracker",
font=("Rubik", 20, "bold"),
bg='#2C3E50',
fg='white'
).pack(pady=10)

# Instruction
Label(
self.root,
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(self.root, width=40,
font=("Rubik", 12))
self.apple_id_entry.pack(pady=5)

# Buttons
Button(
self.root,
text="Locate iPhone",
command=self.locate_device,
bg='#27AE60',
fg='white',
font=("Rubik", 12, "bold"),
width=15
).pack(pady=20)

Button(
self.root,
text="Exit",
command=self.root.quit,
bg='#E74C3C',
fg='white',
font=("Rubik", 12, "bold"),
width=15
).pack()

# Status label
self.status_label = Label(self.root, 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
webbrowser.open("https://www.icloud.com/find")

def run(self):
self.root.mainloop()

if __name__ == "__main__":
app = DeviceTracker()
app.run()

You might also like