>
> Here's a crude example that may do something like what you were
> originally trying to do:
Yes. Thats pretty much exactly what I want to do only in a
QButtonGroup. I would also like to be able to change the number of
columns as well. For one series of buttons a 2 x 3 grid may be what I
wan
James,
I'll keep looking at it :)
Keep in mind that I'm very much a Python/C API novice.
SIP is especially new to me.
If you have complete examples (and aren't
proprietary), they would be greatly appreciated.
Thanks for taking the time to answer my posts!
Cheers,
Niac
--- James Emerton <
Jim,
You are helping me greatly!!!
I know how to **call** a C++ object from Python ...
just not how to **pass** the object from C++ to
Python.
So, how would I pass the following C++ object,
cPlotData, to Python?
struct sVec2
{
int x;
int y;
};
class cPlotData
{
public:
int GetSize() {
I am in the process of instrumenting a large C++ API with hooks that
allow plugins to handle specific events. This is simply a
sophistication of the snippet that I sent you.
The principle is to create an abstract base class in C++ and implement
the concrete class in Python. You need to handle th
On Thursday 19 May 2005 12:49, Niac Neb wrote:
> Jim,
>
> Thanks for the detailed response!
> I believe I do need to call SIP (maybe just Python)
> from C++. I have an existing C++ application that I'm
> trying to add Python plotting capabilities to. I need
> to spawn these plot utilities ... te
No, I'm using the qt enums. I checked, these are still ints in pyqt.
Again, I did not change the code (which worked), I only updated the platform.
;-(
Martin.
On Thursday 19 May 2005 21:27, John Ridley wrote:
> --- Martin Wiechert wrote:
> > Using standard python shell without iqt makes no diffe
--- Richard Smith <[EMAIL PROTECTED]> wrote:
> Ahhh.. Ok I see. Yeah thats a much better way. I just had my head
> around it wrong.
> I don't know that I'm going to be able to fully determine _all_ the
> various permutations possible and have that number of groupboxes
> handy
> but I should be a
Jim,
Thanks for the detailed response!
I believe I do need to call SIP (maybe just Python)
from C++. I have an existing C++ application that I'm
trying to add Python plotting capabilities to. I need
to spawn these plot utilities ... telling them where
to get the plot data ... then closing them
--- Martin Wiechert wrote:
> Using standard python shell without iqt makes no difference.
> [iqt allows to use qt without having to set up an event loop, very
> handy for interactive sessions.]
Okay, so I just remembered that there is an overloaded version of
QMessageBox.question et al. It uses c
> > seperate pyQtforum or perhaps trying to have a pyQt forum on
> > Qtforum.org created?
>
> There is already a wiki up and running:
>
> http://www.diotavelli.net/PyQtWiki/FrontPage
I see that. I was just a day too early on my post. *grin*
> The only problem I have with the wiki right now i
Hi,
On Thursday 19 May 2005 08:49, Richard Smith wrote:
> I've been looking at a lot of stuff on Qtforum.org. Lots of stuff
> there. Does anyone think there would be any interest in either a
> seperate pyQtforum or perhaps trying to have a pyQt forum on
> Qtforum.org created?
There is already
On Thursday 19 May 2005 07:26, Niac Neb wrote:
> James,
>
> I'm assuming you don't have an example of calling
> Python from C++. Your previous post indicated you'd
> done this numerous times. The code snippet pretty
> much left me hanging.
>
> The folks at Riverbank indicated that SIP didn't even
Hi John,
Using standard python shell without iqt makes no difference.
[iqt allows to use qt without having to set up an event loop, very handy for
interactive sessions.]
Martin.
On Thursday 19 May 2005 19:26, John Ridley wrote:
> --- Martin Wiechert wrote:
> > Thanks for your reply. Well, as I
Hi,
On Saturday 14 May 2005 11:05, Stefan Behnel wrote:
> I don't read this list, so I don't know if this message will get through and
I
> will not receive replies to the list...
>
> I just wanted to mention that I wrote a decorator for specifying the
> signal/slot signature of a function or met
Hi,
On Thursday 19 May 2005 01:16, Niac Neb wrote:
> Where might I find complete examples? Is there a WIKI
> or site where developers have posted their examples?
There is a wiki here:
http://www.diotavelli.net/PyQtWiki/FrontPage
cheers,
--
Simon Edwards | Guarddog Firewall
[EMAIL
--- Martin Wiechert wrote:
> Thanks for your reply. Well, as I said I, had the same behaviour, as
> reported
> by you and the docs, before I updated my system, but now it changed:
>
>
> IPython 0.6.11 -- An enhanced Interactive Python.
> ? -> Introduction to IPython's features.
> %magic
> When subclassing QIODevice, I noticed (with a look at qiodevice.sip) that
> readBlock method must return a tuple with a string. I would expect this
> method to return a string. But my knowledge of sip/PyQt is not enough to
> say
> if it is a bug or not.
It's not a bug - it returns a tuple of the
> Hi!
>
> Could you add me to you SIP mailing list?
At the moment there isn't a separate SIP mailing list - just use this one.
Phil
___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
When subclassing QIODevice, I noticed (with a look at qiodevice.sip) that
readBlock method must return a tuple with a string. I would expect this
method to return a string. But my knowledge of sip/PyQt is not enough to say
if it is a bug or not.
PyQT version: 3.14.1
sip version: 4.2.1
If you n
Hi!
I don't read this list, so I don't know if this message will get through and I
will not receive replies to the list...
I just wanted to mention that I wrote a decorator for specifying the
signal/slot signature of a function or method. Code and usage are pretty
simple, see
http://www.diotavell
Hi!Could you add me to you SIP mailing list?thanks! -- The Lee-Man "Blinded by the science." -- Thomas Dolby ___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
M. Danu F. Kusmana schrieb:
> Hi guys Im new. How to set things up so eric can use all the bin files
> from python24/bin directory?
>
> thanx
Hi Danu,
google about setting the PATH enviromnent variable on Windows.
greetings
Torsten
- --
Torsten M
James,
I'm assuming you don't have an example of calling
Python from C++. Your previous post indicated you'd
done this numerous times. The code snippet pretty
much left me hanging.
The folks at Riverbank indicated that SIP didn't even
facilitate this capability.
Perhaps more tutorials/WIKI wil
Thanks for your reply. Well, as I said I, had the same behaviour, as reported
by you and the docs, before I updated my system, but now it changed:
IPython 0.6.11 -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % fun
24 matches
Mail list logo