diff browser_side/radiocol.py @ 422:20c508f9b32a

browser side: fixed bad use of Timer
author Goffi <goffi@goffi.org>
date Wed, 26 Mar 2014 17:34:01 +0100
parents 462fc3359ee3
children d52f529a6d42
line wrap: on
line diff
--- a/browser_side/radiocol.py	Tue Mar 25 16:09:12 2014 +0100
+++ b/browser_side/radiocol.py	Wed Mar 26 17:34:01 2014 +0100
@@ -26,12 +26,10 @@
 from pyjamas.ui.Button import Button
 from pyjamas.ui.ClickListener import ClickHandler
 from pyjamas.ui.Hidden import Hidden
-from pyjamas.ui.HTML import HTML
 from pyjamas.ui.CaptionPanel import CaptionPanel
 from pyjamas.media.Audio import Audio
 from pyjamas import Window
 from pyjamas.Timer import Timer
-from __pyjamas__ import JS
 
 from html_tools import html_sanitize
 from file_tools import FilterFileUpload
@@ -152,7 +150,7 @@
         self.status.setStyleName('radiocol_upload_status_%s' % style)
         self.timer_on = True
 
-        def cb():
+        def cb(timer):
             self.timer_on = False
             self.updateStatus()