SWIG wrapper/Python2.5c1 problem

2006-08-29 Thread andrew . gregory
If compiling a SWIG wrapper with MinGW 3.2.3 (Windows) get the
following compilation error:

pyprog_wrap.cxx: In function `int
SWIG_Python_ConvertFunctionPtr(PyObject*,
   void**, swig_type_info*)':
pyprog_wrap.cxx:2051: invalid conversion from `const char*' to `char*'

Extract from wrapper:

/* Convert a function ptr value */

SWIGRUNTIME int
SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr,
swig_type_info *ty) {
  if (!PyCFunction_Check(obj)) {
return SWIG_ConvertPtr(obj, ptr, ty, 0);
  } else {
void *vptr = 0;

/* here we get the method pointer for callbacks */
char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);  <--
error occurs here.

This must be caused by a change in Python.h, as there were no problems
with Python 2.3 or 2.4. SWIG version 1.3.29. Used -c++  and -shadow
options.

Can anyone reproduce this?

Andrew.

-- 
http://mail.python.org/mailman/listinfo/python-list


Tix.Balloon crashes in Python 2.61 Windows

2008-12-19 Thread andrew . gregory
I've found that Tix GUI applications crash after switching to Python
2.6.1 (Windows XP) when Balloons are used. IDLE gives this error
message:

Traceback (most recent call last):
  File "D:\PyFiles\InstrumentSetup\Automenu.py", line 217, in 
else: displayedwidget=MainWidget(root, CS)
  File "D:\PyFiles\InstrumentSetup\Automenu.py", line 155, in __init__
b = Tix.Balloon(MyFrame)
  File "C:\Python26\lib\lib-tk\Tix.py", line 529, in __init__
TixWidget.__init__(self, master, 'tixBalloon', static, cnf, kw)
  File "C:\Python26\lib\lib-tk\Tix.py", line 307, in __init__
self.tk.call(widgetName, self._w, *extra)
TclError: unknown color name "{#60}"

A Windows message box came up also. It gave the message:
The exception unknown exception (0x4015) occurred in the
application at location 0x1e03a63b

Perhaps Tix.Balloon has been omitted from the test suite?

I tried searching but cannot see this reported elsewhere. Can anyone
else confirm this behaviour? Where is the best place to report this
bug?  I can supply a script demonstrating the problem.


Andrew.
--
http://mail.python.org/mailman/listinfo/python-list