[PyQt] Re: poppler qt version question

2008-11-03 Thread kib2
Rajeev J Sebastian a écrit : I personally dont run Windows, and so I dont have the developer tools for that. I will try to update the bindings as soon as I can and publish some docs on my blog. Regards Rajeev J Sebastian Thanks a lot JS : nice gift ! _

[PyQt] Re: poppler qt version question

2008-11-03 Thread kib2
thanks a lot for your work, it can even be better if you could put some dates infos on your page. Moreover, I didn't figured out how to compile Poppler correctly on Windows. There's simply nothing on their site about this. Thanks. ___ PyQt mailing l

[PyQt] Re: Help! How to set insert point in QTextEdit

2008-10-24 Thread kib2
Edward K. Ream a écrit : Setting the insertion point programmatically does not appear to "take" until (approximately) the point at which a textChanged() signal is generated. The relevant code (simplified just a bit) is: def setInsertPoint(self,i): w = self.widget g.trace(i,w) w.t

[PyQt] Re: 2 litlle questions

2008-10-23 Thread kib2
Mark Summerfield a écrit : On 2008-10-23, kib2 wrote: Hi, I'm having troubles in retrieving a QTextEdit selection. I join a little test app (main.py). Launch it, select all the text in the area then press F1, the quit. The output is really strange. In fact I need to split the retrieved

[PyQt] runtime error on the last PyQt binaries

2008-09-22 Thread kib2
Hi, I've installed the latest binaries of PyQt 4.4.3 on my Windows XP machine and I can't launch the Designer from the menu (or from the demos), I've got a runtime error. Does anybody has the same issue ? Thanks. ___ PyQt mailing listPyQt@rive

[PyQt] py2exe and QtWebKit problem

2008-07-24 Thread kib2
Hi, I'm trying to make an exe from a PyQt4 app that uses WebKit. But I've got the following problem : Traceback (most recent call last): File "main.py", line 11, in File "app_ui.pyc", line 172, in File "PyQt4\QtWebKit.pyc", line 12, in File "PyQt4\QtWebKit.pyc", line 10, in __load I

[PyQt] Re: QGraphicsWidget crash on exit

2008-07-22 Thread kib2
Brian Kelley a écrit : I'm getting a crash on exit using QGraphicsWidget. It appears to be in the destructor for sipQGraphicsWidget. Attached is the sample program. I can't tell whether this is a bug in PyQt or Qt, does anyone else have the same issue? import sys from PyQt4 import QtGui,

[PyQt] Tab key shortcut no more working ?

2008-06-27 Thread kib2
Hi, I've got a problem with an old app. This was supposed to work with PyQt 4.2 (only Tab key): keyTab = QtGui.QShortcut(QtGui.QKeySequence(self.tr("Tab")), self) self.connect(keyTab, QtCore.SIGNAL("activated()"), self.on_tab) but now, it just does not work under PyQt4.4. This one works (Ctrl+

[PyQt] Re: Next Releases of PyQt and SIP and Updated Windows Installer

2008-06-12 Thread kib2
Hi Phil, I had to switch to Windows for the moment, so I gave the new installer a test. Great work : even the Custom widget plugins are working fine now. Cheers, Christophe K. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankc

Re: [PyQt] Strange Qt 4.4 behavior

2008-05-19 Thread kib2
Hi Detlev, Can you be more accurate on what needs to be fixed please ? I've got the same bug with an old app of mine and don't have time to look at it for the moment. Thanks, Christophe K. ___ PyQt mailing listPyQt@riverbankcomputing.com http

[PyQt] Re: latest pyqt4 snapshot doesn't compile if qt4 doesn't have ssl enabled

2008-05-10 Thread kib2
Erick Tryzelaar a écrit : I just tried compiling the latest snapshot against qt4 with the qt4 build option "-no-openssl" set, and I couldn't configure pyqt4. It errored out with this: Generating the C++ source for the QtNetwork module... sip: QSsl::SslProtocol is undefined Error: Unable to creat

[PyQt] Re: Problems Compiling PyQt4.4

2008-05-09 Thread kib2
Phil Thompson a écrit : Have you rebuilt Qt? Phil No Phil, sorry. That did the trick, even if I had to wait a long time for Qt to compile. Thanks again, Christophe K. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcom

[PyQt] Re: Problems Compiling PyQt4.4

