.net - import wpf to IronPython app -


i'd making ironpython wpf app' vs says:

importerror: no module named 'wpf'

i tried this link doesn't work. not sure doing this:

import clr clr.addreference('ironpython.wpf') import wpf 

when write says

importerror: no module named 'clr'

first might not want have import , else on same line. put imports before whatever calls function making!

import clr import wpf  clr.addreference('ironpython.wpf') 

and believe file should in same directory .addreference() locate it. far know, latest ironpython 2.7 should come prepackaged wpf, again version might differ. recommend update latest, or download modules missing , drop them in ironpython repository @ appropriate location!

hope helps!


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -