title: How do I display a website with html-forms locally using python and collect the user input?
body: <p>I am a behavorial scientist and usually collect data by letting participants do some tasks on a computer and record their responses (I write the programs using the pyglet wrapper <a href="http://www.psychopy.org/" rel="nofollow noreferrer">PsychoPy</a>). That is, the program runs locally and the data is stored locally.</p>
  
  <p>Now I would like to know if there is a way to use Python to display a (local) website with html-forms to the user and collect the input (locally). The reason for this idea is that currently whenever I want to display checkboxes, radiobuttons, or input fields I use wxPython. This works quite well, but programming and layouting in wxPython is kind of cumbersome and I would prefer html with forms.</p>
  
  <p>A requirement would be that it would need to rum without any borders, adress field, menu bar, ... The reason is that I need it in kind of fullscreen mode (I currently open a non-fullscreen pygflet window in the size of the screen to hide the desktop) so that participants can do nothing but work on the forms.</p>
  
  <p><strong>So I am looking for a way to (a) display html websites including html form above a pyglet window with no menu bar or whatsoever, (b) collect the input when clicking on the Ok button (i.e., the form is send), (c) control what is presented prior and after viewing this website, and (d) everything of this should happen locally!</strong></p>
  
  <p>My idea would be that the data is collected when participants hit the "Send away" button in the following example pic and the next page is displayed.</p>
  
  <p><img src="https://i.stack.imgur.com/qZDS2.png" alt="example form"></p>
  
  <p><strong>Update:</strong> I use windows (XP or 7).</p>