TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

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

Hashtags

Резултати

Пронајдени 41 слични објави

Пребарај: #gagarin

当前筛选 #gagarin清除筛选

🚀 Pe 12 aprilie 2025, de Ziua Internațională a Cosmonauticii, angajații Ambasadei Federației Ruse în România au depus flori la bustul pilotului-cosmonaut sovietic Iuri Alexeievici Gagarin aflat în București. 🧑‍🚀 Iuri Gagarin a devenit prima persoană din istoria lumii care a zburat în spațiul cosmic. Durata zborului a fost de 1 oră și 48 de minute. În timp ce se afla pe orbită, Gagarin a păstrat legătura radio cu Pământul, a observat planeta dintr-un hublou și a supravegheat sistemele de pilotaj ale navei spațiale Vostok. 🛰 Zborul lui Iuri Gagarin a fost o mare realizare științifică și tehnologică care a inaugurat era cosmonauticii cu echipaj: pentru prima dată omul a părăsit leagănul gravitațional al Pământului și a pus piciorul în afara Planetei noastre. #Gagarin#Gagarin

Hashtags

Embassy of Russia in Singapore

@rusembsg · Post #3956 · 12.04.2025 г., 07:14

🚀 On April 12, 1961, at 9.07 am Moscow Time, the Vostok spacecraft with Yury Gagarin aboard made its historic lift-off from the Baikonur Cosmodrome. This first manned space mission in the history of humankind heralded the beginning of the Space Age. Yury #Gagarin was only 27 years old then. He had experienced various hardships earlier in life, spending his childhood years in his home town in Nazi-occupied territory during the Great Patriotic War. After the war, he joined the Saratov air club, for many years he trained hard to become a professional pilot. Gagarin eventually joined the first Soviet cosmonaut squad. On that memorable April morning, he was preparing to take off into the unknown where no human being had ever been before. A photographer took images of the cosmonaut’s face before the flight. Gagarin showed absolutely no fear, flashing his famous smile and concentrating on his responsible assignment. 🧑‍🚀 Yury Gagarin spent 108 minutes in outer space, orbited the Earth and successfully landed near the village of Smelovka in the Saratov Region. While in orbit, he maintained radio contact with Earth, conducted observations through a porthole, controlled the operation of the spacecraft’s systems and made a few experiments. 📰 The media widely announced Yury Gagarin’s mission 55 minutes after the Vostok rocket lifted off. It became the most quoted news story worldwide. Instantly, a Soviet pilot & cosmonaut became the most famous person on Earth. Two days later, the residents of the Soviet capital took to the streets, carrying flowers and posters that welcomed Gagarin who had arrived in Moscow. In late April, the first man in space went on a global tour to share his impressions with people all over the world. 🌐 In the next two years following this history-making event, Yury Gagarin visited over 30 countries where he was given a hero’s welcome. His tour was unofficially named the Peace Mission. Despite his immense popularity, Gagarin remained his own usual self and continued to engage in what he liked most – aviation and cosmonautics – for the rest of his life.

Hashtags

Russian Consulate in Cape Town

@rusconct · Post #2439 · 12.04.2025 г., 12:32

🚀 On April 12, 1961, at 9.07 am Moscow Time, the Vostok spacecraft with Yury Gagarin aboard made its historic lift-off from the Baikonur Cosmodrome. This first manned space mission in the history of humankind heralded the beginning of the Space Age. Yury #Gagarin was only 27 years old then. He had experienced various hardships earlier in life, spending his childhood years in his home town in Nazi-occupied territory during the Great Patriotic War. After the war, he joined the Saratov air club, for many years he trained hard to become a professional pilot. Gagarin eventually joined the first Soviet cosmonaut squad. On that memorable April morning, he was preparing to take off into the unknown where no human being had ever been before. A photographer took images of the cosmonaut’s face before the flight. Gagarin showed absolutely no fear, flashing his famous smile and concentrating on his responsible assignment. 🧑‍🚀 Yury Gagarin spent 108 minutes in outer space, orbited the Earth and successfully landed near the village of Smelovka in the Saratov Region. While in orbit, he maintained radio contact with Earth, conducted observations through a porthole, controlled the operation of the spacecraft’s systems and made a few experiments. 📰 The media widely announced Yury Gagarin’s mission 55 minutes after the Vostok rocket lifted off. It became the most quoted news story worldwide. Instantly, a Soviet pilot & cosmonaut became the most famous person on Earth. Two days later, the residents of the Soviet capital took to the streets, carrying flowers and posters that welcomed Gagarin who had arrived in Moscow. In late April, the first man in space went on a global tour to share his impressions with people all over the world. 🌐 In the next two years following this history-making event, Yury Gagarin visited over 30 countries where he was given a hero’s welcome. His tour was unofficially named the Peace Mission. Despite his immense popularity, Gagarin remained his own usual self and continued to engage in what he liked most – aviation and cosmonautics – for the rest of his life.

