2 # -*- coding: utf-8 -*-
4 from PyQt5
import Qt
, QtGui
6 from PyQt4
import Qt
, QtGui
8 menu
= ["radio_setup", "model_select", "model_settings", "model_checklist", "files", "version"]
10 image
= QtGui
.QImage(24 * 8, 24, QtGui
.QImage
.Format_RGB32
)
11 image
.fill(QtGui
.QColor(255, 255, 255))
12 painter
= QtGui
.QPainter()
14 for i
, str in enumerate(menu
):
15 icon
= QtGui
.QImage("../src/bitmaps/taranis/std/%s.png" % str)
16 painter
.drawImage(Qt
.QPoint(24 * i
, 0), icon
)
18 image
.save("../src/bitmaps/taranis/mainmenu.png")