esphome-flasher/encode-bitmaps.py
Marcel Stör 1f71d3af2b Inception
2016-12-28 23:52:35 +01:00

21 lines
456 B
Python

"""
This is a way to save the startup time when running img2py on lots of
files...
"""
from wx.tools import img2py
command_lines = [
"-F -n Exit images/exit.png images.py",
"-a -F -n Reload images/reload.png images.py",
"-a -F -n Splash images/splash.png images.py",
"-a -F -i -n Icon images/icon-256.png images.py",
]
if __name__ == "__main__":
for line in command_lines:
args = line.split()
img2py.main(args)