18 lines
299 B
Python
18 lines
299 B
Python
import os
|
|
import phoenix as px
|
|
|
|
|
|
os.environ['PHOENIX_HOST'] = "0.0.0.0"
|
|
|
|
session = px.launch_app(use_temp_dir=False)
|
|
|
|
import msvcrt
|
|
|
|
def wait_for_keypress():
|
|
print("Press any key to continue...")
|
|
msvcrt.getch() # 等待按键
|
|
print("\nKey pressed!")
|
|
|
|
wait_for_keypress()
|
|
|
|
px.close_app() |