def init_gui():
""" Tries to find the main Binja window. If we've already found it, does nothing.
Call this as many times as you want, just in case. """
global main_window
if main_window is None:
app = QApplication.instance()
main_window = [x for x in app.allWidgets() if x.__class__ is QMainWindow][0]
评论列表
文章目录