About 7,650,000 results
Open links in new tab
  1. Python - Create a text border with dynamic size - Stack Overflow

    Dec 24, 2013 · def bordered(text): lines = text.splitlines() width = max(len(s) for s in lines) res = ['┌' + '─' * width + '┐'] for s in lines: res.append('│' + (s + ' ' * width)[:width] + '│') res.append('└' …

  2. How to Set Border of Tkinter Label Widget? - GeeksforGeeks

    Dec 11, 2020 · The task here is to draft a python program using Tkinter module to set borders of a label widget. A Tkinter label Widget is an Area that displays text or images. We can update …

  3. Border - Textual - Textual Documentation

    In Python, the border is set with a tuple of border style and a color. Border command ¶ The textual CLI has a subcommand which will let you explore the various border types interactively:

  4. How to Set Border for Label in Tkinter Python - Tutorial Kart

    In Tkinter, the borderwidth and relief options allow you to add a border to a Label widget. The borderwidth option defines the thickness of the border, while the relief option specifies the …

  5. 5 Best Ways to Put a Border Around a Frame in Python Tkinter

    Mar 2, 2024 · With Tkinter’s themed widgets (ttk), you can apply preconfigured styles or create custom ones to add borders to ttk.Frame widgets. This approach grants a modern look and the …

  6. Put a Border Around a Frame in Python Tkinter - Online …

    To put a border around a Frame in Tkinter, we have to use the highlightbackground and highlightthickeness parameters while creating the Frame. Let's take an example and see how …

  7. Dynamic border around text in python - Stack Overflow

    Feb 13, 2016 · I need to input a sentence and make a dynamic border around that sentence. The border needs to have a width that is inputted. When the length of the sentence is higher than …

  8. Tkinter Label - Border - Python Examples

    There is no default option to specify a border for Label widget in Tkinter. But, we can wrap this Label widget in a Frame, and specify border for the Frame widget. In this tutorial, you will learn …

  9. Stay up to date on the latest in Machine Learning and AI

    In this article, we’ll explore how to add custom borders around text in Python using popular libraries like Matplotlib and Seaborn. Whether you’re working on machine learning projects or …

  10. How to add borders to tkinter label text - Code2care

    There are a lot of border types that you can choose from while using Python Tkinter Label. 1. Flat. 2. Raised. 3. Sunken. 4. Ridge. 5. Solid. 6. Groove. How to add borders to Tkinter label text …

  11. Some results have been removed
Refresh