A littlebit more pythonic.

This commit is contained in:
Ludger Küperkoch 2017-05-24 11:23:35 +02:00
parent c954614544
commit 9bc6f601a1

View File

@ -2172,9 +2172,9 @@ class ChannelOrderTab(PropTab):
self.setLayout(layout)
def getValues(self):
values = {"Channel Z [up/down, default=3]": self.ChannelOrderZEdit.text(),
"Channel N [north/south, default=1]": self.ChannelOrderNEdit.text(),
"Channel E [east/west, default=2]": self.ChannelOrderEEdit.text()}
values = {"Channel Z [up/down, default=3]": int(self.ChannelOrderZEdit.text()),
"Channel N [north/south, default=1]": int(self.ChannelOrderNEdit.text()),
"Channel E [east/west, default=2]": int(self.ChannelOrderEEdit.text())}
return values
def resetValues(self, infile=None):