@sgmrt · Post #2416 · 05.08.2025 г., 23:54
[EWL] UPDATE: Passenger on the North South Line towards city area, please transfer to Thomson East Cost Line at #Woodlands or take counter bound trains towards #MarinaSouthPier. - 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
Пребарај: #marinasouthpier
@sgmrt · Post #2416 · 05.08.2025 г., 23:54
[EWL] UPDATE: Passenger on the North South Line towards city area, please transfer to Thomson East Cost Line at #Woodlands or take counter bound trains towards #MarinaSouthPier. - SMRT
Hashtags
@sgmrt · Post #1986 · 03.07.2024 г., 23:29
[EWL] UPDATE: Passengers travelling towards city area, please avoid east bound service. Please take North South Line (Red) towards #AngMoKio and #MarinaSouthPier, or take Thomson East Coast Line (Brown) and Downtown line (Blue) for alternative route of transport. - SMRT
Hashtags
@sgmrt · Post #1983 · 03.07.2024 г., 22:59
[EWL] UPDATE: Passengers travelling towards city area, please avoid east bound service. Please take North South Line towards #AngMoKio and #MarinaSouthPier, or take Thomson East Coast Line and Downtown line for alternative route of transport. - SMRT
Hashtags
@sgmrt · Post #2000 · 26.07.2024 г., 02:05
[NSL] CLEARED: Train svcs btwn #MarinaSouthPier and #Newton have resumed. Free regular bus svcs have ended. - SMRT
Hashtags
@sgmrt · Post #1999 · 26.07.2024 г., 01:49
[NSL] UPDATE: Due to a train fault, pls add 10mins train travel time btwn #MarinaSouthPier and #Newton. Free regular bus svcs from #MarinaSouthPier and #Newton. - SMRT
Hashtags
@sgmrt · Post #1998 · 26.07.2024 г., 01:44
[NSL]: Due to a train fault, pls add 25mins train travel time btwn #MarinaSouthPier and #Newton. Free regular busbetween #MarinaSouthPier and #Newton. - SMRT
Hashtags
@sgmrt · Post #1996 · 26.07.2024 г., 01:39
[NSL]: Due to a train fault, pls add 25mins train travel time btwn #MarinaSouthPier and #Newton. - SMRT
Hashtags
@sgmrt · Post #2477 · 02.09.2025 г., 13:04
[NSL] UPDATE: Train service from #Woodlands to #Yishun towards #MarinaSouthPier has return to normal service. Free regular bus service between #Woodlands and #Yishun has ceased. - SMRT
@sgmrt · Post #2476 · 02.09.2025 г., 12:54
[NSL] UPDATE: Train service from #Woodlands to #Yishun towards #MarinaSouthPier is progressively returning to normal. Free regular bus service is still available between #Woodlands and #Yishun. - SMRT
@sgmrt · Post #2475 · 02.09.2025 г., 12:39
[NSL] UPDATE: Due to a train fault, please expect an additional 25 mins train travelling time from #Woodlands to #Yishun towards #MarinaSouthPier. Free regular bus service are available between #Yishun and #Woodlands. Passengers are advised to take Thomson-East Coast Line at https://bit.ly/4lVOItB - SMRT
@sgmrt · Post #2474 · 02.09.2025 г., 12:29
[NSL]: Due to a train fault, please expect an additional 25mins travelling time from #Woodlands to #Yishun towards #MarinaSouthPier. Free regular bus service is available between #Yishun and #Woodlands. - SMRT
@sgmrt · Post #1646 · 22.02.2023 г., 02:13
[NSL]: Due to a train fault, pls add 15mins train travel time from #Woodlands to #Yishun towards #MarinaSouthPier. - SMRT