summaryrefslogtreecommitdiff
path: root/python/examples
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples')
-rw-r--r--python/examples/triage/byte.py4
-rw-r--r--python/examples/triage/entropy.py4
-rw-r--r--python/examples/triage/headers.py3
-rw-r--r--python/examples/triage/sections.py3
4 files changed, 8 insertions, 6 deletions
diff --git a/python/examples/triage/byte.py b/python/examples/triage/byte.py
index fe887fb4..6a3a9a10 100644
--- a/python/examples/triage/byte.py
+++ b/python/examples/triage/byte.py
@@ -5,8 +5,8 @@ from PySide2.QtWidgets import QAbstractScrollArea, QAbstractSlider
from PySide2.QtGui import QPainter, QPalette, QFont
from PySide2.QtCore import Qt, QTimer, QRect
import binaryninjaui
-from binaryninjaui import View, ViewType, RenderContext, UIContext, ThemeColor, UIAction
-from binaryninja.enums import LinearDisassemblyLineType
+from binaryninjaui import View, ViewType, RenderContext, UIContext, UIAction
+from binaryninja.enums import LinearDisassemblyLineType, ThemeColor
from binaryninja.binaryview import AddressRange
diff --git a/python/examples/triage/entropy.py b/python/examples/triage/entropy.py
index 57e9d2c4..3ce2de11 100644
--- a/python/examples/triage/entropy.py
+++ b/python/examples/triage/entropy.py
@@ -4,8 +4,8 @@ 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, UIContext
-
+from binaryninjaui import ViewFrame, UIContext
+from binaryninja.enums import ThemeColor
class EntropyThread(threading.Thread):
def __init__(self, data, image, block_size):
diff --git a/python/examples/triage/headers.py b/python/examples/triage/headers.py
index 33b9b3c2..0c87518d 100644
--- a/python/examples/triage/headers.py
+++ b/python/examples/triage/headers.py
@@ -1,7 +1,8 @@
import time
from binaryninja.binaryview import StructuredDataView
import binaryninjaui
-from binaryninjaui import ThemeColor, ViewFrame, UIContext
+from binaryninjaui import ViewFrame, UIContext
+from binaryninja.enums import ThemeColor
from PySide2.QtWidgets import QWidget, QLabel, QGridLayout
from PySide2.QtGui import QPalette
diff --git a/python/examples/triage/sections.py b/python/examples/triage/sections.py
index 69ac8868..b18f5f28 100644
--- a/python/examples/triage/sections.py
+++ b/python/examples/triage/sections.py
@@ -3,7 +3,8 @@
from PySide2.QtWidgets import QWidget, QLabel, QGridLayout, QHBoxLayout
from binaryninja.enums import SectionSemantics
import binaryninjaui
-from binaryninjaui import ThemeColor, ViewFrame, UIContext
+from binaryninjaui import ViewFrame, UIContext
+from binaryninja.enums import ThemeColor
from . import headers