src/eric7/Plugins/VcsPlugins/vcsSubversion/SvnRevisionSelectionDialog.py

branch
eric7
changeset 10438
4cd7e5a8b3cf
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10437:2f70ca07f0af 10438:4cd7e5a8b3cf
21 21
22 def __init__(self, parent=None): 22 def __init__(self, parent=None):
23 """ 23 """
24 Constructor 24 Constructor
25 25
26 @param parent parent widget of the dialog (QWidget) 26 @param parent parent widget of the dialog
27 @type QWidget
27 """ 28 """
28 super().__init__(parent) 29 super().__init__(parent)
29 self.setupUi(self) 30 self.setupUi(self)
30 31
31 self.date1Edit.setDate(QDate.currentDate()) 32 self.date1Edit.setDate(QDate.currentDate())
37 def __getRevision(self, no): 38 def __getRevision(self, no):
38 """ 39 """
39 Private method to generate the revision. 40 Private method to generate the revision.
40 41
41 @param no revision number to generate (1 or 2) 42 @param no revision number to generate (1 or 2)
42 @return revision (integer or string) 43 @type int
44 @return revision
45 @rtype int or str
43 """ 46 """
44 if no == 1: 47 if no == 1:
45 numberButton = self.number1Button 48 numberButton = self.number1Button
46 numberSpinBox = self.number1SpinBox 49 numberSpinBox = self.number1SpinBox
47 dateButton = self.date1Button 50 dateButton = self.date1Button
87 90
88 def getRevisions(self): 91 def getRevisions(self):
89 """ 92 """
90 Public method to get the revisions. 93 Public method to get the revisions.
91 94
92 @return list two integers or strings 95 @return list containing two revisions
96 @rtype list of [int or str, int or str]
93 """ 97 """
94 rev1 = self.__getRevision(1) 98 rev1 = self.__getRevision(1)
95 rev2 = self.__getRevision(2) 99 rev2 = self.__getRevision(2)
96 100
97 return [rev1, rev2] 101 return [rev1, rev2]

eric ide

mercurial