我们从Python开源项目中,提取了以下6个代码示例,用于说明如何使用idaapi.PluginForm()。
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)
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)
def Close(self, options=idaapi.PluginForm.FORM_SAVE): super(SkelUI, self).Close(options)
def Show(self, caption=None, options=0): return idaapi.PluginForm.Show(self, caption, options=options)
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