summaryrefslogtreecommitdiff
path: root/plugins/python/cglimpse/method.py
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-12-31 11:42:08 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-12-31 12:39:08 (GMT)
commit406a8a3c8eab4691ff32271ca906e93556d845dc (patch)
tree7bb5d771804c0a006ab8a1f474750a34e48cd018 /plugins/python/cglimpse/method.py
parent8965133f188c817cbdf4fcf9d1f1b60462bbfe7d (diff)
Completed the Python plugin displaying file entropy.
Diffstat (limited to 'plugins/python/cglimpse/method.py')
-rw-r--r--plugins/python/cglimpse/method.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/python/cglimpse/method.py b/plugins/python/cglimpse/method.py
index f2e9fdb..731271e 100644
--- a/plugins/python/cglimpse/method.py
+++ b/plugins/python/cglimpse/method.py
@@ -3,10 +3,12 @@ class GlimpseMethod():
"""Abstract class for gimpses."""
- def __init__(self, builder):
+ def __init__(self, builder, config, update_cb):
"""Populate the class with its attributes."""
self._builder = builder
+ self._config = config
+ self._update_cb = update_cb
self._v_legend = None
self._h_legend = None
@@ -37,6 +39,12 @@ class GlimpseMethod():
return str(value)
+ def update(self, data, coverage):
+ """Compute internal values for the method."""
+
+ pass
+
+
def render(self, cr, area):
"""Draw the bytes distribution for the current binary, if any."""