HookEntry¶
-
class
tfsnippet.HookEntry(callback, freq, priority, birth)¶ Bases:
objectConfigurations of a hook entry in
HookList.Methods Summary
maybe_call()Decrease the counter, and call the callback if counter is less than 1. reset_counter()Reset the counter to freq, its initial value. sort_key()Get the key for sorting this hook entry. Methods Documentation
-
maybe_call()¶ Decrease the counter, and call the callback if counter is less than 1. The counter will be reset to freq after then.
-
reset_counter()¶ Reset the counter to freq, its initial value.
-
sort_key()¶ Get the key for sorting this hook entry.
-