Deleting onPageStartup script


There doesn’t seem to be a way of deleting line 1 on the Project | Session Events dialog once an event has been created. Does this matter? Is a Python pass required on line 2 to suppress errors?

Hm. It does seem odd that the script conveys a warning, though in the strictest sense it is correct. I think pass is perfectly acceptable here, though providing nothing and saving your changes while that “error” indication is present should not impact your project in any way. I’ll see what we can do about that warning. As for deleting line 1, that line needs to stay because the internal hooks are expecting that function name. If you delete it and try to replace it with something else nothing will happen. It’s safer for users if we just make that line non-editable.