var loadorder = ['console.py']; var active_mods = ['console.py']; var mods_desc = {'console.py': ' Console Mod v.1\n by Shark in a Hat\n'}; var mods = {'console.py': "\ndef cheat_exec(event=None):\n ''' Execute the command typed into the console\n '''\n cmd = doc['cheat_console'].value\n if cmd:\n try:\n exec(cmd)\n except Exception as e:\n print(str(e))\nconsole_mod_div = html.DIV(Class='mod_div')\ndoc['mods_div'].appendChild(console_mod_div)\nconsole_mod_div.appendChild(html.DIV('Console'))\nconsole_mod_div.appendChild(html.INPUT(type='text', size='50', id='cheat_console'))\nexec_button = html.BUTTON(' exec ', type='button')\nexec_button.bind('click', cheat_exec)\nconsole_mod_div.appendChild(exec_button)\n"};