| |||||||||||
| |||||||||||
Tk locks up - 100% c.p.u. on a simple program (Tcl, Perl, Python)
Fighting packs and grids - Tk under Tcl, Perl, Python
You'll use pack OR grid to place components into your frame in a Tcl/Tk application. You may use both pack and grid within the same program, but NOT within the same frame. If you do, not only will you be writing code that has no clear meaning, but you'll also invoke the pack and grid handlers at the same time and may cause them to fight. Have a look at this code: button .ouch -text "do NOT press this button" -command exitWhen I ran that, my prompt was lost, no wish window appeared, and my c.p.u. utilisation rocketed to 99% ... and stayed there. I guess when you have two individuals fighting, they don't show any regard at all for others around them. Footnote I've often contended that the way to get a user to select a button is to label it "Do not push this under any circumstances" ... which is what I have put in the example above. Some may say that I have a warped sense of humour, or that I have watched too much "Trigger Happy TV". (written 2007-09-09 07:13:50) Associated topics are indexed under Y205 - Further uses of PythonT218 - Tcl/Tk - Geometry Managers P307 - Perl/Tk
Some other Articles
Catching up on indexing our resourcesMelksham Laundrette Google, wwmdirectory, Freshwater, ATP - new scam? Moving to Melksham? Househunting map. Tk locks up - 100% c.p.u. on a simple program (Tcl, Perl, Python) Packages and Namespaces are like Suitcases and Aircraft Handling Binary data in Tcl (with a note on C) A series of tyre damages Ignore case in Regular Expression Expanding a grid - Tcl/Tk 1638 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33 at 50 posts per pageThis is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price. Link to Ezine home page (for reading). Link to Blogging home page (to add comments). |
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho | |||||||||||