ProjectDjangoTagsMenu/TimezoneSelectionDialog.py

changeset 26
b21b4fc418bc
parent 23
070a6c65c8a9
child 30
4ff7495f67b1
equal deleted inserted replaced
24:200ccb1e083c 26:b21b4fc418bc
7 Module implementing a dialog to select a time zone. 7 Module implementing a dialog to select a time zone.
8 """ 8 """
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 from PyQt4.QtCore import pyqtSlot 12 from PyQt5.QtCore import pyqtSlot
13 from PyQt4.QtGui import QDialog, QDialogButtonBox 13 from PyQt5.QtWidgets import QDialog, QDialogButtonBox
14 14
15 from .Ui_TimezoneSelectionDialog import Ui_TimezoneSelectionDialog 15 from .Ui_TimezoneSelectionDialog import Ui_TimezoneSelectionDialog
16 16
17 17
18 class TimezoneSelectionDialog(QDialog, Ui_TimezoneSelectionDialog): 18 class TimezoneSelectionDialog(QDialog, Ui_TimezoneSelectionDialog):
568 return "" 568 return ""
569 569
570 @staticmethod 570 @staticmethod
571 def getTimezone(parent=None): 571 def getTimezone(parent=None):
572 """ 572 """
573 Static method to select a time zone. 573 Public static method to select a time zone.
574 574
575 @param parent reference to the parent widget (QWidget) 575 @param parent reference to the parent widget (QWidget)
576 @return tuple of selected time zone (string) and flag indicating 576 @return tuple of selected time zone (string) and flag indicating
577 the acceptance state (boolean) 577 the acceptance state (boolean)
578 """ 578 """

eric ide

mercurial