Tkinter and boliot package (regarding)

from tkinter import Tk,Button
from boltiot import Bolt,Sms
api=“a43b3bb4-7dc4-4130-a5e9-aca98cf1faff”
device=“BOLT11692061”
root=Tk()
reserve=Bolt(api,device)
buton=Button(root,text=“ON”,command=reserve.digitalWrite(0,“HIGH”))
buton.pack()
butoff=Button(root,text=“off”,command=reserve.digitalWrite(0,“LOW”))
butoff.pack()
root.mainloop()

#this is my code i am not getting any error in python shell, but the code is not running, i am not able to identify my mistake. i request you to please rectify my error
#here i am using bolt wifi module to control the led (that is on and off). i want to use both tkinter and boltiot module so that by pressing a button i can control the LED

Hi @karthikmb.ec17,

I have never used the tkinter library. I will suggest you to first try out the simple python code for turning on the led, then go for Tkinter. app.

Refer this link https://docs.boltiot.com/docs/python-library
I will also try out the Tkinter library with Bolt and will update here accordingly.

Do let me know in case you need further assistance.