mirror of
https://github.com/ralsina/xrandroll.git
synced 2024-11-24 12:02:23 +00:00
Connected scaleModeCombo to code (does nothhing)
This commit is contained in:
parent
3eced60f7b
commit
00862a6b2b
7
main.py
7
main.py
@ -101,11 +101,16 @@ class Window(QObject):
|
|||||||
self.ui.okButton.clicked.connect(self.do_ok)
|
self.ui.okButton.clicked.connect(self.do_ok)
|
||||||
self.ui.resetButton.clicked.connect(self.do_reset)
|
self.ui.resetButton.clicked.connect(self.do_reset)
|
||||||
self.ui.cancelButton.clicked.connect(self.ui.reject)
|
self.ui.cancelButton.clicked.connect(self.ui.reject)
|
||||||
|
self.ui.scaleModeCombo.currentTextChanged.connect(self.scale_mode_changed)
|
||||||
|
|
||||||
|
def scale_mode_changed(self):
|
||||||
|
mon = self.ui.screenCombo.currentText()
|
||||||
|
scale_mode = self.ui.scaleModeCombo.currentText()
|
||||||
|
print(f'Set {mon} scale mode to {scale_mode}')
|
||||||
|
|
||||||
def replica_changed(self):
|
def replica_changed(self):
|
||||||
mon = self.ui.screenCombo.currentText()
|
mon = self.ui.screenCombo.currentText()
|
||||||
replicate = self.ui.replicaOf.currentText()
|
replicate = self.ui.replicaOf.currentText()
|
||||||
|
|
||||||
print(f'Making {mon} a replica of {replicate}')
|
print(f'Making {mon} a replica of {replicate}')
|
||||||
|
|
||||||
def do_reset(self):
|
def do_reset(self):
|
||||||
|
5
main.ui
5
main.ui
@ -197,6 +197,11 @@
|
|||||||
<string>Manual</string>
|
<string>Manual</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Disabled (1x1)</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Automatic: physical dimensions</string>
|
<string>Automatic: physical dimensions</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user