ui/AppWindow.py
def add_admin_menu(self):
        """
        Add the admin menu for observation modification/deletion
        """
        main_menu = self.menuBar()
        options_menu = main_menu.addMenu('&Options')

        admin_mode_action = QAction('Admin Mode', options_menu, checkable=True)

        def set_admin_mode(val):
            if val:
                QMessageBox.warning(self, 'Entering Admin Mode', 'WARNING: You are now entering administrator mode. This mode allows modification and deletion of observations within VARS.')
            self.admin_mode = val

        admin_mode_action.toggled.connect(set_admin_mode)
        options_menu.addAction(admin_mode_action)

        Add the admin menu for observation modification/deletion
        
Add the admin menu for observation modification/deletion
Add the admin menu for observation modification / deletion
def add_admin_menu(self):
        main_menu = self.menuBar()
        options_menu = main_menu.addMenu('&Options')
        admin_mode_action = QAction('Admin Mode', options_menu, checkable=True)
        def set_admin_mode(val):
            if val:
                QMessageBox.warning(self, 'Entering Admin Mode', 'WARNING: You are now entering administrator mode. This mode allows modification and deletion of observations within VARS.')
            self.admin_mode = val
        admin_mode_action.toggled.connect(set_admin_mode)
        options_menu.addAction(admin_mode_action)
def add_admin_menu ( self ) : main_menu = self . menuBar ( ) options_menu = main_menu . addMenu ( '&Options' ) admin_mode_action = QAction ( 'Admin Mode' , options_menu , checkable = True ) def set_admin_mode ( val ) : if val : QMessageBox . warning ( self , 'Entering Admin Mode' , 'WARNING: You are now entering administrator mode. This mode allows modification and deletion of observations within VARS.' ) self . admin_mode = val admin_mode_action . toggled . connect ( set_admin_mode ) options_menu . addAction ( admin_mode_action )
Add the admin menu for observation modification/deletion
Add the admin menu for observation modification / deletion
"""
        Add the admin menu for observation modification/deletion
        """
self