Updates the ui for this counter. Args: value: The value to display Returns: True if the value had changed, otherwise False. The first call always returns True.
(self, value)
| 283 | self.last_value = None |
| 284 | |
| 285 | def Set(self, value): |
| 286 | """Updates the ui for this counter. |
| 287 | |
| 288 | Args: |
| 289 | value: The value to display |
| 290 | |
| 291 | Returns: |
| 292 | True if the value had changed, otherwise False. The first call |
| 293 | always returns True. |
| 294 | """ |
| 295 | if value == self.last_value: |
| 296 | return False |
| 297 | else: |
| 298 | self.last_value = value |
| 299 | self.var.set(self.format % value) |
| 300 | return True |
| 301 | |
| 302 | |
| 303 | class SharedDataAccess(object): |
no test coverage detected