-
-
Notifications
You must be signed in to change notification settings - Fork 605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example script_executor #1240
Comments
It works fine for me (Mac with Python 3.11). What OS are you on? And is there any console log output? |
What do you see if you run |
We use |
I change python3 to python ,it works ui.button("python hello.py", on_click=lambda: run_command("python hello.py")).props(
"no-caps"
)
ui.button("python slow.py", on_click=lambda: run_command("python slow.py")).props(
"no-caps"
) |
That's great. It seems we can not rely on the existence of |
I just ran these examples to see how it looks , and haven't looked throuth its code, this kind of bug is not actually a bug |
True. But it is very inconvenient. I would love to see it fixed. |
I'd vote for leaving it as it is. It is just an example and a look into the code would have unveiled the issue. |
I'm using python3.11.4,but I didnot install the python2,so I didn't need to use python3,I didn't notice that this is why it didn't work, |
@rodja What about @v479038280 Could you check if this works on your machine? The code would look like this: ui.button('./hello.py', on_click=lambda: run_command('./hello.py')).props('no-caps')
ui.button('./slow.py', on_click=lambda: run_command('./slow.py')).props('no-caps')
with ui.row().classes('items-center'):
ui.button('./hello.py "<message>"', on_click=lambda: run_command(f'./hello.py "{message.value}"')).props('no-caps')
message = ui.input('message', value='NiceGUI') |
and the console output. not a valid Win32 application (不是有效的 Win32 应用程序) I'm using WIN10 64 PROFESSIONAL |
Description
It seems that the example does not work
I'm using Python 3.11.4
The text was updated successfully, but these errors were encountered: