I'm using the GUI Builder with a simple Perl Tk project. I dropped a ListBox widget on the form and then wanted to populate the listbox so in the property editor for the listbox I added a variable to the "listvariable" property, i.e: @list Then I populate the @list in my Perl file. Nothing shows up in the ListBox other than "@list", so obviously I did something wrong. So then I decided to clear out the @list in the listvariable property and added the following code to the Perl file:

# BEGIN USER CODE
@list = ( "a", "b", "c", "d", "e", "f" );
$listBox->insert('end', @list);
# END USER CODE

Output: Can't call method "insert" on an undefined value at C:\PerlSource\TestUI_Dialog.pl line 20.

Any idea what I am doing wrong in either case?

Thanks,

Chad
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to