Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #40915
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'argument': 0.04; 'imports': 0.09; 'objects.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subclasses': 0.09; 'subject:module': 0.09; 'stored': 0.10; 'argument.': 0.16; 'exported': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:accessing': 0.16; 'subject:created': 0.16; 'module': 0.19; 'trying': 0.21; 'help.': 0.22; 'header:User-Agent:1': 0.26; 'coding': 0.27; 'separate': 0.27; 'merge': 0.27; 'header:X -Complaints-To:1': 0.28; 'run': 0.28; '(perhaps': 0.29; 'objects': 0.29; 'window': 0.30; 'function': 0.30; 'file': 0.32; 'launch': 0.32; 'switch': 0.32; 'received:comcast.net': 0.33; 'retain': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'another': 0.33; 'screen': 0.34; 'described': 0.35; 'saved': 0.35; 'skip:: 10': 0.35; 'received:org': 0.36; 'skip:p 20': 0.36; 'execute': 0.37; 'option': 0.37; 'two': 0.37; 'object': 0.38; 'to:addr:python.org': 0.39; 'called': 0.39; 'header:Received:5': 0.40; 'end': 0.40; 'invest': 0.62; 'provide': 0.62; 'different': 0.63; 'email addr:gmail.com': 0.63; 'show': 0.63; 'decided': 0.65; 'header:Reply-To:1': 0.68; 'reply-to:no real name:2**0': 0.72; 'issues:': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Kene Meniru <Kene.Meniru@illom.org> |
| Subject | Running external module and accessing the created objects |
| Followup-To | gmane.comp.python.general |
| Date | Fri, 08 Mar 2013 22:06:28 -0500 |
| Organization | illom.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="ISO-8859-1" |
| Content-Transfer-Encoding | 7Bit |
| X-Gmane-NNTP-Posting-Host | c-68-49-243-100.hsd1.md.comcast.net |
| User-Agent | KNode/4.4.7 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | Kene.Meniru@illom.org |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3110.1362798411.2939.python-list@python.org> (permalink) |
| Lines | 43 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1362798411 news.xs4all.nl 6844 [2001:888:2000:d::a6]:54170 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:40915 |
Followups directed to: gmane.comp.python.general
Show key headers only | View raw
Program summary: I have a module called user.py that imports another module called app.py. Functions in app.py are used in user.py to describe 3D objects. These objects are saved in another object described in doc.py. app.py contains a function called view(). When called in user.py, it signals the end of object descriptions. Presently all objects contained in doc.py are exported to either POV-Ray or OpenSCAD file format depending on the argument given to view(). My Issues: I have decided I want to provide a preview of the objects using opengl (pyglet). So I am trying to create another module called appwin.py which the user can launch with user.py as an argument. When each object is described in user.py, I want the user to be able to switch to appwin.py, provide a signal that makes appwin.py redraw the screen to show any modifications (perhaps with the enter key). I do not want to invest much time with appwin.py now as I am still coding app.py. Right now, appwin.py just subclasses pyglet.window.Window(). I do not want to merge app.py and appwin.py. I want them to be two separate applications because I want to retain the option of either console or many different window interfaces. The problem then is: How can I run appwin.py which will then execute user.py to create the objects to be saved in doc.py. Then when view() is encountered to be able to access the objects stored in doc.py in appwin.py? Any ideas will help. -- Kene :::::::::::::::::: KeMeniru@gmail.com
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Running external module and accessing the created objects Kene Meniru <Kene.Meniru@illom.org> - 2013-03-08 22:06 -0500
Re: Running external module and accessing the created objects Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-09 08:03 +0000
Re: Running external module and accessing the created objects Kene Meniru <Kene.Meniru@illom.org> - 2013-03-09 06:05 -0500
Re: Running external module and accessing the created objects Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-09 11:34 +0000
Re: Running external module and accessing the created objects Chris Angelico <rosuav@gmail.com> - 2013-03-09 22:47 +1100
Re: Running external module and accessing the created objects Dave Angel <davea@davea.name> - 2013-03-09 07:02 -0500
Re: Running external module and accessing the created objects Kene Meniru <Kene.Meniru@illom.org> - 2013-03-09 10:34 -0500
Re: Running external module and accessing the created objects Rick Johnson <rantingrickjohnson@gmail.com> - 2013-03-09 08:51 -0800
Re: Running external module and accessing the created objects Kene Meniru <Kene.Meniru@illom.org> - 2013-03-09 12:21 -0500
Re: Running external module and accessing the created objects Rick Johnson <rantingrickjohnson@gmail.com> - 2013-03-09 10:33 -0800
Re: Running external module and accessing the created objects Dave Angel <davea@davea.name> - 2013-03-09 11:12 -0500
Re: Running external module and accessing the created objects Kene Meniru <Kene.Meniru@illom.org> - 2013-03-09 11:56 -0500
Re: Running external module and accessing the created objects Dave Angel <davea@davea.name> - 2013-03-09 12:20 -0500
Re: Running external module and accessing the created objects Kene Meniru <Kene.Meniru@illom.org> - 2013-03-09 12:39 -0500
Re: Running external module and accessing the created objects Kene Meniru <Kene.Meniru@illom.org> - 2013-03-09 13:18 -0500
Re: Running external module and accessing the created objects Kene Meniru <Kene.Meniru@illom.org> - 2013-03-11 19:57 -0400
Re: Running external module and accessing the created objects Rick Johnson <rantingrickjohnson@gmail.com> - 2013-03-11 23:40 -0700
Re: Running external module and accessing the created objects Dave Angel <davea@davea.name> - 2013-03-11 20:48 -0400
Re: Running external module and accessing the created objects Kene Meniru <Kene.Meniru@illom.org> - 2013-03-11 21:23 -0400
Re: Running external module and accessing the created objects Kene Meniru <Kene.Meniru@illom.org> - 2013-03-11 21:58 -0400
Re: Running external module and accessing the created objects Dave Angel <davea@davea.name> - 2013-03-11 22:16 -0400
Re: Running external module and accessing the created objects Dave Angel <davea@davea.name> - 2013-03-11 22:11 -0400
Re: Running external module and accessing the created objects Michael Torrie <torriem@gmail.com> - 2013-03-11 22:05 -0600
Re: Running external module and accessing the created objects Dave Angel <davea@davea.name> - 2013-03-12 07:20 -0400
Re: Running external module and accessing the created objects Kene Meniru <kemeniru@gmail.com> - 2013-03-12 13:38 +0000
Re: Running external module and accessing the created objects Kene Meniru <kemeniru@gmail.com> - 2013-03-12 13:28 +0000
csiph-web