[python-win32] Create _reg_clsid?
Jun Koi
junkoi2004 at gmail.com
Mon May 23 07:32:55 CEST 2011
On Mon, May 23, 2011 at 12:52 PM, Mark Hammond <skippy.hammond at gmail.com> wrote:
> On 21/05/2011 2:58 AM, Jun Koi wrote:
>>
>> hi,
>>
>> i am trying to create my first context menu shell extension. i base my
>> code on the sample context_menu.py. i have a question: how can i
>> create my "_reg_clsid" for my extension?
>
> I think you just want:
>
>>>> import pythoncom
>>>> pythoncom.CreateGuid()
> IID('{0B1CC054-749C-4C35-8514-EA15CA86E87D}')
i found another solution, which is OS-independent:
import uuid
print uuid.uuid1()
thanks,
J
More information about the python-win32
mailing list