Paul Dunlop on Threads: “Really pleased to confirm that the team have rolled out support for Burst Photo transfer when moving from iOS to Pixel, and is available as part of Android Switch.” /u/MishaalRahman Android

Paul Dunlop on Threads: “Really pleased to confirm that the team have rolled out support for Burst Photo transfer when moving from iOS to Pixel, and is available as part of Android Switch.” /u/MishaalRahman Android

Paul Dunlop on Threads: “Really pleased to confirm that the team have rolled out support for Burst Photo transfer when moving from iOS to Pixel, and is available as part of Android Switch.” /u/MishaalRahman Android

Paul Dunlop on Threads: "Really pleased to confirm that the team have rolled out support for Burst Photo transfer when moving from iOS to Pixel, and is available as part of Android Switch." submitted by /u/MishaalRahman
[link] [comments]

​r/Android submitted by /u/MishaalRahman [link] [comments] 

Paul Dunlop on Threads: "Really pleased to confirm that the team have rolled out support for Burst Photo transfer when moving from iOS to Pixel, and is available as part of Android Switch." submitted by /u/MishaalRahman
[link] [comments]

  submitted by /u/MishaalRahman [link] [comments]

Read more

I need help implamenting something to this code. I wanted to when I toggle off the auto presser it presses escape one time. I know it’s probably a mess I had chat GPT write it because I don’t know how. /u/TwitchNotTTv Python Education

I need help implamenting something to this code. I wanted to when I toggle off the auto presser it presses escape one time. I know it’s probably a mess I had chat GPT write it because I don’t know how. /u/TwitchNotTTv Python Education

import threading

import time

import keyboard

from pynput.keyboard import Controller

import tkinter as tk

from tkinter import messagebox

class AutoClickerApp:

def __init__(self):

self.root = tk.Tk()

self.root.title(“Auto Clicker”)

self.controller = Controller()

self.target_key = None

self.auto_clicking = False # State of auto-clicking

self.speed = 10 # Clicks per second

self.lock = threading.Lock()

self.setup_ui()

def setup_ui(self):

tk.Label(self.root, text=”Key to Auto-Press:”).grid(row=0, column=0, pady=5, padx=5)

self.key_entry = tk.Entry(self.root)

self.key_entry.grid(row=0, column=1, pady=5, padx=5)

tk.Button(self.root, text=”Set Key”, command=self.set_key).grid(row=0, column=2, pady=5, padx=5)

tk.Label(self.root, text=”Press Speed (CPS):”).grid(row=1, column=0, pady=5, padx=5)

self.speed_entry = tk.Entry(self.root)

self.speed_entry.insert(0, “10”)

self.speed_entry.grid(row=1, column=1, pady=5, padx=5)

tk.Button(self.root, text=”Set Speed”, command=self.set_speed).grid(row=1, column=2, pady=5, padx=5)

tk.Label(self.root, text=”Press your bound key to toggle auto-clicking.”).grid(row=2, column=0, columnspan=3, pady=10)

def set_key(self):

key = self.key_entry.get().strip()

if key:

self.target_key = key

messagebox.showinfo(“Key Set”, f”Target key set to: {key}”)

else:

messagebox.showwarning(“Error”, “Please enter a valid key.”)

def set_speed(self):

try:

speed = int(self.speed_entry.get())

if speed > 0:

self.speed = speed

else:

messagebox.showwarning(“Error”, “Please enter a positive number.”)

except ValueError:

messagebox.showwarning(“Error”, “Please enter a valid number.”)

def toggle_clicking(self):

“””Toggle the auto-clicking state.”””

with self.lock:

self.auto_clicking = not self.auto_clicking

if self.auto_clicking:

print(“Auto-clicking started.”)

threading.Thread(target=self.auto_click, daemon=True).start()

else:

print(“Auto-clicking stopped.”)

def listener(self):

“””Listen for the toggle key to start/stop auto-clicking.”””

while True:

if self.target_key:

if keyboard.is_pressed(self.target_key):

# Wait for the key release to toggle the state

self.toggle_clicking()

while keyboard.is_pressed(self.target_key): # Avoid retriggering

time.sleep(0.01)

time.sleep(0.01)

def auto_click(self):

“””Simulate the key ‘y’ being pressed repeatedly.”””

while True:

with self.lock:

if not self.auto_clicking:

break

self.controller.press(‘y’) # Always press ‘y’

self.controller.release(‘y’)

time.sleep(1 / self.speed)

def run(self):

threading.Thread(target=self.listener, daemon=True).start()

self.root.mainloop()

