mirror of
https://github.com/ralsina/xrandroll.git
synced 2024-11-24 20:12:21 +00:00
remove placeholder text, lint
This commit is contained in:
parent
fbe63db894
commit
cde1180525
@ -108,15 +108,14 @@ class Window(QObject):
|
|||||||
self.ui.enabled.stateChanged.connect(self.enabled_changed)
|
self.ui.enabled.stateChanged.connect(self.enabled_changed)
|
||||||
|
|
||||||
self.pos_label = QLabel(self.ui.sceneView)
|
self.pos_label = QLabel(self.ui.sceneView)
|
||||||
self.pos_label.setText("FOOOOO")
|
|
||||||
self.pos_label.move(5, 5)
|
self.pos_label.move(5, 5)
|
||||||
|
|
||||||
def enabled_changed(self):
|
def enabled_changed(self):
|
||||||
mon = self.ui.screenCombo.currentText()
|
mon = self.ui.screenCombo.currentText()
|
||||||
enabled = self.ui.enabled.isChecked()
|
enabled = self.ui.enabled.isChecked()
|
||||||
print(f'Setting {mon} enabled status to {enabled}')
|
print(f"Setting {mon} enabled status to {enabled}")
|
||||||
monitor = self.xrandr_info[mon]
|
monitor = self.xrandr_info[mon]
|
||||||
monitor['enabled'] = enabled
|
monitor["enabled"] = enabled
|
||||||
monitor["item"].update_visuals(monitor)
|
monitor["item"].update_visuals(monitor)
|
||||||
|
|
||||||
def primary_changed(self):
|
def primary_changed(self):
|
||||||
@ -366,8 +365,10 @@ class Window(QObject):
|
|||||||
self.ui.modes.clear()
|
self.ui.modes.clear()
|
||||||
for mode in self.xrandr_info[name]["modes"]:
|
for mode in self.xrandr_info[name]["modes"]:
|
||||||
self.ui.modes.addItem(mode)
|
self.ui.modes.addItem(mode)
|
||||||
if self.xrandr_info[name]["current_mode"] is None: # Happens with turned off monitors
|
if (
|
||||||
self.xrandr_info[name]['enabled'] = False
|
self.xrandr_info[name]["current_mode"] is None
|
||||||
|
): # Happens with turned off monitors
|
||||||
|
self.xrandr_info[name]["enabled"] = False
|
||||||
h_scale = v_scale = 1
|
h_scale = v_scale = 1
|
||||||
else:
|
else:
|
||||||
self.ui.modes.setCurrentText(self.xrandr_info[name]["current_mode"])
|
self.ui.modes.setCurrentText(self.xrandr_info[name]["current_mode"])
|
||||||
|
Loading…
Reference in New Issue
Block a user