Hi,
Does anybody know of a good widget for wxpython, gtk, etc. that allows
the editing of block diagrams and make it easy to export the diagram as
a digraph? It has to be available under Windows. I want the user to
draw a series of blocks on a canvas, connect them with directional
arrows, and the
Hi All,
I'm having a problem with Stani's Python Editor (SPE) that I'm hoping
somebody has run into before. If I create a simple hello world
program:
print "hello"
and try and run it in winpdb via the SPE command ALT-F9, the program
does not launch and the following results (It's at the bottom):
I checked and it is. I can't use news servers at work b/c of the
firewall. Is there another way to access this mailing list?
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'm trying to build the basic boost.python tutorial that comes with the
distribution. I'm using bjam and mingw. It builds the module, but
upon import, it gives this error:
ImportError: dynamic module does not define init function (inithello)
I've found other threads with this problem as a t
Ok, but it seems to be working exactly as I need it to right now under
win32. I'll try it on linux. Can you suggest an alternative method?
Or suggest when this won't work?
Thanks,
-Justin
--
http://mail.python.org/mailman/listinfo/python-list
Ok, I figured it out. Thanks for your help guys. If anybody else is
searching this group looking for the answer, you want the
sys._getframe() function.
sys._getframe(1).f_locals['a'] = 1
if you put the above in a function in a module, it creates a variable
'a' in the namespace of whatever calls
Steve,
I think I actually need to get the caller's local namespace. How do I
do that using sys? I read the documentation and can't find anything
specific. For example, if I have module A and it imports module B, I
want module B to add variables to A's global namespace. Python has to
store this
Hi again,
Steve-
I'm trying to use python to model reliability. Basically, I want to
read an XML file in that defines a bunch of variables, that are then
accessible from the python interpreter. For example:
import reliability
reliability.read_xml("c:\\somefile.xml") #<== defines x1, x2, x3
resu
Hi,
I have a scope related question that I haven't been able to find an
answer to anywhere. Is there a way to have a function in an imported
module add variables to the scope of the calling script? Basically,
can I have the following:
#root.py
import some_module.py
some_module.afunction() # <==