Commit 804f10e9 authored by André Anjos's avatar André Anjos 💬

[gui/widgets] Multiple improvements and linux fixes

parent 0db23c34
Pipeline #26477 passed with stages
in 13 minutes and 5 seconds
This diff is collapsed.
......@@ -239,7 +239,7 @@ class Annotation(object):
self._update_decoration()
def on_mouse_motion(self, p):
def on_pointer_motion(self, p):
"""Constantly calculates where mouse is, update label that can be changed.
The point should be supplied in ``(y,x)`` format
......@@ -263,6 +263,9 @@ class Annotation(object):
if self.mode in ('polygon',): #create a connector line
if len(self.point) < 3: #cannot create a polygon with 2 points...
return
points = [k for c in self.point for k in reversed(c)]
self.decoration.append(self.canvas.create_polygon(*points,
outline=COLOR_INACTIVE, fill=COLOR_INACTIVE, stipple="gray50",
......@@ -425,7 +428,7 @@ class Tooltip:
bg='#FFFFEA',
pad=(5, 3, 5, 3),
text='widget info',
waittime=400,
waittime=800,
wraplength=250):
self.waittime = waittime # in miliseconds, originally 500
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment