@doniyorieltss · Post #327 · 22.12.2022 г., 14:40
#Spelling errors can lower your writing grades. Learn to avoid the most common mistakes. Which of these words do you find difficult to spell? 💯@ieltsulugbeks
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #381 · 23 окт.
Установить свойства виджета в PySide можно не только через соответствующие методы и конструктор класса. Можно их изменять с помощью метода setProperty по имени. btn = QPushButton("Click Me") btn.setProperty("flat", True) Это аналогично вызову btn.setFlat(True) Если указать несуществующее свойство, то оно просто создается btn.setProperty("btnType", "super") Получить его значение можно методом .property(name) btn_type = btn.property("btnType") Когда это может быть полезно? ▫️Можно просто хранить какие то данные в виджете и потом их доставать обратно widget = QWidget() widget.setProperty('my_data', 123) print(widget.property('my_data')) ▫️ Назначая эти свойства разным виджетам можно потом отличить виджеты во время итераци по ним. Например, найти все кнопки со свойством my_data="superbtn". Но ведь вместо кастомного свойства можно использовать objectName, будет тот же результат. Да, но y ObjectName есть ограничение - только строки. ▫️ Если нам потребуется не просто поиск а, например, сортировка по числу, то свойства позволяют нам это сделать. Поддерживается любой тип данных widget.setProperty('my_data', {'Key': 'value'}) widget.setProperty('order', 1) all_widgets.sort(key=w: w.property('order')) Но ведь Python позволяет всё вышеперечисленное сделать простым созданием атрибута у объекта widget.order = 1 widget.my_data = 123 Да, но я думаю что не надо объяснять почему не стоит так делать. К тому же, если у виджета нет свойства то метод .property(name) вернет None, а отсутствующий атрибут выбросит исключение. ▫️ Действительно полезное применение кастомным свойствам - контроль стилей. Здесь атрибутами не обойтись, нужны именно свойства. Дело в том, что в селекторах стилей можно указывать конкретные свойства виджетов на которые следует назначать стиль. Просто запустите этот код from PySide2.QtWidgets import * if __name__ == "__main__": app = QApplication([]) widget = QWidget(minimumWidth=300) layout = QVBoxLayout(widget) btn1 = QPushButton("Action 1") btn2 = QPushButton("Action 2") btn3 = QPushButton("Action 3", flat=True) layout.addWidget(btn1) layout.addWidget(btn2) layout.addWidget(btn3) # добавим кастомное свойство одной кнопке btn1.setProperty("btnType", "super") # добавляем стили widget.setStyleSheet( """ QPushButton[btnType="super"] { background-color: yellow; color: red; } QPushButton[flat="true"] { color: yellow; } """ ) widget.show() app.exec_() С помощью селектора мы избирательно назначили стили на конкретные кнопки. Как получить список всех кастомный свойств? Функция получения списка кастомных свойств отличается от получения дефолтных. def print_widget_dyn_properties(widget): for prop_name in widget.dynamicPropertyNames(): property_name = prop_name.data().decode() property_value = widget.property(property_name) print(f"{property_name}: {property_value}") #tricks#qt
Пребарај: #spelling
@doniyorieltss · Post #327 · 22.12.2022 г., 14:40
#Spelling errors can lower your writing grades. Learn to avoid the most common mistakes. Which of these words do you find difficult to spell? 💯@ieltsulugbeks
Hashtags
@englishmeta1 · Post #518 · 11.03.2026 г., 06:17
Some useful spelling rules – Part I ========================== 🟣 Rule 1 🌼When a weak verb ends in a short vowel + consonant, the final consonant is not doubled to form the past tense, unless the accent falls on the last syllable. 🔹Budget – budgeted (NOT budgetted) 🔹Offer – offered (NOT offerred) 🔹Benefit – benefited (NOT benefitted) 🔎 Notes Worship is an exception to this rule. Its past tense is formed by doubling the final consonant. 🔹Worship – worshipped (NOT worshiped) 🌼If the accent falls on the last syllable, the consonant is doubled even if the word ends in a short vowel + consonant. So we have 🔹Occur – occurred (NOT Occured) 🔹Transfer – transferred (NOT transfered) 🔹Begin – beginning (NOT begining) 🌼If the final consonant is ‘l’, it is always doubled. 🔹Travel – travelled 🔹Level – levelled 🔸Parallel is an exception to this rule. Its past tense is paralleled (NOT parallelled). Nowadays traveled is also considered correct. ------------------------------------- 🔵 Rule 2 🌼Short monosyllables always double their final consonant. 🔹Shop – shopping 🔹Let – letting 🌼‘ie’ and ‘ei’ The general rule is ‘i’ before ‘e’ except after ‘c’. Examples are: siege, believe, friend But receive, deceive, ceiling etc. 🌼There are several exceptions to this rule. Reign, neighbor, heir, seize, leisure, weird 🌼Dis and mis Never double the ‘s’ of these prefixes. When a second ‘s’ occurs it is the first letter of the next syllable. Examples are: dismiss (not dissmiss), misplace (not missplace) 🔹dissent (dis-sent), misspell (mis-spell) 🌼‘us’ and ‘ous’ Nouns end in ‘us’. Adjectives end in ‘ous‘. So we have: 🔹Census, genius (nouns) 🔸Jealous, tremendous, 🚥🚥🚥🚥🚥🚥 #spelling #teamjimmy #sirjimmy
Hashtags
@sirJimmy · Post #29641 · 12.11.2022 г., 13:59
📝SPELLING📝 Please readthe email from Anna to Olga below. Then find and correct the sevenspelling mistakes. Hi Olga I’m writing to thank you for meetting me and looking after me in Bratislava. I had a really great time and after traveling all the way from Warsaw it was wonderful to see you waiting for me when I arrived. I thought Bratislava was beautiful and now I’m hopping that you will visit me in Warsaw soon. I’m glad I remembered to bring my camera (I’m always forgeting it) because I’ve got some really great photos, which I’m attaching. I think the one of us standing in front of the castle just before it openned is the best. I also really enjoyed the shoping and the restaurants and I’m sure I’ve got fater as a result of all that wonderful food! Please start planing your visit to Warsaw soon – I’m really looking forward to seeing you! Love, Anna #Spelling #Common_Mistakes #Teamjimmy @Sirjimmy
@sirJimmy · Post #29336 · 03.08.2022 г., 14:29
📝SPELLING📝 Please readthe email from Anna to Olga below. Then find and correct the sevenspelling mistakes. Hi Olga I’m writing to thank you for meetting me and looking after me in Bratislava. I had a really great time and after traveling all the way from Warsaw it was wonderful to see you waiting for me when I arrived. I thought Bratislava was beautiful and now I’m hopping that you will visit me in Warsaw soon. I’m glad I remembered to bring my camera (I’m always forgeting it) because I’ve got some really great photos, which I’m attaching. I think the one of us standing in front of the castle just before it openned is the best. I also really enjoyed the shoping and the restaurants and I’m sure I’ve got fater as a result of all that wonderful food! Please start planing your visit to Warsaw soon – I’m really looking forward to seeing you! Love, Anna #Spelling #Common_Mistakes #Teamjimmy @Sirjimmy
@sirJimmy · Post #28740 · 07.04.2022 г., 05:17
📝SPELLING📝 Fill the gaps with the correct form of words. ➕➕➕➕➕➕➕➕➕➕➕ 🌀A- /əˈkɒmədeɪt/ to provide enough space for somebody or something I don’t have enough bedrooms to __ you. 🌀B- /əkˈnɒlɪdʒ/ to accept that something is true I __ that I could have tried harder. 🌀C- /əˈdres/ details of where somebody lives or works and where letters, etc. can be sent. Please write your __ in block capitals. #Spelling #Common_Mistakes #Teamjimmy @Sirjimmy
@redfoxuz · Post #1004 · 13.05.2020 г., 00:36
«…» va “…”. Qo‘shtirnoqlar farqi Bugungi postda grafik jihatdan qo‘shtirnoqlarni qo‘llash haqida qisqagina ma’lumot bo‘ladi. Demak qoida shunday: — Rus tilida «вот так» yoki kamdan-kam hollarda „вот так“ — Ingliz tilida “like this” O‘zbek tili uchun: — Lotin yozuvida „bunday“ — Kirill yozuvida «бундай» Kelib chiqishiga ko‘ra, bu «…» — fransuzcha, bu “…” — inglizcha, bu „…“ — nemischa qo‘shtirnoq. Klaviatura kombinatsiyalari: « — Alt + 0171 » — Alt + 0187 “ — Alt + 0147 ” — Alt + 0148 „ — Alt + 0132 #spelling#blog@blogfolio
@languagetrivia · Post #341 · 17.11.2024 г., 10:38
Listen to the audio and choose the correct spelling for this famous sauce: A) Worchestershire sauce B) Wosterchire sauce C) Worstershire sauce D) Worcestershire sauce Follow 🌎@languagetrivia for more interesting questions #pronunciation#spelling
Hashtags
@learnrcrussian · Post #4777 · 30.05.2025 г., 11:47
👋Приветствую! Скучно is spelled with ЧН but how is it pronounced? 🔻Words containing the ЧН combination are usually pronounced as they are spelled. However, there are exceptions: • Конечно [ka-nesh-na] - of course • Скучно [skush-na] - boring • Нарочно [na-rosh-na] - deliberately • Яичница [yi-ish-ni-tsa] - fried eggs • Скворечник [skva-resh-nik] - birdhouse • Пустячный [pus-tyash-nyj - trivial, insignificant 🔻In feminine patronymics ending in -ична, it's pronounced like this: Никитична [ni-ki-tish-na], Ильинична [il'-yi-nish-na]. ❗️However, скучно can also be pronounced like [skuch-na] not [skush-na], according to the pronunciation in St Petersburg. #reading_rules #spelling 😎RCRussian | Support | Boost
Hashtags
@learnrcrussian · Post #4387 · 24.03.2025 г., 09:00
👋Приветствую! Понедельник ... • Нехотя [ne-kha-tya] Meaning: Unwillingly, reluctantly, inadvertently 🔻It implies a lack of enthusiasm or a feeling of being forced to do something. 🔻It comes from negative particle не + verb хотеть(to want). ❌ Не хотя ✅ Нехотя • Нехотя приступаем к работе, товарищи! [ne-kha-tya pris-tu-pa-yem k ra-bo-te, ta-va-ri-shchi] Reluctantly, let's begin our work, comrades! 🎧🗣👇 ▶️Неохотно (Synonym) #useful_vocabulary #spelling #MondayMood 😎 Stay with @learnRCRussian
@fluencyinenglish · Post #6938 · 08.03.2019 г., 10:26
@fluencyinenglish #ielts#ieltstips#spelling#vocabulary
@fluencyinenglish · Post #6937 · 08.03.2019 г., 10:25
@fluencyinenglish #ielts#ieltstips#spelling#vocabulary
@fluencyinenglish · Post #6936 · 08.03.2019 г., 10:25
@fluencyinenglish #ielts#ieltstips#spelling#vocabulary