本文整理汇总了Python中pychron.core.ui.tabular_editor.myTabularEditor函数的典型用法代码示例。如果您正苦于以下问题:Python myTabularEditor函数的具体用法?Python myTabularEditor怎么用?Python myTabularEditor使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了myTabularEditor函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: _get_editors
def _get_editors(self):
teditor = myTabularEditor(adapter=self.isotope_adapter,
drag_enabled=False,
stretch_last_section=False,
editable=False,
multi_select=True,
selected='selected',
refresh='refresh_needed')
ceditor = myTabularEditor(adapter=self.computed_adapter,
editable=False,
drag_enabled=False,
refresh='refresh_needed')
ieditor = myTabularEditor(adapter=self.intermediate_adapter,
editable=False,
drag_enabled=False,
stretch_last_section=False,
refresh='refresh_needed')
eeditor = myTabularEditor(adapter=self.extraction_adapter,
drag_enabled=False,
editable=False,
refresh='refresh_needed')
meditor = myTabularEditor(adapter=self.measurement_adapter,
drag_enabled=False,
editable=False,
refresh='refresh_needed')
return teditor, ieditor, ceditor, eeditor, meditor
开发者ID:OSUPychron,项目名称:pychron,代码行数:31,代码来源:main_view.py
示例2: traits_view
def traits_view(self):
teditor = myTabularEditor(adapter=IsotopeTabularAdapter(),
drag_enabled=False,
stretch_last_section=False,
editable=False,
multi_select=True,
selected='selected',
refresh='refresh_needed')
# teditor, ieditor, ceditor, eeditor, meditor = es = self._get_editors()
ceditor, eeditor, meditor = es = self._get_editors()
for ei in es:
ei.adapter.font = '10'
isotopes = UItem('isotopes', editor=teditor, label='Isotopes')
ratios = UItem('computed_values', editor=ceditor, label='Ratios')
meas = UItem('measurement_values',
editor=meditor, label='General')
extract = UItem('extraction_values',
editor=eeditor,
label='Extraction')
v = View(VGroup(HGroup(spring, UItem('summary_str', style='readonly'), spring),
Group(isotopes, ratios, extract, meas, layout='tabbed')))
return v
开发者ID:NMGRL,项目名称:pychron,代码行数:28,代码来源:automated_run_view.py
示例3: traits_view
def traits_view(self):
editor = myTabularEditor(adapter=IncrementalHeatAdapter(),
refresh='refresh_needed',
selected='selected',
copy_cache='copy_cache',
pasted='pasted',
multi_select=True)
# cols=[ObjectColumn(name='step', label='Step', editable=False),
# ObjectColumn(name='value',label='Value'),
# ObjectColumn(name='units',label='Units'),
# ObjectColumn(name='duration', label='Duration (S)'),
# ObjectColumn(name='cleanup', label='Cleanup (S)')]
#
# editor=TableEditor(columns=cols, selected='selected',
# deletable=True,
# show_toolbar=True,
# selection_mode='rows', sortable=False)
v = View(
HGroup(UItem('add_row'), spring, Item('units')),
UItem('steps',
style='custom',
editor=editor),
HGroup(UItem('save_button', enabled_when='path'),
UItem('save_as_button')),
height=500,
width=600,
resizable=True,
title=self.title,
handler=self.handler_klass
)
return v
开发者ID:UManPychron,项目名称:pychron,代码行数:34,代码来源:increment_heat_template.py
示例4: traits_view
def traits_view(self):
v = View(
VGroup(
HGroup(
icon_button_editor("append_button", "add", tooltip=self._add_tooltip),
icon_button_editor("replace_button", "arrow_refresh", tooltip=self._replace_tooltip),
icon_button_editor("clear_button", "delete", tooltip=self._clear_tooltip),
icon_button_editor(
"configure_filter_button", "filter", tooltip="Configure/Apply a filter", enabled_when="items"
),
),
HGroup(
UItem("previous_selection", editor=EnumEditor(name="previous_selections")),
icon_button_editor("configure_button", "cog", tooltip=self.configure_history_tooltip),
),
HGroup(spring, CustomLabel("cs_label"), spring, Item("auto_sort")),
UItem(
"items",
editor=myTabularEditor(
adapter=self.adapter,
operations=["move", "delete"],
editable=True,
drag_external=True,
selected="selected",
dclicked="dclicked",
refresh="refresh_needed",
multi_select=True,
column_clicked="column_clicked",
),
),
)
)
return v
开发者ID:OSUPychron,项目名称:pychron,代码行数:33,代码来源:panes.py
示例5: traits_view
def traits_view(self):
v = View(VGroup(
HGroup(Item('diffs_only')),
UItem('values', editor=myTabularEditor(adapter=self.adapter,
editable=False,
selected_row='selected_row'))))
return v
开发者ID:OSUPychron,项目名称:pychron,代码行数:7,代码来源:diff_editor.py
示例6: traits_view
def traits_view(self):
analysis_tools = VGroup(HGroup(UItem('analysis_table.analysis_set',
width=-90,
editor=EnumEditor(name='analysis_table.analysis_set_names')),
icon_button_editor('analysis_table.add_analysis_set_button', 'add',
enabled_when='analysis_table.items',
tooltip='Add current analyses to an analysis set'),
icon_button_editor('add_analysis_group_button', 'database_add',
enabled_when='analysis_table.items',
tooltip='Add current analyses to an analysis group')),
HGroup(UItem('analysis_table.analysis_filter_parameter',
width=-90,
editor=EnumEditor(name='analysis_table.analysis_filter_parameters')),
UItem('analysis_table.analysis_filter')))
agrp = Group(VGroup(analysis_tools,
UItem('analysis_table.analyses',
width=0.4,
editor=myTabularEditor(
adapter=self.model.analysis_table.tabular_adapter,
operations=['move', 'delete'],
column_clicked='analysis_table.column_clicked',
refresh='analysis_table.refresh_needed',
selected='analysis_table.selected',
dclicked='analysis_table.dclicked',
multi_select=self.pane.multi_select,
drag_external=True,
scroll_to_row='analysis_table.scroll_to_row',
stretch_last_section=False)),
defined_when=self.pane.analyses_defined,
show_border=True,
label='Analyses'))
sample_grp = self._get_sample_group()
return View(HSplit(sample_grp, agrp))
开发者ID:NMGRL,项目名称:pychron,代码行数:34,代码来源:sample_view.py
示例7: traits_view
def traits_view(self):
v = View(VGroup(
HGroup(icon_button_editor('append_button', 'add',
tooltip=self._add_tooltip),
icon_button_editor('replace_button', 'arrow_refresh',
tooltip=self._replace_tooltip),
icon_button_editor('clear_button', 'delete',
tooltip=self._clear_tooltip),
icon_button_editor('configure_filter_button', 'filter',
tooltip='Configure/Apply a filter',
enabled_when='items')),
HGroup(UItem('previous_selection',
editor=EnumEditor(name='previous_selections')),
icon_button_editor('configure_button', 'cog',
tooltip=self.configure_history_tooltip)),
HGroup(spring, CustomLabel('cs_label'), spring),
UItem('items', editor=myTabularEditor(adapter=self.adapter_klass(),
operations=['move', 'delete'],
editable=True,
drag_external=True,
selected='selected',
dclicked='dclicked',
refresh='refresh_needed',
multi_select=True,
column_clicked='column_clicked'))))
return v
开发者ID:jirhiker,项目名称:pychron,代码行数:26,代码来源:panes.py
示例8: _results_group
def _results_group(self):
grp = VGroup(
CustomLabel(selector_name('id_string'), color='red'),
HGroup(
CustomLabel(selector_name('num_records')), spring,
Item(selector_name('limit'))),
Item(selector_name('records'),
style='custom',
editor=myTabularEditor(adapter=ResultsAdapter(),
selected=selector_name('selected'),
scroll_to_row=selector_name('scroll_to_row'),
# update='update',
column_clicked=selector_name('column_clicked'),
multi_select=True,
operations=['move'],
editable=True,
drag_external=True,
dclicked=selector_name('dclicked'),
key_pressed=selector_name('key_pressed')
),
show_label=False,
# height=0.75
),
label='Results'
)
return grp
开发者ID:jirhiker,项目名称:pychron,代码行数:26,代码来源:search_panes.py
示例9: traits_view
def traits_view(self):
v = View(
VGroup(
HGroup(spring,
Item('clear_button', show_label=False,
enabled_when='calculated'
),
Item('execute_button',
editor=ButtonEditor(label_value='execute_label'),
show_label=False)),
VGroup(Item('result_endpoints', style='readonly',
format_str='%0.3f',
label='Rise Rate endpoints (fA/min)'),
Item('result_fit', style='readonly',
format_str='%0.3f',
label='Rise Rate linear fit (fA/min)')
),
HGroup(UItem('clear_results_button')),
UItem('results',
# width= -100,
editor=myTabularEditor(operations=[],
editable=False,
adapter=ResultsAdapter())),
)
)
return v
开发者ID:UManPychron,项目名称:pychron,代码行数:28,代码来源:rise_rate.py
示例10: _get_sample_group
def _get_sample_group(self):
irrad_grp = self._get_irrad_group()
project_grp = self._get_project_group()
simple_analysis_type_grp = self._get_simple_analysis_type_group()
simple_date_grp = self._get_simple_date_group()
simple_mass_spectrometer_grp = self._get_simple_mass_spectrometer_group()
pi_grp = self._get_pi_group()
load_grp = self._get_load_group()
s_grp = HGroup(UItem('fuzzy_search_entry', tooltip='Enter a simple search, Pychron will do the rest.'),
label='Search',
show_border=True)
top_level_filter_grp = VGroup(HGroup(s_grp, simple_mass_spectrometer_grp,
simple_analysis_type_grp, simple_date_grp),
HGroup(VGroup(pi_grp, project_grp), VGroup(irrad_grp, load_grp)))
sample_tools = HGroup(UItem('sample_filter_parameter',
width=-90, editor=EnumEditor(name='sample_filter_parameters')),
UItem('sample_filter_comparator'),
UItem('sample_filter',
editor=ComboboxEditor(name='sample_filter_values')),
icon_button_editor('clear_sample_table',
'clear',
tooltip='Clear Sample Table'))
analysis_grp_table = UItem('analysis_groups',
editor=myTabularEditor(adapter=AnalysisGroupsAdapter(),
multi_select=True,
editable=False,
selected='selected_analysis_groups'))
sample_table = VGroup(sample_tools,
UItem('samples',
editor=myTabularEditor(
adapter=self.model.labnumber_tabular_adapter,
editable=False,
selected='selected_samples',
multi_select=True,
dclicked='dclicked_sample',
column_clicked='column_clicked',
stretch_last_section=False)),
show_border=True, label='Samples')
grp = VGroup(top_level_filter_grp, Tabbed(sample_table, analysis_grp_table))
return grp
开发者ID:NMGRL,项目名称:pychron,代码行数:46,代码来源:sample_view.py
示例11: traits_view
def traits_view(self):
v = View(UItem('object.repositories', editor=myTabularEditor(adapter=RepositoryTabularAdapter(),
editable=False,
multi_select=True,
refresh='object.refresh_needed',
selected='object.selected_repositories')),
handler=RepositoryPaneHandler())
return v
开发者ID:NMGRL,项目名称:pychron,代码行数:8,代码来源:panes.py
示例12: _get_analysis_group
def _get_analysis_group(self, base='analysis'):
def make_name(name):
return 'object.{}_table.{}'.format(base, name)
analysis_grp = VGroup(
HGroup(
#Label('Filter'),
UItem(make_name('analysis_filter_parameter'),
editor=EnumEditor(name=make_name('analysis_filter_parameters'))),
UItem(make_name('analysis_filter_comparator')),
UItem(make_name('analysis_filter'),
width=75),
UItem(make_name('analysis_filter'),
editor=EnumEditor(name=make_name('analysis_filter_values')),
width=-25),
icon_button_editor(make_name('configure_analysis_table'), 'cog',
tooltip='Configure/Advanced query')),
UItem(make_name('analyses'),
editor=myTabularEditor(
adapter=self.analysis_tabular_adapter,
# editable=False,
operations=['move'],
refresh=make_name('refresh_needed'),
selected=make_name('selected'),
dclicked=make_name('dclicked'),
multi_select=self.multi_select,
drag_external=True,
scroll_to_row=make_name('scroll_to_row'),
stretch_last_section=False),
# editor=ListStrEditor(editable=False,
# selected='selected_analysis'
# )
width=300),
HGroup(
# Item(make_name('page_width'),
# label='N',
# tooltip='Page Width. Number of analyses to display per page'),
#
spring,
#
# icon_button_editor(make_name('backward'),
# 'control_rewind',
# #enabled_when=make_name('backward_enabled'),
# tooltip='Backward one page'),
# icon_button_editor(make_name('forward'),
# 'control_fastforward',
# #enabled_when=make_name('forward_enabled'),
# tooltip='Forwad 1 page'),
# UItem(make_name('page'),
# tooltip='Current page'),
# UItem(make_name('npages'),
# format_str='%02i', style='readonly'),
Item(make_name('omit_invalid'))
),
defined_when=self.analyses_defined,
)
return analysis_grp
开发者ID:jirhiker,项目名称:pychron,代码行数:57,代码来源:panes.py
示例13: traits_view
def traits_view(self):
v = View(
UItem('items',
editor=myTabularEditor(adapter=self.adapter_klass(),
# editable=False,
col_widths='col_widths',
selected='selected',
multi_select=True,
auto_update=False,
operations=['delete', 'move'],
column_clicked='column_clicked')),
UItem('analysis_groups',
editor=myTabularEditor(adapter=self.analysis_groups_adapter_klass(),
# auto_resize=True,
editable=False,
auto_update=False,
refresh='refresh_needed')))
return v
开发者ID:OSUPychron,项目名称:pychron,代码行数:18,代码来源:arar_table_editor.py
示例14: traits_view
def traits_view(self):
agrp = VGroup(
# HGroup(UItem('help_str', style='readonly'),
# show_border=True, label='Info'),
UItem('items',
editor=myTabularEditor(adapter=AnalysesAdapter(),
# col_widths='col_widths',
selected='selected',
multi_select=True,
auto_update=False,
refresh='refresh_needed',
operations=['delete', 'move'],
column_clicked='column_clicked')),
label='Analyses',
show_border=True)
sgrp = VGroup(UItem('subgroups',
height=-100,
editor=myTabularEditor(adapter=SubGroupAdapter(),
multi_select=True,
editable=False,
auto_update=True,
selected='selected_subgroup')),
UItem('selected_subgroup_item',
style='custom', editor=InstanceEditor(view=View(get_preferred_grp()))),
label='SubGroups',
show_border=True)
ggrp = VGroup(UItem('groups',
height=-100,
style='custom', editor=myTabularEditor(adapter=GroupAdapter(),
multi_select=True,
editable=False,
selected='selected_group')),
UItem('selected_group_item',
style='custom', editor=InstanceEditor(view=View(get_preferred_grp()))),
label='Groups',
show_border=True)
v = View(VGroup(agrp, sgrp, ggrp),
handler=THandler())
return v
开发者ID:NMGRL,项目名称:pychron,代码行数:44,代码来源:group_age_editor.py
示例15: traits_view
def traits_view(self):
v = View(Item('commands',
style='custom',
show_label=False,
editor=myTabularEditor(operations=['move'],
adapter=CommandsAdapter(),
editable=True,
selected='selected_command'),
width=200, ))
return v
开发者ID:OSUPychron,项目名称:pychron,代码行数:10,代码来源:pyscript_panes.py
示例16: traits_view
def traits_view(self):
arun_grp = UItem('automated_runs',
editor=myTabularEditor(adapter=self.tabular_adapter_klass(),
operations=['delete',
'move',
],
editable=True,
dclicked='dclicked',
selected='selected',
paste_function='paste_function',
refresh='refresh_table_needed',
scroll_to_row='automated_runs_scroll_to_row',
copy_cache='linked_copy_cache',
multi_select=True,
),
height=200
)
executed_grp = UItem('executed_runs',
editor=myTabularEditor(adapter=self.tabular_adapter_klass(),
editable=False,
auto_update=True,
selectable=True,
copy_cache='linked_copy_cache',
selected='executed_selected',
multi_select=True,
scroll_to_row='executed_runs_scroll_to_row'
),
height=500,
visible_when='executed'
)
v = View(
# VGroup(
executed_grp,
arun_grp,
# ),
resizable=True
)
return v
开发者ID:jirhiker,项目名称:pychron,代码行数:42,代码来源:experiment_editor.py
示例17: traits_view
def traits_view(self):
v = View(
CustomLabel('n', color='blue'),
UItem('items',
editor=myTabularEditor(
# editable=False,
multi_select=True,
operations=['delete', ],
refresh='refresh_needed',
adapter=AnalysisAdapter())))
return v
开发者ID:OSUPychron,项目名称:pychron,代码行数:11,代码来源:panes.py
示例18: _get_editors
def _get_editors(self):
teditor = myTabularEditor(adapter=IsotopeTabularAdapter(),
editable=False,
refresh='refresh_needed')
adapter = CompuatedValueTabularAdapter
if self.analysis_type in ('air', 'cocktail',
'blank_unknown', 'blank_air',
'blank_cocktail'):
adapter = DetectorRatioTabularAdapter
ceditor = myTabularEditor(adapter=adapter(),
editable=False,
refresh='refresh_needed')
eeditor = myTabularEditor(adapter=ExtractionTabularAdapter(),
editable=False, )
meditor = myTabularEditor(adapter=MeasurementTabularAdapter(),
editable=False)
return teditor, ceditor, eeditor, meditor
开发者ID:jirhiker,项目名称:pychron,代码行数:20,代码来源:main_view.py
示例19: traits_view
def traits_view(self):
v = View(UItem('items', editor=myTabularEditor(adapter=ELHAdapter(),
selected='selected',
dclicked='dclicked',
editable=False)),
handler=ELHHandler(),
width=700,
title='Experiment Launch History',
buttons=['OK', 'Cancel'],
resizable=True, kind='livemodal')
return v
开发者ID:NMGRL,项目名称:pychron,代码行数:11,代码来源:experiment_launch_history.py
示例20: traits_view
def traits_view(self):
v = View(VGroup(
# HGroup(Item('diffs_only'), spring, UItem('record_id', style='readonly'), spring),
HGroup(Item('diffs_only'), icon_button_editor('edit_configuration_button', 'cog'),
spring,
UItem('record_id',
style='readonly'),
spring),
UItem('values', editor=myTabularEditor(adapter=self.adapter,
editable=False,
selected_row='selected_row'))))
return v
开发者ID:NMGRL,项目名称:pychron,代码行数:12,代码来源:diff_editor.py
注:本文中的pychron.core.ui.tabular_editor.myTabularEditor函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论