Answer the question
In order to leave comments, you need to log in
Is there an analogue of Alphaskins for other languages?
There is such a project for Delphi - alphaskins . Beautiful UI, and other goodies. What would you advise similar, that is, how to achieve similar in other PL? I want to get off Delphi, but to be able to write GUI applications with similar muzzles. What does a python have, say, or other PLs?
Answer the question
In order to leave comments, you need to log in
For Python, there is PyQt4(5), you can do anything in it, including using css to customize GUI elements.
By default, PyQt looks native to the operating system.
The definition of beautiful UI is very vague. The best option is when the application does not stand out from the applications installed in the system.
Here is a simple example of how to use CSS for a button:
from PyQt5 import Qt
class Widget(Qt.QWidget):
def __init__(self):
super().__init__()
layout = Qt.QVBoxLayout(self)
button1 = Qt.QPushButton("Button 1")
button2 = Qt.QPushButton("Button 2")
layout.addWidget(button1)
layout.addWidget(button2)
button1.setStyleSheet("""
QPushButton {
background-color: green;
border-style: outset;
border-width: 2px;
border-radius: 10px;
border-color: beige;
font: bold 14px;
min-width: 10em;
padding: 6px;
}
QPushButton:pressed{
background-color: #4CAF50;
color: white;
border-color: black;
border-style: inset;
}
""")
if __name__ == '__main__':
app = Qt.QApplication([])
w = Widget()
w.show()
app.exec()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question