Mailinglist Archive: yast-devel (191 mails)

< Previous Next >
Re: [yast-devel] Perl YUI TextEntry
  • From: Justin Haygood <jhaygood@xxxxxxxxxxx>
  • Date: Tue, 25 Mar 2008 19:59:41 -0400
  • Message-id: <1206489581.3563.0.camel@xxxxxxxxxxxxxxxxxxxxxxx>
I attached the current code I have. It should work per duncanmv's
comment in IRC, however it does not.

I am using openSUSE Factory.

On Tue, 2008-03-25 at 17:39 -0400, Justin Haygood wrote:
I'm trying to get the value of a YUI TextEntry (all in Perl).

I created the TextEntry via:

my $TextInput = TextEntry("Some Text","");

This let me add it to the VBOX:

my $c = VBox(
$TextInput,
PushButton("&OK")
);

UI->OpenDialog($c);
UI->UserInput();
UI->CloseDialog();

However, you can't get the value from either:

$value = $TextInput->Value; // Most Logical
$value = UI->QueryWidget( $TextInput, "Value" ); // Second Most Logical

What do I have to do in order to do this? Is this just incomplete Perl
bindings?

--Justin Haygood

< Previous Next >
References