15:b9a131db7c74 | 16:f2d493540f04 |
---|---|
4 # | 4 # |
5 | 5 |
6 """ | 6 """ |
7 Module implementing a dialog to select a time zone. | 7 Module implementing a dialog to select a time zone. |
8 """ | 8 """ |
9 | |
10 from __future__ import unicode_literals # __IGNORE_WARNING__ | |
9 | 11 |
10 from PyQt4.QtCore import pyqtSlot | 12 from PyQt4.QtCore import pyqtSlot |
11 from PyQt4.QtGui import QDialog, QDialogButtonBox | 13 from PyQt4.QtGui import QDialog, QDialogButtonBox |
12 | 14 |
13 from .Ui_TimezoneSelectionDialog import Ui_TimezoneSelectionDialog | 15 from .Ui_TimezoneSelectionDialog import Ui_TimezoneSelectionDialog |
512 """ | 514 """ |
513 Constructor | 515 Constructor |
514 | 516 |
515 @param parent reference to the parent widget (QWidget) | 517 @param parent reference to the parent widget (QWidget) |
516 """ | 518 """ |
517 super().__init__(parent) | 519 super(TimezoneSelectionDialog, self).__init__(parent) |
518 self.setupUi(self) | 520 self.setupUi(self) |
519 | 521 |
520 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) | 522 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
521 | 523 |
522 self.regionCombo.addItems([" "] + sorted(self.Timezones.keys())) | 524 self.regionCombo.addItems([" "] + sorted(self.Timezones.keys())) |