Re: Please Explain This Error
Rich Shepard <[email protected]>
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 3 Nov 2006, Liam Clarke wrote: > Please forward a copy of policyPage.py. Liam, I've gone around this error by moving the two database functions (open and close) into a separate module/class. Since that class is now imported by all the other modules that need database access, I'm trying to learn how to make a variable defined in one module -- the name of the database file -- visible to the functions in the new module. This variable -- projname -- is local to the wxPthon text entry function, global to the MainFrame class, and not a built-in variable. Therefore, it is not visible to the openDB() and closeDB() functions in a completely separate module. I'm trying to learn the python equivalent of C's 'extern' declaration modifier. Thanks, Rich -- Richard B. Shepard, Ph.D. | The Environmental Permitting Applied Ecosystem Services, Inc.(TM) | Accelerator <http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863