Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to separate x and y from mouse position python

#just follow me

#xmousepos is a variable that assigns itsalf to the position of your cursor
#the [0] means the x position of the cursor [1] means the y position
#[1] is for the 2nd value of xmousepos / the x value
#[2] is for the 1st value of ymousepos / the y value
xmousepos=pygame.mouse.get_pos()[0]
ymousepos=pygame.mouse.get_pos()[1]

#i hope this helped yoy... now get back to work
Comment

PREVIOUS NEXT
Code Example
Python :: install tkinter python 3 mac 
Python :: open csv from google drive using python 
Python :: typage in python 
Python :: procfile flask 
Python :: django import models 
Python :: python check if file has content 
Python :: filter nulla values only pandas 
Python :: python is not set from command line or npm configuration node-gyp 
Python :: values outside range pandas 
Python :: how to move mouse for one place to another python using pyautogui 
Python :: getpass 
Python :: python read excel set index 
Python :: is string python 
Python :: download youtube video in python 
Python :: ignore bad lines pandas 
Python :: taking string input from user in python 
Python :: serving static audio files with flask in react 
Python :: Liczby zespolone Python 
Python :: remove special characters from dictionary python 
Python :: how to remove stopwords from a string in python 
Python :: how to put iput python 
Python :: converting a string to a dictionary in python 
Python :: how to find the length of a list in scratch 
Python :: Ascending discending 
Python :: pil to grayscale 
Python :: taking hour information from time in pandas 
Python :: get all files of a drive folder to google colab 
Python :: numpy array heaviside float values to 0 or 1 
Python :: python extract all numbers from string re 
Python :: get list of objects in group godot 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =