[IronPython] IronPython/Gtk#/TreeView ??

Muhammad Abubakar abubakarm at gmail.com
Thu Apr 7 07:47:42 CEST 2005


Hi,
I'm not using the ipython right now, but I did see some win forms
example in the example directory which is the following. Doesnt this
help u?

<code>
#####################################################################################
#  
#  Copyright (c) Microsoft Corporation. All rights reserved.
# 
#  This source code is subject to terms and conditions of the Shared
Source License
#  for IronPython. A copy of the license can be found in the License.html file
#  at the root of this distribution. If you can not locate the Shared
Source License
#  for IronPython, please send an email to ironpy at microsoft.com.
#  By using this source code in any fashion, you are agreeing to be bound by
#  the terms of the Shared Source License for IronPython.
# 
#  You must not remove this notice, or any other, from this software.
# 
######################################################################################

import sys
sys.LoadAssemblyByName("System.Drawing")
sys.LoadAssemblyByName("System.Windows.Forms")

from System.Windows.Forms import *
from System.Drawing import *

f = Form(Text="Windows fun with IronPython", HelpButton=True,
         MinimizeBox=False, MaximizeBox=False)

f.FormBorderStyle = FormBorderStyle.FixedDialog
f.StartPosition = FormStartPosition.CenterScreen

b1 = Button(Text="Say Something", Location=Point(30,30), Size=Size(200,30))

def push(data, event):
    l = Label(Text="IronPython Lives!", ForeColor=Color.Red)
    l.Location = Point(30, 50+f.Controls.Count*25)
    f.Controls.Add(l)

b1.Click += push

f.Controls.Add(b1)
f.ShowDialog()

</code>
Ab. 

On Apr 7, 2005 8:07 AM, Swaroop C H <swaroopch at gmail.com> wrote:
> On Apr 7, 2005 2:17 AM, Hector Miuler Malpica Gallegos <miuler at gmail.com> wrote:
> >  Hi, how I can use TreeView in IronPython?
> >  C#
> >  TreeStore  StoreReportesDiario = new TreeStore (typeof (string), typeof
> > (string));
> >  Python??
> >  StoreReportesDiario = Gtk.TreeStore()
> 
> I don't have an answer to your question, but there is an example
> application in C# if anybody wants to help out Hector:
> http://www.gotmono.com/docs/gnome/bindings/gtk-sharp/treeview.html
> 
> --
> Swaroop C H
> Blog: http://www.swaroopch.info
> Book: http://www.byteofpython.info
> _______________________________________________
> users-ironpython.com mailing list
> users-ironpython.com at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>



More information about the Ironpython-users mailing list