Пример #1
0
 def build(self):
     xmmscon = XmmsConnection()
     mb = MediaBar2(xmmscon)
     mb.x = 0
     mb.height = 80
     mb.width = 800
     mb.y = 480 - 80
     mb.setup_contents()
     xmmscon.connect_after('xmmsconnected', self.xmms_connected_cb)
     xmmscon.connect_after('xmmsdisconnected', self.xmms_disconnected_cb)
     Clock.schedule_once(self.setup_xmmscon, 15)
     
     self.xmms = xmmscon
     self.mb = mb
     return mb
Пример #2
0
 def setup(self):
     # self.playback_slider.bind(on_touch_up=self.seek_to)
     # self.next_btn.bind(on_press=self.next_track)
     # self.prev_btn.bind(on_press=self.prev_track)
     # self.play_btn.bind(on_press=self.play_btn_pressed)
     
     self.state = None
     self.connected = False
     self.currently_playing = None
     
     xmms = XmmsConnection()
     xmms.connect_after('xmmsconnected', self.xmms_connected_cb)
     xmms.connect_after('xmmsdisconnected', self.xmms_disconnected_cb)
     self.xmms = xmms
     Clock.schedule_once(self.setup_xmmscon, 1)