Python Forum

Full Version: using WinRt module in python script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to enable sim pin using WinRT API MobileBroadbandPin. I have imported the API in my script but it is giving an error while initializing.

from winrt.windows.networking.networkoperators import MobileBroadbandPin

mobileBroadbandPinObj = MobileBroadbandPin()
Error:
Error:
Traceback (most recent call last): File "C:/Python38/pinOperation.py", line 3, in <module> mobileBroadbandPinObj = MobileBroadbandPin() TypeError: MobileBroadbandPin is not activatable