#4203: Make a suboption decorator to complement #4201
-------------------------+--------------------------------------------------
Reporter: jason | Owner: mhansen
Type: enhancement | Status: new
Priority: major | Milestone: sage-3.1.3
Component: graphics | Keywords:
-------------------------+--------------------------------------------------
{{{
[17:06] <mhansen> Yeah -- suboption should take a prefix, defaults, and
then return something like an arrow_options dict.
[17:07] <mhansen> @suboption('arrow', color='red', line='+')
[17:07] <jason-> okay, yeah, even better.
[17:07] <mhansen> And that would pick up things like arrow_color='blue'.
[17:07] <jason-> then I don't have to type the dictionary explicitly
[17:09] <mhansen> I think doing something like that might be a good idea.
It'd at least be a nice consistent way to handle all of these options.
}}}
The idea is that we'd like to get a bunch of options to pass on to, say,
an arrow_drawing routine. It'd be really nice if we could rename the
suboptions too, so the original arrow_color argument could be returned as
the rgbcolor element of the arrow_options dict.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4203>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---