How to open two windows?

I create a window , click this window then open the other window. How to implement?
I run below code, display Error “AssertionError: You may not recursively invoke the TaskManager from within a task…”

code:

WindowOne.py

import direct.directbase.DirectStart
from direct.showbase.DirectObject import DirectObject
import WindowTwo
def main():
object = DirectObject()
object.accept(“mouse1”, ClickMouse)
run()

def ClickMouse():
WindowTwo.runWidnow()

if name == “main”:
main()

WindowTwo.py

import direct.directbase.DirectStart

def runWidnow():
run()

You can’t import DirectStart twice. Instead, you should use base.openWindow.