is it possible to highlight text in python?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • moroccanplaya
    New Member
    • Jan 2011
    • 80

    is it possible to highlight text in python?

    hi i want to know how i would go about highlighting specfic charchaters in python for exaple:

    Code:
     string = " help me highlight"

    i would like to find all the "h" in that string are located

    is there any modules or functions that can help with this
    Last edited by moroccanplaya; Jan 11 '12, 10:00 PM. Reason: for clarity
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    That can be done in a Tkinter Text widget. You would add a tag for all text that meets your criteria and configure the tag to appear the way you want.

    Comment

    • moroccanplaya
      New Member
      • Jan 2011
      • 80

      #3
      thanks i will look into it

      Comment

      Working...