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

Резултати

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

Пребарај: #gnome

当前筛选 #gnome清除筛选
Linuxgram 🐧

@linuxgram · Post #18481 · 18.04.2026 г., 13:42

📰GNOME's Maps, Graphs, RustConn & Other App Improvements For pairing nicely with the GNOME 50 desktop release last month, a number of GNOME-associated apps have been seeing new features and refinements... 🔗 Source: https://www.phoronix.com/news/GNOME-Graphs-2.0-Maps-Transit #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #18443 · 15.04.2026 г., 10:31

📰 GNOME 50.1 Released with Basic Zoom Support for the Captive Portal GNOME 50.1 is now available as the first point release to the GNOME 50 desktop environment series with various bug fixes and improvements across several core components and default apps. 🔗 Source: https://9to5linux.com/gnome-50-1-released-with-basic-zoom-support-for-the-captive-portal #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #18407 · 13.04.2026 г., 10:37

📰Quick Lofi – a GNOME extension for chill beats to study to Quick Lofi is a GNOME Shell extension that puts a lofi radio player in your top bar. If you’ve ever opened a new browser tab to load a “lofi beats to study to” stream on YouTube — lofi girl, perhaps – to act as an ambient backdrop to work to, the appeal will be evident. If not, all you need to know is that mellow, lyric-free, low-tempo sounds are reputedly ideal for focus. 🔗 Source: https://www.omgubuntu.co.uk/2026/04/quick-lofi-beats-gnome-extension #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #18391 · 11.04.2026 г., 14:30

📰 GNOME-Aligned Amberol 2026.1 Music Player Released, Phosh Improves X11 Support A few weeks past the GNOME 50 release and there continues to be a lot of ongoing GNOME app activity worth highlighting... 🔗 Source: https://www.phoronix.com/news/GNOME-Amberol-2026.1 #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #18361 · 09.04.2026 г., 07:49

📰Dynamic Music Pill brings lyrics to your GNOME desktop A clutch of new features are available in Dynamic Music Pill, the slick now playing and media controller extension for GNOME Shell. The “big” new addition is lyrics support. When you listen to a track with synced lyrics in a compatible player, you can view those lyrics by opening the applet controller and clicking on the album art inside of it: The lyrics are shown in a freely scrollable widget, with the active line bolder in white for more... 🔗 Source: https://www.omgubuntu.co.uk/2026/04/lyrics-feature-dynamic-music-pill-extension #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #18241 · 30.03.2026 г., 09:20

📰 GNOME 51 “A Coruña” Desktop Environment Scheduled for September 16th, 2026 The development cycle of the upcoming GNOME 51 “A Coruña” desktop environment kicks off with a draft release schedule suggesting the final release is expected later this year on September 16th, 2026. 🔗 Source: https://9to5linux.com/gnome-51-a-coruna-desktop-environment-scheduled-for-september-16th-2026 #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #18193 · 26.03.2026 г., 10:43

📰 Tails 7.6 Introduces Automatic Tor Bridges to Bypass Censorship Tails 7.6 adds built-in Tor bridge support for restricted networks and switches to GNOME Secrets as the default password manager. 🔗 Source: https://linuxiac.com/tails-7-6-introduces-automatic-tor-bridges-to-bypass-censorship/ #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #18123 · 20.03.2026 г., 14:41

📰GNOME 50 “Tokyo” Desktop Environment Officially Released, This Is What’s New GNOME 50 desktop environment is now available as a major release that introduces numerous new features and improvements. Here’s what’s new! 🔗 Source: https://9to5linux.com/gnome-50-tokyo-desktop-environment-officially-released-this-is-whats-new #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #17957 · 03.03.2026 г., 23:10

📰 Pop!_OS 22.04 LTS Users Can Now Officially Upgrade to Pop!_OS 24.04 LTS System76 begins the official upgrade rollout from Pop!_OS 22.04 LTS to 24.04 LTS, replacing GNOME with the new COSMIC desktop environment. 🔗 Source: https://linuxiac.com/pop_os-22-04-lts-users-can-now-officially-upgrade-to-pop_os-24-04-lts/ #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #17926 · 28.02.2026 г., 13:05

📰 GNOME GitLab Redirecting Some Git Traffic To GitHub For Reducing Costs If you are cloning from a GNOME repository on their GitLab and now finding your Git traffic being redirected to GitHub, you are not alone. GNOME's infrastructure team is now redirecting Git traffic from the GNOME.org GitLab over to GitHub mirrors for reducing bandwidth costs... 🔗 Source: https://www.phoronix.com/news/GNOME-GitHub-GitLab-Redirect #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #17895 · 25.02.2026 г., 21:01

📰 GTK 4.22 In Good Shape With Better SVG Support Matthias Clasen shared an update today concerning the state of Scalable Vector Graphics (SVG) within GNOME's GTK toolkit... 🔗 Source: https://www.phoronix.com/news/GTK-4.22-SVG-2026 #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #17892 · 25.02.2026 г., 08:57

📰 Dynamic Music Pill puts slick media controls in your GNOME panel Dynamic Music Pill is a GNOME Shell extension that embeds a pill-shaped media controller into your desktop panel or dock. It shows album art, artist name and track title alongside an animated waveform visualiser. If that sounds unashamedly blingy, it’s because it is – nothing wrong in that, right? The extension received an update today, which seem a good hook to actually take this off my “to write about” list. 🔗 Source: https://www.omgubuntu.co.uk/2026/02/dynamic-music-pill-gnome-panel-media-controller #gnome

Hashtags

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