mirror of
https://github.com/gryf/pyrandr.git
synced 2025-12-18 21:20:17 +01:00
Code cleanup
This commit is contained in:
16
pyrandr.py
16
pyrandr.py
@@ -112,23 +112,9 @@ class Organizer(object):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
def output_list(self):
|
def output_list(self):
|
||||||
for name in sorted(self._outputs.keys()):
|
for name in sorted(self._outputs):
|
||||||
print(self._outputs[name])
|
print(self._outputs[name])
|
||||||
|
|
||||||
def set_single(self, out_name):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def set(self, outputs, options):
|
|
||||||
if len(outputs) == 1:
|
|
||||||
self.set_single(outputs[0])
|
|
||||||
return
|
|
||||||
|
|
||||||
for name, out in self._outputs.items():
|
|
||||||
if name not in outputs:
|
|
||||||
out.active = False
|
|
||||||
else:
|
|
||||||
out.active = True
|
|
||||||
|
|
||||||
def panic(self, primary):
|
def panic(self, primary):
|
||||||
"""Just turn on all outputs at once in "mirror" mode"""
|
"""Just turn on all outputs at once in "mirror" mode"""
|
||||||
logging.info('Panic mode')
|
logging.info('Panic mode')
|
||||||
|
|||||||
Reference in New Issue
Block a user