示例#1
0
    def traits_view(self):
        cview = View(
            VGroup(
                CustomLabel('message',
                            size=14,
                            weight='bold',
                            color_name='message_color'),
                HGroup(
                    Spring(width=-5, springy=False),
                    Item('high', label='Set Max. Seconds'), spring,
                    CustomLabel('current_display_time', size=24,
                                weight='bold'), UItem('pause_button'),
                    UItem('continue_button'))))

        # HGroup(Spring(width=-5, springy=False),
        #        Item('current_time', show_label=False,
        #             editor=RangeEditor(mode='slider', low=1, high_name='duration')))))

        v = View(
            UItem('active_control',
                  style='custom',
                  visible_when='single',
                  editor=InstanceEditor(view=cview)),
            UItem('controls',
                  editor=ListEditor(use_notebook=True,
                                    selected='active_control',
                                    page_name='.page_name',
                                    view=cview),
                  style='custom',
                  visible_when='not single'))
        return v
示例#2
0
 def traits_view(self):
     v = View(VSplit(UItem('object.plot_panel.graph_container',
                           style='custom',
                           height=0.75),
                     VGroup(HGroup(Spring(springy=False, width=-5),
                                   Item('object.plot_panel.ncycles', label='Cycles',
                                        tooltip='Set the number of measurement cycles',
                                        visible_when='is_peak_hop',
                                        width=-100),
                                   Spring(springy=False, width=-10),
                                   CustomLabel('object.plot_panel.current_cycle',
                                               color='blue',
                                               color_name='object.plot_panel.current_color',
                                               width=175,
                                               visible_when='is_peak_hop'),
                                   Spring(springy=False, width=-10),
                                   Item('object.plot_panel.ncounts', label='Counts',
                                        tooltip='Set the number of measurement points'),
                                   Spring(springy=False, width=-10),
                                   CustomLabel('object.plot_panel.display_counts',
                                               color='red',
                                               size=14,
                                               width=100),
                                   Spring(springy=False, width=-5)),
                            UItem('object.plot_panel.analysis_view',
                                  style='custom',
                                  height=0.25))))
     return v
示例#3
0
 def traits_view(self):
     v = View(VSplit(
         VGroup(
             UItem('filters',
                   editor=ListEditor(editor=InstanceEditor(),
                                     mutable=False,
                                     style='custom')),
             HGroup(
                 spring, UItem('apply_filter_button',
                               label='Apply Filters'),
                 Item('omit',
                      label='Omit',
                      tooltip='Omit analyses instead of exclude'))),
         VGroup(
             HGroup(CustomLabel('nitems', color='maroon'),
                    CustomLabel('nfiltered', color='green')),
             UItem('items',
                   editor=myTabularEditor(adapter=UnknownsAdapter(),
                                          refresh='refresh_needed')))),
              resizable=True,
              handler=TableFilterHandler(),
              buttons=['OK', 'Cancel', 'Revert'],
              height=500,
              width=500,
              title='Filter Analyses')
     return v
示例#4
0
 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
示例#5
0
 def traits_view(self):
     v = View(
         VGroup(
             HGroup(
                 icon_button_editor('up_button',
                                    'arrow_left',
                                    tooltip='Go back one directory'),
                 CustomLabel('up_directory_name', size=14, color='maroon'),
                 spring),
             VSplit(
                 VGroup(
                     UItem('directories',
                           editor=TabularEditor(
                               selected='selected_directory',
                               dclicked='directory_dclicked',
                               editable=False,
                               adapter=ScriptBrowserAdapter()),
                           height=0.25),
                     HGroup(
                         Label('Current Dir.'),
                         CustomLabel('selected_directory_name',
                                     size=14,
                                     color='maroon'))),
                 UItem('items',
                       editor=TabularEditor(selected='selected',
                                            dclicked='dclicked',
                                            editable=False,
                                            adapter=ScriptBrowserAdapter()),
                       height=0.75))))
     return v
示例#6
0
    def traits_view(self):
        add_button = icon_button_editor('add_button',
                                        'add',
                                        enabled_when='ok_add',
                                        tooltip='Add run')

        save_button = icon_button_editor('save_button',
                                         'disk',
                                         tooltip='Save queue to file')

        edit_button = icon_button_editor('edit_mode_button',
                                         'table_edit',
                                         enabled_when='edit_enabled',
                                         tooltip='Toggle edit mode')

        clear_button = icon_button_editor(
            'clear_button',
            'table_row_delete',
            tooltip='Clear all runs added using "frequency"')

        queue_grp = VGroup(
            QFItem('username'),
            HGroup(
                QFItem('mass_spectrometer',
                       show_label=False,
                       editor=EnumEditor(
                           name=make_qf_name('mass_spectrometers'))),
                QFItem(
                    'extract_device',
                    show_label=False,
                    editor=EnumEditor(name=make_qf_name('extract_devices')))),
            QFItem('load_name',
                   show_label=False,
                   editor=EnumEditor(name=make_qf_name('load_names'))),
            QFItem('delay_before_analyses'), QFItem('delay_between_analyses'))

        button_bar = HGroup(
            save_button, add_button, clear_button, edit_button,
            CustomLabel(make_rf_name('edit_mode_label'), color='red',
                        width=40), spring, RFItem('end_after', width=30),
            RFItem('skip'))
        edit_grp = VFold(VGroup(self._get_info_group(),
                                self._get_extract_group(),
                                label='General'),
                         self._get_script_group(),
                         self._get_truncate_group(),
                         enabled_when=make_qf_name('ok_make'))

        lower_button_bar = HGroup(
            add_button, clear_button, Label('Auto Increment'),
            Item('auto_increment_id', label='L#'),
            Item('auto_increment_position', label='Position'))
        v = View(VGroup(queue_grp, button_bar,
                        CustomLabel(make_rf_name('info_label')), edit_grp,
                        lower_button_bar),
                 width=225)
        return v
示例#7
0
 def _get_igsn(self):
     auth_grp = HGroup('object.igsn.username',
                       'object.igsn.password')
     igsn_grp = Group(
                      auth_grp,
                      Item('object.igsn.url',
                           label='URL'),
                      Item('object.igsn.parent_igsn',
                           label='Parent IGSN'
                           ),
                      HGroup(
                             spring,
                             CustomLabel('object.igsn.display_str',
                                         size=14,
                                         color='green'
                                         ),
                             spring),
                      HGroup(spring,
                             UItem('object.igsn.get_igsn_button',
                                   enabled_when='object.igsn_enabled',
                                   tooltip='Get a new IGSN and associate it to this sample'
                                   )),
                      show_border=True,
                      label='IGSN'
                    )
     return igsn_grp
示例#8
0
    def traits_view(self):
        cgrp = HGroup(
            Spring(width=10, springy=False),
            icon_button_editor('test_connection_button',
                               'database_connect',
                               tooltip='Test connection'),
            Spring(width=10, springy=False), Label('Status:'),
            CustomLabel('_connected_label',
                        label='Status',
                        weight='bold',
                        color_name='_connected_color'))

        massspec_grp = VGroup(
            # Item('enabled', label='Use MassSpec'),
            VGroup(Item('dbname', label='Database'),
                   Item('host', label='Host'),
                   Item('port', label='Post'),
                   Item('username', label='User'),
                   Item('password', label='Password'),
                   cgrp,
                   enabled_when='enabled',
                   show_border=True,
                   label='Connection'),
            label='Sparrow DB',
            show_border=True)

        return View(massspec_grp)
示例#9
0
    def traits_view(self):
        v = okcancel_view(
            CustomLabel('message', color='red', size=14, defined_when='message'),
            CustomLabel('user_help', defined_when='not message'),

            HGroup(UItem('user', width=225,
                         enabled_when='user_enabled',
                         editor=ComboboxEditor(name='users'))),
            Label('Select your work environment'),
            HGroup(UItem('environment', width=225,
                         editor=EnumEditor(name='environments')),
                   icon_button_editor('directory_select_button',
                                      'configure-2')),
            handler=LoginHandler(),
            title='Login')
        return v
