[PyKDE] KABC::ResourceFile oversight

2006-01-26 Thread Jim Bublitz
I posted yesterday that resourcefile.h was missing from the kdelibs tarball - that isn't correct. It's been relocated to the kabc/plugins/file subdirectory, which I hadn't checked. There are other KABC::Resource subclasses (see the subdirs under kabc/plugins). I don't intend to add those to Py

[PyKDE] automatic slots and subclassing

2006-01-26 Thread Andreas Pakulat
Hi, another thing I found with automatic slots: It seems they do not work when subclassing: class parentWidget(QtGui.QWidget): def __init__(self): QtGui.QWidget.__init__(self) def on_pushButton_clicked(self, checked = None): print "tst" class myWid

[PyKDE] [pyQT] qiconview segmentation fault

2006-01-26 Thread piotr maliński
I have a problem with qiconview - I use it to list files and folders. The path to list is taken from 1) lineedit and 2) via clicks on folders from the qiconview. The first one works, the second one ends with segmentation fault. the slot function looks like this: def

Re: [PyKDE] Problems with auto-connect and QAbstractButton.clicked()

2006-01-26 Thread Phil Thompson
On Thursday 26 January 2006 5:38 pm, Andreas Pakulat wrote: > On 26.01.06 17:12:15, Phil Thompson wrote: > > On Thursday 26 January 2006 3:49 pm, Andreas Pakulat wrote: > > > Hi, > > > > > > I have 2 problems with QAbstractButton.clicked and auto-connection: > > > > > > 1. the auto-connected slot g

Re: [PyKDE] Problems with auto-connect and QAbstractButton.clicked()

2006-01-26 Thread Andreas Pakulat
On 26.01.06 17:12:15, Phil Thompson wrote: > On Thursday 26 January 2006 3:49 pm, Andreas Pakulat wrote: > > Hi, > > > > I have 2 problems with QAbstractButton.clicked and auto-connection: > > > > 1. the auto-connected slot gets called twice, I have no idea why > > Because the signal is emitted tw

Re: [PyKDE] Problems with auto-connect and QAbstractButton.clicked()

2006-01-26 Thread Phil Thompson
On Thursday 26 January 2006 3:49 pm, Andreas Pakulat wrote: > Hi, > > I have 2 problems with QAbstractButton.clicked and auto-connection: > > 1. the auto-connected slot gets called twice, I have no idea why Because the signal is emitted twice, once with no argument and once with a bool argument.

[PyKDE] New Signal/Slot Implementation

2006-01-26 Thread Phil Thompson
Tonight's SIP and PyQt snapshots will have revised support for signals and slots. This is just a warning that it's a fairly fundamental change and there might be outstanding issues. The reason for the change is to support queued and inter-thread connections in PyQt4 - which seem to work now. T

[PyKDE] Problems with auto-connect and QAbstractButton.clicked()

2006-01-26 Thread Andreas Pakulat
Hi, I have 2 problems with QAbstractButton.clicked and auto-connection: 1. the auto-connected slot gets called twice, I have no idea why 2. according to Qt4 docs clicked has a boolean argument which I cannot use with the autoconnected slot. The attached files include a minimal example. Andreas

Re: [PyKDE] [PyQt4] QDate.toString(QtCore.Qt.TextDate) is not UTF-8

2006-01-26 Thread Ismail Donmez
Per 26 Oca 2006 16:27 tarihinde, Phil Thompson şunları yazmıştı: > On Thursday 26 January 2006 1:44 pm, Ismail Donmez wrote: > > Per 26 Oca 2006 15:35 tarihinde, Phil Thompson şunları yazmıştı: > > > On Thursday 26 January 2006 1:10 pm, Ismail Donmez wrote: > > > > Per 26 Oca 2006 11:29 tarihinde,

Re: [PyKDE] PyQt4 QStringList (again)

2006-01-26 Thread Phil Thompson
On Thursday 26 January 2006 2:01 pm, Doug Bell wrote: > Hi, > > I didn't get any replies to my earlier message about QStringList in > PyQt4, but maybe it wasn't clear. So I'll try again. > > In the example programs, QStringLists are created using stream > operators: > >s = QtCore.QStringList()

