|
14 | 14 | from binaryninja.plugin import PluginCommand, MainThreadActionHandler
|
15 | 15 | from binaryninja.mainthread import execute_on_main_thread
|
16 | 16 | from binaryninja.log import (log_error, log_debug)
|
17 |
| -from binaryninjaui import (getMonospaceFont, UIAction, UIActionHandler, Menu, DockHandler, |
18 |
| - getThemeColor, ThemeColor) |
| 17 | +from binaryninjaui import (getMonospaceFont, UIAction, UIActionHandler, Menu, DockHandler) |
19 | 18 | import numbers
|
20 | 19 | from .QCodeEditor import QCodeEditor, PythonHighlighter
|
21 | 20 |
|
@@ -158,7 +157,7 @@ def __init__(self, context, parent=None):
|
158 | 157 | font = getMonospaceFont(self)
|
159 | 158 | self.edit.setFont(font)
|
160 | 159 | font = QFontMetrics(font)
|
161 |
| - self.edit.setTabStopWidth(4 * font.width(' ')); #TODO, replace with settings API |
| 160 | + self.edit.setTabStopWidth(4 * font.width(' ')) #TODO, replace with settings API |
162 | 161 |
|
163 | 162 | #Files
|
164 | 163 | self.files = QFileSystemModel()
|
@@ -296,7 +295,7 @@ def reject(self):
|
296 | 295 |
|
297 | 296 | def browseSnippets(self):
|
298 | 297 | url = QUrl.fromLocalFile(snippetPath)
|
299 |
| - QDesktopServices.openUrl(url); |
| 298 | + QDesktopServices.openUrl(url) |
300 | 299 |
|
301 | 300 | def newFolder(self):
|
302 | 301 | (folderName, ok) = QInputDialog.getText(self, self.tr("Folder Name"), self.tr("Folder Name: "))
|
|
0 commit comments