2008-05-09 Thread kib2
Phil Thompson a écrit : Looks like I forgot one of the OpenSSL guards. The workaround is to install the OpenSSL developer package. Phil Hi Phil, That's what I've done with the latest openssl-0.9.8g snapshots [ftp://ftp.openssl.org/snapshot/], but that does not seems to fix it : I'm gett

[PyQt] Re: Problems Compiling PyQt4.4

2008-05-09 Thread kib2
Hi, I've got the same problem with a fresh Ubuntu Hardy installation. SIP compiles well, but not the latest snapshots of PyQt : pyuic4, pyrcc4 and pylupdate4 will be installed in /usr/bin. Generating the C++ source for the QtCore module... Creating the Makefile for the QtCore module... Generatin

[PyQt] Re: treeview model/view or item-based?

2008-05-06 Thread kib2
Hi, I've made a little translation of the Extended Dir View sample (for C++) on the Wiki [http://wiki.qtcentre.org/index.php?title=Extended_Dir_View_example]. See http://forum.qtfr.org/viewtopic.php?id=6042 I never used it yet in production, nor made tests. But maybe this can be useful for y

[PyQt] Re: Updated PyQt Release Plans

2008-05-01 Thread kib2
Hi, I've build the latest version and got one problem with the diagramscene.py sample : Traceback (most recent call last): File "diagramscene.py", line 837, in mainWindow = MainWindow() File "diagramscene.py", line 363, in __init__ self.createToolbars() File "diagramscene.py", l

[PyQt] Re: New Riverbank Website Live

2008-04-29 Thread kib2
Phil Thompson a écrit : On Monday 28 April 2008, kib2 wrote: Hi, Every week I'm taking a look at David's work against spam on the wiki: his task must be impossible. Just a suggestion : Wikidot is offering free hosting and a very powerful Wiki engine : http://www.wikidot.com/ .

[PyQt] Re: New Riverbank Website Live

2008-04-28 Thread kib2
Hi, Every week I'm taking a look at David's work against spam on the wiki: his task must be impossible. Just a suggestion : Wikidot is offering free hosting and a very powerful Wiki engine : http://www.wikidot.com/ . Christophe K. ___ PyQt mail

[PyQt] Re: Problem builting the latest (20080423) snapshots

2008-04-24 Thread kib2
Phil Thompson a écrit : The dates are driven by when I do the last commit. If I'm working late (ie. I commit past midnight but before the snapshots are created) then 2 different snapshots can end up with the same name. That's probably what happened. Phil Ok, thanks for clarifying this point

[PyQt] Re: Problem builting the latest (20080423) snapshots

2008-04-24 Thread kib2
Phil Thompson riverbankcomputing.com> writes: > If you are using a PyQt snapshot always make sure you are using the latest > SIP > snapshot. > > Phil > Thanks Phil, My old SIP version was 20080421, so I thought there was no problem. I downloaded the same version number this morning and tha

[PyQt] Problem builting the latest (20080423) snapshots

2008-04-24 Thread kib2
Hi, I've tried to install the 20080423 snapshot, but got the following errors, whether I comment out "#QMAKE_LFLAGS" inside g++.conf or not : http://rafb.net/p/f96yqw85.html Any idea ? Thanks. ___ PyQt mailing listPyQt@riverbankcomputing.com htt

[PyQt] problematic ui file you requested

2008-04-23 Thread kib2
Hi Phil, here's the ui file that you requested. Hoping it helps. See you, Christophe K. webkit_test.ui Description: application/designer ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] latest snapshots : pyuic4 seems to have a problem in generating Python files.

2008-04-23 Thread kib2
Hi, first, thanks for sharing the latest Qt4.4 support inside PyQt. I've builded it under my Ubuntu without any problem, but I suggest that you put these lines inside the README : "Edit mkspecs/common/g++.conf and comment out the line refering to QMAKE_LFLAGS" Now, I've got problems with th

[PyQt] Strange connexion behaviour

2007-12-12 Thread kib2
Hi, in a dialog window I've got the following connexion : self.bm = publishManager(...) self.parent.connect(newDoc,QtCore.SIGNAL("triggered()"),self.pm.publish) where a publishManager class (in another file) has got a publish() method depending on the publishManager's publishDir variable. I

Re: [PyQt] QTabWidget

2007-11-25 Thread kib2
Lawrence Shafer a écrit : Let me explain things better here. I could easily do this if I was hand coding the whole thing, but I've done the ui in QT Designer, so that's where I'm stumped. I have a Qwidget with everything in it, so how do I add the same qwidget to each tab with a different prefi

Re: [PyQt] QProcess arguments list problem

2007-11-22 Thread kib2
Mark Summerfield a écrit : I think PyQt is nice enough to accept a Python list here. Also, I don't think you can use a shell redirection (>) like this, so I'd try: self.proc.start("lout", ["-o", "my_file.ps", "my_file.lout"]) Thanks Mark, this is exactly what I was looking for. If you

Re: [PyQt] QProcess arguments list problem

2007-11-21 Thread kib2
Ingmar Steen a écrit : Hi, That won't work because the '>' (redirect) you use in a shell environment doesn't 'magically' work. The shell (bash, ksh, etc) performs the job of capturing the child process' 'stdout' (the regular output of the process) and redirects it to a file. To achieve that

[PyQt] QProcess arguments list problem

2007-11-21 Thread kib2
Hi, I'm using QProcess to launch some commands, no problem with basic ones, ie to launch a LaTeX file with pdflatex I use: self.proc.start("pdflatex", QtCore.QStringList(["my_file.tex"])) Now, I wanted to launch the following command : "lout my_file.lout > my_file.ps" I've made these tries

Re: [PyQt] comboBox inside a statusBar

2007-11-07 Thread kib2
alteo_gange a écrit : Le mercredi 07 novembre 2007, kib2 a écrit : For the moment, I use the "currentIndexChanged(int)"'s SLOT wich feets my needs, but I wanted to work with string, not int values. Hi, #!/usr/bin/python # -*- coding: Utf-8 -*- import sys from PyQt4.QtGui impo

Re: [PyQt] comboBox inside a statusBar

2007-11-07 Thread kib2
Giovanni Bajo a écrit : Read the documentation for "editTextChanged" and all should become clear... Hi Giovanni, Sorry, but no so for me... "This signal is emitted when the text in the comboBox's line edit widget is changed. The new text is specified by text." What is the meaning of 'cha

Re: [PyQt] comboBox inside a statusBar

2007-11-07 Thread kib2
Ingmar Steen a écrit : Hi, You get that message because QComboBox::textChanged is a Qt3 compatibility signal. In Qt4 you should use the editTextChanged signal, the activated signal or the currentIndex signal. Ingmar Thanks Ingmar, I choose "textChanged" because I've found it in QtDesigner4

[PyQt] comboBox inside a statusBar

2007-11-07 Thread kib2
Hi, I've just tried to add a comboBox inside my statusBar of my Main application like this : def manageStatusBar(self): self.combo = QtGui.QComboBox(self) self.langList = QtCore.QStringList(["a","b","c","d","e"]) self.combo.addItems(self.langList)

[PyQt] Extended Dir View sample

2007-11-05 Thread kib2
Someone posted on the Qt Wiki an Extended Dir View sample today, I've tried to convert it to PyQt4, so here it is : >- #!/usr/bin/env python # -*- coding: utf-8 -*- # ExtendedDirView sample # from QtWiki : # http://wiki.qtcentre.org

Re: [PyQt] Translating a line from a C++ source

2007-10-30 Thread kib2
David Boddie a écrit : Over multiple lines: print "void MyTextEdit::paintEvent(QPaintEvent* event) from position:", print startPosition.block().position(), "to", print endPosition.block().position() + endPosition.block().length() Hope this helps, Thanks David, that works fine. Now, I'

[PyQt] Translating a line from a C++ source

2007-10-30 Thread kib2
Hi, Sorry, but I can't find an easy way to translate this line of Qt4/C++ code to PyQt4 : qDebug() << "void MyTextEdit::paintEvent(QPaintEvent* event) from position: " << startPosition.block().position() << " to " << endPosition.block().position() + endPosition.block().length

Re: [PyQt] Re: PyQt book "Rapid GUI Programming with Python and Qt" now available

2007-10-29 Thread kib2
Mark Summerfield a écrit : On 2007-10-29, kib2 wrote: Hi, I just wanted to buy the book on Amazon.fr, and I saw something really amazing : price has changed from 58 euros to about 37 since this morning. Is that normal ? I don't know! But obviously best to buy it straight away;-) Hi Mar

Re: [PyQt] Re: PyQt book "Rapid GUI Programming with Python and Qt" now available

2007-10-29 Thread kib2
Hi, I just wanted to buy the book on Amazon.fr, and I saw something really amazing : price has changed from 58 euros to about 37 since this morning. Is that normal ? Thanks, Christophe. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www

Re: [PyQt] Internationalisation process help

2007-10-18 Thread kib2
Andreas Pakulat a écrit : On 18.10.07 20:42:44, kib2 wrote: Hi, I'm trying to understand the internationalisation process in a PyQt4 app. From my main ui file (in French), I've got a ts one with pylupdate4, then translated it to binaries in qm format. The resulting file is named &

[PyQt] Internationalisation process help

2007-10-18 Thread kib2
Hi, I'm trying to understand the internationalisation process in a PyQt4 app. From my main ui file (in French), I've got a ts one with pylupdate4, then translated it to binaries in qm format. The resulting file is named 'em.qm' and is in my main app directory. Now, my app looks like this : >C

Re: [PyQt] textEdit

2007-08-27 Thread kib2
[EMAIL PROTECTED] a écrit : hello i'm using the last pyqt. In my form i have a textEdit. If i write as follow i obtain "unandled attribute error" Why? note = self.textEdit.text() Thanks Luca ___ PyQt mailing listPyQt@riverbankcomputing.com htt

[PyQt] QTextEdit->print() in Python ?

2007-07-26 Thread kib2
Hi, I don't see any way to use the new QTextEdit->print() method in Python, "print" is a Python keyword so I've tried with "print_" (like in QTextDocument) but it failed. Was it implemented ? Thanks. ___ PyQt mailing listPyQt@riverbankcomputing.c

Re: [PyQt] Problem with paths inside the last PyQt GPL 4.3 binaries ?

2007-07-25 Thread kib2
Phil Thompson a écrit : Designer plugins don't work with the binary installer because everything is statically linked. It would be possible to build a version of Designer with the necessary support for Python plugins - but I have neither the time nor the inclination to do that at the moment.

[PyQt] Problem with paths inside the last PyQt GPL 4.3 binaries ?

2007-07-25 Thread kib2
Hi, I'm using PyQt GPL 4.3 [the last Phil's binaries]. Some of my env.variables are : - QMAKESPEC : C:\Qt\4.3.0\mkspecs\win32-g++ - QTDIR : C:\Qt\4.3.0 - PATH (part of): C:\MinGW;C:\MinGW\bin;C:\Qt\4.3.0\bin I took a look at the designer/plugins demo because it refuses to launch on my machin