if __name__ == “__main__”:

app = AutoClickerApp()

app.run()

submitted by /u/TwitchNotTTv
[link] [comments]

​r/learnpython import threading import time import keyboard from pynput.keyboard import Controller import tkinter as tk from tkinter import messagebox class AutoClickerApp: def __init__(self): self.root = tk.Tk() self.root.title(“Auto Clicker”) self.controller = Controller() self.target_key = None self.auto_clicking = False # State of auto-clicking self.speed = 10 # Clicks per second self.lock = threading.Lock() self.setup_ui() def setup_ui(self): tk.Label(self.root, text=”Key to Auto-Press:”).grid(row=0, column=0, pady=5, padx=5) self.key_entry = tk.Entry(self.root) self.key_entry.grid(row=0, column=1, pady=5, padx=5) tk.Button(self.root, text=”Set Key”, command=self.set_key).grid(row=0, column=2, pady=5, padx=5) tk.Label(self.root, text=”Press Speed (CPS):”).grid(row=1, column=0, pady=5, padx=5) self.speed_entry = tk.Entry(self.root) self.speed_entry.insert(0, “10”) self.speed_entry.grid(row=1, column=1, pady=5, padx=5) tk.Button(self.root, text=”Set Speed”, command=self.set_speed).grid(row=1, column=2, pady=5, padx=5) tk.Label(self.root, text=”Press your bound key to toggle auto-clicking.”).grid(row=2, column=0, columnspan=3, pady=10) def set_key(self): key = self.key_entry.get().strip() if key: self.target_key = key messagebox.showinfo(“Key Set”, f”Target key set to: {key}”) else: messagebox.showwarning(“Error”, “Please enter a valid key.”) def set_speed(self): try: speed = int(self.speed_entry.get()) if speed > 0: self.speed = speed else: messagebox.showwarning(“Error”, “Please enter a positive number.”) except ValueError: messagebox.showwarning(“Error”, “Please enter a valid number.”) def toggle_clicking(self): “””Toggle the auto-clicking state.””” with self.lock: self.auto_clicking = not self.auto_clicking if self.auto_clicking: print(“Auto-clicking started.”) threading.Thread(target=self.auto_click, daemon=True).start() else: print(“Auto-clicking stopped.”) def listener(self): “””Listen for the toggle key to start/stop auto-clicking.””” while True: if self.target_key: if keyboard.is_pressed(self.target_key): # Wait for the key release to toggle the state self.toggle_clicking() while keyboard.is_pressed(self.target_key): # Avoid retriggering time.sleep(0.01) time.sleep(0.01) def auto_click(self): “””Simulate the key ‘y’ being pressed repeatedly.””” while True: with self.lock: if not self.auto_clicking: break self.controller.press(‘y’) # Always press ‘y’ self.controller.release(‘y’) time.sleep(1 / self.speed) def run(self): threading.Thread(target=self.listener, daemon=True).start() self.root.mainloop() if __name__ == “__main__”: app = AutoClickerApp() app.run() submitted by /u/TwitchNotTTv [link] [comments] 

import threading

import time

import keyboard

from pynput.keyboard import Controller

import tkinter as tk

from tkinter import messagebox

class AutoClickerApp:

def __init__(self):

self.root = tk.Tk()

self.root.title(“Auto Clicker”)

self.controller = Controller()

self.target_key = None

self.auto_clicking = False # State of auto-clicking

self.speed = 10 # Clicks per second

self.lock = threading.Lock()

self.setup_ui()

def setup_ui(self):

tk.Label(self.root, text=”Key to Auto-Press:”).grid(row=0, column=0, pady=5, padx=5)

self.key_entry = tk.Entry(self.root)

self.key_entry.grid(row=0, column=1, pady=5, padx=5)

tk.Button(self.root, text=”Set Key”, command=self.set_key).grid(row=0, column=2, pady=5, padx=5)

tk.Label(self.root, text=”Press Speed (CPS):”).grid(row=1, column=0, pady=5, padx=5)

self.speed_entry = tk.Entry(self.root)

self.speed_entry.insert(0, “10”)

self.speed_entry.grid(row=1, column=1, pady=5, padx=5)

tk.Button(self.root, text=”Set Speed”, command=self.set_speed).grid(row=1, column=2, pady=5, padx=5)

tk.Label(self.root, text=”Press your bound key to toggle auto-clicking.”).grid(row=2, column=0, columnspan=3, pady=10)

def set_key(self):

key = self.key_entry.get().strip()

if key:

self.target_key = key

messagebox.showinfo(“Key Set”, f”Target key set to: {key}”)

