Wrapper class that represents a GUI MessageBox. Note ---- Contains specific (basic) Karta logic.
| 25 | idc.msg("%s\n" % (super(IdaLogHandler, self).format(record))) |
| 26 | |
| 27 | class MessageBox(idaapi.Form): |
| 28 | """Wrapper class that represents a GUI MessageBox. |
| 29 | |
| 30 | Note |
| 31 | ---- |
| 32 | Contains specific (basic) Karta logic. |
| 33 | """ |
| 34 | |
| 35 | def __init__(self, text): |
| 36 | """Create a basic message box. |
| 37 | |
| 38 | Args: |
| 39 | text (str): Text to be shown by the message box |
| 40 | """ |
| 41 | # dialog content |
| 42 | dialog_content = """%s |
| 43 | %s |
| 44 | """ % (LIBRARY_NAME, text) |
| 45 | idaapi.Form.__init__(self, dialog_content, {}) |
| 46 | |
| 47 | class ConfigForm(idaapi.Form): |
| 48 | """Wrapper class that represents the GUI configuration form for Karta's scripts. |