Categories: Python | S60 | Code Examples | How To
This page was last modified 22:33, 7 July 2008.
How to import a variable from a module
From Forum Nokia Wiki
The two line code below shows how to import a variable from a module.
Method 1
import mymodule new_variable=mymodule.x
Method 2
from mymodule import x
or
from mymodule import x as new_variable
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sensor module error? | federico2929 | Python | 20 | 2008-03-10 01:09 |
| help compiling a Python C module | mad77 | Python | 7 | 2008-03-17 06:52 |
| racing condition problem with positioning module | oyuky | Python | 4 | 2008-05-22 08:50 |
| Create Local SMS | ASP-NewBie | General Symbian C++ | 1 | 2008-04-29 10:17 |
| GPS Module LAM-1 | ZeZinh0 | PC Suite API and PC Connectivity SDK | 1 | 2003-03-06 09:44 |
