In the PlaceCleanup addon gramplet, @prculley implements (2 layers of) Help and “Set Preferences” buttons. The Gramplet does not use the help-url
from the Gramps Plugin Registration (.gpr.py
) file. It uses a hard-coded URL instead.
@jmichault adapts this addon to make a Lokpurigado
version that is more appropriate for France. (It uses OpenStreetMap instead of geonames. Takes INSEE codes instead of the zip codes.)
But the adaptation strips out the hard-coded bit but not the 2 layers of custom Help buttons… one in the docked gramplet nor the one in the spawned Preferences dialog.
How could the gramplet be changed to make the following not hard-coded but self-adapting … by using the help_url
for the WIKI_PAGE
and (help_url
+ "#Preferences"
) for the PREFS_WIKI
?
And, is there way the custom Help button could be suppressed in the undocked gramplet.
Also, the Preferences does not use the View → Configuration GUI. It spawns its own GUI dialog. but that is a separate issue.