@chessio_EN · Post #104 · 16.01.2025 г., 08:48
Find the best move for Black #Chessio#DailyPuzzle
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
Пребарај: #chessio
@chessio_EN · Post #104 · 16.01.2025 г., 08:48
Find the best move for Black #Chessio#DailyPuzzle
Hashtags
@chessio_EN · Post #103 · 15.01.2025 г., 13:01
Find the best move for White #Chessio#DailyPuzzle
Hashtags
@chessio_EN · Post #128 · 09.03.2025 г., 22:04
📢 Important Chessio Update 💔 This is probably the hardest yet message we are sharing with you, our lovely Chessio Community. Before we explain further, here’s the honest truth: All this time, we’ve been running Chessio entirely from our own pockets - covering infrastructure, prize tournaments, drops, and more. We developed and maintained the platform alongside our main jobs, often sacrificing valuable family time. After much thought, we’ve decided to pause Chessio development at the end of March 2025. Additionally, we have stopped mining because we can’t promise what we aren’t sure about. We didn't receive support from the TON Foundation, even though we were among the top 10 projects out of over 1,000 in the Summer Hackathon. For example, the marketing campaign that was part of our winning prize hasn’t been launched yet. Our final drop will have a place for top 100 players of the SION leaderboard where we share 1000 USDT proportionally between players. If you are in the top 100 list, make sure you have your wallet connected. We have always been with you, and we truly appreciate your support. We hope for your understanding during these challenging times. What’s Next? Chessio will remain online on minimal hardware so you can still play games with friends and host tournaments, though it will be running on a minimal hardware, and we may need to turn off games with bots and server analysis as it eats infrastructure resources. We will be around, but the development will be on hold. But we are not giving up. Something even more exciting is coming! So stay with us and stay subscribed!🔥 Thank you for being part of this incredible Chessio and SION journey. We look forward to meeting you on the next page 😉 ❤️🧡💚💖🤍 Your Chessio Team! #Chessio#ThankYou#SeeYouSoon
Hashtags