Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #40955
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <davea@davea.name> |
| 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; 'that?': 0.05; 'exit': 0.07; 'ok.': 0.07; 'python': 0.09; 'components.': 0.09; 'imported': 0.09; 'subject:module': 0.09; 'system?': 0.09; 'stored': 0.10; 'programs.': 0.11; '"from': 0.16; 'coordinates': 0.16; 'exported': 0.16; 'mean,': 0.16; 'modules,': 0.16; 'subject:accessing': 0.16; 'subject:created': 0.16; 'wrote:': 0.17; 'module,': 0.17; 'script.': 0.17; 'creates': 0.18; 'app': 0.19; 'module': 0.19; 'changes': 0.20; 'import': 0.21; 'doc': 0.22; 'parse': 0.22; 'runs': 0.22; 'user.': 0.23; 'external': 0.24; 'script': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'looks': 0.26; 'am,': 0.27; 'components': 0.27; 'run': 0.28; 'app.': 0.29; 'dictionary': 0.29; 'objects': 0.29; 'framework': 0.30; 'window': 0.30; 'writes': 0.30; 'function': 0.30; 'located': 0.31; 'code': 0.31; 'file': 0.32; 'could': 0.32; 'clarify': 0.33; 'defining': 0.33; 'done,': 0.33; 'much.': 0.33; 'point,': 0.33; 'right?': 0.33; 'to:addr:python-list': 0.33; "can't": 0.34; 'done': 0.34; 'described': 0.35; 'saved': 0.35; 'open': 0.35; 'doing': 0.35; 'something': 0.35; 'there': 0.35; 'created': 0.36; 'but': 0.36; 'thank': 0.36; 'possible': 0.37; 'does': 0.37; 'being': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'mean': 0.38; 'object': 0.38; 'nothing': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'called': 0.39; 'where': 0.40; 'received:192.168': 0.40; 'further': 0.61; 'free': 0.61; 'export': 0.62; 'provide': 0.62; 'series': 0.63; 'received:74.208': 0.71; 'rendering': 0.71; 'confusion.': 0.84; 'intervention': 0.84; 'presumably': 0.84; 'received:74.208.4.194': 0.84; 'those?': 0.84; 'watches': 0.84; 'controller': 0.91 |
| Date | Sat, 09 Mar 2013 11:12:56 -0500 |
| From | Dave Angel <davea@davea.name> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130221 Thunderbird/17.0.3 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Running external module and accessing the created objects |
| References | <mailman.3110.1362798411.2939.python-list@python.org> <513aecd3$0$6512$c3e8da3$5496439d@news.astraweb.com> <khfkqq$o09$1@ger.gmane.org> |
| In-Reply-To | <khfkqq$o09$1@ger.gmane.org> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Provags-ID | V02:K0:FppiahAjMgly1bvUlBMBrO5Hq96xwLna46QmEJ+uGQH AGpK1gMlu6QvGX/alMQfZWw8VTHSVKJvYJrl8v7Tp77+UqGjIr Zz07zuv2GAr2RBluhFo4x27BZYXDo4lkzfjfr97DkDoKCrctJR McBGGudnzeQ570pCxbbl3IKQbh/YxqzG+T+gtHzlU5teliIvuG izNh+2zCX0GudQqEMzL/T2T+xOPe70XbZ/7CwjlGCR9ixhmMqN pjeKZqVdNh676UfVlTz3UwTZ5/kDjltfFxUDyBW2bcZ1bqkRPu D97j0G3YfjTMfdMRLeiEkbFYaD0UQPaRn5yI6E/L8oZ8S34DA= = |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| 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.3131.1362845598.2939.python-list@python.org> (permalink) |
| Lines | 77 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1362845598 news.xs4all.nl 6972 [2001:888:2000:d::a6]:41196 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:40955 |
Show key headers only | View raw
On 03/09/2013 10:34 AM, Kene Meniru wrote:
> OK. Sorry to have caused all the confusion. Let me try this again.
>
Thank you very much. This is much clearer, though it's not all here.
> To use my program the user needs a script file I will call user.py.
> Functions from my program must be imported into this file with
> something like "from myapp import *".
And does the user run this script by doing
python user.py
>
> myapp.py is a module in my program that has all the functions that the
> user needs to describe building components. There is also a main
> controller object that is imported into myapp.py module called app.
>
> When python parses user.py module,
You presumably mean, "When Python runs the script user.py"
> the functions the user has provided
> creates building components which are then saved in a dictionary
> located in an object called doc that is part of my program.
What program is that? Looks to me like you're writing a series of
modules, a framework perhaps, that is invoked by the user script.
>
> The user is free to use the functions in myapp.py to describe building
> components. When this process is complete or when the user wants to
> view their work-in-progress, they have to place a function called
> view() on the last line in user.py.
Don't you mean the code in user.py has to *call* the function app.view()
when they're all done with defining the components? That has nothing to
do with being the last line.
> This function currently exports
You mean writes files into the file system?
> the components into POV-Ray or OpenSCAD format. These are CAD programs
> that read script files to render or create images of the described
> artifacts. So this means that to view their work the user needs to run
> python on user.py to export the building and then run POV-Ray or
> OpenSCAD on the exported file to see the building.
At that point, the user.py script has completed, and Python is done, right?
>
> I want to make it possible for the user to preview the building
> components without having to use the external rendering programs. I
> can currently have the app object provide this preview but it means
> that the user will have to process user.py with python then exit the
> graphic window each time they need to see changes.
What changes are those? You can't change a script while it's executing.
Could you clarify this so I can rethink the following paragraph?
>
> So the solution I am looking for is to have a graphic window open that
> watches user.py for changes. If there is a change the graphic window
> updates the rendition of the created components without further
> intervention by the user. However this means that the graphic must
> somehow run python to parse user.py and then be able to access the
> objects stored in doc so that the coordinates can be used to update
> the view. This is where I am having difficulty.
>
> I hope this is clearer.
>
--
DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | 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