Current location: Hot Scripts Forums » Programming Languages » Perl » Cannot copy and paste from tree


Cannot copy and paste from tree

Reply
  #1 (permalink)  
Old 11-14-06, 07:20 PM
Hermannjens Hermannjens is offline
Newbie Coder
 
Join Date: Aug 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Cannot copy and paste from tree

Hi, im making a tree in perl.
Ive made the following code except for one thing, i cant copy and paste what gets displayed in the tree.
How do i do that?

The code is the following:
Code:
#!/usr/bin/perl
use Tk;
use Tk::Tree;
use Tk::ItemStyle;

$hemmi = "333";
my $mw = MainWindow->new(-title => 'Tree', -width => 750, -height=>500);
my $tree = $mw->Tree(-font => 'Courier 14', -foreground => 'blue')->place(-x => 0, -y => 0, -width => 10000, -height => 1000);

$tree->add("1", -text => "Perl Developers Guide");  
$tree->add("1.1", -text => "Getting Started"); 
$tree->add("1.1.1", -text => "Before we start");
$tree->add("1.1.1.1", -text => "Why this guide");
$tree->add("1.1.1.1.1", -text => "The books usually have a lot of extra and useless information, the reading of which wastes programmers time.
By using my glossaries you will acquire Perl knowledge with less time wasted than by reading the books.");
$tree->add("1.2", -text => "Variables");
$tree->add("1.3", -text => "Arrays");
$tree->add("1.4", -text => "Hashes");
$tree->add("1.5", -text => "References");
$tree->add("1.6", -text => "Loops");
$tree->add("1.7", -text => "Functions");
$tree->add("1.8", -text => "Modules");
$tree->add("1.9", -text => "Files");
$tree->add("1.10", -text => "Directories");
$tree->add("1.11", -text => "Text Manipulation");
$tree->add("1.12", -text => "Miscellaneous");

$tree->autosetmode();
$tree->close("1");

MainLoop;

Last edited by Nico; 11-14-06 at 07:21 PM. Reason: Please use [code] wrappers when posting code.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question: copy urls in your website Maddawg27 The Lounge 3 11-13-06 04:19 AM
copy and paste database jk14 Database 1 10-13-06 04:40 PM
copy and paste eric1026 Flash & ActionScript 1 09-12-06 11:36 AM
Excel - Copy string and paste as formula stitches43188 Visual Basic 0 07-12-06 10:16 AM
copy and paste visual editor? goldbidders HTML/XHTML/XML 3 12-09-04 09:33 AM


All times are GMT -5. The time now is 04:45 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.