1
0

2 Commits 9f11caeb40 ... c8d1b2fccb

Autor SHA1 Mensagem Data
  JamZYM c8d1b2fccb debug 6 meses atrás
  JamZYM 282209fd36 debug 6 meses atrás
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      main.py

+ 2 - 0
main.py

@@ -46,6 +46,8 @@ class MainWidget(Widget):
         grid01.add_widget(TextInput(text=deviceName,width=self.grid00.width / 2,height=self.grid00.height / 2,font_size=40))
         connect_button = Button(text="Connect",width=self.grid00.width,height=self.grid00.height / 2,center_x=self.grid00.center_x,font_size=40)
         self.grid00.add_widget(connect_button)
+        if connect_button.state == "down":
+            self.clear_widgets(self.grid00)
 
 class STI2021A(App):
     def __init__(self):