Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #40964

Re: Running external module and accessing the created objects

From Kene Meniru <Kene.Meniru@illom.org>
Subject Re: Running external module and accessing the created objects
Followup-To gmane.comp.python.general
Date 2013-03-09 13:18 -0500
Organization illom.org
References (2 earlier) <khfkqq$o09$1@ger.gmane.org> <513B5F88.9060002@davea.name> <khfpke$1mb$1@ger.gmane.org> <513B6F73.5010909@davea.name> <khfs4v$mau$1@ger.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.3137.1362853118.2939.python-list@python.org> (permalink)

Followups directed to: gmane.comp.python.general

Show all headers | View raw


Kene Meniru wrote:

> Dave Angel wrote:

>> If you really want two processes, then you should consider having the
>> user run the the graphic app, with a commandline parameter of user.py,
>> and have it create the user.py process.  The user.py process runs till
>> it has created all the data, then sends it via some ipc to the graphic
>> app.  Once sent, it terminates.  The graphic app reads the ipc stuff,
>> updates its graphics, then idles, watching for timestamp changes on the
>> user.py file.
>> 
> 
> This sounds interesting. What is ipc. Can you give me an example?


Actually there is a possible simple solution consistent with the way my 
program works already. 

I can just provide another exporter for OpenGL that pyglet.window.Window()  
subclass will be able to read. So I will provide another parameter for OGL 
so the user can use view(OGL). When the user.py script is run, all objects 
in doc are converted and exported to a file that the graphics window is 
watching. The contents will then be used to update the view. So this means 
that the user or the graphics window object can run "python user.py" it no 
longer matters how.

Thanks for your comments. 

-- 

Kene
::::::::::::::::::
KeMeniru@gmail.com

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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