Commits

Dusty Phillips committed 8c43b2a

Make the kivy language editor uneditable if there is no place to render

Comments (0)

Files changed (1)

             collapsed = False
         if collapsed is False and hasattr(object, "kv_container"):
             with open(object.kv_container.kv_file) as file:
+                self.language_box.background_color = (1, 1, 1, 1)
+                self.language_box.readonly = False
                 self.language_box.text = file.read()
                 self.kv_container = object.kv_container
         else:
+            self.language_box.background_color = (1, 1, 1, .5)
             self.language_box.text = ""
+            self.language_box.readonly = True
             self.kv_container = None
 
     def change_kv(self, button):