Well, I have tried with threads and repeat ($mw->update) to try to get the progressbar updated while it goes through dirs recursivly, without luck.
Ok, from the beginning. I have this GUI in Tk. On that I have an Entry and a Button. In the entry you enter a path. Button calls a sub to count files, and then again but this time working with the files. After first go the progressbar is updated with the total files. Now, next, when it goes through, the progressbar is supposed to be updated live, but isnt until the recursive work is done.
Actually, first I wanted the progressbar to be shown ontop ( in a new toplevel), but it didnt work properly. So, it ended up in same frame... Anyway, how to make the progressbar to update (and, well, specially the bar shown!) while script goes through dirs recursivly?
Ace
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.