Thread Übersetzungs-GUI 2 - Mein Programm: bin am Verzweifeln (22 answers)
Opened by life_heart at 2007-06-03 14:46

life_heart
 2007-06-03 18:27
#46399 #46399
User since
2007-05-30
12 Artikel
BenutzerIn
[default_avatar]
jetzt sieht es folgendermaßen aus:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
sub translate {
  my $text = $In->getSelected();
  my $leo = WWW::LEO->new();
  $leo->query($text);
  if ($leo->num_results) {
  print Dumper $leo->en_de();
  }else{
  print "Sorry, your query for '%s'gave no results.\n", $leo->query;}
  $Out->query('end',$leo);
}


nur anstatt, dass er das ins rechte fenster ausgibt, gibt er das im dos-modus aus:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$VAR1 = [
         [
           'hello',
           'hallo'
         ],
         [
           'hullo',
           'hallo'
         ],
         [
           'hallo',
           'das Hallo'
         ],
         [
           'hello',
           'das Hallo'
         ],
         [
           'Hello!',
           'Hallo!'
         ],
         [
           'Hey!',
           'Hallo!'
         ],
         [
           'Howdy! [Amer.] [coll.]',
           'Hallo!'
         ]
       ];
Tk::Error: Can't locate auto/Tk/Text/query.al in @INC (@INC contains: C:/Perl/si
te/lib C:/Perl/lib .) at C:\bsp2_final.pl line 115
(menu invoke)


was mache ich da falsch? ich weiß wirklich nicht mehr weiter. brauche ich eigentlich die listbox, wo das wörterbuch ist? nein. oder?\n\n

<!--EDIT|life_heart|1180880882-->

View full thread Übersetzungs-GUI 2 - Mein Programm: bin am Verzweifeln