Exemplo n.º 1
0
 def traits_view(self):
     v = View(
         VGroup(Item('check_on_startup',
                     label='Check for updates at startup'),
                VGroup(remote_status_item(),
                       Item('use_tag', label='Use Production'),
                       Item('version_tag',
                            editor=EnumEditor(name='_tags'),
                            enabled_when='use_tag'),
                       Item('branch',
                            editor=EnumEditor(name='_branches'),
                            enabled_when='not use_tag',
                            label='Branch'),
                       HGroup(icon_button_editor(
                           'checkout_branch_button',
                           'bricks',
                           tooltip='Checkout selected branch'),
                              icon_button_editor('pull_button',
                                                 'arrow_down',
                                                 tooltip='Update Branch'),
                              enabled_when='not use_tag'),
                       show_border=True,
                       label='Update Repo'),
                label='Update',
                show_border=True))
     return v
Exemplo n.º 2
0
    def traits_view(self):
        # root_grp = VGroup(Item('root_dir', label='Pychron Directory'),
        #                   show_border=True, label='Root')
        user_grp = VGroup(Item('username',
                               editor=ComboboxEditor(name='_usernames'),
                               label='Name'),
                          show_border=True, label='User')
        env_grp = VGroup(Item('environment', label='Directory'),
                         show_border=True, label='Environment')

        # login_grp = VGroup(Item('use_login', label='Use Login'),
        #                    Item('multi_user', label='Multi User'),
        #                    label='Login', show_border=True)

        o_grp = VGroup(Item('organization', resizable=True, label='Name'),
                       remote_status_item('Laboratory Repo'),
                       show_border=True,
                       label='Organization')

        v = View(VGroup(Item('confirm_quit', label='Confirm Quit',
                             tooltip='Ask user for confirmation when quitting application'),
                        Item('show_random_tip', label='Random Tip',
                             tooltip='Display a Random Tip whe the application starts'),
                        Item('default_principal_investigator', resizable=True, label='Default PI'),
                        # Item('use_advanced_ui', label='Advanced UI',
                        #      tooltip='Display the advanced UI'),
                        # root_grp,
                        # login_grp,
                        user_grp,
                        env_grp,
                        o_grp,
                        label='General',
                        show_border=True))
        return v
Exemplo n.º 3
0
    def traits_view(self):
        root_grp = VGroup(Item("root_dir", label="Pychron Directory"), show_border=True, label="Root")
        login_grp = VGroup(
            Item("use_login", label="Use Login"),
            Item("multi_user", label="Multi User"),
            label="Login",
            show_border=True,
        )

        o_grp = VGroup(
            Item("organization", label="Name"),
            remote_status_item("Laboratory Repo"),
            show_border=True,
            label="Organization",
        )

        v = View(
            VGroup(
                Item(
                    "confirm_quit", label="Confirm Quit", tooltip="Ask user for confirmation when quitting application"
                ),
                Item("show_random_tip", label="Random Tip", tooltip="Display a Random Tip whe the application starts"),
                Item("default_principal_investigator", label="Default PI"),
                # Item('use_advanced_ui', label='Advanced UI',
                #      tooltip='Display the advanced UI'),
                root_grp,
                login_grp,
                o_grp,
                label="General",
                show_border=True,
            )
        )
        return v
Exemplo n.º 4
0
    def traits_view(self):
        root_grp = VGroup(Item('root_dir', label='Pychron Directory'),
                          show_border=True, label='Root')
        login_grp = VGroup(Item('use_login', label='Use Login'),
                           Item('multi_user', label='Multi User'),
                           label='Login', show_border=True)

        o_grp = VGroup(Item('organization', label='Name'),
                       remote_status_item('Laboratory Repo'),
                       show_border=True,
                       label='Organization')

        v = View(VGroup(Item('confirm_quit', label='Confirm Quit',
                             tooltip='Ask user for confirmation when quitting application'),
                        Item('show_random_tip', label='Random Tip',
                             tooltip='Display a Random Tip whe the application starts'),
                        Item('default_principal_investigator', label='Default PI'),
                        # Item('use_advanced_ui', label='Advanced UI',
                        #      tooltip='Display the advanced UI'),
                        root_grp,
                        login_grp,
                        o_grp,
                        label='General',
                        show_border=True))
        return v
