Re: [IronPython] How to find import in ipy

2010-03-11 Thread Ken MacDonald
Thanks Michael, Brian, Curt Found out I should've been using List*Box*Item instead of ListItem as I'm working w/ a ListBox, but now have this piece working. The pointers and suggestions were REAL helpful in tracking down what I actually needed, even though I started out asking for the wrong th

Re: [IronPython] How to find import in ipy

2010-03-11 Thread Curt Hagenlocher
On Thu, Mar 11, 2010 at 9:33 AM, Ken MacDonald wrote: > > Thanks Michael, > All of the other controls (StackPanel, Grid...) are being imported from > System.Windows.Controls, > so I thought ListItem ought to have been somewhere in there. Given that you seem to be using WPF, you probably want Sys

Re: [IronPython] How to find import in ipy

2010-03-11 Thread Michael Foord
On 11/03/2010 17:33, Ken MacDonald wrote: Thanks Michael, We're using .NET, so this should be OK, I guess? If you're using IronPython that you are definitely using .NET. Do you mean you are using ASP.NET? All of the other controls (StackPanel, Grid...) are being imported from System.Window

Re: [IronPython] How to find import in ipy

2010-03-11 Thread Ken MacDonald
Thanks Michael, We're using .NET, so this should be OK, I guess? All of the other controls (StackPanel, Grid...) are being imported from System.Windows.Controls, so I thought ListItem ought to have been somewhere in there. > > from System.Web.UI.WebControls import ListItem > > > That's for ASP - i

Re: [IronPython] How to find import in ipy

2010-03-11 Thread Brian Curtin
On Thu, Mar 11, 2010 at 11:11, Ken MacDonald wrote: > Hi, I have an app with a popup containing a listbox. I want to dynamically > add a few items to the listbox and found code in a number of places which > does something like: > > listbox.Items.Add(ListItem("Special", 11)) >

Re: [IronPython] How to find import in ipy

2010-03-11 Thread Michael Foord
On 11/03/2010 17:11, Ken MacDonald wrote: Hi, I have an app with a popup containing a listbox. I want to dynamically add a few items to the listbox and found code in a number of places which does something like: listbox.Items.Add(ListItem("Special", 11)) listbox.Items.A

[IronPython] How to find import in ipy

2010-03-11 Thread Ken MacDonald
Hi, I have an app with a popup containing a listbox. I want to dynamically add a few items to the listbox and found code in a number of places which does something like: listbox.Items.Add(ListItem("Special", 11)) listbox.Items.Add(ListItem("Regular", 19)) However, I can't