Sideband/sbapp/plyer/platforms/win/devicename.py

24 lines
390 B
Python
Raw Normal View History

2022-09-16 12:07:57 -04:00
'''
Module of Win API for plyer.devicename.
'''
import socket
2024-06-02 12:31:58 -04:00
from sbapp.plyer.facades import DeviceName
2022-09-16 12:07:57 -04:00
class WinDeviceName(DeviceName):
'''
Implementation of Linux DeviceName API.
'''
def _get_device_name(self):
hostname = socket.gethostname()
return hostname
def instance():
'''
Instance for facade proxy.
'''
return WinDeviceName()