В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
On 'Stella Solis'
Did you know that the scholiast on Germanicus lists the planet Saturn as 'Stella Solis' - 'Star of the Sun'?
Did you know the Babylonians referred to Saturn as '(Mul) Lu-Bat Sag-Uš Mul (il) Šamaš šu-u' - '[the planet] Saturn is the Star of the Sun'?
Did you know that in Sanskrit (an #IndoEuropean language) Saturn is called 'Suryaputrah' - 'Son of the Sun'?
How can this speck in the sky be referred to as 'star' or 'son of the sun'? It is even smaller than the Sky Father Jupiter.
How can weird Caballistic/Christian theories about Saturn being the 'Lord of the (((Chosen People)))' take a hold?
I have the answer for you. It will be short, simple and obvious. Coming in an article in a few days.
The (((tribe))) is just a bunch of impostors, who obfuscate the real history and re-define it to their advantage!
@EuropeanTribalism
On Marduk
The Babylonian prime god appeared first in the 3rd millenium B.C. as a Sumerian deity.
His serpent-like enemy is Tiamat, the Dragon of Chaos. In order to fight her, he "... grabs a mace, throws lightning before him..." and ultimately vanquishes Tiamat, after chasing her with "... his storm-chariot drawn by four horses."
Here we already see a connection to #IndoEuropean roots, as the chariot is a typical symbol.
Just to add one thing:
#IndoEuropean|s are around since at least 5.600B.C.
In contrast, the Canaanites/Yehudim/Hebrews/(((they))) are around since about 900B.C. - 800B.C. and are, as is their deity, typical children of the Iron (Martian) Age.
In order to fix our situation we have to find and reconnect to our true heritage.
@EuropeanTribalism
On Christianity
Broke: 'Judeo-Christian Occident'
Woke: 'Evil Christianity'
Bespoke: 'Christians are a joke. Their entire religion revolves around scavenged myths from older times and their doctrine produces only slave brains, which are in fundamental opposition to the Aryan spirit!'
The fundamental atrocity of Christianity is the destruction of the Aryan spiritual connection to the divine.
The body, the vessel of godlike powers is mutilated to a mere piece of flesh, which only exists to worship and obey a god which is above it.
Refuse to be a mental slave! Seek your spiritual roots in the teachings of the #IndoEuropean|s!
@EuropeanTribalism
In the Proto-Indo-European language there is no word for king, however there is a word for 'clan chieftain' (wiḱpótis).
We could now theorize that #IndoEuropean|s were organized in small groups or clans.
Guess where our compatibility with small, manageable tribes comes from!
In the Proto-Indo-European language there are many words for animals and few for fruits, veggies, and grains suggesting a meat-based diet.
Combined with the fact that for example the Scythians were nomadic pastoralists makes the Keto diet a peak #IndoEuropean way of nutrition.
@EuropeanTribalism
In Proto-Indo-European there is a word for winter/cold (h₂ŕ̥ḱtos). (It also is translated to 'bear'.)
It suggest #IndoEuropean|s originated in a more northern climate.
Colder climate indicates higher intelligence, as higher temperatures do not benefit a high cognitive performance.
@EuropeanTribalism
On the Oseberg Buddha
Aboard the 🔗Oseberg Ship there was a little statue, decorated with a cross (pre-Christian time!) and four swastikas positioned with the lotus-seat, known by Asian Buddha statues.
We have to connect multiple things here:
- swastikas are an Indo-European symbol
- the cross is not a Christian symbol
- Indo-European lore stretches from India to Scandinavia
Who is this statue representing? Thor maybe? In a later article I will elaborate on a possible origin of the swastika, explaining why we Europeans are the bearers of this symbol and why some self-chosen tribe tries to suppress this.
#indoeuropean#artifacts
@EuropeanTribalism
On Ukko
The Finnish Kalevala describes Ukko as an old man, but a powerful one. The legendary character was the god of sky, weather and crops. He could create thunderstorms just by driving his chariot through the clouds.
The most significant god in Finnish mythology also had a great weapon: variously described as a hammer, an axe or sword, with which he could create lightning.
Ukko was so powerful that a literal thunderstorm took place every time he hooked up with his wife Rauni.
Does this sound like an #IndoEuropean archetype, like 🔗Thor to you?
#mythology
@EuropeanTribalism
On connections
I just was reading through some of my old articles and came across 'Scythian Art'.
Maybe you want to compare the depiction of the Scythian goddess Apa with the depiction of Kali in this article.
There should be no doubt that Apa is based on Kali, the raging hag. In fact we find many female deities who are similar to this Vedic goddess or based on her, like Hathor, Ku-Bao (who derived also from Matar Kubileya), Hera and Astarte.
If we give value to this connection, we will be abled to identify the origin of Kali and subsequently all derived goddesses, who are not of the Neolithic fertility archetype, but of Vedic and thus #IndoEuropean origin.
#mythology
@EuropeanTribalism