def createHtml(self):
'''
Creates an html file in the home directory of the application
that contains the information to display the snapshot
'''
print('creating html...')
html = '''<html>\n<body>\n<center>
<img src=myImage.png width=516 height=314>
</center>\n</body>\n</html>'''
with open('screenshot.htm', 'w') as fobj:
fobj.write(html)
snapshotPrinter.py 文件源码
python
阅读 18
收藏 0
点赞 0
评论 0
评论列表
文章目录