Re: [PyKDE] [PyQt4] QDate.toString(QtCore.Qt.TextDate) is not UTF-8

2006-01-26 Thread Phil Thompson
On Thursday 26 January 2006 1:44 pm, Ismail Donmez wrote: > Per 26 Oca 2006 15:35 tarihinde, Phil Thompson şunları yazmıştı: > > On Thursday 26 January 2006 1:10 pm, Ismail Donmez wrote: > > > Per 26 Oca 2006 11:29 tarihinde, Andreas Pakulat şunları yazmıştı: > > > > On 26.01.06 03:15:54, Ismail Do

[PyKDE] PyQt4 QStringList (again)

2006-01-26 Thread Doug Bell
Hi, I didn't get any replies to my earlier message about QStringList in PyQt4, but maybe it wasn't clear. So I'll try again. In the example programs, QStringLists are created using stream operators: s = QtCore.QStringList() s << 'String 1' << 'String 2' This method works, but it isn't ve

Re: [PyKDE] [PyQt4] QDate.toString(QtCore.Qt.TextDate) is not UTF-8

2006-01-26 Thread Ismail Donmez
Per 26 Oca 2006 15:35 tarihinde, Phil Thompson şunları yazmıştı: > On Thursday 26 January 2006 1:10 pm, Ismail Donmez wrote: > > Per 26 Oca 2006 11:29 tarihinde, Andreas Pakulat şunları yazmıştı: > > > On 26.01.06 03:15:54, Ismail Donmez wrote: > > > > I am doing something like this QStatusBar.sho

Re: [PyKDE] [PyQt4] QDate.toString(QtCore.Qt.TextDate) is not UTF-8

2006-01-26 Thread Phil Thompson
On Thursday 26 January 2006 1:10 pm, Ismail Donmez wrote: > Per 26 Oca 2006 11:29 tarihinde, Andreas Pakulat şunları yazmıştı: > > On 26.01.06 03:15:54, Ismail Donmez wrote: > > > I am doing something like this QStatusBar.showMessage("Foo - %s" % > > > QDate.toString(QtCore.Qt.TextDate)) > > > > Do

Re: [PyKDE] [PyQt4] QDate.toString(QtCore.Qt.TextDate) is not UTF-8

