[PyKDE] PyQt / SIP v4 Snapshots for MacOS/X

2003-10-21 Thread Phil Thompson
I am now creating MacOS/X specific snapshots for PyQT and SIP v4 in the usual 
place. The current snapshots may even build out of the box - feedback please.

Phil

___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


Re: [PyKDE] PyQt / SIP v4 Snapshots for MacOS/X

2003-10-21 Thread Ricardo Javier Cardenes Medina
On Tue, Oct 21, 2003 at 09:26:30AM +0100, Phil Thompson wrote:
 I am now creating MacOS/X specific snapshots for PyQT and SIP v4 in the usual 
 place. The current snapshots may even build out of the box - feedback please.
 

Building out of the box, sip builds fine, PyQt doesn't. At build.py:

 elif sys.platform == win32:
 plattag = WS_WIN
+elif sys.platform == darwin:
+plattag = WS_MACX
 else:
 plattag = WS_X11

Then, when generating qt modules files, I get:

  sip: WId is undefined

That's weird. The only references to WId are from qpixmap.sip and
qwidget.sip (qwindowdefs_qws.sip too, but that's out of scope). Both
those files are included into qtmod.sip after qwindowdefs.sip, which
#include's qwindowdefs.h. From a simple:

  inc.cc:
  #include qwindowdefs.h

I can see that WId is being defined:

  bifrost@/tmp$ c++ -E -I/usr/local/qt/include inc.cc  | grep WId
  typedef int WId;

So I don't know what's happening.

___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


Re: [PyKDE] PyQt / SIP v4 Snapshots for MacOS/X

2003-10-21 Thread Phil Thompson
On Tuesday 21 October 2003 11:10 am, Ricardo Javier Cardenes Medina wrote:
 On Tue, Oct 21, 2003 at 09:26:30AM +0100, Phil Thompson wrote:
  I am now creating MacOS/X specific snapshots for PyQT and SIP v4 in the
  usual place. The current snapshots may even build out of the box -
  feedback please.

 Building out of the box, sip builds fine, PyQt doesn't. At build.py:

  elif sys.platform == win32:
  plattag = WS_WIN
 +elif sys.platform == darwin:
 +plattag = WS_MACX
  else:
  plattag = WS_X11

 Then, when generating qt modules files, I get:

   sip: WId is undefined

 That's weird. The only references to WId are from qpixmap.sip and
 qwidget.sip (qwindowdefs_qws.sip too, but that's out of scope). Both
 those files are included into qtmod.sip after qwindowdefs.sip, which
 #include's qwindowdefs.h. From a simple:

   inc.cc:
   #include qwindowdefs.h

 I can see that WId is being defined:

   bifrost@/tmp$ c++ -E -I/usr/local/qt/include inc.cc  | grep WId
   typedef int WId;

 So I don't know what's happening.

It's a bug in my manufacturing process. Add...

typedef int Wid;

...to qwindowdefs_mac.sip

Phil

___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


Re: [PyKDE] PyQt / SIP v4 Snapshots for MacOS/X

2003-10-21 Thread Phil Thompson
On Tuesday 21 October 2003 1:43 pm, Ricardo Javier Cardenes Medina wrote:
 On Tue, Oct 21, 2003 at 12:02:58PM +0100, Phil Thompson wrote:
  It's a bug in my manufacturing process. Add...
 
  typedef int Wid;
 
  ...to qwindowdefs_mac.sip

 typedef int WId;

 did it. Now it complains about not having Qt::HANDLE defined. I tried to
 mimic _qws and added:

  typedef void * HANDLE;

 (checked qnamespace.h before to ensure that was the right definition),
 but that didn't help.

Put typedef void *HANDLE in the Qt class in qnamespace.sip.

Phil

___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


Re: [PyKDE] PyQt / SIP v4 Snapshots for MacOS/X

2003-10-21 Thread Ricardo Javier Cardenes Medina
On Tue, Oct 21, 2003 at 02:05:27PM +0100, Phil Thompson wrote:
 Put typedef void *HANDLE in the Qt class in qnamespace.sip.
 

Stupid me... Ok. It's building right now. More news in a while.

___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


Re: [PyKDE] PyQt / SIP v4 Snapshots for MacOS/X

2003-10-21 Thread Rune Hansen
Latest(?) sip and pyqt for Mac OS X . Build is fine with a few warnings.
Load time from qt import * is reduced by 1 second. It now takes 7 
seconds on a 867mhz 12 PB.

So far I've noticed two things that may be bugs..perhaps in qt-mac-free 
3.1.2/3.2.2?
 1)
self.MeerKatTable = QTable(self.tab,MeerKatTable)
if self.MeerKatTable.item(i,0).isChecked():
AttributeError: isChecked

2)
Dialog opened with : fl= Qt.WStyle_StaysOnTop+Qt.WDestructiveClose
QWhatsThis are displayed behind dialog window.
regards

/rune

On tirsdag, okt 21, 2003, at 18:39 Europe/Oslo, Phil Thompson wrote:

On Tuesday 21 October 2003 5:15 pm, Ricardo Javier Cardenes Medina 
wrote:
On Tue, Oct 21, 2003 at 02:05:27PM +0100, Phil Thompson wrote:
Put typedef void *HANDLE in the Qt class in qnamespace.sip.
Ok... Now, the problems:

  $ python canvas.py
  Traceback (most recent call last):
File canvas.py, line 4, in ?
  from qt import *
  ImportError: No module named qt
I tried to import libsip and others but:
import libsip
  Traceback (most recent call last):
File stdin, line 1, in ?
  ImportError: Loaded module does not contain symbol _initlibsip
You need to rename all the .so files so that they don't start with 
lib, ie.
qt.so etc.

Phil

___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde