0

IMPORT PYTHON MODULES

can anyone tell me how to import py modules such as Tkinter, Curses, turtel etc. in this app?

24th Nov 2019, 12:28 PM
RaHulk YT
RaHulk YT - avatar
7 Réponses
+ 4
You ca do it with: import <module name> If you get an error message, the desired module is not available or can not be used.
24th Nov 2019, 1:16 PM
Lothar
Lothar - avatar
+ 4
RaHulk YT, did you try to import tkinter within SL or on a local python installation with also a local IDE?
24th Nov 2019, 5:33 PM
Lothar
Lothar - avatar
+ 3
ok, you can try to find out, if the required modules are installed on your installation. Just go to the python console and type : help(modules) #---> then hit Return this will list all modules, the most are coming with the basic python installation, the others are from individual installation with python pip.
24th Nov 2019, 6:59 PM
Lothar
Lothar - avatar
+ 1
i got an error message when i use Tkinter, that means that modules can't use here?
24th Nov 2019, 1:18 PM
RaHulk YT
RaHulk YT - avatar
+ 1
If tkinter gives you an error, you probably either are importing with the wrong name or you don't have it installed. I once ran across some problems because when I installed python it didn't install tkinter. Maybe look for a solution to that at stack overflow, it sure helped me. I hope you can find the answer!
24th Nov 2019, 5:27 PM
Gonçalo Magalhaes
Gonçalo Magalhaes - avatar
+ 1
i try import from another IDE, bcz i don't know how to do that in SL
24th Nov 2019, 6:11 PM
RaHulk YT
RaHulk YT - avatar
+ 1
thanks for your help bro :)
25th Nov 2019, 3:06 AM
RaHulk YT
RaHulk YT - avatar