(self)
Recognizes the current platform and passes information to the respective menu. Creates the actual menu.
Recognizes the current platform and passes information to the respective menu. Creates the actual menu.
Recognizes the current platform and passes information to the respective menu . Creates the actual menu .
def compile(self):
        '''
        Recognizes the current platform and passes information to the respective menu. Creates the actual menu.
        '''
        if platform.system() == 'Linux':
            linux_menus.NautilusMenu(
                self.name, self.sub_items, self.type).compile()
        if platform.system() == 'Windows':
            windows_menus.RegistryMenu(
                self.name, self.sub_items, self.type).compile()
def compile ( self ) : if platform . system ( ) == 'Linux' : linux_menus . NautilusMenu ( self . name , self . sub_items , self . type ) . compile ( ) if platform . system ( ) == 'Windows' : windows_menus . RegistryMenu ( self . name , self . sub_items , self . type ) . compile ( )