Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Greetings!
Once again, I need my fellow monks' advice regarding Tk.
After exchanging ActiveState for Strawberry and Win32::GUI for Tk, I have been struggling to refactor my old GUI into a Tk equivalent.
I am more or less back to where I started out, the GUI looks reasonably the same, but I am still struggling with a number of problems:

1. The GUI is significantly slower than the (native, so expected) Win32::GUI in terms of defining the GUI. I should mention that the GUI consists of a number of grids, which I have (with the help of you monks) used the grid() packer for. The size of the grid is quite large (up to thousands of cells), so it takes seconds to draw it.
2. When the grids get big and I flip between different tabs in a top notebook widget, I quite often get a "UpdateWrapper: Failed to create container" exit error message. Haven't been able to pinpoint exactly why/where this happens, but it appears when I stress the GUI.

Sometimes when stopping execution I can see that I am deeeply nested into Tk callbacks and whatnots, making me suspect that much of what is taking time is stuff that isn't providing any usable functionality for me.

Thus, some questions:
1. Is it possible to disable the GUI Event mechanisms, like the clicking on a button (temporarily while dealing with another event)? I am thinking that this might prove less stressful to the GUI.
2. Is it possible to disable the binding of variables to widgets, like -textvariable for Entry widgets? Just guessing this might speed things up a bit.
3. I have already replaced some really slow superwidgets for leaner alternative (e.g. JBrowseEntry for BrowseEntry) but maybe there are leaner widgets still?
4. What else?

As always, any help is deeply appreciated.

In reply to Tk performance and "UpdateWrapper: Failed to create container" by olgo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-19 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found