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

Method getScale1

recipes/Python/271246_pyAlbumpy/recipe-271246.py:72–84  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

70 return ""
71
72 def getScale1(self):
73 os.chdir(self.dirName)
74 os.mkdir(self.slideName)
75 global scale1
76 scale1 = raw_input("Enter scaling factor for Thumbnails: ")
77 try:
78 scale1 = float(scale1)
79 except ValueError:
80 print "Invalid value entered!"
81 getScale1()
82 if scale1 > 1.0:
83 print "Scaling factor should be less than 1!"
84 getScale1()
85
86 def getScale2():
87 global scale2

Callers

nothing calls this directly

Calls 3

getScale1Function · 0.85
chdirMethod · 0.80
mkdirMethod · 0.80

Tested by

no test coverage detected