示例#10
0
 def _get_browser_tool_group(self):
     hgrp = HGroup(
         icon_button_editor(
             'filter_by_button',
             'find',
             tooltip='Search for analyses using defined criteria'),
         icon_button_editor(
             'advanced_filter_button',
             'magnifier',
             tooltip='Advanced Search. e.g. search by intensity'),
         icon_button_editor('load_recent_button',
                            'edit-history-2',
                            tooltip='Load recent analyses'),
         icon_button_editor(
             'find_references_button',
             '3d_glasses',
             enabled_when='find_references_enabled',
             tooltip='Find references associated with current selection'),
         icon_button_editor('refresh_selectors_button',
                            'arrow_refresh',
                            tooltip='Refresh the database selectors'
                            ' e.g PI, Project, Load, Irradiation, etc'),
         UItem('object.dvc.data_source',
               editor=EnumEditor(name='object.dvc.data_sources')),
         spring,
         CustomLabel('datasource_url', color='maroon'),
         show_border=True)
     return hgrp
示例#11
0
    def traits_view(self):
        db_auth_grp = Group(Item('host',
                                 editor=TextEditor(enter_set=True,
                                                   auto_set=False),
                                 width=125,
                                 label='Host'),
                            Item('username',
                                 label='User',
                                 editor=TextEditor(enter_set=True,
                                                   auto_set=False)),
                            Item('password',
                                 label='Password',
                                 editor=TextEditor(enter_set=True,
                                                   auto_set=False,
                                                   password=True)),
                            enabled_when='kind=="mysql"',
                            show_border=True,
                            label='Authentication')

        fav_grp = VGroup(
            Item('fav_name', show_label=False),
            Item('favorites',
                 show_label=False,
                 width=100,
                 editor=ListStrEditor(editable=False,
                                      adapter=FavoritesAdapter(),
                                      selected='object.selected')),
            HGroup(icon_button_editor('add_favorite',
                                      'add',
                                      tooltip='Add saved connection'),
                   icon_button_editor('delete_favorite',
                                      'delete',
                                      tooltip='Delete saved connection'),
                   icon_button_editor('test_connection_button',
                                      'database_connect',
                                      tooltip='Test connection'),
                   Spring(width=10, springy=False),
                   Label('Status:'),
                   CustomLabel('_connected_label',
                               label='Status',
                               weight='bold',
                               color_name='_connected_color'),
                   spring,
                   show_labels=False))

        db_grp = Group(HGroup(
            Item('kind', show_label=False),
            Item('name',
                 label='Database Name',
                 editor=EnumEditor(name='_names'),
                 visible_when='kind=="mysql"')),
                       HGroup(fav_grp,
                              db_auth_grp,
                              visible_when='kind=="mysql"'),
                       VGroup(Item('path', label='Database File'),
                              visible_when='kind=="sqlite"'),
                       show_border=True,
                       label='Pychron DB')

        return View(db_grp)
示例#12
0
    def traits_view(self):
        agrp = VGroup(
            HGroup(
                Item('power', tooltip='Hit Enter for change to take effect'),
                Item('units', style='readonly', show_label=False), spring,
                Item('duration',
                     label='Duration (s)',
                     tooltip='Set the laser pulse duration in seconds'),
                Item('pulse_button',
                     editor=ButtonEditor(label_value='pulse_label'),
                     show_label=False,
                     enabled_when='enabled')))
        mgrp = VGroup(
            HGroup(Spring(width=-5, springy=False),
                   Item('object.wait_control.high', label='Set Max. Seconds'),
                   spring, UItem('object.wait_control.continue_button')),
            HGroup(
                Spring(width=-5, springy=False),
                Item(
                    'object.wait_control.current_time',
                    show_label=False,
                    editor=RangeEditor(
                        mode='slider',
                        low=1,
                        # low_name='low_name',
                        high_name='object.wait_control.duration')),
                CustomLabel('object.wait_control.current_time',
                            size=14,
                            weight='bold')),
            show_border=True)

        v = View(VGroup(agrp, mgrp, show_border=True),
                 id='pulse',
                 handler=PulseHandler())
        return v
