Browse Source

Merge pull request #156 from ceccopierangiolieugenio/dev

Reformatted the Pushwidgetcursor
pull/158/head
Ceccopierangiolieugenio 3 years ago committed by GitHub
parent
commit
2b4af00d3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      TermTk/TTkWidgets/widget.py

4
TermTk/TTkWidgets/widget.py

@ -827,7 +827,9 @@ class TTkWidget(TMouseEvents,TKeyEvents, TDragEvents):
self._pushWidgetCursor()
def _pushWidgetCursor(self):
if self._widgetCursorEnabled and self._visible and ( self._focus or self == TTkHelper.cursorWidget() ):
if ( self._widgetCursorEnabled and
self._visible and
( self._focus or self == TTkHelper.cursorWidget() ) ):
cx,cy = self._widgetCursor
ax, ay = TTkHelper.absPos(self)
if ( self == TTkHelper.widgetAt(cx+ax, cy+ay) or

Loading…
Cancel
Save