[IronPython] TreeStore ...

J. Merrill jvm_cop at spamcop.net
Thu Oct 7 03:36:26 CEST 2004


At 05:57 PM 10/5/2004, Phillip Neumann wrote (in part)
>C# file:
>--------
>          TreeStore store = new TreeStore (typeof (string), typeof
>(string));
>
>IronPython try:
>------------------
>import System
>from Gtk import *
>
>
>class TreeViewSample:
>        def __init__(self):
>                Application.Init ();
>                win = Window("Demo");
>                win.SetDefaultSize (400,250)
>
>                store = TreeStore ( str, str)

Try using
   Type.GetType('System.String')
to get the equivalent of C#
   typeof(string)
(I did not try myself.)


J. Merrill / Analytical Software Corp




More information about the Ironpython-users mailing list