Hashtags

Russian Mission to ASEAN

@aseanrussia · Post #2085 · 04.04.2026 г., 06:04

🚀 On April 4, Russian Ambassador to ASEAN H.E. Mr Evgeny Zagaynov🇷🇺 together with Russian Ambassador to Indonesia H.E. Sergei Tolchenov, as well as Ambassadors of Armenia🇦🇲, Belarus🇧🇾, Kazakhstan🇰🇿and Uzbekistan🇺🇿 took part in the flower-laying ceremony to the Yuri #Gagarin Monument in Jakarta 🇮🇩 on the occasion of the Cosmonautics Day. 🤝 The event gathered diplomats, representatives of the Indonesian media, members of the Gagarin Regiment and the Community of Russian-Indonesian Friendship, as well as students of the Russian Embassy’s school. 📍Jakarta

Hashtags

🚀 On April 12, 1961, at 9.07 am Moscow Time, the Vostok spacecraft with Yury Gagarin aboard made its historic lift-off from the Baikonur Cosmodrome. This first manned space mission in the history of humankind heralded the beginning of the Space Age. Yury #Gagarin was only 27 years old then. He had experienced various hardships earlier in life, spending his childhood years in his home town in Nazi-occupied territory during the Great Patriotic War. After the war, he joined the Saratov air club, for many years he trained hard to become a professional pilot. Gagarin eventually joined the first Soviet cosmonaut squad. On that memorable April morning, he was preparing to take off into the unknown where no human being had ever been before. A photographer took images of the cosmonaut’s face before the flight. Gagarin showed absolutely no fear, flashing his famous smile and concentrating on his responsible assignment. 🧑‍🚀 Yury Gagarin spent 108 minutes in outer space, orbited the Earth and successfully landed near the village of Smelovka in the Saratov Region. While in orbit, he maintained radio contact with Earth, conducted observations through a porthole, controlled the operation of the spacecraft’s systems and made a few experiments. 📰 The media widely announced Yury Gagarin’s mission 55 minutes after the Vostok rocket lifted off. It became the most quoted news story worldwide. Instantly, a Soviet pilot & cosmonaut became the most famous person on Earth. Two days later, the residents of the Soviet capital took to the streets, carrying flowers and posters that welcomed Gagarin who had arrived in Moscow. In late April, the first man in space went on a global tour to share his impressions with people all over the world. 🌐 In the next two years following this history-making event, Yury Gagarin visited over 30 countries where he was given a hero’s welcome. His tour was unofficially named the Peace Mission. Despite his immense popularity, Gagarin remained his own usual self and continued to engage in what he liked most – aviation and cosmonautics – for the rest of his life.

Hashtags

Russian Mission to ASEAN

@aseanrussia · Post #1569 · 12.04.2025 г., 06:18

🚀 On April 12, 1961, at 9.07 am Moscow Time, the Vostok spacecraft with Yury Gagarin aboard made its historic lift-off from the Baikonur Cosmodrome. This first manned space mission in the history of humankind heralded the beginning of the Space Age. Yury #Gagarin was only 27 years old then. He had experienced various hardships earlier in life, spending his childhood years in his home town in Nazi-occupied territory during the Great Patriotic War. After the war, he joined the Saratov air club, for many years he trained hard to become a professional pilot. Gagarin eventually joined the first Soviet cosmonaut squad. On that memorable April morning, he was preparing to take off into the unknown where no human being had ever been before. A photographer took images of the cosmonaut’s face before the flight. Gagarin showed absolutely no fear, flashing his famous smile and concentrating on his responsible assignment. 🧑‍🚀 Yury Gagarin spent 108 minutes in outer space, orbited the Earth and successfully landed near the village of Smelovka in the Saratov Region. While in orbit, he maintained radio contact with Earth, conducted observations through a porthole, controlled the operation of the spacecraft’s systems and made a few experiments. 📰 The media widely announced Yury Gagarin’s mission 55 minutes after the Vostok rocket lifted off. It became the most quoted news story worldwide. Instantly, a Soviet pilot & cosmonaut became the most famous person on Earth. Two days later, the residents of the Soviet capital took to the streets, carrying flowers and posters that welcomed Gagarin who had arrived in Moscow. In late April, the first man in space went on a global tour to share his impressions with people all over the world. 🌐 In the next two years following this history-making event, Yury Gagarin visited over 30 countries where he was given a hero’s welcome. His tour was unofficially named the Peace Mission. Despite his immense popularity, Gagarin remained his own usual self and continued to engage in what he liked most – aviation and cosmonautics – for the rest of his life.

