Python Py
Python Py
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
def run(self):
self.root.mainloop()
if __name__ == "__main__":
app = DeviceTracker()
app.run()