summaryrefslogtreecommitdiff
path: root/python/examples/triage/entropy.py
diff options
context:
space:
mode:
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)