Hi,
I need to re-write a VB script into Python (because I really don't like
VB).
The VB script is used to create a Windows COM object.
(I am more of Unix guy, so COM objects are a little bit alien for me).
At a certain point in the VB script, I have the following line:
objPolTypes = objPmad.Cvar
Thanks guys,
It is starting to make much more sense. Most documentation I find about
OO is very academic
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I just started with Python and I am new to OO programming.
Here is a simple code:
"
class Obj:
myVar = 1
def __init__(self):
myVar = 2
#
myObj = Obj()
print myObj.myVar
"
The output is of this script is '1'. I would except it to be '2'.
I not understanding
Hi,
I have a question about wxPython.
On Windows systems, you can point your mouse over most items on your
desktop and a after a second or so, a small window will pop-up with
extra info about the thing your pointing at (try e.g. move your mouse
over the time in the right corner and a window will p
Hi,
is it possible to use SAX to parse XML that is not in a file but in a
large string?
If I open my XML file and read the content into a string variable. Is
there a way I can pass it to the PyXML Sax handler?
The reason I want to know is that I need to parse XML that is generated
by a process on
Already thanks for the reply,
but how to write your own copy operator? Won't you always be passing
referrences to new_obj?
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I am new to Python and OO programming.
I need to copy a Python object (of a class I made myself).
new_obj = old_object doesn't seem to work since apparently new_obj is
then a referrence to old_obj.
I found out that there is a module called 'copy' that allows you to do
a shallow or a deep copy
Hi,
I just installed py2exe to create a binary of my Python script.
However, py2exe does not seem to create a binary from my .py script.
This is what I have done:
I create a setup.py script:
"
# setup.py
from distutils.core import setup
import py2exe
setup(name="APP1", scripts=["C:\\Python24\\_AP
Hi,
it is possible to change the font (bold, underline, italic) in the text
used in a wxTreeCtrl?
I looked in the wxPython demo but I can't find anything.
Any help much appreciated.
Kris
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for the feedback!
I will certainly look at the elementtree stuff (I am new to Python so I
still need to find my way around)
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I need to read a simle XML file. For this I use the SAX parser. So far
so good.
The XML file consist out of number of "Service" object with each object
a set of attributes.
I read through the XML file and for each "" entry I create a
new service object.
When I am in the "" part of the XML fil
Fredrik Lundh schreef:
> [EMAIL PROTECTED] wrote:
>
> > I think I ran into a bug in the XML SAX parser.
> >
> > part of my program consist of reading a rather large XML file (about
> > 10Mb) containing a few thousand elements.
> > I have the following problem. Sometimes that SAX parses misreads a
Hi,
I think I ran into a bug in the XML SAX parser.
part of my program consist of reading a rather large XML file (about
10Mb) containing a few thousand elements.
I have the following problem. Sometimes that SAX parses misreads a
line.
Let me explain: the XML file contains a few thousand lines li
Hi,
the properties of the items are just virtual properties like e.g.
color, icon, gender.
Just image that an item represent a human. You can then click on the
item and start a 'Set Human Properties' windows (a frame with a
Notebook object with multiple tabs).
In the 'Set Human Properties' window
Hi,
I am writing a program in Python and I am using wx.Python for the GUI.
I have no prior GUI and Python experience so that's why I turn to the
specialists for aid.
Basically, my app is a wx.tree object with items. You can click on each
item and set some properties of the item (Pydata). To set th
Thanks Claudio! This really really made my day. I have been searching
for the problem for hours! Thanks again.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have included a small listing. The test program opens a panel and
show a bitmap.
What I want is to when the mouse is over the bitmap panel, I want to
trap the left mouse click.
The purpose is to get the position of the mouse pointer on the bitmap.
However, for some reason, the left (I also t
Hi,
I want to display a window containing an image and when I move the
mouse over the image and click on the left Mb, I want to get the
position of the mouse on the image.
I listed the code to view the image below (so far so good) but for some
reason the EVT_LEFT_DOWN/UP does not work.
Any idea w
Hi,
I have encountered an annoying problem with wx.Choice from wx.Python.
Basically, what I want to do is create a drop down box with a set of
choices (so far so good). The problem is that when the drop down box is
created, the first entry in the list of the drop down box is empty and
you need to
Thanks for the feedback! It is a very good idea to use dictionaries. I
will try to implemented it this way.
Thanks,
Kris
Andrea Griffini schreef:
> On 7 Jun 2005 12:14:45 -0700, [EMAIL PROTECTED] wrote:
>
> >I am writing a Python program that needs to read XML files and contruct
> >a tree objec
Hi,
I am writing a Python program that needs to read XML files and contruct
a tree object from the XML file (using wxTree).
The XML however is not an hiearchical XML file. It contains
and tags. The tags link the elements
together.
Example:
... element 1 attributes
... element 2 attribute
21 matches
Mail list logo