| 1305 | # Check-for-update form |
| 1306 | class Update_Form(idaapi.Form): |
| 1307 | def __init__(self, version, message): |
| 1308 | # create Update form |
| 1309 | Form.__init__(self, |
| 1310 | r"""STARTITEM 0 |
| 1311 | BUTTON YES* Open Keypatch Website |
| 1312 | KEYPATCH:: Check for update |
| 1313 | |
| 1314 | {FormChangeCb} |
| 1315 | Your Keypatch is v%s |
| 1316 | %s |
| 1317 | """ %(version, message), { |
| 1318 | 'FormChangeCb': Form.FormChangeCb(self.OnFormChange), |
| 1319 | }) |
| 1320 | |
| 1321 | self.Compile() |
| 1322 | |
| 1323 | # callback to be executed when any form control changed |
| 1324 | def OnFormChange(self, fid): |