mirror of
https://github.com/ralsina/xrandroll.git
synced 2024-11-22 02:52:23 +00:00
refactor
This commit is contained in:
parent
562884609c
commit
2f6b497087
2
main.py
2
main.py
@ -69,7 +69,7 @@ class Window(QObject):
|
|||||||
for name, monitor in self.xrandr_info.items():
|
for name, monitor in self.xrandr_info.items():
|
||||||
self.ui.screenCombo.addItem(name)
|
self.ui.screenCombo.addItem(name)
|
||||||
mon_item = MonitorItem(0, 0, 0, 0, data=monitor, window=self, name=name,)
|
mon_item = MonitorItem(0, 0, 0, 0, data=monitor, window=self, name=name,)
|
||||||
mon_item.setPos(monitor["pos_x"], monitor["pos_y"])
|
# mon_item.setPos(monitor["pos_x"], monitor["pos_y"])
|
||||||
self.scene.addItem(mon_item)
|
self.scene.addItem(mon_item)
|
||||||
monitor["item"] = mon_item
|
monitor["item"] = mon_item
|
||||||
self.adjust_view()
|
self.adjust_view()
|
||||||
|
Loading…
Reference in New Issue
Block a user