示例#13
0
    def traits_view(self):
        led_grp = HGroup(
            UItem('enabled',
                  editor=LEDEditor(colors=['red', 'green']),
                  style='custom',
                  height=-35),
            UItem('enable', editor=ButtonEditor(label_value='enable_label')))

        status_grp = HGroup(
            spring,
            CustomLabel(
                'status_text',
                weight='bold',
                use_color_background=False,
                # bgcolor='transparent',
                color='orange',
                size=40),
            spring)
        request_grp = HGroup(
            Item('requested_power',
                 style='readonly',
                 format_str='%0.2f',
                 width=100), Spring(springy=False, width=50),
            UItem('units', style='readonly'), spring)

        v = View(
            VGroup(led_grp,
                   spring,
                   status_grp,
                   spring,
                   request_grp,
                   show_border=True))
        return v
示例#14
0
    def traits_view(self):
        dbconngrp = VGroup(Item('name'),
                           Item('host'),
                           Item('username'),
                           Item('password'),
                           HGroup(
                               icon_button_editor('test_connection_button',
                                                  'database_connect',
                                                  tooltip='Test connection'),
                               Spring(width=10, springy=False),
                               Label('Status:'),
                               CustomLabel('_connected_label',
                                           label='Status',
                                           weight='bold',
                                           color_name='_connected_color')),
                           label='Database Connection',
                           show_border=True)

        csgrp = VGroup(Item('use_connection_status',
                            label='Use Connection Status',
                            tooltip='Enable connection status checking'),
                       Item('connection_status_period',
                            label='Period (s)',
                            tooltip='Check connection status every X seconds',
                            enabled_when='use_connection_status'),
                       label='Connection Status',
                       show_border=True)

        v = View(VGroup(dbconngrp, csgrp))
        return v
示例#15
0
 def traits_view(self):
     v = View(VGroup(
         CustomLabel('interaction_mode'),
         UItem('canvas',
               style='custom',
               editor=ComponentEditor())))
     return v
示例#16
0
    def traits_view(self):
        main_grp = self._get_browser_group()

        hgrp = HGroup(icon_button_editor('filter_by_button',
                                         'find',
                                         tooltip='Filter analyses using defined criteria'),
                      # icon_button_editor('graphical_filter_button',
                      #                    'chart_curve_go',
                      #                    tooltip='Filter analyses graphically'),
                      icon_button_editor('find_references_button',
                                         '',
                                         tooltip='Find references associated with current selection'),
                      icon_button_editor('toggle_view',
                                         'arrow_switch',
                                         tooltip='Toggle between Sample and Time views'),
                      spring,
                      CustomLabel('datasource_url', color='maroon'))

        bgrp = HGroup(spring, UItem('pane.append_button'), UItem('pane.replace_button'))
        v = View(VGroup(hgrp, main_grp, bgrp),
                 # buttons=['Cancel'],
                 # Action(name='Append',
                 #        action='append_analyses'),
                 # Action(name='Replace',
                 #        action='replace_analyses')],
                 handler=BrowserViewHandler(),
                 title='Browser',
                 resizable=True)

        return v
示例#17
0
    def traits_view(self):
        pos_grp = VGroup(
            UItem('move_enabled_button'),
            VGroup(HGroup(
                Item('position'),
                UItem('object.stage_manager.stage_map_name',
                      editor=EnumEditor(
                          name='object.stage_manager.stage_map_names')),
                UItem('stage_stop_button')),
                   Item('x', editor=RangeEditor(low=-25.0, high=25.0)),
                   Item('y', editor=RangeEditor(low=-25.0, high=25.0)),
                   Item('z', editor=RangeEditor(low=-25.0, high=25.0)),
                   enabled_when='_move_enabled'),
            label='Positioning')

        calibration_grp = VGroup(
            UItem('tray_calibration.style',
                  enabled_when='not tray_calibration.isCalibrating()'),
            UItem('tray_calibration.calibrate',
                  editor=ButtonEditor(
                      label_value='tray_calibration.calibration_step')),
            HGroup(
                Item('tray_calibration.x',
                     format_str='%0.3f',
                     style='readonly'),
                Item('tray_calibration.y',
                     format_str='%0.3f',
                     style='readonly')),
            Item('tray_calibration.rotation',
                 format_str='%0.3f',
                 style='readonly'),
            Item('tray_calibration.scale',
                 format_str='%0.4f',
                 style='readonly'),
            Item('tray_calibration.error',
                 format_str='%0.2f',
                 style='readonly'),
            UItem('tray_calibration.calibrator',
                  style='custom',
                  editor=InstanceEditor()),
            CustomLabel('tray_calibration.calibration_help',
                        color='green',
                        height=75,
                        width=300),
            label='Tray Calibration')

        tgrp = Group(pos_grp, calibration_grp, layout='tabbed')

        egrp = HGroup(
            UItem('enabled_led', editor=LEDEditor()),
            UItem('enable', editor=ButtonEditor(label_value='enable_label')),
            UItem('fire_laser_button', enabled_when='enabled'),
            Item('output_power', label='Power'), UItem('units'), spring,
            icon_button_editor('snapshot_button', 'camera'),
            icon_button_editor('test_connection_button',
                               'connect',
                               tooltip='Test Connection'))
        v = View(VGroup(egrp, tgrp))
        return v
示例#18
0
    def traits_view(self):
        url = CustomLabel('url', label='URL')
        v = View(
            VGroup(url,
                   UItem('selected_device',
                         style='custom')))

        return v
示例#19
0
    def traits_view(self):
        cancel_tt = '''Cancel current run and continue to next run'''
        stop_tt = '''Cancel current run and stop queue'''
        start_tt = '''Start current experiment queue. 
Will continue to next opened queue when completed'''
        truncate_tt = '''Stop the current measurement process and continue to 
the next step in the measurement script'''
        truncate_style_tt = '''Normal= measure_iteration stopped at current step
    script continues
Quick=   measure_iteration stopped at current step
    script continues using abbreviated_count_ratio*counts'''
        end_tt = '''Stop the queue and the end of the current run'''

        schedule_tt = '''Set a scheduled start time'''

        v = View(
            HGroup(
                UItem('alive',
                      editor=LEDEditor(colors=['red', 'green'], radius=30)),
                spacer(-20),
                icon_button_editor('pane.start_button',
                                   'start',
                                   enabled_when='can_start',
                                   tooltip=start_tt),
                icon_button_editor('pane.configure_scheduled_button',
                                   'calendar',
                                   enabled_when='can_start',
                                   tooltip=schedule_tt),
                icon_button_editor('pane.stop_button',
                                   'stop',
                                   enabled_when='not can_start',
                                   tooltip=stop_tt),
                spacer(-20),
                Item('end_at_run_completion',
                     label='Stop at Completion',
                     tooltip=end_tt),
                spacer(-20),
                icon_button_editor(
                    'pane.abort_run_button',
                    'cancel',
                    # enabled_when='can_cancel',
                    tooltip=cancel_tt),
                spacer(-20),
                icon_button_editor('pane.truncate_button',
                                   'lightning',
                                   enabled_when='measuring',
                                   tooltip=truncate_tt),
                UItem('truncate_style',
                      enabled_when='measuring',
                      tooltip=truncate_style_tt),
                UItem('pane.show_conditionals_button'),
                spacer(-75),
                CustomLabel('object.experiment_status.label',
                            color_name='object.experiment_status.color',
                            size=24,
                            weight='bold'),
                spring))
        return v
示例#20
0
 def traits_view(self):
     v = View(CustomLabel('message'),
              Item('username'),
              Item('password'),
              Item('password2', label='Password'),
              kind='modal',
              buttons=['OK', 'Cancel'],
              title='New Account')
     return v
示例#21
0
 def traits_view(self):
     v = View(
         CustomLabel('n', color='blue'),
         UItem('items',
               editor=TabularEditor(
                   editable=False,
                   refresh='refresh_needed',
                   adapter=AnalysisAdapter())))
     return v
def remote_status_item(label=None):
    grp = HGroup(
        Item('remote', label='Name', springy=True), test_connection_item(),
        CustomLabel('_remote_status',
                    width=50,
                    color_name='_remote_status_color'))
    if label:
        grp.label = label
        grp.show_border = True
    return grp
示例#23
0
 def traits_view(self):
     v = View(CustomLabel('help_tag',
                          top_padding=10,
                          left_padding=10,
                          color='maroon'),
              HGroup('x', 'y'),
              buttons=['OK', 'Cancel'],
              kind='modal',
              title='Reference Point')
     return v
示例#24
0
 def traits_view(self):
     v = View(VGroup(VGroup(Item('object.conn_spec.host'),
                            Item('object.conn_spec.port'),
                            Item('object.conn_spec.system_name',
                                 label='Name'),
                            label='Parameters'),
                     UItem('_'),
                     CustomLabel('connection_status',
                                 color_name='connection_color')))
     return v
示例#25
0
    def traits_view(self):
        pigrp = HGroup(UItem('principal_investigator',
                             editor=ComboboxEditor(name='principal_investigators',
                                                   use_filter=False)),
                       icon_button_editor('configure_pi_button', 'cog',
                                          tooltip='Set optional values for Principal Investigator'),

                       icon_button_editor('add_principal_investigator_button', 'add',
                                          enabled_when='principal_investigator',
                                          tooltip='Add a principal investigator'),

                       label='PrincipalInvestigator',
                       show_border=True)

        prgrp = HGroup(UItem('project',
                             # editor=EnumEditor(name='projects')),
                             editor=ComboboxEditor(name='projects', use_filter=False)),
                       UItem('generate_project_button', tooltip='Generate a default name for this project'),
                       UItem('set_optionals_button', tooltip='Set optional values for current project'),
                       icon_button_editor('add_project_button', 'add',
                                          enabled_when='project',
                                          tooltip='Add a project'),
                       enabled_when='project_enabled',
                       label='Project',
                       show_border=True)

        mgrp = HGroup(UItem('material',
                            editor=EnumEditor(name='materials')),
                      # editor=ComboboxEditor(name='materials', use_filter=False)),
                      UItem('grainsize',
                            editor=ComboboxEditor(name='grainsizes', use_filter=False)),
                      # icon_button_editor('add_material_button', 'add',
                      #                    enabled_when='material',
                      #                    tooltip='Add a material'),
                      label='Material',
                      show_border=True)

        sgrp = VGroup(HGroup(UItem('sample'),
                             icon_button_editor('configure_sample_button', 'cog', tooltip='Set additional sample '
                                                                                          'attributes'),
                             icon_button_editor('add_sample_button', 'add',
                                                enabled_when='add_sample_enabled',
                                                tooltip='Add a sample')),
                      VGroup(UItem('note', style='custom'), label='Note', show_border=True),
                      enabled_when='sample_enabled',
                      label='Sample',
                      show_border=True)

        v = View(VGroup(pigrp,
                        prgrp,
                        mgrp,
                        sgrp,
                        CustomLabel('pane.help_str')
                        ))
        return v
示例#26
0
 def traits_view(self):
     grp = Group(Item('server_host', label='Host'),
                 Item('server_username', label='User'),
                 Item('server_password', label='Password'),
                 Item('server_port', label='Port'),
                 HGroup(icon_button_editor('_test_connection_button', 'server-connect'),
                        CustomLabel('_status', color_name='_status_color')),
                 show_border=True,
                 label='Email')
     v = View(grp)
     return v
示例#27
0
 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
示例#28
0
    def traits_view(self):
        preview = CustomLabel('preview',
                              size_name='fontsize',
                              color_name='textcolor',
                              bgcolor_name='bgcolor')

        v = View(
            VGroup(HGroup(UItem('fontsize'), UItem('textcolor'),
                          UItem('bgcolor')),
                   preview,
                   label=self.label))
        return v
 def _cred_group(self):
     g = VGroup(VGroup(Item('username'),
                       Item('password'),
                       show_border=True, label='Basic'),
                VGroup(Item('oauth_token', label='Token'),
                       show_border=True, label='OAuth'),
                HGroup(test_connection_item(),
                       CustomLabel('_remote_status',
                                   width=50,
                                   color_name='_remote_status_color')),
                show_border=True, label='Credentials')
     return g
示例#30
0
 def traits_view(self):
     v = View(
         VGroup(
             HGroup(spring, CustomLabel('plot_title',
                                        weight='bold',
                                        size=14), spring),
             UItem('graphs',
                   editor=ListEditor(use_notebook=True,
                                     selected='selected_graph',
                                     page_name='.page_name'),
                   style='custom')))
     return v