From gauthier.sg at wanadoo.fr Tue Jul 1 08:08:40 2008 From: gauthier.sg at wanadoo.fr (Serge Gauthier) Date: Tue, 1 Jul 2008 08:08:40 +0200 Subject: [Python.NET] CLR compile Message-ID: <003301c8db40$e8f72500$0a01a8c0@bureauserge> Hi, I had to recompile clr under Windows to be able to use it with Boa Constructor and Python 2.5. It works fine. Now, I would like to do the same under Linux Mandriva. I have MonoDevelop and KDevelop installed on. I recompiled Python Python.Runtime.DLL with success. But when I try to compile the monoclr, I have some trouble with include files I don't find anywhere. #include #include #include #include #include Could you give the way to find them on the web ? Thanks a lot for your help Serge GAUTHIER -- J'utilise la version gratu?te de SPAMfighter pour utilisateurs priv?s. Ce programme a supprim?2854 d'e-mails spam ? ce jour. Les utilisateurs qui paient n'ont pas ce message dans leurse-mails. Obtenez la version gratuite de SPAMfighter ici: http://www.spamfighter.com/lfr -------------- next part -------------- An HTML attachment was scrubbed... URL: From gauthier.sg at wanadoo.fr Tue Jul 1 12:34:19 2008 From: gauthier.sg at wanadoo.fr (Gauthier Serge) Date: Tue, 1 Jul 2008 12:34:19 +0200 Subject: [Python.NET] Compiling CLR on Linux Message-ID: <200807011234.20341.gauthier.sg@wanadoo.fr> Hi, I posted a question this morning about compiling CLR under linux. I found the way to do it with the make, it is ok now but I have only a problem to generat clr.so. It seems setup.py is missing and I am not able to write it. Could you help me to solve that. Thanks Serge Gauthier From thor at tordivel.no Thu Jul 17 17:58:09 2008 From: thor at tordivel.no (Thor Vollset) Date: Thu, 17 Jul 2008 17:58:09 +0200 Subject: [Python.NET] Move PythonDotNet to version 2.5 In-Reply-To: References: Message-ID: <532E54E1C276430481CFB3CF25207B93@ThorPC> We are a company that use python as script engine in our product Scorpion Vision Software. This autumn we are releasing our version 7.0 and need support to move our PythonDotNet platform from .Net 1.1 and Python 2.4. Is there anybody out there that could do a paid support job like this for us making a new release of PythonDotNet for .Net 2.0 and 3.0 in addition to support us to verify that the official PythonDotNet release is working with our product. We manage to integrate a late .Net 2.0 beta with Scorpion but the current release is not working properly. This is not a big job but important for us. Looking forward for a reply Thor Vollset ------------------------------------------------------------------------------------------------- TORDIVEL AS Storgata 20 0184 Oslo Norway Tel: +47 23 15 87 00 Fax: +47 23 15 87 01 E-mail: thor at tordivel.no Web: http://www.scorpionvision.com ------------------------------------------------------------------------------------------------- Scorpion Vision Software - Eliminates your weakest link ------------------------------------------------------------------------------------------------- From fulopd at pragma.hu Tue Jul 29 20:20:23 2008 From: fulopd at pragma.hu (=?iso-8859-2?B?Rvxs9nAgROF2aWQ=?=) Date: Tue, 29 Jul 2008 20:20:23 +0200 Subject: [Python.NET] difference between commandline and dll Message-ID: <000001c8f1a7$c47280d0$4d578270$@hu> Hello I am new in python, so I don't know, what has to be worked, and what is under development. But I have a problem: If use python for .net 2.0 alpha 2 and matplotlib If I run python2.4-UCS2\python.exe and I type the following code, then it is working. (this is not the problem ) import pylab as p def onclick(event): print 'clicked' fig=p.figure() ax = fig.add_subplot(111) ax.plot(t1, s1, linewidth=1.0) fig.canvas.mpl_connect('button_press_event',cl) p.show() But if I want to run the following script by ironpython 2B3 with the embedding module it did not work. from embedding import Import pyl=Import('pylab') fig = pyl.plt.figure() def onclick(event): print 'clicked' cid = fig.canvas.mpl_connect('button_press_event', onclick) # it throws an exception pyl.show() I used python2.4-UCS2 dll and a necessary embedding.py. The problem is the onclick object. Why does it work only in the first case? The main reason for i am interested in is that I want to host ironpython in c# and I want use matplotlib in ironpython. Hi Fulop David -------------- next part -------------- An HTML attachment was scrubbed... URL: From fuzzyman at voidspace.org.uk Tue Jul 29 22:07:50 2008 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Tue, 29 Jul 2008 21:07:50 +0100 Subject: [Python.NET] IronPython Tutorial at PyCon UK Message-ID: <488F7896.1060304@voidspace.org.uk> Hello all, September 12-14th at the Birmingham Conservatoire is the 2nd UK Python Conference, organised by the UK Python community. This year the conference starts with a tutorial day, and Christian Muirhead [#]_, Menno Smits and I will be running a half day IronPython tutorial. The tutorial day is only ?30, so if you're interested in learning about IronPython it is an ideal opportunity. Tutorials: http://www.pyconuk.org/timetable.html Currently accepted talks: http://www.pyconuk.org/talk_abstracts.html Booking: http://www.pyconuk.org/booking.html Details on a summary of the accepted talks and tutorials on my blog. http://www.voidspace.org.uk/python/weblog/arch_d7_2008_07_26.shtml#e996 Thanks Michael Foord .. [#] Christian and I are the authors of the nearly published IronPython in Action with Manning Publications. -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/ http://www.trypython.org/ http://www.ironpython.info/ From hnzhang at gmail.com Wed Jul 23 22:57:36 2008 From: hnzhang at gmail.com (H.N.(HARRY) ZHANG) Date: Wed, 23 Jul 2008 13:57:36 -0700 Subject: [Python.NET] implement System.Windows.Forms.IWin32Window Message-ID: <958f31170807231357q489402bfy509e2ef058a5370d@mail.gmail.com> I'm trying to implement the interface of IWin32Window, so that when the UI from PythonDotNet is created, I can set the owner. Here is the code, class WindowWrapper(System.Windows.Forms.IWin32Window): def __init__(self, handle): self._hwnd = handle def Handle(): doc = "property foo's doc string" def fget(self): return self._hwnd return locals() Handle = property(**Handle()) However, when an instance of WindowWrapper gets created, I got the following error---# TypeError: object does not implement IWin32Window # Here is the code to create an instance of WindowWrapper procs = System.Diagnostics.Process.GetProcessesByName("maya"); intPtr = procs[0].MainWindowHandle self.winWrapper = WindowWrapper(intPtr) It seems I am doing something wrong in class WindowWrapper... -------------- next part -------------- An HTML attachment was scrubbed... URL: From fulopd at 5ncomp.hu Thu Jul 24 13:09:01 2008 From: fulopd at 5ncomp.hu (Fulop David) Date: Thu, 24 Jul 2008 13:09:01 +0200 Subject: [Python.NET] function assignment Message-ID: <20080724105252.M91781@5ncomp.hu> Hello I am new in python, so I don't know, what has to be worked, and what is under development. But I have a problem: If use python for .net 2.0 alpha 2 and matplotlib If I run python2.4-UCS2\python.exe and I type the following code, it is working. (this is not the problem :) ) import pylab as p def onclick(event): print 'clicked' fig=p.figure() ax = fig.add_subplot(111) ax.plot(t1, s1, linewidth=1.0) fig.canvas.mpl_connect('button_press_event',cl) p.show() But if I want to run the following script with ironpython 2B3 it did not work. from embedding import Import pyl=Import('pylab') fig = pyl.plt.figure() def onclick(event): print 'clicked' cid = fig.canvas.mpl_connect('button_press_event', onclick) pyl.show() I used python2.4-UCS2 dll and a necessary embedding.py. The problem with the onclick object. Why does it work only in the first case? The main reason for i am interested in is that I want to host ironpython in c# and I want use matplotlib in ironpython. The bests David Fulop From hnzhang at gmail.com Thu Jul 31 18:13:50 2008 From: hnzhang at gmail.com (H.N.(HARRY) ZHANG) Date: Thu, 31 Jul 2008 09:13:50 -0700 Subject: [Python.NET] implement the interface of IWin32Window Message-ID: <958f31170807310913l3388692cnc51219845f38cda2@mail.gmail.com> by searching pythondotnet mailing-list archive, I just found the following message, http://www.mail-archive.com/pythondotnet at python.org/msg00094.html I think what I mentioned in the email is wrong, and the only solution is implement the interface in a .NET assembly and expose it to PythonDotNet. PythonDotNet just works as a BRIDGE, which gives access to .Net platform. Thanks, On Thu, Jul 31, 2008 at 3:00 AM, wrote: > Send PythonDotNet mailing list submissions to > pythondotnet at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/pythondotnet > or, via email, send a message with subject or body 'help' to > pythondotnet-request at python.org > > You can reach the person managing the list at > pythondotnet-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of PythonDotNet digest..." > > > Today's Topics: > > 1. implement System.Windows.Forms.IWin32Window (H.N.(HARRY) ZHANG) > 2. function assignment (Fulop David) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 23 Jul 2008 13:57:36 -0700 > From: "H.N.(HARRY) ZHANG" > Subject: [Python.NET] implement System.Windows.Forms.IWin32Window > To: pythondotnet at python.org > Message-ID: > <958f31170807231357q489402bfy509e2ef058a5370d at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > I'm trying to implement the interface of IWin32Window, so that when the UI > from PythonDotNet is created, I can set the owner. > > Here is the code, > > class WindowWrapper(System.Windows.Forms.IWin32Window): > def __init__(self, handle): > self._hwnd = handle > > def Handle(): > doc = "property foo's doc string" > def fget(self): > return self._hwnd > return locals() > Handle = property(**Handle()) > > However, when an instance of WindowWrapper gets created, I got the > following > error---# TypeError: object does not implement IWin32Window # > > Here is the code to create an instance of WindowWrapper > procs = System.Diagnostics.Process.GetProcessesByName("maya"); > intPtr = procs[0].MainWindowHandle > self.winWrapper = WindowWrapper(intPtr) > > It seems I am doing something wrong in class WindowWrapper... > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/pythondotnet/attachments/20080723/552171ef/attachment-0001.htm > > > > ------------------------------ > > Message: 2 > Date: Thu, 24 Jul 2008 13:09:01 +0200 > From: "Fulop David" > Subject: [Python.NET] function assignment > To: pythondotnet at python.org > Message-ID: <20080724105252.M91781 at 5ncomp.hu> > Content-Type: text/plain; charset=iso-8859-2 > > Hello > > I am new in python, so I don't know, what has to be worked, and what is > under > development. > > But I have a problem: > If use python for .net 2.0 alpha 2 and matplotlib > If I run python2.4-UCS2\python.exe and I type the following code, it is > working. (this is not the problem :) ) > > import pylab as p > def onclick(event): > print 'clicked' > fig=p.figure() > ax = fig.add_subplot(111) > ax.plot(t1, s1, linewidth=1.0) > > fig.canvas.mpl_connect('button_press_event',cl) > p.show() > > But if I want to run the following script with ironpython 2B3 it did not > work. > > from embedding import Import > pyl=Import('pylab') > fig = pyl.plt.figure() > > def onclick(event): > print 'clicked' > > cid = fig.canvas.mpl_connect('button_press_event', onclick) > pyl.show() > > I used python2.4-UCS2 dll and a necessary embedding.py. > > The problem with the onclick object. > Why does it work only in the first case? > > The main reason for i am interested in is that I want to host ironpython in > c# and I want use matplotlib in ironpython. > > The bests > David Fulop > > > > ------------------------------ > > _______________________________________________ > PythonDotNet mailing list > PythonDotNet at python.org > http://mail.python.org/mailman/listinfo/pythondotnet > > > End of PythonDotNet Digest, Vol 56, Issue 5 > ******************************************* > -- -------------------- H.N.(HARRY) ZHANG hnzhang at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: