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

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #173 · 28 окт.

Для тех кто пишет расширения на PyQt/PySide для CG-софтов. Когда я только начинал писать тулзы под Maya (тогда еще версия 2010-2011) мне приходилось ручками ставить PyQt4 под Maya. Даже написал мануалы по установке на своём сайте. Но потом стал доступен из коробки PySide и позже он обновится до PySide2. Для некоторых систем была поддержка PyQt5. И как простому разработчику поддерживать этот зоопарк? Ведь хочется чтобы тул работал на любой версии (вы тоже делали модуль что-то типа import_qt.py?😁) На помощь приходит проект Qt.py который поставил себе цель унифицировать использование Qt-биндингов вне зависимости от среды где запускается код. Те, кто давно пишут на Qt, скорее всего знают этот проект. Он стал стандартом для CG-индустрии и используется в топовых студиях и проектах. Qt․py помогает запускать один и тот же код на разных платформах с разными вариантами Qt-библиотек. Это может быть как интеграция в CG-софт, так и переносимость стендалонов между разными платформами с разными версиями Python. Я решил рассказать о некоторых особенностях работы с этой библиотекой. Сегодня о том, как установить и использовать Qt․py и что это вам даёт. Установка pip install Qt.py Чтобы начать использовать Qt․py в коде достаточно заменить импорт вашего варианта Qt-биндинга на Qt․py from [PySide|PyQt4|PySide2|PyQt5] import QtWidgets => from Qt import QtWidgets Теперь ваш код будет поддерживать любой вариант биндинга Qt в Python. При этом не потребуется использовать if-else конструкции под разные версии. Все вызовы теперь одинаковы. Всё что нужно сделать, это написать его по правилам PySide2. Именно эта версия была взята за основу. Приоритет импорта такой: 1. PySide2 2. PyQt5 3. PySide 4. PyQt4 Что именно загрузилось можно посмотреть в переменной __binding__ >>> import Qt >>> Qt.__binding__ 'PySide2' Приоритет имопрта можно изменить через переменные QT_PREFERRED_BINDING и QT_PREFERRED_BINDING_JSON. Причем под каждый проект оверрайды можно настраивать индивидеально. #qt#libs

Hashtags

Резултати

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

Пребарај: #wait

当前筛选 #wait清除筛选
Social Justice Watch

@social_justice_watch · Post #17065 · 05.09.2022 г., 02:13

I wonder how many gay people are actually transgender & dont know it because people thing being transgender is transitioning when it’s literally just not being cis. like I had a friend tell me last night “all my life I wanted to be a girl. even to this day, like if someone told me I could transition & look like you or *insert another trans woman idk* I would do it in a heartbeat” and when I was like omg ur transgender he was surprised? like he was like wait just wanting to be a girl makes me transgender even if I dont do anything about it? and like its harder to pinpoint non binary people but if u have a desire be a different gender ur transgender. transitioning is a choice but being transgender is not. “One of the symptoms of being a girl is wanting to be a girl.” Don’t remember where I heard that but the quote is my life. This is one of the posts I can explicitly pinpoint as helping me realize that I might not be cis. The biggest symptom of being trans is wanting to not be your gender. It can also be dysphoria, it can also be euphoria, it can also be presentation, but wanting to be something else is all you really need. #wait so ur telling me#‘i dont want to have a gender’#can mean#‘i dont have a gender??’ I would also like to know… for reasons Confirmed. How to know you’re agender: You don’t want to be anything else. You look at the options for gender and gender presentation and decide to go back to bed Bold of you to assume I got out of bed Nah but seriously thanks for the insight So, if I look at gender and say “this is some bullshit and I want no part of it”, I guess that makes me agender? if that’s how you wanna identify, yeah. feeling anything mentioned in this post doesn’t mean you have to identify as trans, but feeling anything in this post is literally all that’s necessary to identify as trans if you want to. fuck gatekeepers forever. 👏if👏you👏don't👏feel👏cis👏you're👏possibly👏not👏cis👏 i mean this is literally what jvn said This is one of those things where you can go 25+ years of your life not realising that actually no not everyone secretly wishes they were some mashup of male and female and that you are, in fact, genderfluid as fuck. You can want to be the other gender. You can want to be another gender. You can want to divorce all connection to the gender you were born into. You can want to keep it as an origin point that shapes your journey. You can want to be more than one gender at once. You can want to be more than one gender, at different times. You can want to be no gender. You can want to be sort of in between genders. You can want to be both genders. You can want to be rid of gendered body parts you already have. You can want to keep gendered body parts while also being another gender. You can want to be rid of them but not want the side effects of excising them. You can feel dysphoria at being shaped like/viewed as/treated like a gender you don’t want. You can feel euphoria at being shaped like/viewed as/treated like a gender you do want. You can change your mind or adjust your goals or refine your wishes. You can be stationary and fixed in your identity. You can be fluid and changing. You can be extremely gendered in your presentation. You can be not very gendered in your presentation. You can be androgynous. You can be a little of both. You can be a lot of both. If gender is a line you can cross, as the words trans (across/on the other side of) and cis (here/on the same side of) indicate, you can cross it in any way you like, including dancing on top of it. Be happy. Be you. This is an extremely affirming post. https://genderkoolaid.tumblr.com/post/691574739639091200/i-wonder-how-many-gay-people-are-actually

Hashtags