Debian Codegraph @

plyer/platforms/win/devicename.py

raw symbols SCIP
1 '''
2 Module of Win API for plyer.devicename.
3 '''
4
5 import socket
6 from plyer.facades import DeviceName
7
8
9 class WinDeviceName(DeviceName):
10 '''
11 Implementation of Linux DeviceName API.
12 '''
13
14 def _get_device_name(self):
15 hostname = socket.gethostname()
16 return hostname
17
18
19 def instance():
20 '''
21 Instance for facade proxy.
22 '''
23 return WinDeviceName()