forgot2committhepixels

This commit is contained in:
Sander Land committed 2020-06-29 16:26:27 +02:00
1 parent 48e216fc16
commit 44d927abda
7 files changed
+45 -48

No files matched your search

+3 -3
View File
@@ -2,7 +2,7 @@ import time
from kivy.clock import Clock
from kivy.core.audio import SoundLoader
from kivy.properties import ObjectProperty, OptionProperty
from kivy.properties import ObjectProperty, OptionProperty, NumericProperty
from kivy.uix.boxlayout import BoxLayout
from kivymd.uix.floatlayout import MDFloatLayout
@@ -82,10 +82,10 @@ class ControlsPanel(BoxLayout):
def set_status(self, msg, status_type, at_node=None):
at_node = at_node or self.katrain and self.katrain.game and self.katrain.game.current_node
if at_node != self.status_state[2] or int(status_type) >= int(self.status_state[1]) or msg=="":
if at_node != self.status_state[2] or int(status_type) >= int(self.status_state[1]) or msg == "":
self.status_state = (msg, status_type, at_node)
self.status.text = msg
self.status.error = status_type==STATUS_ERROR
self.status.error = status_type == STATUS_ERROR
Clock.schedule_once(self.update_evaluation, 0)
# handles showing completed analysis and score graph