@sgmrt · Post #2390 · 19.07.2025 г., 06:49
[BPLRT]: Due to a train fault, trains are moving slower towards #ChoaChuKang on Service A. We are investigating the fault. https://bit.ly/450rFrj - 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
Пребарај: #choachukang
@sgmrt · Post #2390 · 19.07.2025 г., 06:49
[BPLRT]: Due to a train fault, trains are moving slower towards #ChoaChuKang on Service A. We are investigating the fault. https://bit.ly/450rFrj - SMRT
Hashtags
@sgmrt · Post #1961 · 03.06.2024 г., 12:39
[UPDATE] [NSL] : South bound train service from #ChoaChuKang to #Woodlands has resumed. Free Regular Bus and Bridging Bus have ceased. - SMRT
Hashtags
@sgmrt · Post #1960 · 03.06.2024 г., 12:14
[UPDATE] [NSL] : South bound train service from #ChoaChuKang to #Woodlands has resumed. Free Regular Bus and Bridging Bus Services are still available between #ChoaChuKang and #Woodlands. - SMRT
Hashtags
@sgmrt · Post #1959 · 03.06.2024 г., 11:54
[UPDATE] [NSL]North bound trains from #Woodlands towards #ChoaChuKang is in service. - SMRT
Hashtags
@sgmrt · Post #1958 · 03.06.2024 г., 11:49
[UPDATE] [NSL]Due to traction power fault, there is no South bound train service from #ChoaChuKang to #Woodlands. Free Regular Bus and Bridging Bus Services are available between #ChoaChuKang and #Woodlands, passengers are advised to take alternative lines via [TEL] & [CCL] line. - SMRT
Hashtags
@sgmrt · Post #1617 · 05.02.2023 г., 23:53
[NSL] UPDATE: Fault cleared, train services are progressively being restored. You may still experience crowding at some stations. Free regular bus & free bridging bus services are still available btwn #ChoaChuKang and #Yishun. - SMRT
Hashtags
@sgmrt · Post #1615 · 05.02.2023 г., 23:39
[NSL] UPDATE: Fault cleared, train services are progressively being restored. Pls add 5mins train travel time btwn #Yishun and #ChoaChuKang. Free regular bus & free bridging bus services are still available btwn #ChoaChuKang and #Yishun. - SMRT
Hashtags
@sgmrt · Post #1614 · 05.02.2023 г., 23:23
[NSL] UPDATE: Fault cleared, train services are progressively being restored. Pls add 15mins train travel time btwn #Yishun and #ChoaChuKang. Free regular bus and free bridging bus services are still available btwn #ChoaChuKang and #Yishun. - SMRT
Hashtags
@sgmrt · Post #1613 · 05.02.2023 г., 23:10
[NSL]: UPDATE: Due to a track fault, pls add 25mins train travel time btwn #ChoaChuKang and #Yishun. Free regular bus is available btwn #ChoaChuKang and #Yishun. You may take TEL or other alternative lines to city area. - SMRT
Hashtags
@sgmrt · Post #1612 · 05.02.2023 г., 23:10
[NSL]: UPDATE: Due to a track fault, pls add 25mins train travel time btwn #ChoaChuKang and #Yishun. Free regular bus and free bridging bus services are available btwn #ChoaChuKang and #Yishun. You may take TEL or other alternative lines to city area. - SMRT
Hashtags
@sgmrt · Post #1611 · 05.02.2023 г., 22:53
[NSL]: UPDATE: Due to a track fault, pls add 15mins train travel time btwn #ChoaChuKang and #Yishun. Free regular bus is available btwn #ChoaChuKang and #Yishun. You may also take alternative line to city area. - SMRT
Hashtags
@sgmrt · Post #1610 · 05.02.2023 г., 22:53
[NSL]: UPDATE: Due to a track fault, pls add 15mins train travel time btwn #ChoaChuKang and #Yishun. Free regular bus is available btwn #ChoaChuKang and #Yishun. You may take TEL or other alternative lines to city area. - SMRT
Hashtags