Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

hovering over canvas item tkinter event

You can pass the argument activefill when creating your rectangle.

From effboot.org:

Fill color to use when the mouse pointer is moved over the item, if different from fill.

To do so, replace:

rectangle = self.canvas.create_rectangle(x, y, x + 50, y + 50, fill='red')
By:

rectangle = self.canvas.create_rectangle(x, y, x + 50, y + 50, fill='red', activefill='cyan')
Comment

PREVIOUS NEXT
Code Example
Python :: click on button tag with only class selenium python 
Python :: fsting in python 
Python :: input function in django 
Python :: python graphviz undirected graph 
Python :: for loop does not work with open 
Python :: How to open hyperlink with target=“_blank” in PyQt5 
Python :: convert c++ code to python online 
Python :: pandas remove rows based on DATETIME column year 
Python :: how to respond to a number in python 
Python :: i for i 
Python :: !python read data from mysql and export to xecel 
Python :: how to get id of user discord.py 
Python :: find starting and ending letter in python/py 
Python :: how to type shashank in python 
Python :: *args **kwargs together in python 
Python :: parquet folder single df dataframe 
Python :: recieve output from java python 
Python :: is python procedural 
Python :: python von konsoleeinlesen 
Python :: logarithmic 2d histogram 
Python :: styling filter form django 
Python :: python read vcf file line by line 
Python :: Grid-Strategy 
Python :: azure functions read only file system 
Python :: go to line in jetbrain 
Python :: logartim normalization python pandas 
Python :: python list all youtube channel videos 
Python :: how to get device hwid cmd 
Python :: printing multiple input in python 
Python :: dice rolling app in python 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =