[Ironpython-users] Run a WPF application written in IronPython on the client computer without the install IronPython

2012-03-16 Thread sepatan
I have a need to run a WPF application written in IronPython on the client computer without the install IronPython. I try to create a C # thin client (. Exe), using IronPython.dll. If I can not load the XAML - everything is fine. But when loading XAML error occurs. Does anyone have any informatio

[Ironpython-users] Run a WPF application written in IronPython on the client computer without the install IronPython

2012-03-19 Thread sepatan
I have a need to run a WPF application written in IronPython on the client without installing IronPython. Technology to try to debug a standard example of WPF .\IronPython-2.7.2.1\Tutorial. Baseline data: 1) The computer is not installed IronPython. From IronPython-2.7.2.1.zip (download program)

Re: [Ironpython-users] Run a WPF application written in IronPython on the client computer without the install IronPython

2012-03-19 Thread sepatan
Thank you, Matt Ward :). It worked :)). You're a real expert. Just one more thing, a window appears and then disappears. I guess, because the console is closed. Maybe after the text of the program in primer.py something else should be? from avalon import * import calculator w = Window() w.Title

Re: [Ironpython-users] Run a WPF application written in IronPython on the client computer without the install IronPython

2012-03-19 Thread sepatan
Hello). With the advice Matt Ward, thanks to him, the problem was solved as follows: 1) had to change avalon.py as follows: commented out 2 lines . t = Thread(ThreadStart(start)) t.IsBackground = True t.ApartmentState = ApartmentState.STA #t.Start() #are.WaitOne() .. 2) cha

[Ironpython-users] How do I get access to the objects of this class which is loaded XAML

2012-05-17 Thread sepatan
How do I get access to the objects of this class which is loaded XAML. Given that the objects are presented to the CLR types? What namespace should be specified? The text below gives an error. 1) module proba.py: import WPF class MyWindow(Window): # p - CLR t

[Ironpython-users] [Fwd: RE: How do I get access to the objects of this class which is loaded XAML]

2012-05-17 Thread sepatan
Hello, That is, if the load XAML, as specified below, the Label (Lab1) can be binding on the CLR type (p.name) is defined in proba.py (do not forget that the code is the XAML load in proba.py)? --- Original Message --- Тема: RE: [Ironpython-users] H

Re: [Ironpython-users] [Fwd: RE: How do I get access to the objects of this class which is loaded XAML]

2012-05-17 Thread sepatan
Hello, Pascal. Thank you for your help. Working. Used wpf.LoadComponent. Here is the complete code (case study). Can anyone come in handy. Still, I would like to know whether it is possible to determine the XAML namespace environment in which IronPython loaded XAML (for example because: xmlns: n

[Ironpython-users] PyCharm link to Python documentation

2012-06-19 Thread sepatan
I can not find where to specify in PyCharm link to Python documentation. Pressure Ctrl Q - the documentation is read from the HDD. Longer, up arrow, goes to http://docs.python.org. Similarly, Shift F1. I want to load these documents from the HDD. Like java-doc from IntelliJIdea. ___

Re: [Ironpython-users] WP7 & Silverlight Support in IronPython

2012-06-29 Thread sepatan
Silverlight is very necessary. > Throwing some thoughts out there on future platform support: > > Given that Windows Phone 7 is basically dead in the water at this > point, it doesn't seem worth it to support it. I'm going to remove the > existing WP7 binaries, which don't work anyway, from 2.7.3.

[Ironpython-users] Do not understand the work __ getattribute__ in the browser (Silverlight)

2012-08-13 Thread sepatan
Hi). In the case study (IronPython in the browser) using Silverlight technology and __ getattr__   __getattribute__ create an ambiguous situation. In a letter enclosed file proba_js.rar. It's simple, there is nothing superfluous, only connect dlr.xap, IronPython.slvx, Microsoft.Scripting.slvx from

[Ironpython-users] Do not understand the work __ getattribute__ in the browser (Silverlight)

2012-08-14 Thread sepatan
Hi). In the case study (IronPython in the browser) using Silverlight technology and __ getattr__ __getattribute__ create an ambiguous situation. In a letter enclosed file proba_js.rar. It's simple, there is nothing superfluous, only connect dlr.xap, IronPython.slvx, Microsoft.Scripting.slvx from

[Ironpython-users] How to get the full path (in dotted notation) to an attribute?

2012-09-04 Thread sepatan
Hello. How to get the full path (in dotted notation) to an attribute: class meta (type): def __ getattr__ (cls, t): print cls.__name__, t class a (object): class b (object): class c (object): __metaclass__ = meta a.b.c a.b.c.ff The result: c ff And how to ge

Re: [Ironpython-users] How to get the full path (in dotted notation) to an attribute?

2012-09-05 Thread sepatan
So what's the conclusion: __main__ c ff A must: a.b.c ff > > print cls.__module__, cls.__name__, t > > - Jeff > > On Tue, Sep 4, 2012 at 10:21 PM, wrote: >> Hello. >> How to get the full path (in dotted notation) to an attribute: >> >> class meta (type): >> def __ getattr__ (cls, t): >>

[Ironpython-users] How to use __ getattr__ to the current module?

2012-09-17 Thread sepatan
Hello. For example in the text of the module meets the command: ttt(4, x = 7) where and how to define __ getattr__ to handle it? Thank you. ___ Ironpython-users mailing list [email protected] http://mail.python.org/mailman/listinfo/ironpython-u

Re: [Ironpython-users] How to use __ getattr__ to the current module?

2012-09-17 Thread sepatan
Hello, Vernon Cole. Or you probably do not understand the question, or I did not properly posed the question. I know I can define a function (ttt). And if I'm interested in __ getattr__, so in this case it can not be determined, or its name and parameters are defined at run time. Thank you. > Dear

Re: [Ironpython-users] How to use __ getattr__ to the current module?

2012-09-17 Thread sepatan
Hello, Jeff Hardy ). 1) It is a good reference. But the methods must be defined in advance (class A). If I write ttt ('i') without defining it in the class A, I get an error. Use __getattr__ in class A does not work. class A(object): def salutation(self, accusative): # code def fa

Re: [Ironpython-users] How to use __ getattr__ to the current module?

2012-09-18 Thread sepatan
Hello, Jeff Hardy ). The fact that the environment in which the plan is written mixed code. Operators Python runtime interpreter Python, operators are redirected to a different language version to another interpreter. It is necessary that when code appears key word in another language, Python captu

Re: [Ironpython-users] How to use __ getattr__ to the current module?

2012-09-18 Thread sepatan
Hello, Dino Viehland ). Thank you for your participation. In your example foo is required. It works: class met(type): def __getattr__(cls, t): def __call__(cls, *args, **kw): class cl(object): __metaclass__=met cl(6,y=7).tt(3,yy=4) (and so on) but cl requir

Re: [Ironpython-users] How to use __ getattr__ to the current module?

2012-09-18 Thread sepatan
Hello, Niels Poppe. Thank you. This is a good option. Once again, thank you. > # didn’t test any of this in IronPython > # this may work and/or help you further > # read on about eval, exec and execfile builtins at > # > http://docs.python.org/library/functions.html?highlight=execfile#execfi

[Ironpython-users] How to use sys._getframe () in IronPython in Silverlight

2012-10-01 Thread sepatan
How to specify the startup IronPython in Silverlight. Should set -X:Frames in the true. What you need to edit? 1) languages.config, AppManifest.xaml in dlr.xap 2) or it may be in a tag initParams HTML: ? I want to use sys._getframe (). Can anyone help?

Re: [Ironpython-users] Using Silverlight 5 in IronPython

2013-03-21 Thread sepatan
> Hello I am wondering if it is possible to import the json module into a > Silverlight 5 application. Would I need to compile it into a xap? > > If so how can I do this I am having no luck running a XAP file in Chiron > > Can I do this the other way > > > import json > > ... Doesn't work either n

Re: [Ironpython-users] Using Silverlight 5 in IronPython

2013-03-21 Thread sepatan
> Hello I am wondering if it is possible to import the json module into a > Silverlight 5 application. Would I need to compile it into a xap? > > If so how can I do this I am having no luck running a XAP file in Chiron > > Can I do this the other way > >

[Ironpython-users] question about international encodings

2013-04-12 Thread sepatan
Not be obtained from IronPython (DLR Silverlight) transfer Russian text HTTP (XMLHttpRequest POST). example: # -*- coding: utf-8 -*- import cPickle import _codecs as codecs import sys print sys.getdefaultencoding() t_ish='Привет Салют!' picl=cPickle.dumps(t_ish) un_picl=cPickle.loads(picl) print