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)
|
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
|
# 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))
|
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>
|
</items>
|
||||||
</object>
|
</object>
|
||||||
</property>
|
</property>
|
||||||
|
<signal name="notify::selected-item" handler="onApertureChanged"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user