% wishx whishx> button .b -text "Example" -bg gray whishx> pack .b... And from a different window ...
% xwd | xwdtopnm | ppmtogif > example.gif- And click on the Tcl/Tk button you just created.
If you want your button to have transparent background ( - so it also looks nice on browsers that doesn't have gray background ), you can use the following procedure :
% xv example.gif # Find color map entry # for bg col (starting with 0) % gif-trans -t # example.gif > example_btn.gifSee also the Transparent Images Resources List from Yahoo.