comparison browser_side/dialog.py @ 93:907a72e79b3e

typo fix
author Goffi <goffi@goffi.org>
date Tue, 28 Jun 2011 03:51:39 +0200
parents dd54bc13ac81
children 8f9d30672225
comparison
equal deleted inserted replaced
92:dd54bc13ac81 93:907a72e79b3e
304 self._callListeners() 304 self._callListeners()
305 305
306 def onInput(self, sender): 306 def onInput(self, sender):
307 """Accept only valid integer && normalize print (no leading 0)""" 307 """Accept only valid integer && normalize print (no leading 0)"""
308 try: 308 try:
309 self.value = int(self.box.getText()) if self.bot.getText() else 0 309 self.value = int(self.box.getText()) if self.box.getText() else 0
310 except ValueError: 310 except ValueError:
311 pass 311 pass
312 if self.value_max: 312 if self.value_max:
313 self.value = min(self.value,value_max) 313 self.value = min(self.value,value_max)
314 self.box.setText(str(self.value)) 314 self.box.setText(str(self.value))