Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Python GUI Tutorial - 32 - Text - part2

  • Indrajeet Singh
  • 2018-07-29
  • 5840
Python GUI Tutorial - 32 - Text - part2
methods of Text in tkinterinsert text into Tkinterdelete text from Text in tkintersearch text from Text in Tkinterget text from Textget selected text in Text in tkinterTkinterTkinter tutorials in HindiPython TKinter
  • ok logo

Скачать Python GUI Tutorial - 32 - Text - part2 бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Python GUI Tutorial - 32 - Text - part2 или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Python GUI Tutorial - 32 - Text - part2 бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Python GUI Tutorial - 32 - Text - part2

This is the part 2 of Text widget. In first part, we've learned how we can create Text widget and also learned the several option along with that.
So in this video, we're going to learn how we can get, insert, delete text from the Text using some methods.

The methods used in video are as follows-

1. .insert() - this methods used to insert the text into Text.
2. get() - this method is to get the text from Text.
3. selection_get() - this method is used to get the selected text.
4. search() - search method is used to search a perticular string and returns its postition.
5. delete() - delete method is used to clear the text from tkinter Text.





code used in the video-

from tkinter import *



def print_me():
result = text.selection_get()
pos = text.search(result, 1.0, stopindex=END)
print(pos)
print(result)

root = Tk()

text = Text(root, width=20, height=10, wrap=WORD, padx=10, pady=10, bd=5, selectbackground="blue")
text.pack()

text.insert(INSERT, "hello iam indrajeet")


button = Button(root, text="print me", command=print_me).pack()
root.geometry("300x300+120+120")
root.mainloop()




------------------------------------------------



I'm sure your quries like -
how to insert text into Text in tkinter?
how to fetch the text from Text in Tkinter?
how to get selected text in Tkinter Text widget?
how to search text in Text in tkinter?
how to clear Text in TKinter?
have been solved.


if you have any problem related with this video, then please let us know in comment box. we'll reply as soon as possible.


Contact us -
FB -   / programmingacage  
email - [email protected]

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]