[PyQt] New tutorial

2007-07-24 Thread kib2
Hi, Just to let you know that I've opened a site with some PyQt4 tutorials. h**p://kib2.free.fr/tutos/PyQt4/index.html Thanks for reporting me anything wrong. Cheers. ___ PyQt mailing listPyQt@riverbankcomputing.com

Re: [PyQt] Is that mailing list supposed to help ?

2007-07-23 Thread kib2
Andreas Pakulat a écrit : So you don't want to spend the time on stripping down your code to a minimal example (often you find the error already during that process), but expect others (read us) to spend their precious free time reading your questions and trying to make any sense of the snippet

Re: [PyQt] Is that mailing list supposed to help ?

2007-07-23 Thread kib2
Pierre Ducroquet a écrit : With a simple filter in my mail reader : since beginning of may, 7 questions, 2 unanswered. One about vista speed problems, and I'm afraid it'll be hard to find somebody with vista to help you. True, that's one of the reasons I switched back to XP. One about QThrea

Re: [PyQt] QGraphicsView to display a png

2007-07-23 Thread kib2
David Boddie a écrit : Ah, it seems that you were setting up the scene from with a method of a class. Your problem was that, when the method returned, the scene was garbage collected. Giving it a parent of "self" keeps it alive thanks to Qt's parent-child object management. Alternatively, you c

