in reply to Tk - Paging and scrolling through 5-10K rows of data and controls

I have seen some Tk-based apps (not only in perl, but python as well) get bogged down because of creating way too many widgets inside other widgets. (This apparently runs contrary to Marshall's experience, but it's obviously a possible, even likely outcome.)

So the idea in the first reply is the direction I would take, IF it's really the case that a user needs to see a bunch of adjacent lines in order to do what needs to be done manually.

If each "row" in your text file involves a set of user decisions that are independent of the decisions made on any other row, that's an even better reason for having a separation between search/review/select activities and edit/update activities. A total of maybe 8 widgets for the former, and 20 for the latter, should give you a simple, clean, fast and easy-to-use interface.

  • Comment on Re: Tk - Paging and scrolling through 5-10K rows of data and controls

Replies are listed 'Best First'.
Re^2: Tk - Paging and scrolling through 5-10K rows of data and controls
by Marshall (Canon) on Jun 12, 2009 at 00:28 UTC
    There are definitely some HUGE ways to go "wrong" in terms of performance with the GUI. I spent a couple of months figuring out how to make my GUI work in a very performant way. This subject is NOT easy and I hope that I didn't give an impression that it is easy, because it is not!

    I have seen some U/I things that just "drag an app into dirt".