mirror of
https://github.com/ralsina/xrandroll.git
synced 2024-11-24 20:12:21 +00:00
lint
This commit is contained in:
parent
82e08825aa
commit
58c385f383
@ -1,2 +1,3 @@
|
|||||||
from .main import main
|
from .main import main
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
@ -80,7 +80,7 @@ def is_replica_of(a, b):
|
|||||||
and a["pos_y"] == b["pos_y"]
|
and a["pos_y"] == b["pos_y"]
|
||||||
and a["res_x"] == b["res_x"]
|
and a["res_x"] == b["res_x"]
|
||||||
and a["res_y"] == b["res_y"]
|
and a["res_y"] == b["res_y"]
|
||||||
and b['enabled']
|
and b["enabled"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -20,13 +20,13 @@ class MonitorItem(QGraphicsRectItem, QObject):
|
|||||||
def update_visuals(self, data):
|
def update_visuals(self, data):
|
||||||
self.setRect(0, 0, data["res_x"], data["res_y"])
|
self.setRect(0, 0, data["res_x"], data["res_y"])
|
||||||
self.setPos(data["pos_x"], data["pos_y"])
|
self.setPos(data["pos_x"], data["pos_y"])
|
||||||
if data['orientation'] == 0:
|
if data["orientation"] == 0:
|
||||||
self.bottom_edge.setRect(0, data['res_y'] - 50, data["res_x"], 50)
|
self.bottom_edge.setRect(0, data["res_y"] - 50, data["res_x"], 50)
|
||||||
elif data['orientation'] == 1:
|
elif data["orientation"] == 1:
|
||||||
self.bottom_edge.setRect(data['res_x'] - 50, 0, 50, data["res_y"])
|
self.bottom_edge.setRect(data["res_x"] - 50, 0, 50, data["res_y"])
|
||||||
elif data['orientation'] == 2:
|
elif data["orientation"] == 2:
|
||||||
self.bottom_edge.setRect(0, 0, data["res_x"], 50)
|
self.bottom_edge.setRect(0, 0, data["res_x"], 50)
|
||||||
elif data['orientation'] == 3:
|
elif data["orientation"] == 3:
|
||||||
self.bottom_edge.setRect(0, 0, 50, data["res_y"])
|
self.bottom_edge.setRect(0, 0, 50, data["res_y"])
|
||||||
if data["replica_of"]:
|
if data["replica_of"]:
|
||||||
label_text = f"{self.name} [{','.join(data['replica_of'])}]"
|
label_text = f"{self.name} [{','.join(data['replica_of'])}]"
|
||||||
|
Loading…
Reference in New Issue
Block a user