I'm trying to stream data from firebase in my GUI ( Tkinter ) app.
I tried to stream the data in console and it goes very well, but i don't understand how can I stream it into the gui app.
Near by is what I've done
import pyrebase
from firebasedata import LiveData
from tkinter import *
import firebase_admin
pyrebase_config = {
'apiKey': "api-key",
'authDomain': "Domm",
'databaseURL': "url",
'projectId': "Id",
'storageBucket': "storage",
'messagingSenderId': "messId",
'appId': "appId"
}
firebase = pyrebase.initialize_app(pyrebase_config)
def stream(message):
print(message["data"])
print(message['path'])
users = db.child("/Inscrieri").stream(stream)