I am writing a small Python and WebKit app; I am using WebKit as the UI for my app.
What I want to do is to create an interactive element in WebKit (namely a combo box or a set of clickable regions) and when the user interacts with these elements I can call a Python callback to do some processing and then update the WebKit view with new information.
Here is an example of what I want to do:
- User is presented with a combo box of options (combo box displayed, I assume, using a HTML form in WebKit).
- When the combo box option is selected,
on_combo_selected()is called in my Python script which then grabs some data.
- The data is passed to WebKit and the view is updated.
How can I do this?