@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
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #45 · 2 мар.
В фреймворке PyQt (и PySide тоже) часто встречается настройка чего-либо с помощью так называемых флагов. widget.setWindowFlags(Qt.Window) Взаимодействие нескольких флагов делается с помощью бинарных (или побитовых) операторов. Несколько флагов можно указать с помощью оператора "|" list_item.setFlags(Qt.ItemIsSelectable | Qt.ItemIsEnabled) исключить флаг из уже имеющегося набора можно так list_item.setFlags(list_item.flags() ^ Qt.ItemIsEnabled) Добавить новый флаг к имеющимся можно так list_item.setFlags(list_item.flags() | Qt.ItemIsEnabled) А проверка наличия делается так is_enabled = item.flags() & Qt.ItemIsEnabled > 0 Почему именно так? Всё дело в том как именно работают побитовые операторы. Но об этом в следующем посте. #qt
Hashtags
Пребарај: #harbourfront
@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 #2287 · 14.03.2025 г., 11:34
[CCL] CLEARED: Fault cleared trains are running normally between #HarbourFront, #MarinaBay and #DhobyGhaut. - SMRT
@sgmrt · Post #2286 · 14.03.2025 г., 11:34
[CCL] UPDATE: Fault cleared trains are progressively returning to normal between #HarbourFront, #MarinaBay and #DhobyGhaut. Train service is still available. - SMRT
@sgmrt · Post #2285 · 14.03.2025 г., 11:14
[CCL] UPDATE: Fault cleared trains are progressively returning to normal between #HarbourFront, #MarinaBay and #DhobyGhaut. - SMRT
@sgmrt · Post #2284 · 14.03.2025 г., 11:05
[CCL]: Additional 15 mins train travel time between #HarbourFront, #MarinaBay and #DhobyGhaut due to a signal system fault. - SMRT
@sgmrt · Post #1912 · 28.04.2024 г., 22:34
[CCL] UPDATE: Additional 30mins train travel time between #Bishan and #one-north due to a train fault. Free Regular bus service is available between #Bishan and #HarbourFront. You may also use alternative lines to travel to your destination. - SMRT
Hashtags
@sgmrt · Post #1911 · 28.04.2024 г., 22:34
[CCL] UPDATE: Additional 30 mins train travel time between #Bishan and #one-north due to a train fault. Free Regular bus service is available between #Bishan and #HarbourFront. We apologise for this delay to your journey. - SMRT
Hashtags
@sgmrt · Post #1702 · 18.04.2023 г., 08:23
[CCL] Due to a power fault, please add 20 minutes additional train travel time btw #KentRidge and #Harbourfront. Free regular buses are available btw #BuonaVista and #Harbourfront. - SMRT
@sgmrt · Post #1913 · 28.04.2024 г., 22:39
[CCL] UPDATE: Additional 30 mins train travel time between #PayaLebar and #one-north due to a train fault. Free Regular Bus Service is available between #PayaLebar and #HarbourFront. Bridging bus service is available between #PayaLebar and #BuonaVista. - SMRT
@sgmrt · Post #2183 · 15.12.2024 г., 16:44
[CCL] UPDATE: Due to signaling fault, please expect additional 30 mins travelling time btwn #Farrer Road and #HarbourFront. Free regular bus services are available between #Botanic Gardens and #HarbourFront. - SMRT
Hashtags
@sgmrt · Post #1910 · 28.04.2024 г., 22:19
[CCL] UPDATE: Additional 30mins train travel time between #HollandVillage and #PasirPanjang due to a train fault. Free Regular Bus Service is available between #Bishan and #HarbourFront. We apologise for this delay to your journey. - SMRT