Re: [PyKDE] Any IDE?

2006-10-21 Thread Andreas Pakulat
On 21.10.06 22:50:47, Carles Pina i Estany wrote: > Some months ago I taught some people to use qtdesigner as designer > and code editor. It was a very easy way to start to program using > Python+Qt, even when qt-designer is not a Python code editor :-) designer is a really bad code-editor. > I t

Re: [PyKDE] One slot called two times

2006-10-21 Thread Andreas Pakulat
On 21.10.06 22:21:37, Carles Pina i Estany wrote: > I was used to connect signals and slots using "connect". Now I am > updating myself to Qt4 and using "autoconnect" feature. > > I have the simplest code that I can do and the slot is called two times. > The code is: This is known, but I'm not s

[PyKDE] Any IDE?

2006-10-21 Thread Carles Pina i Estany
Hello again, Some months ago I taught some people to use qtdesigner as designer and code editor. It was a very easy way to start to program using Python+Qt, even when qt-designer is not a Python code editor :-) I think that Kdevelop will/has integrate/ed designer-qt4, but is there any other choi

Re: Re: [PyKDE] camel/under style

2006-10-21 Thread Patrick Stinson
that's what I do as well. the line is blurred between modue-level methods and class methods, because in python they are all just methods... But, I really like the idea of striving for single-word method names and therefore avoiding camel case or underscore-seperation at all. Funny, All of my conce

[PyKDE] One slot called two times

2006-10-21 Thread Carles Pina i Estany
Hello, I was used to connect signals and slots using "connect". Now I am updating myself to Qt4 and using "autoconnect" feature. I have the simplest code that I can do and the slot is called two times. The code is: --- #!/usr/bin/python import sys from PyQt4 import QtCore, QtG

Re: [PyKDE] camel/under style

2006-10-21 Thread Torsten Marek
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Patrick Stinson schrieb: > pythonic purists use underscores and lowercase as described in the > python style guide, qt/C++ people use camel casing to remain > consistent with Qt. > > What do PyQt people use? > > Hi, for classes, "public" methods an

Re: [PyKDE] TypeError: 'QObjectCreator' object is unsubscriptable

2006-10-21 Thread Torsten Marek
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt Newell schrieb: > On Thursday 19 October 2006 08:00, Michael 'Mickey' Lauer wrote: >> Hi, >> >> I'm using Qt4.2 + sip/PyQt snapshots from 20061015: >> I'm getting the aforementioned error when supplying a baseclass to >> uic.loadUi. It also occurs

Re: [PyKDE] [PATCH] Abstract methods cause derived classes to be marked abstract

2006-10-21 Thread Phil Thompson
On Friday 13 October 2006 7:40 pm, Matt Newell wrote: > If class A has an abstract method, it is marked as an abstract class. This > is good. If class B inherits from class A, but doesn't have any abstract > methods of it's own, it is still marked as abstract, that is not good. A > class should

Re: [PyKDE] Qt v4.2 Support

2006-10-21 Thread Phil Thompson
On Tuesday 17 October 2006 9:04 am, V. Armando Sole wrote: > Hi > > At 19:24 15/10/2006 +0100, Phil Thompson wrote: > >Tonight's PyQt4 snapshot will have full support for Qt v4.2 (except for > > the QtDBus module). > > I had problems to build the latest snapshot (PyQt4-gpl-20061015 with > sip4-snap

Re: [PyKDE] pyuic4 generates invalid source code for files without translatable strings

2006-10-21 Thread Phil Thompson
On Saturday 21 October 2006 2:37 pm, Lukáš Lalinský wrote: > If I have an UI file without any translatable strings, pyuic4 generates > method retranslateUi without a body: > > def retranslateUi(self, %s): > > which causes is a syntax error. Patch that adds a 'pass' in such situations > attached

[PyKDE] pyuic4 generates invalid source code for files without translatable strings

2006-10-21 Thread Lukáš Lalinský
If I have an UI file without any translatable strings, pyuic4 generates method retranslateUi without a body: def retranslateUi(self, %s): which causes is a syntax error. Patch that adds a 'pass' in such situations attached. -Lukáš === modified file 'Compiler/compiler.py' --- Compiler/compile

Re: [PyKDE] QListView.setSelectionAnchor() missing in PyQt 3.3.3

2006-10-21 Thread Phil Thompson
On Monday 16 October 2006 11:57 pm, EXT-Harris, Kenneth B wrote: > Hi all, > > (I can't seem to find a Bugzilla or similar for PyQt, so I hope this > list is an OK place to report bugs.) > > QListView.setSelectionAnchor() exists in Qt, but seems to have been the > victim of a couple of typos in lis

Re: [PyKDE] QTextBrowser : strange loadResource behaviour

2006-10-21 Thread Phil Thompson
On Saturday 21 October 2006 10:28 am, Pierre D. wrote: > Hi > > I'm facing a strange bug with QTextBrowser, making it near of unusable for > me with PyQt4. > I need to display some HTML with images embedded. To do that, I've to > create a new QTextBrowser-heriting class, and implement loadResource.

[PyKDE] QTextBrowser : strange loadResource behaviour

2006-10-21 Thread Pierre D.
Hi I'm facing a strange bug with QTextBrowser, making it near of unusable for me with PyQt4. I need to display some HTML with images embedded. To do that, I've to create a new QTextBrowser-heriting class, and implement loadResource. I did so, and it works, but only for local pictures. Here is m