bugfix
This commit is contained in:
parent
24a501896e
commit
71b11edabf
@ -1,6 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
import threading
|
||||||
|
|
||||||
from appPublic.sockPackage import get_free_local_addr
|
from appPublic.sockPackage import get_free_local_addr
|
||||||
from kivy.utils import platform
|
from kivy.utils import platform
|
||||||
@ -248,12 +249,17 @@ class OSC_VPlayer(BaseVPlayer):
|
|||||||
self.map('/replay',self.replay)
|
self.map('/replay',self.replay)
|
||||||
self.map('/next',self.next)
|
self.map('/next',self.next)
|
||||||
self.map('/previous',self.previous)
|
self.map('/previous',self.previous)
|
||||||
self.server.serve_forever()
|
t = threading.Thread(target=self.server.serve_forever())
|
||||||
|
t.start()
|
||||||
self.fullscreen = True
|
self.fullscreen = True
|
||||||
label = Label(text='%s %d' % (self.ip,self.port), font_size=CSize(2))
|
label = Label(text='%s %d' % (self.ip,self.port), font_size=CSize(2))
|
||||||
label.size = self.width - label.width, 0
|
label.x = self.width - label.width, 0
|
||||||
|
label.y = 0
|
||||||
self.add_widget(label)
|
self.add_widget(label)
|
||||||
|
|
||||||
|
def __del__(self):
|
||||||
|
self.server.stop()
|
||||||
|
|
||||||
def map(self,p,f):
|
def map(self,p,f):
|
||||||
self.dispatcher.map(p,f,None)
|
self.dispatcher.map(p,f,None)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user