@midjourneyuzofficial · Post #3007 · 08.05.2023 г., 16:26
Inson Mars sayyorasida daraxt ekmoqda. Kelajak👍#mars🌖 ✈️@Midjourneyuzoffical - Neyron tarmoq ijodi ⛰
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #380 · 21 окт.
Регулярно приходится писать и ревьюить код, где используется PySide2-6. Заметил, что в подавляющем большинстве случаев настройка создаваемых базовых виджетов происходит через методы. Думаю, всем знаком такой способ. Простой пример с кнопкой: button = QPushButton("Click Me") button.setMinimumWidth(300) button.setFlat(True) button.setStyleSheet("font-size: 20pt") button.setToolTip("Super Button") button.clicked.connect(lambda: print("Button clicked")) Но есть и альтернативный способ - настройка через свойства. Это просто ключевые аргументы конструктора класса. Хоть они и не указаны в документации как аргументы, но они есть) Этот код делает тоже самое но с помощью Property button = QPushButton( "Click Me", minimumWidth=300, flat=True, styleSheet="font-size: 20pt", toolTip="Super Button", clicked=lambda: print("Button clicked"), ) Где это может быть полезно ▫️ Это выглядит более аккуратно и коротко, уже повод использовать ▫️ Может использоваться в заполнении лейаута, когда нам не нужно никакое другое взаимодействие с виджетом и поэтому сохранять его в переменную не требуется. Например, лейбл или кнопка. widget = QWidget(minimumWidth=400) layout = QHBoxLayout(widget) layout.addWidget(QLabel("Button >", alignment=Qt.AlignRight)) layout.addWidget(QPushButton("Click Me", clicked=lambda: print("Button clicked"))) widget.show() Либо так widget = QWidget(minimumWidth=400) layout = QHBoxLayout(widget) for wd in ( QLabel("Button >", alignment=Qt.AlignRight), QPushButton("Click Me", clicked=lambda: ...) ): layout.addWidget(wd) widget.show() ▫️ Можно хранить настройки в каком-то конфиге или генерировать на лету, после чего передавать как kwargs. kwargs = {"text": "Hello " * 30, "wordWrap": True} my_label = QLabel(**kwargs) Как получить полный список доступных свойств? Эта функция распечатает в терминал все свойства виджета и их текущие значения def print_widget_properties(widget): meta_object = widget.metaObject() for i in range(meta_object.propertyCount()): property_ = meta_object.property(i) property_name = property_.name() property_value = property_.read(widget) print(f"{property_name}: {property_value}") #tricks#qt
Пребарај: #mars
@midjourneyuzofficial · Post #3007 · 08.05.2023 г., 16:26
Inson Mars sayyorasida daraxt ekmoqda. Kelajak👍#mars🌖 ✈️@Midjourneyuzoffical - Neyron tarmoq ijodi ⛰
Hashtags
@EuropeanTribalism · Post #616 · 14.09.2020 г., 08:11
On the God of War (1) If you are looking for a piece of music perfectly representing Mars, the Bringer of War, you should listen to this masterpiece from Gustav Holst. https://youtu.be/L0bcRCCg01I He conserved the athmosphere which must have been present at the Bronze Age breakdown, when the God of War obliterated big parts of Southern Europe including Greece. Yes, you read that right: the devastation can be contributed to Mars, the God of War. The established explanation of 'Sea People' bringing the major civilizations to an almost simultaneous downfall is not credible. We will learn that the Greek Dark Age (~1200BC - ~650BC) and all the contradicting information only are consequences, not explanation for the breakdown. In short: people lived under a different sky, which was dominated by the mighty bodies of the old gods. In the time of the transition into the Iron Age Mars was the most important. Further articles will establish a consistant narrative, explaining history. #mars @EuropeanTribalism
Hashtags
@vpstuijianaaa · Post #32 · 01.11.2021 г., 14:39
#VPN#mars 【已亲测可用,🤣下载速度100k】
@PixelExperience · Post #9431 · 07.03.2024 г., 17:40
➡️New build available for Xiaomi Mi 11 Pro (mars) 👤 by Flower Sea ℹ️ Version: 14 📆 Build date: March 7, 2024 00:41 📂 File size: 2.11 GB ⬇️ Download now #mars#pixelexperience
Hashtags
@PixelExperience · Post #9226 · 24.11.2023 г., 02:31
➡️New build available for Xiaomi Mi 11 Pro (mars) 👤 by Flower Sea ℹ️ Version: 13 (Plus edition) 📆 Build date: November 23, 2023 09:23 📂 File size: 1.89 GB ⬇️ Download now #mars#pixelexperience
Hashtags
@PixelExperience · Post #9225 · 24.11.2023 г., 02:31
➡️New build available for Xiaomi Mi 11 Pro (mars) 👤 by Flower Sea ℹ️ Version: 13 📆 Build date: November 23, 2023 08:20 📂 File size: 1.88 GB ⬇️ Download now #mars#pixelexperience
Hashtags
@PixelExperience · Post #9169 · 17.10.2023 г., 13:45
➡️New build available for Xiaomi Mi 11 Pro (mars) 👤 by Flower Sea ℹ️ Version: 13 (Plus edition) 📆 Build date: October 17, 2023 12:03 📂 File size: 1.87 GB ⬇️ Download now #mars#pixelexperience
Hashtags
@PixelExperience · Post #9168 · 17.10.2023 г., 13:40
➡️New build available for Xiaomi Mi 11 Pro (mars) 👤 by Flower Sea ℹ️ Version: 13 📆 Build date: October 17, 2023 11:24 📂 File size: 1.86 GB ⬇️ Download now #mars#pixelexperience
Hashtags
@PixelExperience · Post #9058 · 25.09.2023 г., 12:13
➡️New build available for Xiaomi Mi 11 Pro (mars) 👤 by Flower Sea ℹ️ Version: 13 📆 Build date: September 25, 2023 04:30 📂 File size: 1.88 GB ⬇️ Download now #mars#pixelexperience
Hashtags
@PixelExperience · Post #9057 · 25.09.2023 г., 12:12
➡️New build available for Xiaomi Mi 11 Pro (mars) 👤 by Flower Sea ℹ️ Version: 13 (Plus edition) 📆 Build date: September 25, 2023 05:29 📂 File size: 1.89 GB ⬇️ Download now #mars#pixelexperience
Hashtags
@PixelExperience · Post #8871 · 15.08.2023 г., 05:46
➡️New build available for Xiaomi Mi 11 Pro (mars) 👤 by Flower Sea ℹ️ Version: 13 (Plus edition) 📆 Build date: August 15, 2023 03:37 📂 File size: 1.89 GB ⬇️ Download now #mars#pixelexperience
Hashtags
@PixelExperience · Post #8870 · 15.08.2023 г., 04:35
➡️New build available for Xiaomi Mi 11 Pro (mars) 👤 by Flower Sea ℹ️ Version: 13 📆 Build date: August 15, 2023 02:33 📂 File size: 1.88 GB ⬇️ Download now #mars#pixelexperience
Hashtags