pythonhtmlpython-2.7gtkwebkitgtk

Give python variables to GTK+ with an html file


for a project i have to make a GUI for python. It should show some variables (temp etc). But I don't know how I can pass variables trough GTK to the window. Any answers appreciated :)

some info: I am using a RPi3, but that's nothing which is important, or is it? I have a 7" display attached, on which the program should be seen in full screen. In the end, there should stand sth like temp, humidity, water etc

I don't exactly know which GTK i use, but it's in python. So I think it's pygtk

Thanks for reading,

Fabian


Solution

  • Done. I've used Flask, Socket.io and gtk to make an app, showing a html file in full screen, with python variables in it.