Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import firebase_admin
- from firebase_admin import credentials
- from firebase_admin import db
- cred = credentials.Certificate("2.json")
- firebase_admin.initialize_app(cred,{
- 'databaseURL':'https://new1-3b819.firebaseio.com/'
- })
- def funcion(fondo):
- ref = db.reference('/Imagenes')
- r1 = ref.get()
- for key in r1.values():
- print(str(key))
- s = str(key)
- fondo.setStyleSheet("background:"+s+";")
- from PyQt5.QtWidgets import QMainWindow,QApplication
- from PyQt5 import uic
- from npy import *
- class Principal(QMainWindow):
- def __init__(self):
- QMainWindow.__init__(self)
- uic.loadUi("im.ui",self)
- funcion(self.frame)
- app = QApplication([])
- p=Principal()
- p.show()
- app.exec_()
- Could not parse stylesheet of object 0x3c88c00
Add Comment
Please, Sign In to add comment