else:

messagebox.showwarning(“Error”, “Please enter a valid key.”)

def set_speed(self):

try:

speed = int(self.speed_entry.get())

if speed > 0:

self.speed = speed

else:

messagebox.showwarning(“Error”, “Please enter a positive number.”)

except ValueError:

messagebox.showwarning(“Error”, “Please enter a valid number.”)

def toggle_clicking(self):

“””Toggle the auto-clicking state.”””

with self.lock:

self.auto_clicking = not self.auto_clicking

if self.auto_clicking:

print(“Auto-clicking started.”)

threading.Thread(target=self.auto_click, daemon=True).start()

else:

print(“Auto-clicking stopped.”)

def listener(self):

“””Listen for the toggle key to start/stop auto-clicking.”””

while True:

if self.target_key:

if keyboard.is_pressed(self.target_key):

# Wait for the key release to toggle the state

self.toggle_clicking()

while keyboard.is_pressed(self.target_key): # Avoid retriggering

time.sleep(0.01)

time.sleep(0.01)

def auto_click(self):

“””Simulate the key ‘y’ being pressed repeatedly.”””

while True:

with self.lock:

if not self.auto_clicking:

break

self.controller.press(‘y’) # Always press ‘y’

self.controller.release(‘y’)

time.sleep(1 / self.speed)

def run(self):

threading.Thread(target=self.listener, daemon=True).start()

self.root.mainloop()

if __name__ == “__main__”:

app = AutoClickerApp()

app.run()

submitted by /u/TwitchNotTTv
[link] [comments]  import threading import time import keyboard from pynput.keyboard import Controller import tkinter as tk from tkinter import messagebox class AutoClickerApp: def __init__(self): self.root = tk.Tk() self.root.title(“Auto Clicker”) self.controller = Controller() self.target_key = None self.auto_clicking = False # State of auto-clicking self.speed = 10 # Clicks per second self.lock = threading.Lock() self.setup_ui() def setup_ui(self): tk.Label(self.root, text=”Key to Auto-Press:”).grid(row=0, column=0, pady=5, padx=5) self.key_entry = tk.Entry(self.root) self.key_entry.grid(row=0, column=1, pady=5, padx=5) tk.Button(self.root, text=”Set Key”, command=self.set_key).grid(row=0, column=2, pady=5, padx=5) tk.Label(self.root, text=”Press Speed (CPS):”).grid(row=1, column=0, pady=5, padx=5) self.speed_entry = tk.Entry(self.root) self.speed_entry.insert(0, “10”) self.speed_entry.grid(row=1, column=1, pady=5, padx=5) tk.Button(self.root, text=”Set Speed”, command=self.set_speed).grid(row=1, column=2, pady=5, padx=5) tk.Label(self.root, text=”Press your bound key to toggle auto-clicking.”).grid(row=2, column=0, columnspan=3, pady=10) def set_key(self): key = self.key_entry.get().strip() if key: self.target_key = key messagebox.showinfo(“Key Set”, f”Target key set to: {key}”) else: messagebox.showwarning(“Error”, “Please enter a valid key.”) def set_speed(self): try: speed = int(self.speed_entry.get()) if speed > 0: self.speed = speed else: messagebox.showwarning(“Error”, “Please enter a positive number.”) except ValueError: messagebox.showwarning(“Error”, “Please enter a valid number.”) def toggle_clicking(self): “””Toggle the auto-clicking state.””” with self.lock: self.auto_clicking = not self.auto_clicking if self.auto_clicking: print(“Auto-clicking started.”) threading.Thread(target=self.auto_click, daemon=True).start() else: print(“Auto-clicking stopped.”) def listener(self): “””Listen for the toggle key to start/stop auto-clicking.””” while True: if self.target_key: if keyboard.is_pressed(self.target_key): # Wait for the key release to toggle the state self.toggle_clicking() while keyboard.is_pressed(self.target_key): # Avoid retriggering time.sleep(0.01) time.sleep(0.01) def auto_click(self): “””Simulate the key ‘y’ being pressed repeatedly.””” while True: with self.lock: if not self.auto_clicking: break self.controller.press(‘y’) # Always press ‘y’ self.controller.release(‘y’) time.sleep(1 / self.speed) def run(self): threading.Thread(target=self.listener, daemon=True).start() self.root.mainloop() if __name__ == “__main__”: app = AutoClickerApp() app.run() submitted by /u/TwitchNotTTv [link] [comments]

Read more

Selenium find_elements not populating all elements /u/Classy_Shadow Python Education

