For Programmers: Free Programming Magazines  


Home > Archive > PerlTk > May 2007 > Background image with grid









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Background image with grid
vorticitywolfe@gmail.com

2007-04-28, 10:02 pm

Hello I'm a beginner and I'm using grid to make an entry widget
table. I want a background image behind the table is there a way to
do that with grid without making the image put into a grid "cell"
while putting the entry widgets around it?

Thanks for your help!
Jonathan

QoS

2007-04-28, 10:02 pm


vorticitywolfe@gmail.com wrote in message-id:
<1177797527.243198.165920@c35g2000hsg.googlegroups.com>
>
>Hello I'm a beginner and I'm using grid to make an entry widget
>table. I want a background image behind the table is there a way to
>do that with grid without making the image put into a grid "cell"
>while putting the entry widgets around it?
>
>Thanks for your help!
>Jonathan


First start with a Canvas or Zinc widget.
Next load your background image onto the canvas.
Then create canvas window items for your entry widgets.

*$canvas*->createWindow(*x, y*?, *-option*=>*value*, ...?)

See: perldoc Tk::Canvas

HtH


vorticitywolfe@gmail.com

2007-05-01, 10:02 pm

On Apr 29, 12:55 am, QoS<defa...@invalid.net> wrote:
> vorticitywo...@gmail.com wrote in message-id:
>
> <1177797527.243198.165...@c35g2000hsg.googlegroups.com>
>
>
>
>
>
> First start with a Canvas or Zinc widget.
> Next load your background image onto the canvas.
> Then create canvas window items for your entry widgets.
>
> *$canvas*->createWindow(*x, y*?, *-option*=>*value*, ...?)
>
> See: perldoc Tk::Canvas
>
> HtH


Thanks, I am one step closer. I am able to put labels etc on the
canvas, but when I use "grid", it destroys the canvas. For example:
$canvas->Label(-options) ->grid(); #works fine

$canvas->Label(-options) ->grid( #destroys canvas (at
least it looks that way)
$canvas->Label(-options)->pack(),
$canvas->Label(-options)->pack(),
$canvas->Label(-options)->pack());
Any ideas?

Thanks again!
Jonathan

QoS@domain.invalid.com

2007-05-01, 10:02 pm


vorticitywolfe@gmail.com wrote in message-id:
<1178041239.001954.70610@e65g2000hsc.googlegroups.com>
>
>On Apr 29, 12:55 am, QoS<defa...@invalid.net> wrote:
>
>Thanks, I am one step closer. I am able to put labels etc on the
>canvas, but when I use "grid", it destroys the canvas. For example:
>$canvas->Label(-options) ->grid(); #works fine
>
>$canvas->Label(-options) ->grid( #destroys canvas (at
>least it looks that way)
> $canvas->Label(-options)->pack(),
> $canvas->Label(-options)->pack(),
> $canvas->Label(-options)->pack());
>Any ideas?
>
>Thanks again!
>Jonathan


Works a bit differently with a canvas, you need to specify xy coords,
then play around with the width and height options for the label widget.

Similar to something like this:

$canvas = $mw->Canvas();
$label = $canvas->Label(-text => "LabelText",);
$canid = $canvas->createWindow(0, 0, -window => $label,);

Good Luck,
Jason





Jenna

2007-05-13, 3:37 am

http://Katie-Holmes-touching-her-bo...hp?movie=148803
Gerber

2007-05-23, 11:38 pm

Hardcore sex movie! Free download!
http://www.incredible-asians-online...dicked_hard.avi
Q-t-pie

2007-05-24, 1:07 pm

HACKED P0RN SITE!
Direct access to member zone
http://uniqueadult.com/members/video.php?file=1
username: 218571
password: wanttocome
change the number in the link to get other videos!
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com