[PyKDE] qt.qApp, subclassing QApplication

2004-01-15 Thread axel . mittendorf
Hi,
in my application I want to subclass qt.QApplication and 
use this subclass instead of QApplication. Some of my 
modules are automatically generated by pyuic and I am
not allowed to change their source code. The problem
is these modules do from qt import * and use an object
called qApp which seems to be an instance of qt.Application
and I want them to use my subclass (exactly its instance) 
instead of qApp. How can I solve this?

I wondered to overwrite qApp with my instance, does this 
work? Or will qApp be overwritten when a module does
from qt import *?

Can you tell me what qt.App is and what it is used for?
I heared it was an instance of QApplication and I heared 
there can be only one QApplication instance in an application, 
but when I compare my own instance (which I have created in 
my code) with qApp ( app is qApp) the result is false.
So, are app and qApp two independent instances of
QApplication? Could there be more than one?

I pray you can help me;-)

TIA,
Axel

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


[PyKDE] QToolButton

2004-01-15 Thread claude faath
Hello

Here the extract of my code

toolBar = QToolBar(self)
self.fileOpen = QToolButton(QPixmap(fileopen), 'Open File', 'Opens a new 
file', self.open, tollBar, 'Open File')
self.fileSave = QToolButton(QPixmap(filesave), 'Save File', 'Saves current 
file', self.save, tollBar, 'Save file')
self.addToolBar(toolBar, 'Main toolbar')

I have the traceback according to

File qted.py, line 162, in ?
mainWindow = EdMainWindow()
File qted.py, line 84, in __init__
toolBar, 'Open file')
File /usr/lib/python2.3/site-packages/qt.py, line 835, in __init__
libqtc.sipCallCtor(21,self,args)
TypeError:Argument 1 of QToolButton() has an invalid type

My version python 2.3-qt3c102 3.8-2.1 [ debian ]

Suggestions ?

Claude

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


Re: [PyKDE] QToolButton

2004-01-15 Thread Phil Thompson
On Thursday 15 January 2004 1:42 pm, claude faath wrote:
 Hello

 Here the extract of my code

 toolBar = QToolBar(self)
 self.fileOpen = QToolButton(QPixmap(fileopen), 'Open File', 'Opens a new
 file', self.open, tollBar, 'Open File')
 self.fileSave = QToolButton(QPixmap(filesave), 'Save File', 'Saves current
 file', self.save, tollBar, 'Save file')
 self.addToolBar(toolBar, 'Main toolbar')

 I have the traceback according to

 File qted.py, line 162, in ?
 mainWindow = EdMainWindow()
 File qted.py, line 84, in __init__
 toolBar, 'Open file')
 File /usr/lib/python2.3/site-packages/qt.py, line 835, in __init__
 libqtc.sipCallCtor(21,self,args)
 TypeError:Argument 1 of QToolButton() has an invalid type

 My version python 2.3-qt3c102 3.8-2.1 [ debian ]

 Suggestions ?

Post a complete script that demonstrates the problem and say what versions of 
SIP and PyQt you are using.

Phil

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


[PyKDE] build problems.

2004-01-15 Thread Dan Keshet
I'm running debian with standard .debs for all the packages except pyKDE.  
Output below.   Any help would be much appreciated.

Peace,

Dan Keshet


[EMAIL PROTECTED]:~/down/PyKDE-3.8.0$ python build.py -r /usr/lib

Building PyKDE 3.8 on linux2.

Python version is 2.3
Python parent directory is /usr/lib/python2.3
Python library directory is /usr/lib/python2.3/config
Python include directory is /usr/include/python2.3

Home directory is /home/dkesh

sip code generator path (sip) is /usr/bin
sip version is 3.8
sip lib directory (libsip*) is /usr/lib/python2.3/site-packages
sip include directory (sipQt.h) is /usr/include/python2.3

Qt3 parent directory is /usr/lib/qt3
Qt3 lib directory (libqt-mt.so.3) is /usr/lib


An internal error occured.  Review the installation documentation or
report all the output from the program, including the traceback,
to the PyKDE mailing list: [EMAIL PROTECTED]. Thanks.


Traceback (most recent call last):
  File build.py, line 1038, in ?
main (sys.argv)
  File build.py, line 989, in main
dis = Discovery (opts, usingSip, usingQt, usingPyQt, usingKDE, usingPyKDE, 
isPyKDE)
  File build/discover.py, line 483, in __init__
self.discoverQt3 (opts)
  File build/discover.py, line 608, in discoverQt3
self.qtIncl = DiscoverQt3Incl (qglobal.h, [os.path.join (self.qt.path, 
include), qtInclDir])
  File build/discover.py, line 202, in __init__
Discover.__init__ (self, target, searchPath)
  File build/discover.py, line 45, in __init__
self.search (target, searchEntry)
  File build/discover.py, line 58, in search
if os.path.isdir (searchEntry)\
  File /usr/lib/python2.3/posixpath.py, line 187, in isdir
st = os.stat(path)
TypeError: coercing to Unicode: need string or buffer, list found

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


[PyKDE] Mandrake 9.2, version 3.8 PyQt, PyKDE + everything available

2004-01-15 Thread Simon Edwards

Hi all,

I just uploaded a complete set of version 3.8 SIP, PyQt, PyKDE etc RPMs to 
sourceforge. Come get 'em.

https://sourceforge.net/project/showfiles.php?group_id=61057

-- 
Simon Edwards | Guarddog Firewall
[EMAIL PROTECTED]   | http://www.simonzone.com/software/
Nijmegen, The Netherlands | ZooTV? You made the right choice.

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


Re: [PyKDE] ANN: SIP v4.0rc2 Released

2004-01-15 Thread Eron Lloyd
Hi Phil,

Trying to build the newest SIP/PyQt on SUSE 9.0 using Python 2.3.3 and Qt 
3.2.3 gave me trouble. Falling back to SIP/PyQt 3.9 seems to work fine. 
Here's the traceback:

linux:/home/elloyd/Packages/PyQt-x11-gpl-snapshot-20040104 
# /usr/local/bin/python configure.py
Traceback (most recent call last):
  File configure.py, line 56, in ?
opt_qsciincdir = sipcfg.qt_inc_dir
  File /usr/local/lib/python2.3/site-packages/sipconfig.py, line 155, in 
__getattr__
raise AttributeError, \%s\ is not a valid configuration value or user 
option % name
AttributeError: qt_inc_dir is not a valid configuration value or user option

Since I don't really understand the build process of SIP 4 yet I didn't dig 
too deep, but seems to be trying to pull a non-existant attribute from a 
sipconfig.Configuration() instance.

Hope this helps,

Eron

On Monday 12 January 2004 5:30 pm, Phil Thompson wrote:
 SIP v4.0rc2 has been released and is available for download at the usual
 place.

 All known bugs have been fixed (except the one about typedefs in signal
 signatures).

 Please test and let me know of *anything* that doesn't look right.

 Phil

 ___
 PyKDE mailing list[EMAIL PROTECTED]
 http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
 ---
 [This E-mail scanned for viruses by Declude Virus]

-- 
Eron Lloyd
Technology Coordinator
Lancaster County Library
[EMAIL PROTECTED]
Phone: 717-239-2116
Fax: 717-394-3083

---
[This E-mail scanned for viruses by Declude Virus]

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


Re: [PyKDE] ANN: SIP v4.0rc2 Released

2004-01-15 Thread Phil Thompson
On Thursday 15 January 2004 7:33 pm, Eron Lloyd wrote:
 Hi Phil,

 Trying to build the newest SIP/PyQt on SUSE 9.0 using Python 2.3.3 and Qt
 3.2.3 gave me trouble. Falling back to SIP/PyQt 3.9 seems to work fine.
 Here's the traceback:

 linux:/home/elloyd/Packages/PyQt-x11-gpl-snapshot-20040104
 # /usr/local/bin/python configure.py
 Traceback (most recent call last):
   File configure.py, line 56, in ?
 opt_qsciincdir = sipcfg.qt_inc_dir
   File /usr/local/lib/python2.3/site-packages/sipconfig.py, line 155, in
 __getattr__
 raise AttributeError, \%s\ is not a valid configuration value or
 user option % name
 AttributeError: qt_inc_dir is not a valid configuration value or user
 option

 Since I don't really understand the build process of SIP 4 yet I didn't dig
 too deep, but seems to be trying to pull a non-existant attribute from a
 sipconfig.Configuration() instance.

My guess is that SIP was build with Qt support disabled. Was QTDIR set 
properly when you configured and build SIP?

Phil

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


Re: [PyKDE] ANN: SIP v4.0rc2 Released

2004-01-15 Thread Eron Lloyd
Thanks, guess that terminal session wasn't picking up the $QTDIR...

Eron

On Thursday 15 January 2004 3:02 pm, Phil Thompson wrote:
 On Thursday 15 January 2004 7:33 pm, Eron Lloyd wrote:
  Hi Phil,
 
  Trying to build the newest SIP/PyQt on SUSE 9.0 using Python 2.3.3 and Qt
  3.2.3 gave me trouble. Falling back to SIP/PyQt 3.9 seems to work fine.
  Here's the traceback:
 
  linux:/home/elloyd/Packages/PyQt-x11-gpl-snapshot-20040104
  # /usr/local/bin/python configure.py
  Traceback (most recent call last):
File configure.py, line 56, in ?
  opt_qsciincdir = sipcfg.qt_inc_dir
File /usr/local/lib/python2.3/site-packages/sipconfig.py, line 155,
  in __getattr__
  raise AttributeError, \%s\ is not a valid configuration value or
  user option % name
  AttributeError: qt_inc_dir is not a valid configuration value or user
  option
 
  Since I don't really understand the build process of SIP 4 yet I didn't
  dig too deep, but seems to be trying to pull a non-existant attribute
  from a sipconfig.Configuration() instance.

 My guess is that SIP was build with Qt support disabled. Was QTDIR set
 properly when you configured and build SIP?

 Phil

 ___
 PyKDE mailing list[EMAIL PROTECTED]
 http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
 ---
 [This E-mail scanned for viruses by Declude Virus]

-- 
Eron Lloyd
Technology Coordinator
Lancaster County Library
[EMAIL PROTECTED]
Phone: 717-239-2116
Fax: 717-394-3083

---
[This E-mail scanned for viruses by Declude Virus]

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