Exemplo n.º 5
0
 def traits_view(self):
     v = View(VGroup(Item('check_on_startup',
                          label='Check for updates at startup'),
                     VGroup(remote_status_item(),
                            Item('branch', editor=EnumEditor(name='_branches'),
                                 label='Branch'),
                            show_border=True,
                            label='Update Repo'),
                     label='Update',
                     show_border=True))
     return v
Exemplo n.º 6
0
    def traits_view(self):
        prefix_grp = VGroup(Item('use_name_prefix'),
                            Item('name_prefix', enabled_when='use_name_prefix'),
                            show_border=True, label='Prefix')

        git_grp = VGroup(Item('use_git_repo'),
                         remote_status_item('Script Repo'),
                         show_border=True, label='Git')
        v = View(VGroup(Item('auto_detab'),
                        prefix_grp, git_grp))

        return v
Exemplo n.º 7
0
 def traits_view(self):
     v = View(
         VGroup(Item('check_on_startup',
                     label='Check for updates at startup'),
                VGroup(remote_status_item(),
                       Item('branch',
                            editor=EnumEditor(name='_branches'),
                            label='Branch'),
                       show_border=True,
                       label='Update Repo'),
                label='Update',
                show_border=True))
     return v
Exemplo n.º 8
0
    def traits_view(self):
        prefix_grp = VGroup(Item('use_name_prefix'),
                            Item('name_prefix',
                                 enabled_when='use_name_prefix'),
                            show_border=True,
                            label='Prefix')

        git_grp = VGroup(Item('use_git_repo'),
                         remote_status_item('Script Repo'),
                         show_border=True,
                         label='Git')
        v = View(VGroup(Item('auto_detab'), prefix_grp, git_grp))

        return v
Exemplo n.º 9
0
 def traits_view(self):
     v = View(VGroup(Item('check_on_startup',
                          label='Check for updates at startup'),
                     VGroup(remote_status_item(),
                            Item('use_tag', label='Use Production'),
                            Item('version_tag', editor=EnumEditor(name='_tags'),
                                 enabled_when='use_tag'),
                            Item('branch', editor=EnumEditor(name='_branches'),
                                 enabled_when='not use_tag',
                                 label='Branch'),
                            HGroup(icon_button_editor('checkout_branch_button', 'bricks',
                                                      tooltip='Checkout selected branch'),
                                   icon_button_editor('pull_button', 'arrow_down',
                                                      tooltip='Update Branch'),
                                   enabled_when='not use_tag'),
                            show_border=True,
                            label='Update Repo'),
                     label='Update',
                     show_border=True))
     return v
Exemplo n.º 10
0
    def traits_view(self):
        root_grp = VGroup(Item('root_dir', label='Pychron Directory'),
                          show_border=True, label='Root')
        login_grp = VGroup(Item('use_login'), Item('multi_user'),
                           label='Login', show_border=True)

        o_grp = VGroup(Item('organization', label='Name'),
                       remote_status_item('Laboratory Repo'),
                       show_border=True,
                       label='Organization')

        v = View(VGroup(Item('confirm_quit', label='Confirm Quit',
                             tooltip='Ask user for confirmation when quitting application'),
                        Item('show_random_tip', label='Random Tip',
                             tooltip='Display a Random Tip whe the application starts'),
                        # Item('use_advanced_ui', label='Advanced UI',
                        #      tooltip='Display the advanced UI'),
                        root_grp,
                        login_grp,
                        o_grp,
                        label='General',
                        show_border=True))
        return v
Exemplo n.º 11
0
    def traits_view(self):
        v = View(remote_status_item('LabBook Repo'))

        return v
Exemplo n.º 12
0
    def traits_view(self):
        v = View(remote_status_item('LabBook Repo'))

        return v