You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
since there's only the fixed 2 items in that dict, tuple will do well and type less words, what's benefit from this?
for the _run/_view, just use it in tuple, no much reason to use dict imo.
@ulion hit the nail on the head. The reason it is lists of tuples is because each item is always a label and an action, so typing out dict keys is wordier, especially if you have multiple context menu items. However, @dersphere I agree with you that the dict version if more informative to beginners...
... instead of "list of two-element-length-tuples containing label and action" ;)
This would improve readability and would make it easier for beginners. Also this is a good place to use the new wrappers _run and _view
Draft:
Tell me what you think :)
The text was updated successfully, but these errors were encountered: