Exemplo n.º 1
0
 def playsong(self, e):
     i = int(self.curselection()[0])
     if not self.is_playing:
         self.is_playing = True
         self.pid = play(self.mp3s[i])
     else:
         os.kill(self.pid, SIGTERM)
         self.is_playing = True
         self.pid = play(self.mp3s[i])
Exemplo n.º 2
0
 def playsong(self, e):
     i = int(self.curselection()[0])
     if not self.is_playing:
         self.is_playing = True
         self.pid = play(self.mp3s[i])
     else:
         os.kill(self.pid, SIGTERM)
         self.is_playing = True
         self.pid = play(self.mp3s[i])
Exemplo n.º 3
0
def playsong(e):
    global is_playing, pid
    i = int(listbox.curselection()[0])
    if not is_playing:
        is_playing = True
        pid = play(mp3s[i])
    else:
        os.kill(pid, SIGTERM)
        is_playing = True
        pid = play(mp3s[i])
Exemplo n.º 4
0
def playsong(e):
    global is_playing, pid
    i = int(listbox.curselection()[0])
    if not is_playing:
        is_playing = True
        pid = play(mp3s[i])
    else:
        os.kill(pid, SIGTERM)
        is_playing = True
        pid = play(mp3s[i])