How do I display a website with html-forms locally using python and collect the user input?

后端 未结 5 1571
猫巷女王i
猫巷女王i 2021-01-06 19:17

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 wr

5条回答
  •  自闭症患者
    2021-01-06 19:29

    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.

    You can combine the ease of HTML and still create native Windows applications using Flex with a Python backend.

    If you are averse to Flex, a bit more - involved - but still native windows application generator is Camelot

    Edit

    Instead of typing it out again - I would suggest the django + flex + pyamf article on Adobe that explains it all with screenshots as well. You can replace django with flask or bottle as they are more lightweight, however the PyAMF library provides native support for django which is why it was used in the example.

    PyAMF provides Action Message Format (a binary protocol to exchange object with the flash runtime) support for Python.

提交回复
热议问题