Jim Bublitz <[EMAIL PROTECTED]> wrote:
>> But I wonder why the following does not work:
>> ptr = sip.unwrapinstance(qt.qApp.mainWidget())
>> mainWindow = sip.wrapinstance(ptr, qt.QMainWindow)
>> Unfortunately mainWindow is still a QWidget.
>
> I'm not sure - my guess is that it's because ptr is al
On Thursday 30 June 2005 5:27 pm, Denis S. Otkidach wrote:
> If I define single enum in module (no other entries constants), then I
> have no enummembers in generated file and it's not exposed in module.
> If I have other (non-anonymous) enums, then adding anonymouse one causes
> segmentation fault
On Thursday 30 June 2005 09:33, Henning Schröder wrote:
> Hi!
>
> Jim Bublitz <[EMAIL PROTECTED]>:
> > [..]
> > wrapinstance and unwrapinstance are covered in the sip docs.
>
> Thanks I will try your C++/Python-mixed solution.
>
> But I wonder why the following does not work:
> ptr = sip.unwr
On Thursday 30 June 2005 16:33, Mike Tammerman wrote:
> Is there a way to instantiate pykde classes using QApplication instead
> KApplication.
You could try, but it would be a very unwise thing to do. The KDE classes
assume that KApplication is around and correctly initialised.
--
Simon Edwards
On Thursday 30 June 2005 04:24, Stephan Hermann wrote:
> Hi,
>
> what are the changes to last snapshot?
>
> Anyway, the changelog is not updated, and it's hard to determine the
> changes at all...
>
> can someone summarize the changes beginning from:
> [EMAIL PROTECTED]:~/kde/pykde$ less
> PyKDE-sn
On Sunday 26 June 2005 3:57 pm, Gerard Vermeulen wrote:
> Here is an example where the sip specification matches exactly the
> corresponding header files:
>
> -- start header file --
> #ifndef V_H
> #define V_H
>
> class A
> {
> public:
> A();
> virtual ~A();
> virtual int getTypeId() =
Hi!
Jim Bublitz <[EMAIL PROTECTED]>:
> [..]
> wrapinstance and unwrapinstance are covered in the sip docs.
Thanks I will try your C++/Python-mixed solution.
But I wonder why the following does not work:
ptr = sip.unwrapinstance(qt.qApp.mainWidget())
mainWindow = sip.wrapinstance(p
If I define single enum in module (no other entries constants), then I
have no enummembers in generated file and it's not exposed in module.
If I have other (non-anonymous) enums, then adding anonymouse one causes
segmentation fault when module is imported:
#0 PyObject_Call (func=0x11, arg=0x314
On Thursday 30 June 2005 10:25 am, Denis S. Otkidach wrote:
> On Wed, 29 Jun 2005 15:59:08 +0100
>
> Phil Thompson <[EMAIL PROTECTED]> wrote:
> > > sip command passes without error, but I have an error when linking:
> > > $OFILES in Makefile contains sipMyModuleMyException.o, while there is
> > > n
Mostly it creates a segfault, the basic one is
---
from qt import *
from kdeprint import *
import sys
a = QApplication(sys.argv)
KPrinter()
---
Mike
On 6/30/05, Andreas Pakulat <[EMAIL PROTECTED]> wrote:
> On 30.Jun 2005 - 17:33:34, Mike Tammerman wrote:
> > Is there a way to instantiate pykde
On Thursday 30 June 2005 2:10 pm, Ulrich Berning wrote:
> Using QTimer.singleShot() causes a segmentation fault with
> sip-snapshot-20050626 and sip-snapshot-20050629.
> With sip-snapshot-20050623, it worked. See the example code below.
Will be fixed in tonight's SIP snapshot.
Thanks,
Phil
_
On 30.Jun 2005 - 17:33:34, Mike Tammerman wrote:
> Is there a way to instantiate pykde classes using QApplication instead
> KApplication.
I think so, at least most. For instance KMainWindow is derived from
QMainWindow and thus it should be possible to use
QApplication.setMainWidget
Instead of K
Is there a way to instantiate pykde classes using QApplication instead
KApplication.
Thanks.
Mike
___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Ulrich Berning schrieb:
Using QTimer.singleShot() causes a segmentation fault with
sip-snapshot-20050626 and sip-snapshot-20050629.
With sip-snapshot-20050623, it worked. See the example code below.
Ulli
Oops, mozilla has shuffled the whitespaces a little bit, I hope you can
still read the
Using QTimer.singleShot() causes a segmentation fault with
sip-snapshot-20050626 and sip-snapshot-20050629.
With sip-snapshot-20050623, it worked. See the example code below.
Ulli
import sys
from qt import *
class MyWidget(QWidget):
def __init__(self,parent=None,name="",fl
On Thursday 30 June 2005 12:34 pm, Giovanni Bajo wrote:
> Phil Thompson <[EMAIL PROTECTED]> wrote:
> >>> ignoring the extra reference to wrappers of objects owned by C++.
> >>
> >> Thanks, I just verified that this fixes my problem!
> >
> > I've had to back this out - it's the wrong fix and breaks
Phil Thompson <[EMAIL PROTECTED]> wrote:
>>> ignoring the extra reference to wrappers of objects owned by C++.
>>
>> Thanks, I just verified that this fixes my problem!
> I've had to back this out - it's the wrong fix and breaks other things.
Okie dokie. Is a different fix planned?
--
Giovanni
Hi,
what are the changes to last snapshot?
Anyway, the changelog is not updated, and it's hard to determine the
changes at all...
can someone summarize the changes beginning from:
[EMAIL PROTECTED]:~/kde/pykde$ less
PyKDE-snapshot20050628/ChangeLog
2004/08/25 16:44:00 jim
Released 3.11.3; a
On Wed, 29 Jun 2005 15:59:08 +0100
Phil Thompson <[EMAIL PROTECTED]> wrote:
> > sip command passes without error, but I have an error when linking:
> > $OFILES in Makefile contains sipMyModuleMyException.o, while there is no
> > corresponding .cpp file generated.
> >
> > BTW, when I use throw spec
On Thursday 30 June 2005 1:16 am, Henning Schröder wrote:
> Hi!
>
> Scribus is a free DTP application which is coded in C++ and Qt and
> provides scripting
> with Python.
> A Python script can import the qt module and access the data from the
> running application as far as it is reachable with the
20 matches
Mail list logo