Thread Tk::Graphitems (24 answers)
Opened by Gast at 2007-11-26 16:07

renee
 2007-11-27 12:29
#103104 #103104
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Bekommst Du damit einen Fehler:
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl

use strict;
use warnings;
use Tk;
use Tk::GraphItems;

my $oo = { 1 => 'hallo', 2 => 'test', 3 => 'perl' };

my $mw = new MainWindow(-title => "Robot Control GUI", -height => 600, -width => 800);

  my $can = $mw->Canvas(-relief  => "raised", -borderwidth => 2, -width => 225, height => 150)->place(-x => 5, -y => 180); # ==
  foreach (sort keys %{$oo})
  {
     my $node = Tk::GraphItems::TextBox->new(canvas => $can, text => 'test', x => 50, y => 50);
  }

MainLoop;


Welche Version von Tk hast Du?
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread Tk::Graphitems