Changes

Jump to: navigation, search

Gramps 3.1 Wiki Manual - Gramplets

292 bytes added, 14:10, 26 January 2009
Python Gramplet
> Date(1703, 6, 1).to_calendar("hebrew")
5463-10-17 (Hebrew)
 
=== Developers ===
Another use for this Gramplet is for debugging. This gramplet makes a nice interface to the running GRAMPS system. You can inspect, and alter the system by entering Python commands. As a simple example, you can:
> self.set_wrap(False) # turn word wrap off
> self.set_wrap(True) # turn word wrap on
 
The Python Gramplet also has the Python "garbage collector" preloaded with the same flags as the Debug Tool. To use:
 
> gc.collect()
23
> gc.garbage[0]
<cell at 0x9f9089c: function object at 0x9f89dbc>
> gc.get_referents(self)
[...]
> gc.get_referers(self)
[...]
<br clear="all"/>

Navigation menu