Sensor readings callbacks in all pages

This commit is contained in:
2024-04-30 08:56:28 +02:00
parent 6f7134d6fb
commit 6ef5ad15f7
5 changed files with 34 additions and 6 deletions

View File

@@ -24,3 +24,8 @@ from gi.repository import Gtk
class AperturePriorityPage(Gtk.Box):
__gtype_name__ = 'AperturePriorityPage'
def onValuesChanged(self, isoSpeed: int, sensorValue: float, sensorUnit: str):
# Check the unit is absolute ("lux")
if sensorUnit != "lux":
return

View File

@@ -24,3 +24,9 @@ from gi.repository import Gtk
class ManualExposurePage(Gtk.Box):
__gtype_name__ = 'ManualExposurePage'
def onValuesChanged(self, isoSpeed: int, sensorValue: float, sensorUnit: str):
# Check the unit is absolute ("lux")
if sensorUnit != "lux":
return

View File

@@ -23,4 +23,9 @@ from gi.repository import Gtk
@Gtk.Template(resource_path='/eu/ichibi/Lumos/widgets/time_priority_page.ui')
class TimePriorityPage(Gtk.Box):
__gtype_name__ = 'TimePriorityPage'
def onValuesChanged(self, isoSpeed: int, sensorValue: float, sensorUnit: str):
# Check the unit is absolute ("lux")
if sensorUnit != "lux":
return