Selenium find_elements not populating all elements /u/Classy_Shadow Python Education

Some of my friends have a bet going on with the current NFL season, and I’ve been tracking all of the games and their picks, etc manually. I finally decided to automate everything using Selenium, but my find_elements call doesn’t populate all of the scores. When running, instead of scores, it results in “–” displaying for a few of the teams. How do I fix this? Time.sleep hasn’t helped.

Here is the code:

def generateResults(weekNumber): options = webdriver.ChromeOptions() options.add_argument('--headless') driver = webdriver.Chrome(options=options) url = 'https://www.nfl.com/schedules/2024/REG' + weekNumber driver.get(url) # this gets all of the teams every single time with no issues teams = driver.find_elements(By.CLASS_NAME, "nfl-c-matchup-strip__team-name") # this only gets the majority of the scores, and replaces the rest with -- scores = driver.find_elements(By.CLASS_NAME, "nfl-c-matchup-strip__team-score") results = [] for i in range(len(teams)): print(teams[i].text) print(scores[i].text) driver.quit() return generateResults(5) ------------------------- Normal runs result in the last few games displaying like this: Cowboys -- Steelers -- Saints -- Chiefs -- I thought there was a bug in my code, but debug mode populates the values. 

submitted by /u/Classy_Shadow
[link] [comments]

​r/learnpython Some of my friends have a bet going on with the current NFL season, and I’ve been tracking all of the games and their picks, etc manually. I finally decided to automate everything using Selenium, but my find_elements call doesn’t populate all of the scores. When running, instead of scores, it results in “–” displaying for a few of the teams. How do I fix this? Time.sleep hasn’t helped. Here is the code: def generateResults(weekNumber): options = webdriver.ChromeOptions() options.add_argument(‘–headless’) driver = webdriver.Chrome(options=options) url = ‘https://www.nfl.com/schedules/2024/REG’ + weekNumber driver.get(url) # this gets all of the teams every single time with no issues teams = driver.find_elements(By.CLASS_NAME, “nfl-c-matchup-strip__team-name”) # this only gets the majority of the scores, and replaces the rest with — scores = driver.find_elements(By.CLASS_NAME, “nfl-c-matchup-strip__team-score”) results = [] for i in range(len(teams)): print(teams[i].text) print(scores[i].text) driver.quit() return generateResults(5) ————————- Normal runs result in the last few games displaying like this: Cowboys — Steelers — Saints — Chiefs — I thought there was a bug in my code, but debug mode populates the values. submitted by /u/Classy_Shadow [link] [comments] 

Some of my friends have a bet going on with the current NFL season, and I’ve been tracking all of the games and their picks, etc manually. I finally decided to automate everything using Selenium, but my find_elements call doesn’t populate all of the scores. When running, instead of scores, it results in “–” displaying for a few of the teams. How do I fix this? Time.sleep hasn’t helped.

Here is the code:

def generateResults(weekNumber): options = webdriver.ChromeOptions() options.add_argument('--headless') driver = webdriver.Chrome(options=options) url = 'https://www.nfl.com/schedules/2024/REG' + weekNumber driver.get(url) # this gets all of the teams every single time with no issues teams = driver.find_elements(By.CLASS_NAME, "nfl-c-matchup-strip__team-name") # this only gets the majority of the scores, and replaces the rest with -- scores = driver.find_elements(By.CLASS_NAME, "nfl-c-matchup-strip__team-score") results = [] for i in range(len(teams)): print(teams[i].text) print(scores[i].text) driver.quit() return generateResults(5) ------------------------- Normal runs result in the last few games displaying like this: Cowboys -- Steelers -- Saints -- Chiefs -- I thought there was a bug in my code, but debug mode populates the values. 

submitted by /u/Classy_Shadow
[link] [comments]  Some of my friends have a bet going on with the current NFL season, and I’ve been tracking all of the games and their picks, etc manually. I finally decided to automate everything using Selenium, but my find_elements call doesn’t populate all of the scores. When running, instead of scores, it results in “–” displaying for a few of the teams. How do I fix this? Time.sleep hasn’t helped. Here is the code: def generateResults(weekNumber): options = webdriver.ChromeOptions() options.add_argument(‘–headless’) driver = webdriver.Chrome(options=options) url = ‘https://www.nfl.com/schedules/2024/REG’ + weekNumber driver.get(url) # this gets all of the teams every single time with no issues teams = driver.find_elements(By.CLASS_NAME, “nfl-c-matchup-strip__team-name”) # this only gets the majority of the scores, and replaces the rest with — scores = driver.find_elements(By.CLASS_NAME, “nfl-c-matchup-strip__team-score”) results = [] for i in range(len(teams)): print(teams[i].text) print(scores[i].text) driver.quit() return generateResults(5) ————————- Normal runs result in the last few games displaying like this: Cowboys — Steelers — Saints — Chiefs — I thought there was a bug in my code, but debug mode populates the values. submitted by /u/Classy_Shadow [link] [comments]

