android - Describing OSC in a .kv langage -


kivy 1.9.0

from kivy.app import app

from kivy.uix.floatlayout import floatlayout

from kivy.uix.boxlayout import boxlayout

from kivy.uix.button import button

from kivy.uix.gridlayout import gridlayout

from kivy.uix.widget import widget

from kivy.lang import builder

from simpleosc import initoscclient, initoscserver, closeosc, \ setoschandler, sendoscmsg

class oscshowcase(boxlayout):

pass 

class testoscapp(app):

def build(self):     return oscshowcase()  def send_osc(self, *l):     #pass     sendoscmsg('activate', [3.0]) 

if name == 'main':

host = '127.0.0.1' sport = 9000 rport = 9001 # osc initoscclient(host, sport) initoscserver(host, rport) testoscapp().run() 

.kv file below

<oscshowcase>:

boxlayout:      widget:          button:              text: 'osc'             pos: (500, 400)             on_press: app.send_osc() 

do think can edit osc messages directly in kv.file in order separate every button assigned osc message?


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -