def getEditor(self) -> AbsOperationEditor: factory = OptionsEditorFactory() factory.initEditor() factory.withAttributeTable('attributes', True, False, True, None, self.acceptedTypes()) factory.withCheckBox('Column for nan', 'includeNan') return factory.getEditor()
def getEditor(self) -> AbsOperationEditor: factory = OptionsEditorFactory() factory.initEditor() options = { 'bins': ('Bin edges', _RangeDelegate(), None), 'labels': ('Labels', OptionValidatorDelegate(MixedListValidator()), None) } factory.withAttributeTable('table', True, False, True, options, self.acceptedTypes()) factory.withAttributeNameOptionsForTable('suffix') return factory.getEditor()
def getEditor(self) -> AbsOperationEditor: factory = OptionsEditorFactory() options = { 'values': ('Values', OptionValidatorDelegate(ManyMixedListsValidator()), None), 'replace': ('Replace with', OptionValidatorDelegate(MixedListValidator()), None) } factory.initEditor() factory.withAttributeTable('table', True, False, True, options, self.acceptedTypes()) factory.withCheckBox('Invert values selection', 'inverted') return factory.getEditor()
def getEditor(self) -> AbsOperationEditor: factory = OptionsEditorFactory() factory.initEditor() factory.withAttributeTable(key='selected', checkbox=True, nameEditable=False, showTypes=True, options={ 'ranges': ('Ranges', _DateIntervalDelegate(), None), 'labels': ('Labels', _LabelsDelegate(), None) }, types=self.acceptedTypes()) factory.withAttributeNameOptionsForTable('suffix') return factory.getEditor()
def getEditor(self) -> AbsOperationEditor: factory = OptionsEditorFactory() factory.initEditor() factory.withAttributeTable(key='attributes', checkbox=True, nameEditable=False, showTypes=True, types=self.acceptedTypes(), options=None) return factory.getEditor()
def getEditor(self) -> AbsOperationEditor: factory = OptionsEditorFactory() factory.initEditor() factory.withAttributeTable(key='selected', checkbox=True, nameEditable=False, showTypes=True, types=self.acceptedTypes(), options={ 'fill': ('Fill value', OptionValidatorDelegate( SingleStringValidator()), None) }) factory.withRadioGroup(key='fillMode', label='Method', values=[('Backfill', 'bfill'), ('Pad', 'ffill'), ('Mean', 'mean'), ('Values', 'value')]) return factory.getEditor()
def getEditor(self) -> AbsOperationEditor: factory = OptionsEditorFactory() factory.initEditor() factory.withAttributeTable(key='table', checkbox=True, nameEditable=False, showTypes=True, options={ 'rename': ('New name', OptionValidatorDelegate( SingleStringValidator()), None) }, types=self.acceptedTypes()) return factory.getEditor()
def getEditor(self) -> AbsOperationEditor: factory = OptionsEditorFactory() factory.initEditor() factory.withAttributeTable('attributes', True, False, False, None, None) return factory.getEditor()
def getEditor(self) -> 'AbsOperationEditor': factory = OptionsEditorFactory() factory.initEditor(subclass=WriteEditorBase) factory.withComboBox('Frame to write', 'frame', False, model=self.workbench) factory.withFileChooser(key='file', label='Choose a file', extensions='Csv (*.csv)', mode='save') factory.withAttributeTable(key='sele', checkbox=True, nameEditable=False, showTypes=True, options=None, types=self.acceptedTypes()) factory.withTextField('Separator', 'sep') factory.withTextField('Nan repr', 'nan') factory.withTextField('Float format', 'ffloat') factory.withTextField('Decimal', 'decimal') factory.withCheckBox('Write column names', 'header') factory.withCheckBox('Write index values', 'index') factory.withComboBox( 'Datetime format', 'date', True, strings=['%Y-%m-%d %H:%M:%S', '%Y-%m-%d', '%H:%M:%S']) return factory.getEditor()
def getEditor(self) -> AbsOperationEditor: factory = OptionsEditorFactory() factory.initEditor() factory.withAttributeTable('attributes', True, False, True, { 'bins': ( 'K', OptionValidatorDelegate(QIntValidator(1, 10000000)), None )}, types=self.acceptedTypes()) values = [(s.name, s) for s in BinStrategy] factory.withRadioGroup('Select strategy:', 'strategy', values) factory.withAttributeNameOptionsForTable('suffix') return factory.getEditor()