On Mon, May 23, 2011 at 12:52 PM, Mark Hammond <skippy.hamm...@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
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to