We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cf76f6 commit d752084Copy full SHA for d752084
tkinter_led.py
@@ -12,15 +12,16 @@
12
def led_on():
13
while True:
14
led.write(1)
15
- refresh(m)
+ refresh(m)#this causes a problem which can removed by removing 'm'
16
+#but then the window will close after one click
17
18
def led_off():
19
20
led.write(0)
21
refresh(m)
22
23
m.title("GUI + Arduino")
-m.geometry("100x100")#pady for grid and themes for tkinter
24
+m.geometry("100x100")#pady for grid and themes for tkinter. To get themes pip install ttkthemes
25
thelabel = Label(m, text = "Welcome to led simulation!")
26
thelabel.pack(side = TOP)
27
0 commit comments