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


Groups > comp.lang.python > #36033

Can't seem to start on this

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!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.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'linear': 0.07; 'python': 0.09; '"a"': 0.09; 'imported': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'gui': 0.11; '"b"': 0.16; '"d",': 0.16; 'guessing': 0.16; 'instantiate': 0.16; 'length,': 0.16; 'parameters,': 0.16; 'possible?': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:start': 0.16; 'typing': 0.17; 'variables': 0.17; 'creates': 0.18; 'module': 0.19; 'import': 0.21; 'error.': 0.21; 'help.': 0.22; 'example': 0.23; 'allows': 0.25; 'header:User-Agent:1': 0.26; 'separate': 0.27; 'header:X-Complaints-To:1': 0.28; 'run': 0.28; 'classes': 0.30; 'file': 0.32; 'received:comcast.net': 0.33; 'to:addr:python- list': 0.33; 'likely': 0.33; 'another': 0.33; 'there': 0.35; 'received:org': 0.36; 'but': 0.36; 'modules': 0.36; 'being': 0.37; 'mark': 0.38; 'object': 0.38; 'skip:l 20': 0.38; 'to:addr:python.org': 0.39; 'called': 0.39; 'header:Received:5': 0.40; 'most': 0.61; 'places': 0.61; 'provide': 0.62; 'started.': 0.65; 'header:Reply-To:1': 0.68; 'sounds': 0.71; 'reply-to:no real name:2**0': 0.72; 'manner': 0.74; 'subject:this': 0.84; 'etc,': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Kene Meniru <Kene.Meniru@illom.org>
Subject Can't seem to start on this
Followup-To gmane.comp.python.general
Date Wed, 02 Jan 2013 23:32:33 -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-69-143-75-245.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.16.1357187576.2939.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1357187576 news.xs4all.nl 6871 [2001:888:2000:d::a6]:44409
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:36033

Followups directed to: gmane.comp.python.general

Show key headers only | View raw


This sounds so simple but being new to python I am finding it hard to get 
started. I want to create a module which I will call "B". There will be 
other modules called "C", "D", etc, which will most likely be imported in 
"B". Then I want the user to import "B" ONLY into another file I will call 
"A" in which commands such as the following will be entered:

snap_size = 10
LinearMark(name)
LinearMark.put(name, length, rotation, (x,y,z))

The file "A" allows the user to enter commands that provide global variables 
as well as to use classes provided in modules "C", "D", etc, in the manner 
shown in the sample above. For example snap_size is a global setting. 
LinearMark(name) creates a linear mark of the provided name. 
LinearMark.put(...) places the LinearMark object using the provided 
parameters, etc.

How can I make this possible? I am guessing I have to instantiate the 
classes in file "B" but typing LinearMark(name) in file "A" generates an 
error. Eventually I will provide a gui but I want to separate usage so there 
is no dependence on the gui to run this application.

Please help.

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


Thread

Can't seem to start on this Kene Meniru <Kene.Meniru@illom.org> - 2013-01-02 23:32 -0500

csiph-web