Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ttsdatasetrecorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.properties import StringProperty, NumericProperty
from kivy.clock import Clock
from kivy.clock import Clock, mainthread
from kivy.uix.label import Label
from kivy.core.text import FontContextManager as FCM

Expand Down Expand Up @@ -80,7 +80,7 @@ def prev_button(self):
self.line_index -= 2
self.load_next_sentence()


@mainthread
def load_next_sentence(self):
self.line_index += 1
if self.line_index >= len(self.lines):
Expand Down