Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8687881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:13:20+00:00 2026-06-12T23:13:20+00:00

G’day All, I have a little app that os.walks gathering some data. While it

  • 0

G’day All,

I have a little app that os.walks gathering some data. While it is working I thought it might be nice to put an Entry widget with the text “Processing” in it and change that to “Completed” when the walking was done.

The issue is the “Processing” never appears. The processing takes many seconds so it’s not like it’s over too soon to be seen.

def do_search():

txtProgress.delete(0,END)
txtProgress.insert(0, "Processing Data")

print 'do_search called'

arrayOfDirectories = [] # Store the categories here
global path
print  'The value for path = ' + path # Delete this in final
searchpath = path
print  'The value for searchpath = ' + searchpath # Delete this in final

for (searchpath, directories, files) in os.walk(searchpath):
    for directory in directories:
        arrayOfDirectories.append(directory) # Create an array or dirs to use for the categories

id = 1
finalJSON = '['

for eachDirectory in arrayOfDirectories:
    readpath = os.path.join(path, eachDirectory, 'URLS') # Grab each list of URLs
    print('readpath = ' + readpath)

    if os.path.exists(readpath):
        file = open(readpath) # Open the list of URLs
        for lines in file: # Step through each URL in turn

            ruleString = '{"id":' + str(id) + ',"enabled":true, "category":"' + eachDirectory + '","description":"' + lines + '","flagged":true,"string":"' + lines + '","name":"","javaClass":"com.untangle.uvm.node.GenericRule","blocked":true}'
            #print(ruleString)
            finalJSON = finalJSON + ruleString # Create a rule and add it to the final string
            id = id + 1 # Increment the id after each rule
        file.close() # Close the file when all have been read

It’s not a train smash if it doesn’t work but I am at a loss to understand why text is not appearing.

As always, all advice gratefully accepted.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T23:13:21+00:00Added an answer on June 12, 2026 at 11:13 pm

    In short, you never give your program a chance to display it. Redrawing the screen only happens as the result of a repaint event, so unless the event loop has a chance to service that event nothing will be displayed. This isn’t unique to Tkinter — all GUI toolkits work this way.

    The simple solution is to call txtProgress.update_idletasks() whenever you want the screen to be updated. This will allow events that refresh the screen to run. This is not the best solution, but it might solve your immediate problem.

    The best solution is to refactor your program to either do the long-running work in a separate thread or process, or break the work down to chunks that can be done one at a time with each iteration of the event loop.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I have a small JavaScript validation script that validates inputs based on Regex. I
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.