Read more

Hey how did you learn? /u/Rude_Category_8947 Python Education

Hey how did you learn? /u/Rude_Category_8947 Python Education

I found a 100 days course udemy , that’s seems to be doing good so far, I’m wondering how I should learn python?

submitted by /u/Rude_Category_8947
[link] [comments]

​r/learnpython I found a 100 days course udemy , that’s seems to be doing good so far, I’m wondering how I should learn python? submitted by /u/Rude_Category_8947 [link] [comments] 

I found a 100 days course udemy , that’s seems to be doing good so far, I’m wondering how I should learn python?

submitted by /u/Rude_Category_8947
[link] [comments]  I found a 100 days course udemy , that’s seems to be doing good so far, I’m wondering how I should learn python? submitted by /u/Rude_Category_8947 [link] [comments]

Read more

How to solve EOFError: EOF when reading a line /u/Ranch1k Python Education

How to solve EOFError: EOF when reading a line /u/Ranch1k Python Education

I got this error when I tried to use a int(integer()) to customize a turtle drawing:

import turtle import math import time

htn = int(input(“Type the amount of hearts you want the turtle to draw –> “))

t = turtle.Turtle() t.speed(0) t.color(“red”) turtle.bgcolor(“black”) t.hideturtle()

def coracao(n): x = 16 * math.sin(n) ** 3 y = 13 * math.cos(n) – 5 * math.cos(2n) – 2math.cos(3n) – math.cos(4n) return y, x

t.penup() for i in range(htn): t.goto(0, 0) t.pendown() for n in range(0, 100, 2): x, y = coracao(n/10) t.goto(yi, xi) t.penup()

turtle.done()

But it keeps giving that error, what can I do to solve this keeping the input??

submitted by /u/Ranch1k
[link] [comments]

​r/learnpython I got this error when I tried to use a int(integer()) to customize a turtle drawing: import turtle import math import time htn = int(input(“Type the amount of hearts you want the turtle to draw –> “)) t = turtle.Turtle() t.speed(0) t.color(“red”) turtle.bgcolor(“black”) t.hideturtle() def coracao(n): x = 16 * math.sin(n) ** 3 y = 13 * math.cos(n) – 5 * math.cos(2n) – 2math.cos(3n) – math.cos(4n) return y, x t.penup() for i in range(htn): t.goto(0, 0) t.pendown() for n in range(0, 100, 2): x, y = coracao(n/10) t.goto(yi, xi) t.penup() turtle.done() But it keeps giving that error, what can I do to solve this keeping the input?? submitted by /u/Ranch1k [link] [comments] 

I got this error when I tried to use a int(integer()) to customize a turtle drawing:

import turtle import math import time

htn = int(input(“Type the amount of hearts you want the turtle to draw –> “))

t = turtle.Turtle() t.speed(0) t.color(“red”) turtle.bgcolor(“black”) t.hideturtle()

def coracao(n): x = 16 * math.sin(n) ** 3 y = 13 * math.cos(n) – 5 * math.cos(2n) – 2math.cos(3n) – math.cos(4n) return y, x

t.penup() for i in range(htn): t.goto(0, 0) t.pendown() for n in range(0, 100, 2): x, y = coracao(n/10) t.goto(yi, xi) t.penup()

turtle.done()

But it keeps giving that error, what can I do to solve this keeping the input??

submitted by /u/Ranch1k
[link] [comments]  I got this error when I tried to use a int(integer()) to customize a turtle drawing: import turtle import math import time htn = int(input(“Type the amount of hearts you want the turtle to draw –> “)) t = turtle.Turtle() t.speed(0) t.color(“red”) turtle.bgcolor(“black”) t.hideturtle() def coracao(n): x = 16 * math.sin(n) ** 3 y = 13 * math.cos(n) – 5 * math.cos(2n) – 2math.cos(3n) – math.cos(4n) return y, x t.penup() for i in range(htn): t.goto(0, 0) t.pendown() for n in range(0, 100, 2): x, y = coracao(n/10) t.goto(yi, xi) t.penup() turtle.done() But it keeps giving that error, what can I do to solve this keeping the input?? submitted by /u/Ranch1k [link] [comments]

Read more