Hi Bruce, I have not done any WPF myself, but there are a lot of resources on the web:
- http://www.ironpython.info/index.php/WPF_Example - google "ironpython wpf" I can also recommend "IronPython in Action" book, it has a chapter on WPF. As for "label1.contents", shouldn't it be "label1.Content" ? Igor On Sun, Oct 16, 2011 at 10:33 PM, Bruce Anderson <bruce...@rogers.com>wrote: > I've done some WPF in C# using VisualStudio 2010 and I've done some Python > in IDLE, but I've never done IronPython using WPF in VS2010. > > Are there any references or web pages to help people get to First base? > (I'm looking specifically for IronPython WPF using VS2010 - I've found so > many generic pages that my eyes are tired - but absolutely nada about what I > need to get started.) I have Foorde's book - but it pre-dates the > integration of WPF, VS and IronPython, so it doesn't seem to help. > > For example, I fired up VS2010, built an IronPython WPF application and > added a button and a label. I have the XAML code and the PY code. > > But how do I reference the controls from my Python code-behind? I've tried > the way I would do it from C# (e.g. label1.contents = "Hello World") - but > that just gives me an "Unbound Name Exception" unhandled error. I even tried > setting properties of "self" in the button_click handler - but that didn't > work either. > > This has got to be simple - can someone point me in the right direction? > > Bruce Anderson > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users@python.org > http://mail.python.org/mailman/listinfo/ironpython-users > >
_______________________________________________ Ironpython-users mailing list Ironpython-users@python.org http://mail.python.org/mailman/listinfo/ironpython-users