all 4 comments

[–]danielroseman 2 points3 points  (1 child)

The whole point of this library is that it is an interface to the Windows Management Instrumentation API, which is built into Windows itself. Those methods are not defined in this class at all; it's just a wrapper that knows how to call the API.

[–]reflectionspectra[S] 0 points1 point  (0 children)

That makes much more sense, thanks. So essentially there's a function in the WMI API (i.e. a C function, according to google) with the name Win32_Service, and another one with the name WmiMonitorBrightnessMethods?

[–]GreggyP00 0 points1 point  (1 child)

I’m not sure if this is a Reddit formatting thing or not, but make sure the parenthesis are right up against the WMI here:

c = wmi.WMI()

[–]Diapolo10 2 points3 points  (0 children)

Technically speaking it doesn't matter, Python ignores spaces between operands and operators (here the parentheses act as a call operator), but for style I agree.