How to add Pause instruction to GUI program from Python- Printable Version +- RoboDK Forum (//www.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN) + - - -论坛:通用RoboDK问题(//www.sinclairbody.com/forum/Forum-General-questions-about-RoboDK) +--- Thread: How to add Pause instruction to GUI program from Python (/Thread-How-to-add-Pause-instruction-to-GUI-program-from-Python) |
How to add Pause instruction to GUI program from Python-dunderMethods-11-25-2022 Hey, I'm trying to add a Pause instruction to a program in the RDK GUI using Python. for example, in python I can run the following line and an empty program will appear in the RDK GUI Tree
Code:
prog = RDK.AddProgram('NewProg')
How can I use Python to add a Pause command to NewProg so that it appears under NewProg with the hour glass icon as if I had added the Pause using the RDK GUI? 再保险:How to add Pause instruction to GUI program from Python-Sam-11-25-2022 prog.Pause(1000) will add a pause of 1 second. More info here://www.sinclairbody.com/doc/en/PythonAPI/robodk.html#robodk.robolink.Item.Pause |