[IronPython] IronPython/Gtk#/TreeView ??

Travis Watkins alleykat at gmail.com
Thu Apr 7 18:44:53 CEST 2005


I think he was talking about GTK#'s TreeView widget.

On Apr 7, 2005 8:29 AM, Scott Hatfield <scott.hatfield at usis.com> wrote:
>  
>  
> 
> # Here's a trivial example 
> 
>   
> 
> import sys 
> 
> sys.LoadAssemblyByName("System.Drawing") 
> 
> sys.LoadAssemblyByName("System.Windows.Forms") 
> 
>   
> 
> from System.Windows.Forms import * 
> 
> from System.Drawing import * 
> 
>   
> 
> f = Form(Text="Trivial TreeView Example") 
> 
> f.FormBorderStyle = FormBorderStyle.FixedDialog 
> 
> f.StartPosition = FormStartPosition.CenterScreen 
> 
>   
> 
> treeView = TreeView(Location=Point(30,30), Size=Size(200,200)) 
> 
>   
> 
> node = TreeNode("root") 
> 
> node.Nodes.Add(TreeNode("child1")) 
> 
> node.Nodes.Add(TreeNode("child2")) 
> 
> node.Nodes.Add(TreeNode("child3")) 
> 
>   
> 
> treeView.Nodes.Insert(0,node) 
> 
>   
> 
> f.Controls.Add(treeView) 
> 
> f.ShowDialog() 
> 
>   
>  
>  ________________________________
>  
> 
> From: users-ironpython.com-bounces at lists.ironpython.com
> [mailto:users-ironpython.com-bounces at lists.ironpython.com]
> On Behalf Of Hector Miuler Malpica Gallegos
>  Sent: Wednesday, April 06, 2005 4:47 PM
>  To: users-ironpython.com at lists.ironpython.com
>  Subject: [IronPython] IronPython/Gtk#/TreeView ?? 
> 
>   
> 
> Hi, how I can use TreeView in IronPython?
>  
>  C#
>  TreeStore  StoreReportesDiario = new TreeStore (typeof (string), typeof
> (string));
>  
>  Python??
>  StoreReportesDiario = Gtk.TreeStore() 
> _______________________________________________
> users-ironpython.com mailing list
> users-ironpython.com at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> 
> 
> 


-- 
--
Travis Watkins
http://www.realistanew.com



More information about the Ironpython-users mailing list