(self)
| 1912 | |
| 1913 | class PercentCycler(Cycler): |
| 1914 | def __str__(self): |
| 1915 | v = self.value() |
| 1916 | if type(v) == float and (v < .1 or v > .9) and not v in (0., 1.): |
| 1917 | return "%2.2f%%" % (v*100.) |
| 1918 | else: |
| 1919 | return "%2.1f%%" % (v*100.) |
| 1920 | |
| 1921 | class Menu: |
| 1922 | """ |