mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 16:25:16 +03:00
19 lines
576 B
Python
Executable file
19 lines
576 B
Python
Executable file
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import sys
|
|
from PyQt4 import Qt, QtGui
|
|
|
|
menu = [ "radio_setup", "model_select", "model_settings", "model_checklist", "files", "version" ]
|
|
|
|
app = QtGui.QApplication(sys.argv)
|
|
|
|
image = QtGui.QImage(24*8, 24, QtGui.QImage.Format_RGB32)
|
|
image.fill(QtGui.QColor(255, 255, 255))
|
|
painter = QtGui.QPainter()
|
|
painter.begin(image)
|
|
for i, str in enumerate(menu):
|
|
icon = QtGui.QImage("../src/bitmaps/Taranis/std/%s.png" % str)
|
|
painter.drawImage(Qt.QPoint(24*i, 0), icon)
|
|
painter.end()
|
|
image.save("../src/bitmaps/Taranis/mainmenu.png")
|