ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!

Cracked.to | Best Forum Around | Free Premium Accounts




 564

Need some help in this

by LoveBite - 2 months ago
This post is by a banned member (LoveBite) - Unhide
LoveBite  
Infinity
241
Rep
1.250
Likes
Posts: 995
Threads: 294
Joined: Apr 2020
Vouches:
Credits: 5.000
HealthHealthInfinity100 ReputationPremiumPremium
can someone tell me whats wrong here

 _location_=pyautogui.center(_start_button_)
  File "C:\Users\INDIA\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyscreeze\__init__.py", line 552, in center
    return Point(coords[0] + int(coords[2] / 2), coords[1] + int(coords[3] / 2))
TypeError: 'NoneType' object is not subscriptable
This post is by a banned member (goodoldie) - Unhide
goodoldie  
Registered
0
Rep
2
Likes
Posts: 115
Threads: 3
Joined: Nov 2018
Vouches: 0
Credits: 2.126
1 Year of service
#2
Not much info here. But if I were to guess, _start_button_ is the wrong type. You can probably try to debug from there.

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)