Aperture priority update on dropdown change

This commit is contained in:
Daniele Verducci 2024-05-04 08:08:17 +02:00
parent fcff374b54
commit 35b6ef3e29
2 changed files with 5 additions and 0 deletions

View File

@ -66,3 +66,7 @@ class AperturePriorityPage(Gtk.Box):
shutterSpeed = EVCalculator.calcShutterSpeed(self.__isoSpeed, self.__sensorValue, apertureValue)
# TODO: Round shutter speed value to nearest existing value and set label color to red if outside 1 stop range
self.aperture_priority_time_label.set_label("1/ {:.5f}".format(shutterSpeed))
@Gtk.Template.Callback()
def onApertureChanged(self, dropDown: Gtk.DropDown, _: any):
self.updateView()

View File

@ -60,6 +60,7 @@
</items>
</object>
</property>
<signal name="notify::selected-item" handler="onApertureChanged"/>
</object>
</child>
</template>