Ticket #3866 (needs_work enhancement)

Opened 5 years ago

Last modified 3 years ago

[with patch, not ready for review] Create a 2d locator interact widget

Reported by: jason Owned by: itolkov
Priority: major Milestone: sage-5.10
Component: interact Keywords:
Cc: Work issues:
Report Upstream: N/A Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

This is a *very* *extremely* rough-cut of a 2d locator widget. All the docstrings are blatantly wrong and the code is full of ugly things. But it works, sort of. It's a starting point for someone to finish.

An example:

@interact
def _(pos=locator(3)):
    print pos

Attachments

locator.patch Download (11.0 KB) - added by jason 5 years ago.
trac_3866_4.0.1_rebase.patch Download (3.5 KB) - added by mhampton 4 years ago.
rebase against 4.0.1, along with some very minor cleanup

Change History

Changed 5 years ago by jason

comment:1 Changed 5 years ago by mabshoff

  • Summary changed from Create a 2d locator interact widget to [with patch, do not review] Create a 2d locator interact widget

Hi Jason,

does this patch need a review?

Cheers,

Michael

comment:2 Changed 5 years ago by jason

  • Summary changed from [with patch, do not review] Create a 2d locator interact widget to [with patch, not ready for review] Create a 2d locator interact widget

No, not yet; definitely not yet. I'm embarrassed to post the patch as it was; I only posted it because I was more embarrassed by almost losing the patch (I just barely found it).

comment:3 Changed 4 years ago by mhampton

I am thinking of giving this to a student of mine for an independent study project. To avoid duplication of effort I would appreciate being informed of any independent effort on it.

Thanks, Marshall Hampton

Changed 4 years ago by mhampton

rebase against 4.0.1, along with some very minor cleanup

comment:4 Changed 4 years ago by mhampton

It looks like my student didn't get very far, unfortunately. I will attempt to improve this further, but I am attaching a rebased (and slightly cleaned-up) patch in case other people want to move ahead faster.

Note: See TracTickets for help on using tickets.