in reply to Re^7: Query the height of Tk::Text widget with word wrap
in thread Query the height of Tk::Text widget with word wrap
no taskbar icon ... (or some other things) .. see Tk::Wm perl -MTk -e " tkinit()->overrideredirect(1); MainLoop; "
not sure where i learned it, probably from tk splashscreen or maybe reading Tk::Wm and trying everything :)
$mw->overrideredirect(1); $heightwin ->overrideredirect(1); ... $mw->overrideredirect(0); ## 1 #~ 2 3 4 2 3 4 $mw->deiconify; $mw->geometry('+0+0'); $mw->raise; $mw->state('zoomed'); MainLoop;
It's also pretty slow. It takes about 3 or 4 seconds for 500 rows. I'm thinking about how to speed it up but I'm not sure.
you can always throw up a splashscreen :) but ~3 seconds is reasonable for me, half of that is loading/perl/tk... the other half is the dlineinfo loop ..
If you were to startup spreadsheet program or browser its not significantly faster
You could use dline/bbox on first line, and then guesstimate the width/height for the rest of the lines, but that only probably shaves at most half of ~1.5 seconds (not really sure which part of the dline/matrix equation takes the time, not gonna timeit)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Query the height of Tk::Text widget with word wrap (tk without no tray icon overrideredirect splashscreen state zoomed deiconify
by elef (Friar) on Dec 03, 2013 at 11:09 UTC |