File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -641,8 +641,8 @@ def _process_events_before_frame(self):
641
641
642
642
643
643
def mainthread (func ):
644
- '''Decorator that will schedule the call of the function in the
645
- mainthread. It can be useful when you use
644
+ '''Decorator that will schedule the call of the function for the next
645
+ available frame in the mainthread. It can be useful when you use
646
646
:class:`~kivy.network.urlrequest.UrlRequest` or when you do Thread
647
647
programming: you cannot do any OpenGL-related work in a thread.
648
648
@@ -651,8 +651,8 @@ def mainthread(func):
651
651
652
652
@mainthread
653
653
def callback(self, *args):
654
- print('The request succedded!'
655
- 'This callback is call in the main thread')
654
+ print('The request succedded!',
655
+ 'This callback is called in the main thread. ')
656
656
657
657
self.req = UrlRequest(url='http://...', on_success=callback)
658
658
You can’t perform that action at this time.
0 commit comments