Re: [PyQt] Is that mailing list supposed to help ?

2007-07-23 Thread kib2
, you keep kind otherwise.. I do not try to hide myself, these are just my initials (even more, my blog adress : kib2.webfactional.com and my mail one). Don't be be concerned too much about your speech, we've seen much worser ones. Not mastering C++ syntax is also a non issue. You will

Re: [PyQt] QGraphicsView to display a png

2007-07-23 Thread kib2
David Boddie a écrit : That might fix the problem. Another question worth asking is: have the resources been set up correctly? The assignment, pic = QtGui.QPixmap(":/images/triangle.png") refers to an image in a resource that is usually stored in a module and imported somewhere in an applic

[PyQt] Is that mailing list supposed to help ?

2007-07-23 Thread kib2
Hi, You may ask if it's a suicidal question or whatever, I just wanted to give you my impressions. I don't want to hurt anyone. Usually when I subscribe to a mailing list, I enjoy answering others questions and asking mine too, but not here for the moment. I asked several questions

[PyQt] QThreads

2007-07-23 Thread kib2
Hi, What's the difference between finished() and terminated() methods of a QThread ? Thanks. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] QGraphicsView to display a png

2007-07-21 Thread kib2
Hi, This is the first time I'm playing with QGraphicsView. My aim was simply to display a png image inside it (I need something more convenient than a QLabel). Here's some part of my code (self.gv is just a QGraphicsView instance and a directory "images" has been created inside my script dir

Re: [PyQt] QTextEdit and encoding

2007-07-18 Thread kib2
I just found it, very annoying : it was the BOM inside my utf8 encoded files. Sorry, Kib²: - blog : http://kib2.webfactional.com/ ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] QTextEdit and encoding

2007-07-18 Thread kib2
Here's a little video to show you the problem : h**p://kib2.free.fr/temp/pyqt4/truc.avi Secondly, I've added a French tutorial link on the Wiki, but I can't give any name. Where do I register ? Thanks, Kib²: - blog : http://kib2.webfactional.com/ ___

[PyQt] headache with SIP

2007-07-05 Thread kib2
Hi, I'm trying to build SIP one more time under Windows XP SP2 and MinGW but without success. 1. I have unpacked the source to my personnal directory "C:\KIB\" 2. I folowed the docs : configuring for mingw C:\KIB\sip-snapshot-20070704>python configure.py -p win32-g++ This is SIP snapshot-200

Re: [PyQt] QtScintilla2 and fonts

2007-07-01 Thread kib2
Phil Thompson a écrit : On Saturday 30 June 2007 6:43 pm, kib2 wrote: Phil, I've uploaded the version here : h**p://kib2.free.fr/temp/pyqt4/qt4_sci_test.py Detlev's suggestion should fix the problem. Yes concerning the edge mode. But the main question was how can I change th

Re: [PyQt] QtScintilla2 and fonts

2007-06-30 Thread kib2
Phil, I've uploaded the version here : h**p://kib2.free.fr/temp/pyqt4/qt4_sci_test.py ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QtScintilla2 and fonts

2007-06-30 Thread kib2
Phil Thompson a écrit : Can you please give me a sample ? There is a bug in readSettings() that is fixed in tonight's snapshot. Though I don't see how using the settings helps particularly. The eric source code is probably the best source of example code. I've tried to see a edge line at

Re: [PyQt] QtScintilla2 and fonts

2007-06-26 Thread kib2
Phil Thompson a écrit : On Tuesday 26 June 2007 1:38 pm, kib2 wrote: Hi, I'm trying to play with QtScintilla2 and something is going wrong : editor = QsciScintilla() font = QtGui.QFont() font.setFamily("Consolas") font.setPointSize(10) editor.setFont(font) editor.setMargins

[PyQt] QtScintilla2 and fonts

2007-06-26 Thread kib2
Hi, I'm trying to play with QtScintilla2 and something is going wrong : editor = QsciScintilla() font = QtGui.QFont() font.setFamily("Consolas") font.setPointSize(10) editor.setFont(font) editor.setMarginsFont(font) the problem here is that the Margin font is set correctly, but not the editor

[PyQt] vista speed problems

2007-05-25 Thread kib2
Hi, I managed to write my own QTextEdit widget with line numbers and played a little with the QSyntaxHighlighter class to bring it some highlightning power. But damn it's really slow, very slow. ( a 1000 lines files takes about 1 ou 2 seconds to load, So I asked myself if it was not just a V

[PyQt] QSyntaxHighlighter question

2007-05-13 Thread kib2
t QFont & font ) In Python, I only saw the last two of them, where's the other ? Thanks. Kib² : ---- Blog : http://kib2.webfactional.com/ _

[PyQt] some questions for a syntaxhighlighting component

2007-05-04 Thread kib2
Hi, 1. I've downloaded the last version of PyQt, now I wanted to test the QtScintilla control but I'm on a Vista machine and I've got problems compiling SIP with MingW (not entirely Vista compatible ?). Does anyone have some hints to help me ? 2. I've tried the syntaxhighlighter demo withou