[python-win32] assigning vb properties from python via COM?
Gregory P. Smith
greg@electricrain.com
Mon, 16 Apr 2001 20:29:26 -0700
On Tue, Apr 17, 2001 at 12:21:41PM +1000, Mark Hammond wrote:
> > form.CellText(index, col, "hello") leads to an
> > "expected 3 arguments, got 4" error.
> >
> > Any tips other than writing more "code" in VB?
>
> Try form.SetCellText(index, col)
>
> form.CellText(index, col) should be able to get the value.
Hmm.. I just tried this and it didn't work (there was no SetCellText
method so it raised an AttributeError). The control I'm using is a
SftTree/OCX [a 3rd party widget] and doesn't appear to have that
method. Oh well, computing and returning a list of tuples to VB for
it to loop over and fill in the control is working.
-G
--
Gregory P. Smith gnupg/pgp: http://electricrain.com/greg/keys/
C379 1F92 3703 52C9 87C4 BE58 6CDA DB87 105D 9163