2006-01-26 Thread Ismail Donmez
Per 26 Oca 2006 11:29 tarihinde, Andreas Pakulat şunları yazmıştı: > On 26.01.06 03:15:54, Ismail Donmez wrote: > > I am doing something like this QStatusBar.showMessage("Foo - %s" % > > QDate.toString(QtCore.Qt.TextDate)) > > Does it work with: > > QStatusBar.showMessage(QtCore.QString("Foo - > %

Re: [PyKDE] Installing eric3 on Ubuntu

2006-01-26 Thread Stephan Hermann
Hi, On Thursday 26 January 2006 10:46, Fabio Spelta wrote: > > > On synaptic, use eric package and not eric3 package > > I miss something. I installed everything you wrote, but I get: > Traceback (most recent call last): > File "/usr/lib/python2.4/site-packages/eric/eric3.py", line 15, in ? >

Re: [PyKDE] Installing eric3 on Ubuntu

2006-01-26 Thread leau2001
Stephan Hermann a écrit : On Thursday 26 January 2006 09:42, leau2001 wrote: Package needed with synaptic — python2.4-qt3 — python2.4-qtext — python2.4-sip4.qt3 — pyqt-tools — python2.4-qt3-gl (to use l’OpenGL) — qt3-designer — qt3-assistant — qt3-dev-tools — qt3-doc — qt3-examples — qt3-li

Re: [PyKDE] Installing eric3 on Ubuntu

2006-01-26 Thread leau2001
Fabio Spelta a écrit : On synaptic, use eric package and not eric3 package I miss something. I installed everything you wrote, but I get: Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/eric/eric3.py", line 15, in ? from qt import QTextCodec, SIGNAL, SLOT,

Re: [PyKDE] eric3 Configuration option for pyuic4 [was: Configuration for pyuic4]

2006-01-26 Thread Detlev Offenbach
Am Donnerstag, 26. Januar 2006 10:49 schrieb Andreas Pakulat: > On 26.01.06 10:15:44, Detlev Offenbach wrote: > > Am Mittwoch, 25. Januar 2006 19:42 schrieb Andreas Pakulat: > > > On 25.01.06 19:22:17, Andreas Pakulat wrote: > > > > I'm currently looking for some options to tweak pyuic4's behaviour

Re: [PyKDE] eric3 Configuration option for pyuic4 [was: Configuration for pyuic4]

2006-01-26 Thread Andreas Pakulat
On 26.01.06 10:15:44, Detlev Offenbach wrote: > Am Mittwoch, 25. Januar 2006 19:42 schrieb Andreas Pakulat: > > On 25.01.06 19:22:17, Andreas Pakulat wrote: > > > I'm currently looking for some options to tweak pyuic4's behaviour. In > > > particular I'd like to > > > > > > a) change the generated

Re: [PyKDE] Installing eric3 on Ubuntu

2006-01-26 Thread Fabio Spelta
> > On synaptic, use eric package and not eric3 package I miss something. I installed everything you wrote, but I get: Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/eric/eric3.py", line 15, in ? from qt import QTextCodec, SIGNAL, SLOT, qApp ImportError: cannot imp

Re: [PyKDE] [PyQt4] QDate.toString(QtCore.Qt.TextDate) is not UTF-8

2006-01-26 Thread Andreas Pakulat
On 26.01.06 03:15:54, Ismail Donmez wrote: > I am doing something like this QStatusBar.showMessage("Foo - %s" % > QDate.toString(QtCore.Qt.TextDate)) Does it work with: QStatusBar.showMessage(QtCore.QString("Foo - %1").arg(QDate.toString(QtCore.Qt.QTextDate))) ? I suspect that the %-replacement

Re: [PyKDE] eric3 Configuration option for pyuic4 [was: Configuration for pyuic4]

2006-01-26 Thread Detlev Offenbach
Am Mittwoch, 25. Januar 2006 19:42 schrieb Andreas Pakulat: > On 25.01.06 19:22:17, Andreas Pakulat wrote: > > I'm currently looking for some options to tweak pyuic4's behaviour. In > > particular I'd like to > > > > a) change the generated filename That is not possible. Eric3 basically mimics the

Re: [PyKDE] Installing eric3 on Ubuntu

2006-01-26 Thread Stephan Hermann
On Thursday 26 January 2006 09:42, leau2001 wrote: > Package needed with synaptic > > — python2.4-qt3 > — python2.4-qtext > — python2.4-sip4.qt3 > — pyqt-tools > — python2.4-qt3-gl (to use l’OpenGL) > > — qt3-designer > — qt3-assistant > — qt3-dev-tools > — qt3-doc > — qt3-examples > — qt3-linguist

Re: [PyKDE] [PyQt4] QDate.toString(QtCore.Qt.TextDate) is not UTF-8

2006-01-26 Thread Phil Thompson
On Thursday 26 January 2006 12:53 am, Ismail Donmez wrote: > Hi, > > I am using QDate.toString(QtCore.Qt.TextDate) in my application and Turkish > characters are malformed unless I do > unicode(QDate.toString(QtCore.Qt.TextDate) , I checked the Qt4 apidocs and > it says : > > QString toString ( con

[PyKDE] Installing eric3 on Ubuntu

2006-01-26 Thread leau2001
Package needed with synaptic — python2.4-qt3 — python2.4-qtext — python2.4-sip4.qt3 — pyqt-tools — python2.4-qt3-gl (to use l’OpenGL) — qt3-designer — qt3-assistant — qt3-dev-tools — qt3-doc — qt3-examples — qt3-linguist For those who want to develop on ubuntu gnome, you need to install — qt3-

[PyKDE] kabc module bug

2006-01-26 Thread Jim Bublitz
Since KDE 3.2.0, resourcefile.h has been omitted from the kdelibs source tarball, but is still available in kde3/include/kabc. Similarly, resourcedir.h has never been included with kdelibs. Consequently, PyKDE omits both files for most KDE versions. Both seem to include useful classes for work