Re: [PyKDE] Problem resolving widget's class

2004-11-02 Thread Fredrik Juhlin
On Tuesday 02 November 2004 18.37, David Boddie wrote: > On Tue Nov 2 16:34 2004, Fredrik Juhlin wrote: > > On Tuesday 02 November 2004 16.07, David Boddie wrote: > > > > That's weird. I can run it for some time without getting an error. > > > > Do you get an error such as this: > > label label_tes

Re: [PyKDE] Porting Tux

2004-11-02 Thread Dennis Schaaf
I tried replacing self with 0 and app.parent, all without luck. i hope you guys can point me somewhere because i've been stuck here for almost a week ... dennis On Tue, 2 Nov 2004 15:45:17 -0800, Dennis Schaaf <[EMAIL PROTECTED]> wrote: > The way I understand it "self" is the MoveMe object, whi

[PyKDE] question about sip wrapping of PyObject

2004-11-02 Thread Tony Willis
Hi I am trying to extend Paul Kunz' HippoDraw package so that it can work efficiently inside a larger python script that makes extensive use of PyQt and thus of the sip environment. At present in order to store data internally inside the sip-wrapped version of HippoDraw I have to go from numarray

Re: [PyKDE] Porting Tux

2004-11-02 Thread Dennis Schaaf
The way I understand it "self" is the MoveMe object, which is a QWidget, why doesn't that work as an instance for the first argument? I put this def __init__(self, name, args): apply(QWidget.__init__, (self,None, None, args)) which resolved that error, but now I get an error that

Re: [PyKDE] Complete newbie mac question...

2004-11-02 Thread Phil Thompson
On Monday 01 November 2004 9:21 pm, Timothy Grant wrote: > ...That is probably off-topic, but I'm going to ask here anyway. > > When I try and build sip on OS/X I get the following error. > > Error: This version of Qt seems to use tmake but the TMAKEPATH environment > is not set. > > My search has

Re: [PyKDE] Porting Tux

2004-11-02 Thread Phil Thompson
On Tuesday 02 November 2004 4:46 pm, Dennis Schaaf wrote: > Hi, > > Just for experimentation purposes, I'm porting the tux ( > http://webcvs.kde.org/cgi-bin/cvsweb.cgi/qt-copy/examples/tux/tux.cpp?rev=1 >.2) program over to python. > > The problem I have when doing this though is that QWidget will

[PyKDE] displaying text vertically

2004-11-02 Thread Mike Kinton
I have been trying to display some text vertically both on a button and in QCanvas without success.  Is there any way of doing this? This email and any files transmitted with it are confidential and intended solel

Re: [PyKDE] Problem resolving widget's class

2004-11-02 Thread David Boddie
On Tue Nov 2 16:34 2004, Fredrik Juhlin wrote: > On Tuesday 02 November 2004 16.07, David Boddie wrote: > That's weird. I can run it for some time without getting an error. > > Do you get an error such as this: > label label_test_17 (<__main__.qt.QWidget object at 0x400970ec>) isn't a > Q

[PyKDE] Porting Tux

2004-11-02 Thread Dennis Schaaf
Hi, Just for experimentation purposes, I'm porting the tux ( http://webcvs.kde.org/cgi-bin/cvsweb.cgi/qt-copy/examples/tux/tux.cpp?rev=1.2) program over to python. The problem I have when doing this though is that QWidget will not take the last argument I give it. In the original project, the fir

[PyKDE] QMainWindow and paintEvent

2004-11-02 Thread gianlum
Hello. I am writing an application that need to draw some lines. With the qt-designer, I create a QMainWindow as main window and all the other widget. As the documentation said, to draw into a Canvas (or all other widgets) I must redefine the paintEvent method. All work good, but when I must

Re: [PyKDE] Problem resolving widget's class

2004-11-02 Thread Fredrik Juhlin
On Tuesday 02 November 2004 16.07, David Boddie wrote: > I ran the test program that you posted in another message > (http://mats.imk.fraunhofer.de/pipermail/pykde/2004-November/008977.html) > and found that it always crashed the second time I clicked the update > button. That's weird. I can run it

Re: [PyKDE] Problem resolving widget's class

2004-11-02 Thread David Boddie
[Sorry if this appears twice: webmail and character encoding issues...] On Tue, 2 Nov 2004 13:22:28, Fredrik Juhlin wrote: >On Monday 01 November 2004 19.30, David Boddie wrote: >> >> This sounds a lot like the problems you can experience when embedding >> Python in C++ applications throug

Re: [PyKDE] Problem resolving widget's class

2004-11-02 Thread Fredrik Juhlin
Hi, In an attempt to show that I am not on drugs, I put together some test code to prove that the problem actually exists :) Unpack the tar.gz file attached to this mail and run the script "test.py". It's a simple app that contains of a push button that when you push it creates a form from tes

Re: [PyKDE] Problem resolving widget's class

2004-11-02 Thread Fredrik Juhlin
On Monday 01 November 2004 19.30, David Boddie wrote: > > Fredrik Juhlin wrote: > > > From what we can tell though, it only happens to widgets that comes > > > from "C++ land", so to speak. That is, widgets that are created by > > > QWidgetFactory, the listbox you get when calling QComboBox.listBox

Re: [PyKDE] Problem resolving widget's class

2004-11-02 Thread Fredrik Juhlin
On Monday 01 November 2004 17.08, Phil Thompson wrote: > > Hi, > > > > We're having some difficult-to-reproduce problems with SIP/PyQt. At > > times, widgets don't have their right class, i.e. a widget we know to be > > a QLabel, > > QHeader etc. is instead just a QWidget, which of course breaks co

[PyKDE] loading a numarray into QPixmap

2004-11-02 Thread Solly Brown
Hi people, Does anyone know how I can convert the data in my 2D numarray into a QImage or QPixmap format? (That is, without iterating over all the elements of the array and slowly reading each element into the QImage pixel by pixel). If not, it would be a very handy function to incorporate some

Re: [PyKDE] Complete newbie mac question...

2004-11-02 Thread jul
Try to find where tmake is; maybe something like /usr/local/qt-x11-free-3.3.2/tmake Then set you'r environment variable: $ export TMAKEPATH=/usr/local/qt-x11-free-3.3.2/tmake and retry! ++ Jul. Timothy Grant wrote: ...That is probably off-topic, but I'm going to ask here anyway. When I try and bu