Replies: 2 comments 3 replies
-
|
I'll test when I'm back home next week. The docs say it should work. Note, that error message doesn't come from PyRx, have you tried it on another platform? |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
works for me from pyrx import Ap, Db, Ed, Ge
@Ap.Command()
def doit():
try:
Ed.Editor.initGet(0, "Yes No")
ps, _, _, _, _ = Ed.Editor.nEntSelP("\nSelect or [Y/N]: ")
if ps == Ed.PromptStatus.eKeyword:
print(Ed.Editor.getInput())
except Exception as err:
print(err)
@Ap.Command()
def doit2():
try:
Ed.Editor.initGet(0, "Woohoo")
ps, _, _, _, _ = Ed.Editor.nEntSelP("\nSelect or [Woohoo]: ")
if ps == Ed.PromptStatus.eKeyword:
print(Ed.Editor.getInput())
except Exception as err:
print(err) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is this expected behavior? The Autolisp equivalent accepts keywords.
Beta Was this translation helpful? Give feedback.
All reactions