RoboDK Forum
Python Tkinter- Printable Version

+- RoboDK Forum (//m.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//m.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//m.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: Python Tkinter (/Thread-Python-Tkinter)



Python Tkinter-Domagoj Jurendic-05-03-2021

Hi, im creating a robotic station simulation in RoboDK using python -Robot_feed.py, i have also made a tkinter GUI app GUI.py, which i wanted to use to set the parameters of simulation.
I wanted to start RDK from the GUI, and import the RDK python script in an external python code(tkinter app, GUI.py), but as soon as i do that i get the message: no module named robolink


RE: Python Tkinter-Albert-05-03-2021

Since you are running Python from outside RoboDK you should install the RoboDK API for Python:

Code:
pip install robodk

More information here:
https://pypi.org/project/robodk/


RE: Python Tkinter-Domagoj Jurendic-05-04-2021

(05-03-2021, 10:25 PM)Albert Wrote:Since you are running Python from outside RoboDK you should install the RoboDK API for Python:

Code:
pip install robodk

More information here:
https://pypi.org/project/robodk/

Hi,
thanks for the fast reply. I have already done that, but i realized then that i cant run the tkinter file from vscode, but from the command shell, then it works.
Thanks again


RE: Python Tkinter-Albert-05-04-2021

你可能是混合Pyth的不同版本on.

In VSCode, on the bottom left, you can select the Python version you want to use.