@mndsingapore · Post #654 · 14.08.2024 г., 01:01
‼️New stickers alert🚨 Click on the sticker below to start using our new #MNDTalkofTheTown stickers~
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #175 · 30 окт.
В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль QtCompat (compatibility). Там не так много функций но они довольно полезны. Этот модуль содержит унификаци модуля shiboken2, функций loadUi, translate и несколько переименованных функций классов или изменённую сигнатуру аргументов и возвращаемых значений. Это единственное исключение из правила когда вам потребуется где-то изменить свой код кроме импортов и этот код не похож на обычный код PySide2. Например, в PyQt4 и PySide есть метод QHeaderView.setResizeMode Для PyQt5 и PySide2 они были благополучно переименованы в QHeaderView.setSectionResizeMode Чтобы применить этот метод следует использовать такой код from Qt import QtCompath header = self.horizontalHeader() QtCompat.QHeaderView.setSectionResizeMode(header, QtWidgets.QHeaderView.Fixed) Унификация загрузки UI файлов: # PySide2 from PySide2.QtUiTools import QUiLoader loader = QUiLoader() widget = loader.load(ui_file) # PyQt5 from PyQt5 import uic widget = uic.loadUi(ui_file) # Qt.py from Qt import QtCompat widget = QtCompat.loadUi(ui_file) Хорошо что таких моментов не много и их легко запомнить. Полный список можно посмотреть в таблице. #qt#tricks
Пребарај: #mndtalkofthetown
@mndsingapore · Post #654 · 14.08.2024 г., 01:01
‼️New stickers alert🚨 Click on the sticker below to start using our new #MNDTalkofTheTown stickers~
Hashtags
@mndsingapore · Post #649 · 06.08.2024 г., 04:02
#MNDTalkOfTheTown: Let’s plan the future of Singapore together with the Draft Master Plan 2025 (DMP 2025) 🗺️ All Singaporeans are welcomed to share their thoughts and ideas for the DMP 2025, co-creating Singapore’s land use plans for the next 10-15 years based on 4 key themes: ⭐️ Shaping a Happy Healthy City ⭐️ Enabling Sustainable Growth ⭐️ Strengthening Urban Resilience ⭐️ Stewarding Our Nature and Heritage More exciting updates will be coming your way. Stay tuned to #TalkofTheTown for updates!
Hashtags
@mndsingapore · Post #644 · 26.07.2024 г., 10:03
#MNDTalkOfTheTown: HDB has adopted precast technology for improved productivity and quality 🏗️ With precast technology, building components can be manufactured off-site before being delivered and assembled on-site. The precast components include: - Household Shelters - Staircases - Walls - Refuse Chute - Air-Con Ledge Stay tuned for the next part of our series where we introduce Singapore’s land-use plans for the future. #TalkOfTheTown
Hashtags
@mndsingapore · Post #639 · 03.07.2024 г., 09:04
#MNDTalkOfTheTown: Introducing the BudgetMealGoWhere platform, where you can find cheap and good meals in Singapore 😋 Here’s how you can find your favourite meals on a budget: - Enter a postal code on https://gowhere.gov.sg/budgetmeal/ to find your nearest coffeeshop - Look out for stalls with the Budget Meal sticker Keep a lookout for the next part of our series to find out how we’re improving productivity at construction sites. #TalkOfTheTown
Hashtags
@mndsingapore · Post #565 · 20.02.2024 г., 09:31
#MNDTalkOfTheTown: Playgrounds have come a long way since the 1960s. Here are some fun facts about these fun spaces: 💪 Playgrounds today are designed to help develop children’s motor skills, like climbing and balancing. 🌈 They are also themed to encourage children to stretch their imaginations and play pretend. 👨👩👧👦 Many are intentionally placed near fitness corners to allow families to come together and bond. 📖 Some of the thematic playgrounds even reflect the history and heritage of the towns. Even more exciting developments are unfolding in your neighbourhoods. Stay tuned to #TalkofTheTown for updates!
Hashtags
@mndsingapore · Post #560 · 13.02.2024 г., 09:30
#MNDTalkOfTheTown: In the second part of our series, we learn more about the developing🏗️ Jurong Lake District (JLD). JLD’s infrastructure is designed with sustainability in mind. Some of the green initiatives are: ☀️Solar panels on all suitable surfaces. 💨District Cooling System to cool down buildings and the streets more effectively. 🚘EV charging points placed throughout the district. Keep a lookout for the next part of the series as we talk about the evolution of our playgrounds. #TalkOfTheTown
Hashtags
@mndsingapore · Post #555 · 06.02.2024 г., 09:31
#MNDTalkOfTheTown: Let’s explore how technology has transformed the management of our trees! 🌳 With the help of Light Detection and Ranging (LiDAR) technology and advanced modelling tools like the Tree Structural Model (TSM), we can now accurately assess which trees need our attention – keeping our parks and neighbourhoods a safer place for all. Stay tuned to this series for more about how tech and innovation has transformed the way we work, play and live! #TalkOfTheTown
Hashtags
@mndsingapore · Post #682 · 26.08.2024 г., 04:02
#MNDTalkOfTheTown: Let’s find out how Project ADORE has helped more dogs to find their forever homes ❤️ Under Project ADORE, led by NParks, HDB flat owners can adopt local mixed-breed dogs of up to 55 cm in height, with proper safeguards in place. The project has even been expanded to allow for the rehoming of retired sniffer dogs too! 🐶 #TalkOfTheTown#projectADORE