Hashtags

🚀 On April 12, 1961, at 9.07 am Moscow Time, the Vostok spacecraft with Yury Gagarin aboard made its historic lift-off from the Baikonur Cosmodrome. This first manned space mission in the history of humankind heralded the beginning of the Space Age. Yury #Gagarin was only 27 years old then. He had experienced various hardships earlier in life, spending his childhood years in his home town in Nazi-occupied territory during the Great Patriotic War. After the war, he joined the Saratov air club, for many years he trained hard to become a professional pilot. Gagarin eventually joined the first Soviet cosmonaut squad. On that memorable April morning, he was preparing to take off into the unknown where no human being had ever been before. A photographer took images of the cosmonaut’s face before the flight. Gagarin showed absolutely no fear, flashing his famous smile and concentrating on his responsible assignment. 🧑‍🚀 Yury Gagarin spent 108 minutes in outer space, orbited the Earth and successfully landed near the village of Smelovka in the Saratov Region. While in orbit, he maintained radio contact with Earth, conducted observations through a porthole, controlled the operation of the spacecraft’s systems and made a few experiments. 📰 The media widely announced Yury Gagarin’s mission 55 minutes after the Vostok rocket lifted off. It became the most quoted news story worldwide. Instantly, a Soviet pilot & cosmonaut became the most famous person on Earth. Two days later, the residents of the Soviet capital took to the streets, carrying flowers and posters that welcomed Gagarin who had arrived in Moscow. In late April, the first man in space went on a global tour to share his impressions with people all over the world. 🌐 In the next two years following this history-making event, Yury Gagarin visited over 30 countries where he was given a hero’s welcome. His tour was unofficially named the Peace Mission. Despite his immense popularity, Gagarin remained his own usual self and continued to engage in what he liked most – aviation and cosmonautics – for the rest of his life.

Hashtags

Russian Mission to ASEAN

@aseanrussia · Post #940 · 12.04.2024 г., 11:18

🚀 On April 12, Deputy Head of the Russian Mission to ASEAN Mr. Andrey Yudin🇷🇺 took part in the flower-laying ceremonyto theYuri #Gagarin Monument in Jakarta 🇮🇩 on the occasion of the Cosmonautics Day. 🤝 The event gathered Russian diplomats, colleagues from the Embassies of Belarus 🇧🇾 and Kazakhstan 🇰🇿, representatives of the Russian Orthodox Church, members of the Gagarin Regiment and the Community of Russian-Indonesian Friendship, as well as students of the Russian Embassy’s school. 📍Jakarta

Hashtags

EmbajadaRusaVen

@embajadarusaven · Post #1524 · 12.04.2024 г., 23:20

🔠🔠🔠🔠🔠🔠 con nosotros 🚀 Hoy celebramos el día en que el hombre viajó por primera vez al espacio. ☄️ Esta persona fue Yuri Gagarin! 😁 Después de regresar a la Tierra, literalmente cautivó al mundo entero con su sonrisa. 🔥 Por ello, el equipo internacional de Voluntarios de la Victoria realiza en su memoria el evento: “La sonrisa de #Gagarin”, donde repete su legendaria sonrisa. 📣 Desde #Venezuela compartimos algunas fotos para rendir tributo a la significativa hazaña del primer cosmonauta del mundo!

Noticias de LAD🇷🇺

@LAD_MAERusia · Post #23611 · 12.04.2026 г., 16:21

