@sgmrt · Post #1990 · 04.07.2024 г., 00:09
[EWL] CLEARED: Train svcs from #BoonLay to #Clementi have resumed. Free regular bus & free bridging bus svcs have ended. - SMRT
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
Пребарај: #clementi
@sgmrt · Post #1990 · 04.07.2024 г., 00:09
[EWL] CLEARED: Train svcs from #BoonLay to #Clementi have resumed. Free regular bus & free bridging bus svcs have ended. - SMRT
@sgmrt · Post #1989 · 04.07.2024 г., 00:04
[EWL] UPDATE: Fault on the EWL has cleared, train service has resumed. Free regular bus and bridging bus services are still available between #BoonLay & #Clementi. - SMRT
@sgmrt · Post #1988 · 03.07.2024 г., 23:54
[EWL] UPDATE: Fault on the EWL has cleared, train services are progressively returning to normal speed. Free regular bus & bridging bus services are still available between #BoonLay & #Clementi. - SMRT
@sgmrt · Post #1987 · 03.07.2024 г., 23:54
[EWL] UPDATE: Fault on the EWL has cleared, train services are progressively returning to normal. Free regular bus and bridging bus services are still available between #BoonLay and #Clementi. - SMRT
@sgmrt · Post #2409 · 05.08.2025 г., 22:05
[EWL]: Due to a track point fault, pls add 15mins train travel time from #BoonLay to #Clementi towards #PasirRis. - SMRT
@sgmrt · Post #1985 · 03.07.2024 г., 23:14
[EWL] UPDATE: Due to a track fault, pls add 30mins train travel time from #BoonLay to #Clementi towards #PasirRis. Free regular bus & free bridging bus svcs are available btwn #BoonLay and #Clementi. - SMRT
@sgmrt · Post #1984 · 03.07.2024 г., 23:14
[EWL] UPDATE: Due to a track fault, pls add 20mins train travel time from #BoonLay to #Clementi towards #PasirRis. Free regular bus & bridging bus svcs are available btwn #BoonLay and #Clementi. - SMRT
@sgmrt · Post #1980 · 03.07.2024 г., 22:24
[EWL] UPDATE: Train svc is available from #BoonLay to #Clementi towards #PasirRis. Free regular bus svcs from #BoonLay to #Clementi. Our station staff will assist. - SMRT
@sgmrt · Post #1979 · 03.07.2024 г., 22:24
[EWL]: Due to a track fault, pls add 20mins train travel time from #BuonaVista to #Clementi towards #PasirRis. Free regular bus svcs from #BuonaVista to #Clementi. Our station staff will assist. - SMRT
Hashtags
@sgmrt · Post #1982 · 03.07.2024 г., 22:39
[EWL] UPDATE: Due to a track fault, pls add 20mins train travel time from #BoonLay to #Clementi towards #PasirRis. Free regular bus svcs btwn #BoonLay and #Clementi. Passengers travelling towards city area, please and take North South Line towards #AngMoKio and #MarinaSouthPier. - SMRT
@sgmrt · Post #1981 · 03.07.2024 г., 22:34
[EWL]: UPDATE: Due to a track fault, pls add 20mins train travel time from #BoonLay to #Clementi towards #PasirRis. Free regular bus svcs from #BoonLay to #Clementi. Passengers travelling towards city area, please take North South Line towards #AngMoKio and #MarinaSouthPier. - SMRT
@sgmrt · Post #2293 · 04.04.2025 г., 05:34
[EWL]: Due to a track fault, please expect an additional 20mins of travelling time between #Queenstown and #BoonLay. Shuttle train are available between #Clementi and #JurongEast and #JurongEast and #Lakeside. Free regular bus is available between #BuonaVista and #BoonLay. - SMRT