[IronPython] TypeError: expected Size, got Size
cenovsky at bakalari.cz
Mon Jul 19 17:57:00 CEST 2010
On 19.7.2010 17:11, Ian Hobson wrote:
> Hi all,
> Will some kind soul please point me to a decent explanation of
> Assemblies, NameSpaces
> CLR references and the from X import Y command from an IronPythin
> I'm utterly fed up of getting errors like this one.
> When I use
> from System.Drawing import Size
> I get the ultra-informative error message in my subject line.
> I am trying to translate the following line from c#
> worksOrder.Measure(new Size(printDlg.PrintableAreaWidth,
> worksOrder is a Grid, printDlg is a printDialog.
> I have...
> And I need to know how to find out where I can get the correct
> definition of Size.
Grid is UIElement and you need System.Windows.Size for UIElement.Measure
- not System.Drawing.Size. See
More information about the Ironpython-users