@sgmrt · Post #2308 · 04.04.2025 г., 08:09
[EWL] UPDATE: Normal train services are progressively being restored. Free regular bus is available between #Queenstown and #BoonLay. - 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
Пребарај: #boonlay
@sgmrt · Post #2308 · 04.04.2025 г., 08:09
[EWL] UPDATE: Normal train services are progressively being restored. Free regular bus is available between #Queenstown and #BoonLay. - SMRT
Hashtags
@sgmrt · Post #2305 · 04.04.2025 г., 07:59
[EWL] UPDATE: Train services are progressively being restored. Free regular bus is available between #Queenstown and #BoonLay. - SMRT
Hashtags
@sgmrt · Post #2059 · 25.09.2024 г., 09:59
[EWL]:UPDATE Due to a power fault, there is no train svc between Jurong East and Buona Vista. Free regular bus & bridging bus services is still available between #BoonLay and #Queenstown. - SMRT
Hashtags
@sgmrt · Post #2046 · 25.09.2024 г., 07:29
[EWL]:UPDATE Due to a power fault, there is no train svc between #BoonLay and #Queenstown. Free regular bus & bridging bus services is still available between #BoonLay and #Queenstown. - SMRT
Hashtags
@sgmrt · Post #2043 · 25.09.2024 г., 06:44
[EWL]:UPDATE Free regular bus & bridging bus services are still available between #BoonLay and #Queenstown. Passengers with special needs, please approach our station staff for assistance. Our staff are attending to the matter. - SMRT
Hashtags
@sgmrt · Post #2042 · 25.09.2024 г., 06:29
[EWL]:UPDATE Due to a power fault, there is no train svc between #BoonLay and #Queenstown. We encourage fellow commuters to look out for persons with special needs. Please lend a helping hand and approach our station staff if you need further assistance. - SMRT
Hashtags
@sgmrt · Post #2035 · 25.09.2024 г., 04:44
[EWL]:UPDATE Free regular bus & bridging bus services are still available between #BoonLay and #Queenstown. Passengers with special needs, please approach our station staff for assistance. We are working to recover service. - SMRT
Hashtags
@sgmrt · Post #2034 · 25.09.2024 г., 04:24
[EWL]:UPDATE Due to a power fault, there is no train service between #BoonLay and #Queenstown. Free regular bus & bridging bus services are still available between #BoonLay and #Queenstown. We apologies for the inconvenience caused. - SMRT
Hashtags
@sgmrt · Post #2030 · 25.09.2024 г., 03:49
[EWL]:UPDATE Free regular bus & bridging bus services are still available between #BoonLay and #Queenstown. Passengers with special needs, please approach our station staff for assistance. We apologies to affect your commute. - SMRT
Hashtags
@sgmrt · Post #2019 · 25.09.2024 г., 02:09
[EWL]: Due to a power fault, there is no train service between #BoonLay and #Queenstown.Free regular bus & bridging bus services are available between #BoonLay and #Queenstown. - SMRT
Hashtags
@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