--- a/ProjectDjangoTagsMenu/TimezoneSelectionDialog.py Wed Feb 12 19:54:24 2014 +0100 +++ b/ProjectDjangoTagsMenu/TimezoneSelectionDialog.py Sun Feb 16 13:18:57 2014 +0100 @@ -240,7 +240,7 @@ 'Yakutat', 'Yellowknife', ], - 'Antarctica':[ + 'Antarctica': [ 'Casey', 'Davis', 'DumontDUrville', @@ -253,7 +253,7 @@ 'Syowa', 'Vostok', ], - 'Arctic':[ + 'Arctic': [ 'Longyearbyen', ], 'Asia': [ @@ -526,7 +526,7 @@ Private method to update the OK button. """ self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( - bool(self.regionCombo.currentText()) and + bool(self.regionCombo.currentText()) and len(self.cityList.selectedItems()) == 1 ) @@ -535,7 +535,7 @@ """ Private slot handling the selection of a time zone region. - @param region selected region (string) + @param region selected region (string) """ self.cityList.clear() if region in self.Timezones: @@ -556,7 +556,7 @@ @return selected time zone (string) """ - if (self.regionCombo.currentText() and + if (self.regionCombo.currentText() and len(self.cityList.selectedItems()) == 1): return "{0}/{1}".format( self.regionCombo.currentText(),