Using a raspberry pi, I am trying to make a GUI using Blynk’s python library and Tkinter’s GUI library. When running them together (see code below), the loop, [blynk.run()] overrides the GUI. Is there a way to run the Blynk library using this GUI? I’m kind of new to all this so sorry if I said anything wrong.
Thanks in advance
Edit: Using python 3.5.3 on Raspberry Pi B+
import BlynkLib import time import requests from tkinter import * from tkinter import font blynk = BlynkLib.Blynk('MY AUTH TOKEN') win = Tk() myFont = font.Font(family = 'Helvetica', size = 36, weight = 'bold') font.families() win.title("Changing V1 Blynk") win.geometry('400x400') def changeV1(): print("Button was pressed") blynk.virtual_write(1, 1) changeV1 = Button(win, text = "Change V1", font = myFont, command = changeV1, height = 2, width =10 ) changeV1.pack() win.update() blynk.run()