From 7d6278851e5b4fc3920881223ab9b8d96e6b9d2e Mon Sep 17 00:00:00 2001 From: Pezz89 Date: Mon, 6 Apr 2015 18:15:21 +0200 Subject: [PATCH] Release commit --- iTunes Rating App.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iTunes Rating App.py b/iTunes Rating App.py index d95bd2b..4e77c39 100644 --- a/iTunes Rating App.py +++ b/iTunes Rating App.py @@ -229,6 +229,8 @@ class MainWindow(wx.Frame): img = img.Scale(120,120) self.icon = wx.StaticBitmap(self, bitmap=wx.BitmapFromImage(img)) if t["duration"] - t["position"] <= 30: + if self.soundbool: + wx.Bell() if self.flashbool: self.panel.SetBackgroundColour(wx.NullColour) self.panel.Refresh() @@ -238,8 +240,9 @@ class MainWindow(wx.Frame): self.panel.Refresh() self.flashbool = True else: - self.panel.SetBackgroundColour(wx.NullColour) - self.panel.Refresh() + self.soundbool = True + self.panel.SetBackgroundColour(wx.NullColour) + self.panel.Refresh() #--------------------------------------------------------------