@sgmrt · Post #2422 · 06.08.2025 г., 03:14
[EWL] CLEARED: Train services from #BoonLay to #BuonaVista have resumed. Free regular bus & free bridging bus services have ended. We apologise for affecting your commute. - SMRT
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
Пребарај: #buonavista
@sgmrt · Post #2422 · 06.08.2025 г., 03:14
[EWL] CLEARED: Train services from #BoonLay to #BuonaVista have resumed. Free regular bus & free bridging bus services have ended. We apologise for affecting your commute. - SMRT
Hashtags
@sgmrt · Post #2420 · 06.08.2025 г., 00:39
[EWL] UPDATE: We continue to provide free regular bus and bridging bus services between #BoonLay and #BuonaVista station. - SMRT
Hashtags
@sgmrt · Post #2411 · 05.08.2025 г., 22:49
[EWL] UPDATE: Pls add 15mins train travel time from #BoonLay to #BuonaVista. We are working to recover svc. - SMRT
Hashtags
@sgmrt · Post #2295 · 04.04.2025 г., 05:54
[EWL] UPDATE: Passenger travelling between #BuonaVista and #BoonLay, please take the alternative route via Circle Line at #BuonaVista. - SMRT
Hashtags
@sgmrt · Post #2352 · 20.05.2025 г., 00:44
[CCL] UPDATE: Train fault has recovered, train services are progressively resuming. Free regular bus services are still available between #Serangoon and #BuonaVista. - SMRT
Hashtags
@sgmrt · Post #1703 · 18.04.2023 г., 08:37
[CCL] Train service is resuming progressively. Free regular buses are still available btw #BuonaVista and #HarbourFront. - SMRT
Hashtags
@sgmrt · Post #2301 · 04.04.2025 г., 07:14
[EWL] UPDATE: Due to a track fault, please expect an additional 20mins of travelling time between #Queenstown and #BoonLay. Passenger are advised to take the alternative route via Circle Line at #BuonaVista and North-South Line to city area. We apologise for the delay to your - SMRT
Hashtags
@sgmrt · Post #2298 · 04.04.2025 г., 06:44
[EWL] UPDATE: Due to a track fault, please expect an additional 20mins of travelling time between #Queenstown and #BoonLay. Passenger are advised to take the alternative route via Circle Line at #BuonaVista and North-South Line to city area. We apologized for the delayed to your - SMRT
Hashtags
@sgmrt · Post #2421 · 06.08.2025 г., 00:59
[EWL] UPDATE: Due to a track point fault, please add additional 25mins train travelling time from #BoonLay to #BuonaVista towards #PasirRis. Free regular bus and bridging bus services are available between #BoonLay and #BuonaVista. - SMRT
Hashtags
@sgmrt · Post #2415 · 05.08.2025 г., 23:39
[EWL] UPDATE: Due to a track point fault, please add additional 25mins train travelling time from #BoonLay to #BuonaVista towards #PasirRis. Free regular bus & bridging bus services are available between #BoonLay and #BuonaVista. - SMRT
Hashtags
@sgmrt · Post #2413 · 05.08.2025 г., 23:19
[EWL] UPDATE: Due to a track point fault, pls add 25mins train travel time from #BoonLay to #BuonaVista towards #PasirRis. Free regular bus & free bridging bus svcs between #BoonLay and #BuonaVista. - SMRT
Hashtags
@sgmrt · Post #2410 · 05.08.2025 г., 22:34
[EWL] UPDATE: Due to a track point fault, pls add 15mins train travel time from #BoonLay to #BuonaVista towards #PasirRis. Free regular bus svcs from #BoonLay to #BuonaVista. Our station staff will assist. - SMRT
Hashtags