[issue29559] Detect mouse over lines on canvas while mouse button is down

2017-02-14 Thread Ted Shaneyfelt

New submission from Ted Shaneyfelt:

There way mouse captures are done, mouse-over events seem to be disabled while 
dragging. 

This makes it difficult to provides hints as feedback, and more complicated 
than it should be to detect when dropping over a particular line object. 

Tk may not directly support it, but is there any way of getting into its guts 
to provide an option to re-enable mouse-over events while dragging? Or even 
providing a tuple with the pending mouse-overs upon release? or perhaps even 
simulate a mouse-up-mouse-down sequence to allow the events to propagate 
through and consume the noise within tkinter? Or even detect that there is a 
pending mouseover waiting for the mouseup event and delivering it along with 
the mouseup or notifying within the event that there is one pending?

--
components: Tkinter
messages: 287789
nosy: Ted Shaneyfelt2
priority: normal
severity: normal
status: open
title: Detect mouse over lines on canvas while mouse button is down
type: enhancement
versions: Python 3.6

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29559>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29467] Allow return mismatch to be caught by function

2017-02-06 Thread Ted Shaneyfelt

New submission from Ted Shaneyfelt:

def f():
try: return 0
except: return 1,2

x = f() # x is 0
x,y = f() # proposal: x,y should be 1,2 instead of uncaught TypeError

It would make sense to be able to catch [TypeError: 'int' object is not 
iterable] and return the correct number of values. Yes, the way it's done now, 
the function is no longer running when it is caught - but is it possible and 
practical to determine if parameters match before the function returns instead 
of afterward, allowing the called function to catch the error attempting to 
return?

--
components: Interpreter Core
messages: 287173
nosy: Ted Shaneyfelt
priority: normal
severity: normal
status: open
title: Allow return mismatch to be caught by function
type: enhancement
versions: Python 3.5

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29467>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com