from .menu import Menu, MenuError
del menu


from .menu import Menu, MenuError
del menu

def new_dmenu(**kwargs):
    from .dmenu import DMenu
    return DMenu(**kwargs)

def new_rofi(**kwargs):
    from .rofi import Rofi
    return Rofi(**kwargs)


Add factory functions for dmenu and rofi in root dynmen file
Add factory functions for dmenu and rofi in root dynmen file

  from .menu import Menu, MenuError
  del menu
  
+ def new_dmenu(**kwargs):
+     from .dmenu import DMenu
+     return DMenu(**kwargs)
  
+ def new_rofi(**kwargs):
+     from .rofi import Rofi
+     return Rofi(**kwargs)
+ 
+ 
Add factory functions for dmenu and rofi in root dynmen file
## Code Before:
from .menu import Menu, MenuError
del menu


## Instruction:
Add factory functions for dmenu and rofi in root dynmen file
## Code After:
from .menu import Menu, MenuError
del menu

def new_dmenu(**kwargs):
    from .dmenu import DMenu
    return DMenu(**kwargs)

def new_rofi(**kwargs):
    from .rofi import Rofi
    return Rofi(**kwargs)

