![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hiding app window | amessbee | High Level Programming | 1 | 12-05-2006 11:03 AM |
| getting url from mozilla window | phani_sree | High Level Programming | 2 | 11-16-2006 02:23 AM |
| Where to get X window Libraries? | byblyk | Linux | 3 | 10-02-2005 02:29 PM |
| window 2000 professional not pinging my window 98 system. | kayode | Windows & DOS: Issues & Discussions | 10 | 11-13-2003 03:12 AM |
| about X-window | serge | High Level Programming | 0 | 06-11-2003 07:43 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Heres my script.
How do I put a picture in it?#util to show picture in window #version 1.0 #-colinok #make window with box for picture use Tk; my $mw = new MainWindow; $scrollbar = $mw -> Scrollbar(); $text = $mw -> Text(-height => 20, -width => 50, -yscrollcommand => ['set' => $scrollbar]); $scrollbar -> configure(-command => ['yview' => $text]); $scrollbar -> pack(-side => 'right', -fill => 'y'); $text -> pack(-side => 'left', -fill => 'both'); MainLoop; |
|
||||
|
Yea, I ran out of money on my holidays so I couldnt buy it, but I should have it by June.
Anyway, Is this right? When I run it the perl window pops up and disappers and thats it.use Tk; my $mw = new MainWindow; $scrollbar = $mw -> Scrollbar(); $text = $mw -> Text(-height => 20, -width => 50, -yscrollcommand => ['set' => $scrollbar]); $scrollbar -> configure(-command => ['yview' => $text]); $scrollbar -> pack(-side => 'right', -fill => 'y'); $text -> pack(-side => 'left', -fill => 'both'); $image = $mw->Photo(-file => "refinery.jpg"); $mw->Button(-text => 'Exit', -command => sub { exit }, -image => $image)->pack; MainLoop; |
|
|||||
|
perleo,
Sorry you're having trouble, but your code worked PERFECTLY on both my Unix and Windows machines! Are you getting any error messages? Are you waiting long enough for the TK window to appear? How are you starting the program? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|