PropertyListBox

Displays a list of items and their values in a property-style list box dialog.

Syntax

rhinoscriptsyntax.PropertyListBox (items, values, message=None, title=None)

rhinoscript.userinterface.PropertyListBox (items, values, message=None, title=None)

Parameters

items

Required.  list of string items.

values

Required.  list of values of each item in the list.

message

Optional.  String.  A prompt or message.

title

Optional.  String.  A dialog box title.

Returns

List

A list of strings indicating the new value of each item in the list.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

objs = rs.GetObjects("Select Objects")

if objs:

    names = []

    for obj in objs:

        name = rs.ObjectName(obj)

        if name is None: name=""

        names.append(name)

    results = rs.PropertyListBox(objs, names, "Modify object name(s)")

    if results:

        for i in xrange(len(objs)):

            rs.ObjectName( objs[i], results[i] )

 

 

Also See

CheckListBox

ComboListBox

ListBox

MultiListbox