Python idaapi 模块,PluginForm() 实例源码

我们从Python开源项目中,提取了以下6个代码示例,用于说明如何使用idaapi.PluginForm()

项目:FIRST-plugin-ida    作者:vrtadmin    | 项目源码 | 文件源码
def accepted(fclass, dialog):
            '''Registered callback for accept dialog action.

            Args:
                fclass (:obj:`idaapi.PluginForm`): The plugin form part of
                dialog (:obj:`FIRSTUI.*`): A dialog box object.
            '''
            if (isinstance(dialog, FIRSTUI.Upload)
                    or isinstance(dialog, FIRSTUI.UploadAll)):
                FIRST.Callbacks.Upload(dialog)

            elif (isinstance(dialog, FIRSTUI.Check)
                    or isinstance(dialog, FIRSTUI.CheckAll)):
                FIRST.Callbacks.check(dialog)

            elif isinstance(dialog, FIRSTUI.Welcome):
                FIRST.Callbacks.welcome(dialog)
项目:polichombr    作者:ANSSI-FR    | 项目源码 | 文件源码
def Show(self):
        options = idaapi.PluginForm.FORM_CLOSE_LATER
        options = options | idaapi.PluginForm.FORM_RESTORE
        options = options | idaapi.PluginForm.FORM_SAVE
        return idaapi.PluginForm.Show(self, "Skelenox UI", options=options)
项目:polichombr    作者:ANSSI-FR    | 项目源码 | 文件源码
def Close(self, options=idaapi.PluginForm.FORM_SAVE):
        super(SkelUI, self).Close(options)
项目:HexRaysPyTools    作者:igogo-x86    | 项目源码 | 文件源码
def Show(self, caption=None, options=0):
        return idaapi.PluginForm.Show(self, caption, options=options)
项目:HexRaysPyTools    作者:igogo-x86    | 项目源码 | 文件源码
def Show(self, caption=None, options=0):
        return idaapi.PluginForm.Show(self, caption, options=options)
项目:FIRST-plugin-ida    作者:vrtadmin    | 项目源码 | 文件源码
def tform_visible(self, form, hwnd):
                '''Shows the FIRST Welcome dialog box if required.'''
                if ((IDAW.BWN_DISASMS == IDAW.get_tform_type(form))
                    and FIRST.show_welcome):
                    parent = idaapi.PluginForm.FormToPyQtWidget(form)

                    welcome_dialog = FIRSTUI.Dialog(parent, FIRSTUI.Welcome)
                    welcome_dialog.registerSuccessCallback(FIRST.Callbacks.welcome)
                    welcome_dialog.show()
                    FIRST.show_welcome = False