tag:blogger.com,1999:blog-1384551653506604356.comments2024-01-27T11:51:19.717+01:00LC BlogLukáš Čenovskýhttp://www.blogger.com/profile/14627955690950344876noreply@blogger.comBlogger39125tag:blogger.com,1999:blog-1384551653506604356.post-91062861421803761182024-01-27T11:51:19.717+01:002024-01-27T11:51:19.717+01:00Hi thanks for sharing thhisHi thanks for sharing thhisNicholas Dunnhttps://nicholasdunns.wordpress.com/noreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-12174536450537732482023-08-13T08:53:40.601+02:002023-08-13T08:53:40.601+02:00This is a great post thanks for writing itThis is a great post thanks for writing itI Hayhttps://i-hay.blogspot.com/noreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-53882882812615107112022-08-27T00:24:08.951+02:002022-08-27T00:24:08.951+02:00Lovely blog you have hereLovely blog you have hereTulsa Bathroom Renovationshttps://www.bathroom-contractors.com/us/oklahoma-bathroom-contractors/tulsa-bathroom-renovations.shtmlnoreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-16524565432081420882021-11-21T21:57:29.483+01:002021-11-21T21:57:29.483+01:00Hello mate nice postHello mate nice postElisa Caldwellhttps://www.elisacaldwell.com/noreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-14446496627497149922017-10-10T16:33:39.661+02:002017-10-10T16:33:39.661+02:00Awesome article! I want people to know just how go...Awesome article! I want people to know just how good this information is in your article. It’s interesting, compelling content. Your views are much like my own concerning this subject. <br /><a href="https://4encryption.com/" rel="nofollow">encryption</a><br />moeezhttps://www.blogger.com/profile/01350446801714366236noreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-68821471923199562682015-12-30T12:05:15.445+01:002015-12-30T12:05:15.445+01:00I'm sorry but no idea - I would guess it is sp...I'm sorry but no idea - I would guess it is specific to ACAD 2016.Lukáš Čenovskýhttps://www.blogger.com/profile/14627955690950344876noreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-52913025112395858942015-12-30T02:19:41.940+01:002015-12-30T02:19:41.940+01:00I know it's a while since you posted this tuto...I know it's a while since you posted this tutorial, but I've encountered problems with metaclasses that I can't seem to get around it.<br /><br />When i load the python-file (Note: Inside ACAD 2016), i get an Metaclass confict between ClrInterface and ClrClass. However, with your old example, with the interface written in C#, i don't encounter this problem.<br /><br />Have you any advice for me?<br /><br />Greetings from SwitzerlandAnonymoushttps://www.blogger.com/profile/02799982229055522886noreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-64066646556461977562015-07-16T23:19:31.899+02:002015-07-16T23:19:31.899+02:00This crashes in pyevent, even after I fix the XAML...This crashes in pyevent, even after I fix the XAML like Kenneth Gustine suggests.<br />Using IronPython 2.7.10.<br /><br />After I type into the text box to change the size from '10' to '3', the script crashes when I tap on the button. It is reproducible.<br /><br /><br />Size changed to '10'<br />Size changed to '4'<br />Size changed to '10'<br />Error: Invoke() takes exactly 2 arguments (1 given)<br /><br />Traceback (most recent call last):<br /> File ".\template_notify.py", line 101, in <br /> app.Run(tw.root)<br /> File ".\template_notify.py", line 93, in OnClick<br /> self._vm.size = '10'<br /> File ".\template_notify.py", line 44, in newsetter<br /> slf.OnPropertyChanged(setter.__name__)<br /> File ".\template_notify.py", line 65, in OnPropertyChanged<br /> self._propertyChangedCaller(self, PropertyChangedEventArgs(propertyName))<br /> File "\\mosaiqdbfs\MOSAIQ_APP\RayStationScripts-temp\expandRoi\pyevent.py", line 66, in __call__<br /> ev(args)marbleManhttps://www.blogger.com/profile/09680819154244956214noreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-90530422099418575032014-09-22T10:31:28.584+02:002014-09-22T10:31:28.584+02:00"bp AssemblyNative::Load
0:000> bl
0 e 55..."bp AssemblyNative::Load<br />0:000> bl<br /> 0 e 554e365c 0001 (0001) 0:**** mscorwks!_CorExeMain<br /> 1 e 554abeb0 0001 (0001) 0:**** mscorwks!AssemblyNative::Load<br />0:000> g<br />ModLoad: 75d90000 76f51000 C:\WINDOWS\SysWOW64\shell32.dll<br />ModLoad: 71970000 719e6000 C:\WINDOWS\SysWOW64\SHCORE.dll<br />ModLoad: 6dee0000 6deee000 C:\WINDOWS\SysWOW64\profapi.dll<br />ModLoad: 54930000 5542a000 C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\mscorlib\5bd3374f05d46ba0563f44d032209f08\mscorlib.ni.dll<br />ModLoad: 754f0000 755fc000 C:\WINDOWS\SysWOW64\ole32.dll<br />ModLoad: 74d30000 74d39000 C:\WINDOWS\SysWOW64\kernel.appcore.dll<br />ModLoad: 71f70000 7204b000 C:\WINDOWS\SysWOW64\uxtheme.dll<br />ModLoad: 67ad0000 67b2b000 C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorjit.dll<br />ModLoad: 54180000 54923000 C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System\a500ec9c4638c6ba200d7b55324709f2\System.ni.dll<br />(1b08.2e0): Unknown exception - code 02345678 (first chance)<br />First chance exceptions are reported before any exception handling.<br />This exception may be expected and handled.<br />eax=0049da48 ebx=0049dce4 ecx=00000001 edx=00000000 esi=00820010 edi=0049dd6c<br />eip=74fb1d4d esp=0049da48 ebp=0049daa4 iopl=0 nv up ei pl nz ac pe nc<br />cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000216<br />KERNELBASE!RaiseException+0x48:<br />74fb1d4d 8b4c2454 mov ecx,dword ptr [esp+54h] ss:002b:0049da9c=036bc0bc"<br /><br />I am getting this error.<br />Please tell me the solutionAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-45449046674204492212014-04-05T13:15:46.972+02:002014-04-05T13:15:46.972+02:00My Ironpython version 2.7.4 and int type is workin...My Ironpython version 2.7.4 and int type is working Two-Way Binding Mode.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-12017106896871225842012-08-19T05:39:46.484+02:002012-08-19T05:39:46.484+02:00Thank you!!!
I'm using IronPython 2.7.3 and h...Thank you!!!<br /><br />I'm using IronPython 2.7.3 and had to correct the Xaml to have the correct case. ex: TextBox instead of textbox.<br /><br />Corrected Xaml here http://pastebin.com/BxrM9G6Y<br /><br />It's amazing how few GOOD resources there are for WPF with IronPython. This MVVM stuff is getting exciting!<br />Anonymoushttps://www.blogger.com/profile/10888342753369388732noreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-57358521629854174542012-04-27T23:02:39.938+02:002012-04-27T23:02:39.938+02:00This was Python 2.x but it should not be a big pro...This was Python 2.x but it should not be a big problem to port it to Python 3.x - just try it and you will see.Lukáš Čenovskýhttps://www.blogger.com/profile/14627955690950344876noreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-90477349217693155512012-04-27T18:46:26.057+02:002012-04-27T18:46:26.057+02:00What version of Python was this done with? I notic...What version of Python was this done with? I noticed the 'prints' don't play nice with 3.2.2 and I'm worried other parts (that are less easy to fix) won't work... <br /><br />Any help appreciated!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-15102242020467797652012-02-28T03:57:50.166+01:002012-02-28T03:57:50.166+01:00I am working in IronPython to create a simple wind...I am working in IronPython to create a simple windows "macro". I am attempting to import the win32api that you reference for its ability to simulate keypresses, but get an error:<br /><br />"System.IO.IOException: Could not add reference to assembly Win32API"<br />The line with clr.AddReference is where the script is breaking.<br /><br /><i><br />import clr<br />clr.AddReference('Win32API')<br />from Win32API import Win32API<br /></i><br /><br />Any ideas?jagallouthttps://www.blogger.com/profile/07775004533301319252noreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-64105822850399235542012-02-14T10:36:53.140+01:002012-02-14T10:36:53.140+01:00thanks both for the super article and the enhancem...thanks both for the super article and the enhancement as well<br /><br />I just want to clarify for the very beginner how to write the new data class: <br />class ViewModel(NotifyPropertyChangedBase):<br /> def __init__(self):<br /> super(ViewModel, self).__init__()<br /> self.declare_notifiable("size") <br /> self.size="10"Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-86551494925843619162012-01-15T17:00:04.304+01:002012-01-15T17:00:04.304+01:00@jaman: nice enhancement.@jaman: nice enhancement.Lukáš Čenovskýhttps://www.blogger.com/profile/14627955690950344876noreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-17367276086486169402012-01-12T02:40:18.947+01:002012-01-12T02:40:18.947+01:00This post is a bit old, but I thought I'd feed...This post is a bit old, but I thought I'd feed back an enchancement I did based on your code:<br /><br />In the class NotifyPropertyChangeBase I added the following:<br /><br /> def declare_notifiable(self, *symbols):<br /> for symbol in symbols:<br /> self.define_notifiable_property(symbol)<br /><br /> def define_notifiable_property(self, symbol):<br /> dnp = """<br />import sys<br />sys.path.append(__file__)<br />@notify_property<br />def {0}(self):<br /> return self._{0} <br /><br />@{0}.setter<br />def {0}(self, value):<br /> self._{0} = value<br />""".format(symbol)<br /> d = globals()<br /> exec dnp.strip() in d<br /> setattr(self.__class__, symbol, d[symbol])<br /><br />With that set, I can simply call:<br />self.define_notifiable_property("size")<br /><br />This will do the @notify_property and @eize.setter items. Not a huge win when you only have one property, but a huge win when you can say self.define_notifiable_property("size", "weight", "age", "firstName", "lastName", "address").<br />With that you'd get all of those properties wired up to work with WPF.jamanhttps://www.blogger.com/profile/03097151680468431139noreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-25458643168081263912011-08-21T09:33:31.544+02:002011-08-21T09:33:31.544+02:00It is possible.
The only thing which is not possi...It is possible.<br /><br />The only thing which is not possible is to host IronPython WCF service in IIS.Lukáš Čenovskýhttps://www.blogger.com/profile/14627955690950344876noreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-58496915027184877052011-08-21T06:52:13.455+02:002011-08-21T06:52:13.455+02:00is it then possible to implement the wcf service i...is it then possible to implement the wcf service in ironpython and the client in csharp and vice versa ?Naveenhttps://www.blogger.com/profile/05560886981088156833noreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-65261379853743892612011-06-22T08:43:11.011+02:002011-06-22T08:43:11.011+02:00@Anonymous You need to install 64-bit pywin32 modu...@Anonymous You need to install 64-bit pywin32 module and you must have installed VirtualBox SDK. My script can be in any directory then.Lukáš Čenovskýhttps://www.blogger.com/profile/14627955690950344876noreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-57920287942404869102011-06-22T08:03:39.157+02:002011-06-22T08:03:39.157+02:00This looks like it might be a great utility, but c...This looks like it might be a great utility, but could you offer some more installation instructions? I'm a win64 user and not having much success. I'm guessing that the VBoxUtil.py and configobj.py files need to reside in VirtualBox\sdk\install directory (best guess based on previous errors indicating they can't find vboxapi which I see in this dir). I have Python 64 bit 2.7.2 installed and I still get errors I don't understand:<br /><br />C:\Program Files\Oracle\VirtualBox\sdk\install>VBoxUtil.py<br />Traceback (most recent call last):<br /> File "C:\Program Files\Oracle\VirtualBox\sdk\install\VBoxUtil.py", line 342, i<br />n <br /> VBoxUtil()<br /> File "C:\Program Files\Oracle\VirtualBox\sdk\install\VBoxUtil.py", line 121, i<br />n __init__<br /> self.vbm = VirtualBoxManager(None, None)<br /> File "C:\Program Files\Oracle\VirtualBox\sdk\install\vboxapi\__init__.py", lin<br />e 513, in __init__<br /> exec "self.platform = Platform"+style+"(platparams)"<br /> File "", line 1, in <br /> File "C:\Program Files\Oracle\VirtualBox\sdk\install\vboxapi\__init__.py", lin<br />e 200, in __init__<br /> from win32com import universal<br />ImportError: No module named win32comAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-13551362941868895392010-09-23T02:26:47.344+02:002010-09-23T02:26:47.344+02:00You've saved me heaps of time, fantastic!
A c...You've saved me heaps of time, fantastic!<br /><br />A couple of minor points:<br /><br />1) The ConfigService.exe.config shown on your web page has a case typo: the opening tag should match the closing tag's camel case:<br /><br /><br /><br />It's correct in the downloadable file.<br /><br />The ConfigService.exe was throwing an exception when I had the ConfigService.exe.config in its directory with that case difference. Curiously, the ConfigService.exe worked fine if I simply removed the faulty ConfigService.exe.config file--I suppose it reverts to relying upon default settings?<br /><br />The ConfigClient.exe will only work if the ConfigClient.exe.config file is present--i.e. it cannot rely upon defaults.<br /><br />2) I later realised that the reason why I couldn't get your code to run as a script rather than via the .exes was because there's a typo in your comment to "save the ConfigService.exe.config as ipy.exe.config to the folder with the IronPython interpreter ipy.exe."<br /><br />It should instead be the ConfigClient.exe.config file that's saved to that location.<br /><br />Cheers!Unknownhttps://www.blogger.com/profile/00519860672801504114noreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-45964726148260662892010-07-06T13:21:43.097+02:002010-07-06T13:21:43.097+02:00This was really helpful, thanks!This was really helpful, thanks!Mikenoreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-63482151990665752852010-04-23T14:56:17.848+02:002010-04-23T14:56:17.848+02:00You probably don't have the port filled.
I di...You probably don't have the <i>port</i> filled.<br /><br />I did a blind fix (just wrapped the problematic part with try-except block) so you can try it.Lukáš Čenovskýhttps://www.blogger.com/profile/14627955690950344876noreply@blogger.comtag:blogger.com,1999:blog-1384551653506604356.post-35461721202090425872010-04-23T10:31:05.071+02:002010-04-23T10:31:05.071+02:00There seems to be a problem with your script.
Pyt...There seems to be a problem with your script.<br /><br />Python 2.6.3<br />VirtualBox 3.1.2r56127<br /><br /><br />Exporting machine 'vap' (current state)...Traceback (most recent call last):<br /> File "C:\live\scripts\VBoxUtil.py", line 336, in <br /> VBoxUtil()<br /> File "C:\live\scripts\VBoxUtil.py", line 126, in __init__<br /> self.main_menu()<br /> File "C:\live\scripts\VBoxUtil.py", line 331, in main_menu<br /> self.export_machine_menu()<br /> File "C:\live\scripts\VBoxUtil.py", line 239, in export_machine_menu<br /> self.export_machine_snapshot_menu()<br /> File "C:\live\scripts\VBoxUtil.py", line 226, in export_machine_snapshot_menu<br /> self.export_machine()<br /> File "C:\live\scripts\VBoxUtil.py", line 183, in export_machine<br /> 'self.currentSnapshotMachine.%s' % attr)<br /> File "", line 1, in <br /> File "C:\pf\Python26\lib\site-packages\vboxapi\__init__.py", line 128, in Cust<br />omGetAttr<br /> return _COMForward['getattr'](self,attr)<br /> File "C:\pf\Python26\lib\site-packages\win32com\client\__init__.py", line 462,<br /> in __getattr__<br /> raise AttributeError("'%s' object has no attribute '%s'" % (repr(self), attr<br />))<br />AttributeError: '' object has no attribute 'port'Marinushttps://www.blogger.com/profile/13323174363583005241noreply@blogger.com