About 29,500,000 results
Open links in new tab
  1. Python: Assigning tags to text in Tkinter - Stack Overflow

    Jun 13, 2012 · I want to add text to a text widget in Tkinter, where each word has a separate tag. Short example: text.insert('end', 'Hello, ', 'TAG1', 'how ', 'TAG2', 'are you.', 'TAG3',)

  2. Python, PyKeePass - cant append new tag to entry

    Feb 20, 2025 · Looking at the code, you see there are @property, @getter and @setter defined for Entry.tags. Under the hood tags are stored as single sep delimited string (default sep is semi-colon). The getter parse the string to list, setter joins list …

  3. python - How to Insert tags in texts - Stack Overflow

    Jul 25, 2011 · Just treat the tags as normal strings and do the string concatenation operation. That is the basic approach. You can use str.format operation on string to insert text between tags in the string too.

  4. Python Tkinter – Entry Widget - GeeksforGeeks

    Aug 21, 2024 · The Tkinter Entry widget is a simple input field in Python that lets users type or edit text. By default, it starts empty unless given an initial value. Adding default text improves user experience by acting as a hint, pre-filling known details and reducing repetitive typing in forms.

  5. htmltag.py - Safely and intuitively construct HTML tags

    htmltag.py - A Python (2 and 3) module for wrapping whatever strings you want in HTML tags. Example: What tags are supported? All of them! An important facet of modern web programming is the ability to use your own custom tags. For example: You can combine multiple tags to create a larger HTML string like so:

  6. Insert tags or strings immediately before and after specified tags ...

    Oct 31, 2022 · insert(): The insert() function in BeautifulSoup is used to insert elements into the tag object, it is similar like .inert() in a python list. insert_before(): The insert_before() method inserts tags or strings immediately before something else in the parse tree.

  7. Entry widget in CustomTkinter: Build your own learning diary

    The Entry widget is a standard GUI widget used in GUI programming to allow users to enter single-line text input. It provides a rectangular box in which the user can type or paste text, and the text is displayed on the screen as the user types.

  8. How to Use Tkinter Entry Widget in Python? - Python Guides

    Jan 21, 2025 · In this tutorial, I explained how to use Tkinter Entry widget in Python. I discussed how to create an entry widget in Python Tkinter, configure entry widget, retrieve user input, validate user input, use entry widgets in forms, display default text, and style entry widgets.

  9. Tkinter Entry Widget - Python Tutorial

    Summary: in this tutorial, you’ll learn how to use the Tkinter Entry widget to create a textbox. The Entry widget allows you to create a simple textbox with a single text line. To create a textbox, you use the following steps: First, import ttk module from tkinter: Second, create the Entry widget’s constructor: In this syntax:

  10. python - Managing and searching objects using tags - Code …

    def add(self,item,tags): ''' Add an item with a list of tags. if tags is empty, the item will not be added to. the TagDict. Input: item - an object. tags - a string or a list of strings. ''' if type(tags) is str: tags = [tags,] tags = set(tags) self._ids[id(item)] = (item,tags) for tag in tags: self.data[tag].add(id(item))

  11. Some results have been removed
Refresh