コード例 #1
0
ファイル: filter_edit.py プロジェクト: mhamid3d/jinx
 def _createWidgets(self, layout):
     """
     """
     from type_handler import DateTimeHandler
     widgetLength = IntHandler.getInputWidget(self)
     widgetUnits = QtGui.QComboBox(self)
     widgetUnits.addItems(
         common.DATETIME_DURATIONS if self._dataTypeHandler is DateTimeHandler else common.DATE_DURATIONS)
     widgetUnits.setSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
     layout.addWidget(widgetLength)
     layout.addWidget(widgetUnits)
     return [widgetLength, widgetUnits]
コード例 #2
0
 def getInputWidget(cls, parentWidget):
     widget = QtGui.QComboBox(parentWidget)
     return widget