summaryrefslogtreecommitdiff
path: root/python/examples/triage/entropy.py
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2019-03-18 11:32:12 -0700
committerRusty Wagner <rusty@vector35.com>2019-03-20 13:00:17 -0400
commit22be7356f339bcb11383ac0ec2a6e11a605f9533 (patch)
tree10e7b7cdbed38d16320868884d4667bfc8b472d5 /python/examples/triage/entropy.py
parent36650362e2723036605ae336a40b4064ffd1b0fb (diff)
Fix some bugs in triage plugin
Diffstat (limited to 'python/examples/triage/entropy.py')
-rw-r--r--python/examples/triage/entropy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/examples/triage/entropy.py b/python/examples/triage/entropy.py
index 37ce295a..94afd650 100644
--- a/python/examples/triage/entropy.py
+++ b/python/examples/triage/entropy.py
@@ -4,7 +4,7 @@ from PySide2.QtWidgets import QWidget
from PySide2.QtGui import QImage, QColor, QPainter
from PySide2.QtCore import Qt, QSize, QTimer
import binaryninjaui
-from binaryninjaui import ViewFrame, ThemeColor
+from binaryninjaui import ViewFrame, ThemeColor, UIContext
class EntropyThread(threading.Thread):
@@ -51,7 +51,7 @@ class EntropyWidget(QWidget):
self.timer.setSingleShot(False)
self.timer.start()
- self.setMinimumHeight(32)
+ self.setMinimumHeight(UIContext.getScaledWindowSize(32, 32).height())
def paintEvent(self, event):
p = QPainter(self)