mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
Issue #1608 start - What do you think?
This commit is contained in:
parent
2a0445e41e
commit
f67f0ffb1d
31 changed files with 320 additions and 143 deletions
19
radio/util/taranisicons.py
Executable file
19
radio/util/taranisicons.py
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/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")
|
Loading…
Add table
Add a link
Reference in a new issue