MCPcopy Create free account
hub / github.com/ActiveState/code / getScale2

Method getScale2

recipes/Python/271246_pyAlbumpy/recipe-271246.py:86–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 getScale1()
85
86 def getScale2():
87 global scale2
88 scale2 = raw_input("Enter scaling factor for Images: ")
89 try:
90 scale2 = float(scale2)
91 except ValueError:
92 print "Invalid value entered!"
93 getScale2()
94 if scale2 > 1.0:
95 print "Scaling factor should be less than 1!"
96 getScale2()
97
98 def doFiles(self):
99 self.files = []

Callers

nothing calls this directly

Calls 1

getScale2Function · 0.85

Tested by

no test coverage detected