src/eric7/UI/NumbersWidget.py

branch
eric7
changeset 10683
779cda568acb
parent 10439
21c28b0f9e41
child 10692
9becf9ca115c
equal deleted inserted replaced
10682:47be220abdaf 10683:779cda568acb
31 super().__init__(parent) 31 super().__init__(parent)
32 32
33 self.__bits = 0 33 self.__bits = 0
34 self.__value = 0 34 self.__value = 0
35 35
36 def rowCount(self, parent): # noqa: U100 36 def rowCount(self, _parent):
37 """ 37 """
38 Public method to get the number of rows of the model. 38 Public method to get the number of rows of the model.
39 39
40 @param parent parent index 40 @param _parent parent index (unused)
41 @type QModelIndex 41 @type QModelIndex
42 @return number of columns 42 @return number of columns
43 @rtype int 43 @rtype int
44 """ 44 """
45 return 1 45 return 1
46 46
47 def columnCount(self, parent): # noqa: U100 47 def columnCount(self, _parent):
48 """ 48 """
49 Public method to get the number of columns of the model. 49 Public method to get the number of columns of the model.
50 50
51 @param parent parent index 51 @param _parent parent index (unused)
52 @type QModelIndex 52 @type QModelIndex
53 @return number of columns 53 @return number of columns
54 @rtype int 54 @rtype int
55 """ 55 """
56 return self.__bits 56 return self.__bits
75 elif role == Qt.ItemDataRole.DisplayRole: 75 elif role == Qt.ItemDataRole.DisplayRole:
76 return "" 76 return ""
77 77
78 return None 78 return None
79 79
80 def flags(self, index): # noqa: U100 80 def flags(self, _index):
81 """ 81 """
82 Public method to get flags from the model. 82 Public method to get flags from the model.
83 83
84 @param index index to get flags for 84 @param _index index to get flags for (unused)
85 @type QModelIndex 85 @type QModelIndex
86 @return flags 86 @return flags
87 @rtype Qt.ItemFlags 87 @rtype Qt.ItemFlags
88 """ 88 """
89 return ( 89 return (

eric ide

mercurial