El 12 de abril de 1961: el primer hombre lanzado al espacio 🧑‍🚀 El 12 de abril de 1961 se realizó el primer viaje espacial tripulado por el ser humano, que fue protagonizado por nuestro compatriota Yuri #Gagarin, que en aquel momento tenía tan solo 27 años. 🚀 A las 06:07 hora universal (UT), su nave Vostok 1 despegó desde el Cosmódromo de Baikonur. El vuelo duró 108 minutos en total: 9 minutos para entrar en órbita y luego una órbita alrededor de la Tierra. 🇨🇺 Tan solo tres meses después de su histórico vuelo, el 24 de julio de 1961 Gagarinllegó a Cuba en el marco de su gira mundial denominada “Misión de la Paz”. El primer cosmonauta pasó casi una semana en la Mayor de las Antillas. Durante ese tiempo, entabló amistad con los líderes de la Revolución Cubana y conquistó corazones de los cubanos. 📆 En 1964 fue instituida en Moscú, tras la reunión de representantes de nuestros países, la Sociedad de la Amistad Soviético-Cubana. Fue Yuri Gagarin quien fue elegido su primer presidente, y Ernesto Che Guevara, su co-Presidente. Yuri Gagarin estuvo al frente de la Sociedad hasta su trágica muerte en un accidente aéreo en 1968. 🌟 En Cuba con mucho cariño se conserva la memoria sobre el primer cosmonauta: huéspedes del emblemático Hotel Nacional pueden ver el busto de Yuri Gagarin en su Sala de la Fama, y en 2025 en el Planetario de La Habana fue develado el panel dedicado a los padres fundadores de la cosmonáutica, donde aparece el rostro de Gagarin. 🌌 El vuelo de Gagarin no solo fue un triunfo tecnológico, sino un símbolo de valentía, curiosidad y esperanza. Su legado sigue inspirando a millones personas por todo el mundo. ¡Gracias, Yuri, por abrirnos las puertas del universo! #Gagarin65

🚀 12 апреля 2025 г. в Международный день космонавтики сотрудники Посольства Российской Федерации в Румынии возложили цветы к расположенному в Бухаресте бюсту советскому летчику-космонавту Юрию Алексеевичу Гагарину. 🧑‍🚀 Юрий Гагарин стал первым человеком в мировой истории, совершившим полет в космическое пространство. Продолжительность полета составила 1 час 48 минут. Во время нахождения на орбите Гагарин держал радиосвязь с Землёй, наблюдал за планетой из иллюминатора, осуществлял контроль за системами пилотирования космическим аппаратом "Восток". 🛰 Полет Юрия Гагарина стал величайшим научно-технологическим прорывом, открывшим эру пилотируемой космонавтики: человек впервые покинул гравитационную колыбель Земли и ступил за пределы родной Планеты. #Гагарин#Gagarin

EmbajadaRusaVen

@embajadarusaven · Post #1519 · 12.04.2024 г., 19:36

☄️INAUGURADA UNA EXPOSICIÓN SOBRE YURI GAGARIN EN EL PLANETARIO HUMBOLDT 🚀 El 12 de abril, el Día de la #Cosmonáutica, se inauguró en el Planetario de la capital, con el apoyo de la Embajada de Rusa y la Casa de Rusia, una exposición dedicada al 90° aniversario del primer cosmonauta Yuri Gagarin y se realizó la muestra de cine "Historia espacial de #Rusia". A la ceremonia asistieron el Jefe del Servicio Hidrográfico y de Navegación de la Armada Bolivariana, Contralmirante Carlos Tacoa, el Director del Planetario Levis Jiménez, estudiantes del Liceo Andrés Bello, egresados de universidades soviéticas y rusas, compatriotas y la juventud. 💬 En su discurso, el Embajador Sergey Melik-Bagdasarov habló sobre la hazaña de Yuri Gagarin, los logros de la cosmonáutica soviética y el éxito de la industria espacial en la Rusia moderna. El contralmirante Carlos Tacoa destacó la rica historia del desarrollo de la cosmonáutica rusa. 🆒 Durante el recorrido de la exposición los invitados se conocieron la vida de Yuri #Gagarin, un hombre de a pie que realizó una gran hazaña. El acto concluyó con una película sobre la historia de los logros espaciales de Rusia.

ПретходнаСтраница 1 од 4Следна