Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to create an image of part of an app?

3 views
Skip to first unread message

Helmut Giese

unread,
Mar 3, 2006, 2:18:49 PM3/3/06
to
Hello out there,
for documentation I would like to produce images from my app in
different states. I don't want to take screen shots because
1) they are too large and
2) I want to do it programmatically (from within the app, so to say.
This means that I can run a test script and have it produce new images
whenever something changes.)

I am aware of
image create photo -format window -data $wdgt
but I have the following problem:
In the central part I have on the left a canvas and on the right a
BWidget TitleFrame with a text widget inside.[pack]ed side by side. I
can get an image of the canvas but I want to get the canvas _and_ the
TitleFrame together with the sunken relief and all other visual fluff,
because I want it to look exactly as it appears on the screen.

I tried to [pack] both into a common frame and let the above
image create ...
command loose on this frame, but the result was utterly disappointing:
The canvas and the text widget didn't show up at all and all I
basically got was what was probably the border around the text widget.

Any ideas on what to try next would be greatly appreciated.
Best regards
Helmut Giese

Helmut Giese

unread,
Mar 4, 2006, 12:19:50 PM3/4/06
to
If someone else poses the same question in the future, I think I
follow up with what I found on the wiki:
http://mini.net/tcl/9127 by David Easton is just what the doctor
ordered in this case.
Many thanks David, this comes extremely handy.

A nice weekend to all of you.
Helmut Giese

David Easton

unread,
Mar 6, 2006, 4:23:36 AM3/6/06
to

Helmut Giese wrote:
> Many thanks David, this comes extremely handy.

I'm glad you found it useful.
David.

0 new messages