Aperture priority update on dropdown change
This commit is contained in:
parent
fcff374b54
commit
35b6ef3e29
@ -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()
|
||||
|
@ -60,6 +60,7 @@
|
||||
</items>
|
||||
</object>
|
||||
</property>
|
||||
<signal name="notify::selected-item" handler="onApertureChanged"/>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user