Re: [PyQt] Re: QStyle manipulations

2009-07-27 Thread Hans-Peter Jansen
Am Montag, 27. Juli 2009 schrieb Phil Thompson: > On Mon, 27 Jul 2009 18:40:18 +0200, "Hans-Peter Jansen" > > wrote: > > Am Montag, 27. Juli 2009 schrieb Hans-Peter Jansen: > >> Am Montag, 27. Juli 2009 schrieb Hans-Peter Jansen: > >> > Next you fi

Re: [PyQt] Re: QStyle manipulations

2009-07-27 Thread Hans-Peter Jansen
Am Montag, 27. Juli 2009 schrieb Hans-Peter Jansen: > Am Montag, 27. Juli 2009 schrieb Hans-Peter Jansen: > > > > Next you find a test script simply intercepting this slot, but while > > the constructor of PlastiqueStyle is being called correctly, the slot > > is not

Re: [PyQt] Re: QStyle manipulations

2009-07-26 Thread Hans-Peter Jansen
Am Montag, 27. Juli 2009 schrieb Hans-Peter Jansen: > Am Samstag, 25. Juli 2009 schrieb Phil Thompson: > > On Fri, 24 Jul 2009 17:56:32 -0500, Robert Kern > > > > wrote: > > > On 2009-07-24 10:26, Phil Thompson wrote: > > >> On Fri, 24 Jul 2009

Re: [PyQt] Re: QStyle manipulations

2009-07-26 Thread Hans-Peter Jansen
Am Samstag, 25. Juli 2009 schrieb Phil Thompson: > On Fri, 24 Jul 2009 17:56:32 -0500, Robert Kern > > wrote: > > On 2009-07-24 10:26, Phil Thompson wrote: > >> On Fri, 24 Jul 2009 01:03:47 +0200, "Hans-Peter Jansen" > >> > >>> > >>&

Re: [PyQt] PyQt: tr() or translate()

2009-07-26 Thread Hans-Peter Jansen
Am Sonntag, 26. Juli 2009 schrieb Michał Klich: > Dnia czwartek 23 lipca 2009 o 02:05:08 Hans-Peter Jansen napisał(a): > > Am Mittwoch, 22. Juli 2009 schrieb Michał Klich: > > > Hi, > > > > > > I would like to get some calrification on tr() and tran

Re: [PyQt] Use newer version of qt

2009-07-26 Thread Hans-Peter Jansen
Am Sonntag, 26. Juli 2009 schrieb Jesse Aldridge: > I ran make install on the Qt 4.5.2 source. It installed to > "/usr/local/Trolltech/Qt-4.5.2". Ubuntu 9.04 comes with qt 4.5.0, which > is installed in "/usr". What's a clean way to make my pyqt programs use > the 4.5.2 version of Qt? Use your

Re: [PyQt] Re: Re: QStyle manipulations

2009-07-25 Thread Hans-Peter Jansen
; > > > On 2009-07-24 10:26, Phil Thompson wrote: > > > > On Fri, 24 Jul 2009 01:03:47 +0200, "Hans-Peter > > > > Jansen" > > > > > > > > wrote: > > > >> Hi, > > > >> > > > >> I've some

[PyQt] QStyle manipulations

2009-07-23 Thread Hans-Peter Jansen
Hi, I've some layout issues with customized widgets on the Mac, and now, I would like to _intercept_ a single QStyle method: layoutSpacingImplementation(), but how? I can create a style with QtGui.QStyleFactory.create(), but how do I intercept such a method? PyQt forbids me to subclass the styl

Re: [PyQt] PyQt: tr() or translate()

2009-07-22 Thread Hans-Peter Jansen
Am Mittwoch, 22. Juli 2009 schrieb Michał Klich: > Hi, > > I would like to get some calrification on tr() and translate(). > On webpage > http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#inter >nationalisation-of-pyqt-applicationsi found information that it is better > to use > Q

Re: [PyQt] PyQt v4.5.2 QVariant woes

2009-07-22 Thread Hans-Peter Jansen
Hi Phil, sorry for the delay.. Am Montag, 20. Juli 2009 schrieb Phil Thompson: > On Sun, 19 Jul 2009 18:35:24 +0200, "Hans-Peter Jansen" > > wrote: > > Hi Phil, > > > > after updating to 4.5.2, I suffer from a new issue, which is rather > > basic. >

[PyQt] PyQt v4.5.2 QVariant woes

2009-07-19 Thread Hans-Peter Jansen
Hi Phil, after updating to 4.5.2, I suffer from a new issue, which is rather basic. According to the changelog, you modified QVariant to not accept None anymore, but would accept None directly, where a QVariant is expected. This is unfortunate, since it breaks my code, but anyway, the second te

[PyQt] QTabWidget subclassing woes

2009-07-18 Thread Hans-Peter Jansen
Hi, I tried to subclass QTabWidget in order to do some processing before a tab is displayed or left. The problem is, that my setCurrentIndex methods are not called, if switching tabs via keyboard (cursor left/right on linux). Interestingly, my keyPressEvent handlers are called. Out of desperati

[PyQt] A few issues with pyuic4

2009-07-11 Thread Hans-Peter Jansen
Hi Phil, attached .ui demonstrates a few issues of pyuic4: - ignores stretch factors in verticalLayout - ignores all tableView attributes As a bonus, I've attached a minor bugfix for the chart example ;-). The pie "rubber band" selection still does not work correct (it arbitrarily selects pie

Re: [PyQt] setting tab order custom widget

2009-07-07 Thread Hans-Peter Jansen
Am Dienstag, 7. Juli 2009 schrieb David Boddie: > On Tue Jul 7 15:20:02 BST 2009, Hans-Peter Jansen wrote: > > Am Dienstag, 7. Juli 2009 schrieb Hans-Peter Jansen: > > > Anybody with an idea, what designer needs to consider our widgets in > > > tab order setting? >

Re: [PyQt] setting tab order custom widget

2009-07-07 Thread Hans-Peter Jansen
Am Dienstag, 7. Juli 2009 schrieb Hans-Peter Jansen: > Hi *, > > I've made a custom widget (a QCheckBox and a QToolButton side by side) > based on QWidget (similar to David Boddie's GeolocationWidget from QQ26), > and would like to set the tab order. Unfortunately, des

[PyQt] setting tab order custom widget

2009-07-07 Thread Hans-Peter Jansen
Hi *, I've made a custom widget (a QCheckBox and a QToolButton side by side) based on QWidget (similar to David Boddie's GeolocationWidget from QQ26), and would like to set the tab order. Unfortunately, designer simply ignores my widgets in the tab order editing mode (again similar behavior to

Re: [PyQt] Makefile install path macros

2009-07-06 Thread Hans-Peter Jansen
Am Montag, 6. Juli 2009 schrieb Phil Thompson: > On Mon, 6 Jul 2009 21:44:30 +0200, "Hans-Peter Jansen" > > > in order to split the packages into essential and -devel parts. > > > > While at it, install the missing elements: doc and designer plugin. To >

[PyQt] Makefile install path macros

2009-07-06 Thread Hans-Peter Jansen
Hi Phil, I'm preparing sip/PyQt builds in openSUSEs build service: http://download.opensuse.org/repositories/home:/frispete:/branches:/KDE:/Qt/ in order to split the packages into essential and -devel parts. While at it, install the missing elements: doc and designer plugin. To fix the latter

Re: [PyQt] test code only works with previous releases of Python, Qt and PyQt

2009-07-03 Thread Hans-Peter Jansen
Am Freitag, 3. Juli 2009 schrieb barmanoo: > Hi Detlev, > > please try it with Ubuntu 9.04 x86_64 with repository versions of Qt and > PyQt (using a Virtualbox VM or a virtual appliance from VMWare) and let > me know if it works for you. Olivier, you may want to ask somebody who is in change of th

Re: [PyQt] incompatible licenses

2009-07-02 Thread Hans-Peter Jansen
Am Donnerstag, 2. Juli 2009 schrieb Frank Lindseth: > Hi, > > On the Riverbank web-site the following documentation can be found: > Compatibility with Qt Licenses > The GPL version of PyQt can be used with both the LGPL and GPL > versions of Qt. > > I have installed the LGPL version of Qt SDK (v. 4

Re: [PyQt] Mac QMenuBar localization issues

2009-06-29 Thread Hans-Peter Jansen
Am Montag, 29. Juni 2009 schrieb Hans-Peter Jansen: > Am Sonntag, 28. Juni 2009 schrieb Hans-Peter Jansen: > > Dear Mac-attending audience, > > > > after learning, how to get my application name into the Mac menu bar, > > I'm stuck again: did anybody of yo

Re: [PyQt] setValue of QSettings adds undesired whitespaces in settings file

2009-06-29 Thread Hans-Peter Jansen
Dear Luca, Am Montag, 29. Juni 2009 schrieb Luca Fasano: > Hi all, > As described in mail subject, I noticed that if you use setValue() > method of a Qsettings object, undesired whitespaces are added to > settings file. For example if you have an entry consisting of a comma > separated list, white

Re: [PyQt] Mac QMenuBar localization issues

2009-06-28 Thread Hans-Peter Jansen
Am Sonntag, 28. Juni 2009 schrieb Hans-Peter Jansen: > Dear Mac-attending audience, > > after learning, how to get my application name into the Mac menu bar, I'm > stuck again: did anybody of you succeed in localization of the special > Mac menu actions, that (should) get magi

[PyQt] Mac QMenuBar localization issues

2009-06-28 Thread Hans-Peter Jansen
Dear Mac-attending audience, after learning, how to get my application name into the Mac menu bar, I'm stuck again: did anybody of you succeed in localization of the special Mac menu actions, that (should) get magically moved into the Mac Application menu? (E.g. About App, About Qt, Preferences

Re: [PyQt] Re: py2app generates huge files (200MB)

2009-06-27 Thread Hans-Peter Jansen
Am Samstag, 27. Juni 2009 schrieb Michael Held: > hi again, > > I think I did not fully understood it: of course can I compress > everything and put it on a website/ftp. but is there a way to run an app > with compressed parts, e.g. resources or a lot of Python scripts? but > this is maybe not the

Re: [PyQt] Deploying PyQt4 on Linux

2009-06-27 Thread Hans-Peter Jansen
Am Donnerstag, 25. Juni 2009 schrieb Andreas Pakulat: > On 25.06.09 11:04:30, Hans-Peter Jansen wrote: > > Am Donnerstag, 25. Juni 2009 schrieb ion vasilief: > > > Hello everybody, > > > > > > I'm trying to deploy an application ("my_app") >

Re: [PyQt] Deploying PyQt4 on Linux

2009-06-25 Thread Hans-Peter Jansen
Am Donnerstag, 25. Juni 2009 schrieb ion vasilief: > Hello everybody, > > I'm trying to deploy an application ("my_app") > that uses Qt, Python, PyQt4 and SIP on Linux in a distribution > independent way (meaning that even if there are other default versions > of these libraries installed on the sy

Re: FW: [PyQt] Using a QCompleter with a QLineEdit

2009-06-24 Thread Hans-Peter Jansen
Am Mittwoch, 24. Juni 2009 schrieb Greg Smith: > Here is a very simple test. > Just run it in a command shell, and be sure the .ui file lives in the > same directory as the .py file. The usual, all time number one issue: "take care of lifetime issues, if a Qt class doesn't derive from QWidget" a

[PyQt] pyuic4 addItem issue

2009-06-20 Thread Hans-Peter Jansen
Hi Phil, attached is a ui file, generated with designer of Qt 4.5.1, that throws this exception: > pyuic4 -dp configdialogbase.ui PyQt4.uic.uiparser: UI version is 4.0 PyQt4.uic.uiparser: uiname is ConfigDialogBase PyQt4.uic.uiparser: toplevel widget is QDialog PyQt4.uic.properties: setting prop

[PyQt] QScintilla 2.4 doesn't complete correctly with umlauts

2009-06-17 Thread Hans-Peter Jansen
Hi Phil, The python bindings of QScintilla 2.4, as used in Eric 4.3.4, does not complete correctly, if the words contains umlauts (the words in question get truncated just before them). I might remember this as a longer standing problem, but didn't got around reporting it until now :-(. As I

Re: [PyQt] PyQt application appears always in the background

2009-06-11 Thread Hans-Peter Jansen
Am Donnerstag, 11. Juni 2009 schrieb Phil Thompson: > On Thu, 11 Jun 2009 18:50:13 +1200, Alexei Puzikov > > wrote: > > This seems to be something with PyQt, because C++ Qt applications > > don't have this problem. > > > > What helps with the situation is: > > > > window.show() > > window.raise_()

Re: [PyQt] images in PyQt QTextEdit widgets

2009-06-11 Thread Hans-Peter Jansen
Am Donnerstag, 11. Juni 2009 schrieb Greg Smith: > Hey everyone, I am having a bit of a problem when trying to display a > jpg thumbnail image in a QTextEdit widget. I have a function that builds > an html string that has includes the image as well as some properties > regarding the image sequence

Re: [PyQt] custom sections in a QDateTimeEdit

2009-06-11 Thread Hans-Peter Jansen
Am Donnerstag, 11. Juni 2009 schrieb Victor Noagbodji: > hello, > > is it possible to have custom sections in a QDateTimeEdit? > > we are trying to build a custom date edit that will allow users to > select the beginning of quarters in a year. > > for example > > > --- > > | Qua

Re: [PyQt] Using Python's "print" or sys.stdout.write( "str" ) inside of PyQt4.

2008-10-02 Thread Hans-Peter Jansen
Am Mittwoch 01 Oktober 2008 schrieb Peter Lindener: > Dear > Hans - > >I gather that PyQt's problem with using "print" or > "sys.stdout.write()" inside of PyOpenGL's "GL.Widget.paint()" call back > function has something to do with Qt's redirection of the C level > "stdout" output strea

Re: [PyQt] Using Python's "print" or sys.stdout.write( "str" ) inside of PyQt4.

2008-09-25 Thread Hans-Peter Jansen
Am Donnerstag, 25. September 2008 schrieb Peter Lindener: > Dear >PyQt4 developers - > > I am currently running Python 2.5,2, with IDLE version 1.2.2 under > Win_XP. > > I'm new to using PyQt along with PyOpenGL. I have searched a bit and > surprised, I was unable to find the answer to my m

Re: [PyQt] Comparing QString with QChar

2008-06-27 Thread Hans-Peter Jansen
Am Freitag, 27. Juni 2008 schrieb Mark Summerfield: > Hi, > > I got caught by this today: > >>> from PyQt4.QtCore import * > >>> s = QString("X") > >>> c = QChar("X") > >>> s[0] == c > > False > > >>> s[0] == QString(c) > > True > > In C++/Qt if you do the s[0] == c comp

Re: [PyQt] RAD with PyQt?

2008-06-11 Thread Hans-Peter Jansen
Am Mittwoch, 11. Juni 2008 schrieb Aaron Digulla: > Hello, > > I was wondering: Is there a Rapid Application Development framework to > quickly write apps with PyQt? > > Specifically, I'm looking for these features: > > - Connect model fields (properties) to UI elements (for example, > string field

Re: [PyQt] PyQt and DB API.

2008-05-17 Thread Hans-Peter Jansen
Am Samstag, 17. Mai 2008 schrieb objectref: > Hi, > > I am reading Mark Summerfield's book ("Rapid GUI programming with Python > and Qt"). So, in chapter 15 (Databases), he states that "Python also has > its own completely different database API, called DB-API but it isn't > needed with PyQt." > >

Re: [PyQt] Problem building PyQt 4.4 on Mac OS X (10.4.11)

2008-05-15 Thread Hans-Peter Jansen
Am Donnerstag, 15. Mai 2008 schrieb Romuald Riem: > Le 14 mai 08 à 22:54, [EMAIL PROTECTED] a écrit : > > Am Mittwoch, 14. Mai 2008 schrieb Romuald Riem: > > > > blind guess: replace -lQtCLucene with -framework QtCLucene in the > > offending > > Makefile.. > > > > I try it but I've got the same pro

Re: [PyQt] [PyQt3] QRegion.rects() missing

2008-05-14 Thread Hans-Peter Jansen
Am Mittwoch, 14. Mai 2008 schrieb Hans-Peter Jansen: > Am Mittwoch, 14. Mai 2008 schrieb Phil Thompson: > > On Saturday 10 May 2008 22:43:34 Hans-Peter Jansen wrote: > > > Hi, > > > > > > for optimizing reasons, I'm desperately missing the QRegion.rect

Re: [PyQt] Problem building PyQt 4.4 on Mac OS X (10.4.11)

2008-05-14 Thread Hans-Peter Jansen
Am Mittwoch, 14. Mai 2008 schrieb Romuald Riem: > Hello, > > I'm trying to build and install PyQt 4.4 on Mac os 10.4.11. > I use Python 2.5 and Qt 4.4 (GPL version). I installed PyQt 4.3.3 > without any problem. > > I use default values (and the link to qmake) with configure.py > > The only strange

Re: [PyQt] [PyQt3] QRegion.rects() missing

2008-05-13 Thread Hans-Peter Jansen
Am Mittwoch, 14. Mai 2008 schrieb Phil Thompson: > On Saturday 10 May 2008 22:43:34 Hans-Peter Jansen wrote: > > Hi, > > > > for optimizing reasons, I'm desperately missing the QRegion.rects() > > method. Background is a special double buffering widget, wh

[PyQt] [PyQt3] QRegion.rects() missing

2008-05-10 Thread Hans-Peter Jansen
Hi, for optimizing reasons, I'm desperately missing the QRegion.rects() method. Background is a special double buffering widget, where bitblt in the paintEvent reimplementation of the full event.rect() is painfully slow, while only a margin area is really modified. The only way to really get at

Re: [PyQt] QImage.save() traceback

2008-05-08 Thread Hans-Peter Jansen
Am Mittwoch, 7. Mai 2008 schrieb Sergi Blanch i Torné: > > I attach an standalone python script, without tango, using a simply black > image. Before I was using ipython. > Maybe I can provide a little more information, because changing the > format of the image I found how to save it, and further m

Re: [PyQt] QImage.save() traceback

2008-05-06 Thread Hans-Peter Jansen
[ignore the last message..] Am Dienstag, 6. Mai 2008 schrieb Sergi Blanch i Torné: > On Tuesday 06 May 2008 13:28:50 Hans-Peter Jansen wrote: > > Am Dienstag, 6. Mai 2008 schrieb Sergi Blanch i Torné: > > > Hi, > > > > > > I'm try to save some images

Re: [PyQt] QImage.save() traceback

2008-05-06 Thread Hans-Peter Jansen
Am Dienstag, 6. Mai 2008 schrieb Sergi Blanch i Torné: > On Tuesday 06 May 2008 13:28:50 Hans-Peter Jansen wrote: > > Am Dienstag, 6. Mai 2008 schrieb Sergi Blanch i Torné: > > > Hi, > > > > > > I'm try to save some images from a QImage object, but the save

Re: [PyQt] QImage.save() traceback

2008-05-06 Thread Hans-Peter Jansen
Am Dienstag, 6. Mai 2008 schrieb Sergi Blanch i Torné: > Hi, > > I'm try to save some images from a QImage object, but the save method is > only responding me false. I try to fix why this method cannot do that, > but I could know the real reason. > > Do you know how to allows this method to be more

Re: [PyQt] [python/Qt4]a problem of QThread

2008-05-06 Thread Hans-Peter Jansen
Am Dienstag, 6. Mai 2008 schrieb tsic: > Hello, > I tried to program a chat interface between a server and many clients. > when I used Qthread this message apear when I execute my program file > from DOS: Has anybody ported PyQt to DOS without my knowledge? ;-) > QThread: Destroyed while thread i

Re: [PyQt] Problem getting QItemDelegate to work

2008-04-25 Thread Hans-Peter Jansen
Am Freitag, 25. April 2008 schrieb David Hirschfield: > Didn't get any response yesterday...wondering if I didn't give enough > information? It misses a self contained example, which would allow anybody to reproduce your problem without a lot of guess work.. > Even a working example in python of

Re: [PyQt] Re: Setting backgroud color to a QListViewItem

2008-04-14 Thread Hans-Peter Jansen
Am Montag, 14. April 2008 schrieb Christoph Burgmer: > > Someone can send example code to set background color to a > > QListViewItem (pyqt3)? > > defaultPalette = QtGui.QPalette(element) > newPalette = QtGui.QPalette(defaultPalette) > newPalette.setColor(QtGui.QPalette.Base, Qt.green) > element.se

Re: [PyQt] Re: SIP newcomer questions/complaints

2008-04-07 Thread Hans-Peter Jansen
Am Montag, 7. April 2008 schrieb Jim Crowell: > > Well, I'm doing the same thing & I have a Makefile with: > > SIPFILES = $(INTERFACE_DIR)/math.sip \ >$(INTERFACE_DIR)/typemaps.sip \ >$(INTERFACE_DIR)/navigation.sip \ >

Re: [PyQt] Multiple Inheritance

2008-03-13 Thread Hans-Peter Jansen
OTECTED] En nombre de Hans-Peter > Jansen Enviado el: jueves, 13 de marzo de 2008 12:40 > Para: pyqt@riverbankcomputing.com > Asunto: Re: [PyQt] Multiple Inheritance > > Am Donnerstag, 13. März 2008 schrieb Ivan Coronado: > > Is possible the Multiple Inheritance from qt classe

Re: [PyQt] Multiple Inheritance

2008-03-13 Thread Hans-Peter Jansen
Am Donnerstag, 13. März 2008 schrieb Ivan Coronado: > Is possible the Multiple Inheritance from qt classes with PyQt?? Yes and no, since at most one sip generated class can be involved. The question is, what's your purpose? Pete ___ PyQt mailing list

Re: [PyQt] QSqlTableModel: how to check the UPDATE statement inside the model?

2008-03-11 Thread Hans-Peter Jansen
Am Dienstag, 11. März 2008 schrieb Sibylle Koczian: > Hello, > > somewhere in the QSqlTableModel code there must be SQL statements for > UPDATE, INSERT and DELETE, to make the model editable. Right? I can't > find methods to view these statements - is it necessary to dig into the > C++ code to find

Re: [PyQt] no SQL Drivers available (Gentoo-Linux)

2008-01-31 Thread Hans-Peter Jansen
Am Donnerstag, 31. Januar 2008 schrieb Ulf Röttger: > Hello Phil, hello Mailinglist, > I have gentoo-linux (quite up to date) with PyQt 4.3.3 and Qt 4.3.3 and > all with Python 2.4 (that's an Gentoo issue) x86_32 platform. > > Gentoo compiles QtSQL-Drivers as plugins only, so I have on the Qt side

Re: [PyQt] pyqt and kbarcode

2008-01-29 Thread Hans-Peter Jansen
Am Dienstag, 29. Januar 2008 schrieb Joachim Schmitz: > hi, > > KBarcode http://www.kbarcode.net is an barcode and labelprinting > software for kde3 written with Qt3. Does anybody know how difficult it > is to extend this with PyQt3/PyKDE3 ? It all starts with creating matching sip interface descr

Re: [PyQt] DataTable layout problem

2008-01-29 Thread Hans-Peter Jansen
Am Dienstag, 29. Januar 2008 schrieb Mario Daniel Carugno: > Hi there, mi name is Mario and i'm starting with pyqt3. > Until now everything was quite easy en clear, but i'm with a problem i > can't solve. > I use designer to draw an interface with a DataTable. I make the > connection and works fine

Re: [PyQt] How to write a GUI interface for a set of Python programs?

2008-01-27 Thread Hans-Peter Jansen
Am Sonntag, 27. Januar 2008 schrieb Algis Kabaila: > On Mon, 28 Jan 2008 07:11:21I another thread Hans-Peter Jansen wrote: > > Am Sonntag, 27. Januar 2008 schrieb Ryen Lee: > > > > > Hi everybody! I am a newbie for PyQT.Now I am write a simple > > > > > progr

Re: [PyQt] Re: Re: How to communicate with mysql?

2008-01-27 Thread Hans-Peter Jansen
Am Sonntag, 27. Januar 2008 schrieb Ryen Lee: > > > Hi everybody! I am a newbie for PyQT.Now I am write a simple programm > > > which > > > > > > > use mysql as its database,but I find it is very diffucult to use > > > > the > > > > > > PyQT > > > > > > > APIs.I write sth like that: > > > > > > > >

Re: [PyQt] Proposal for New-style Signals

2008-01-24 Thread Hans-Peter Jansen
Am Donnerstag, 24. Januar 2008 schrieb Doug Bell: > Phil Thompson wrote: > > About 4% of signals are overloaded. I think your point would be an > > issue if that proportion was significantly higher, ie. if a newbie > > would be likely to come across both short and long forms in, say, the > > tutori

Re: [PyQt] problem with passing arguments to a slot

2008-01-18 Thread Hans-Peter Jansen
Am Freitag, 18. Januar 2008 schrieb sschoellhammer: > Hello everybody, > > I really like PyQt but I have one crucial problem. For some reason I > cannot pass an argument from a signal to my own slot function. If there > isn't any - like a simple "clicked()" signal it all works ok but once I > have

Re: [PyQt] QLabel.setTextInteractionFlags raises AttributeError

2008-01-18 Thread Hans-Peter Jansen
Am Freitag, 18. Januar 2008 schrieb Dog Walker: > On Jan 17, 2008 3:05 PM, Phil Thompson <[EMAIL PROTECTED]> wrote: > > On Thursday 17 January 2008, Dog Walker wrote: > > > QT: 3.3.7 SuSE 10.2 > > > > > > Docs (/PyQt-x11-gpl-4.1.1/doc/html/qlabel.html) show > > > "QLabel.setTextInteractionFlags (

Re: [PyQt] Null dates in QDateEdit

2008-01-10 Thread Hans-Peter Jansen
Am Donnerstag, 10. Januar 2008 schrieb Catriona Johnson: > Hello > I am new to PyQT and would appreciate help with the following problem. > I have a database table that has, amongst other fields, a nullable > date - EndDate. On my form I have a QDateEdit widget which I only want > to show a value i

Re: [PyQt] Bug in QTableView.setModel()

2008-01-08 Thread Hans-Peter Jansen
First of all, happy new year, Phil & and PyQtnistas! Am Dienstag, 8. Januar 2008 schrieb Phil Thompson: > > In C++ you should be managing the lifecycle of the model you create > (either by giving it a parent or by keeping a pointer to it and deleting > it when appropriate). The same applies in PyQ

Re: [PyQt] QSqlQuery: one parameter in two different places?

2008-01-01 Thread Hans-Peter Jansen
Am Dienstag, 1. Januar 2008 schrieb Sibylle Koczian: > Hello, > > my SQL query has this form: > > sqltext = 'UPDATE mytable SET field_1 = :newvalue WHERE field_2 < > :newvalue' > > The database is SQLITE. If I use this query as is: > > query = QSqlQuery() > query.prepare(sqltext) > query.bindValue(

Re: [PyQt] Problems with stylesheets.

2007-12-03 Thread Hans-Peter Jansen
Qt, not C++ (and I don't care to learn it). Or i > would never post here. I learned a lot C++ details from studying Qt's source, and peered with PyQt's docs and sip's, this helped me to solve a lot of PyQt problems in the past, and greatly improved the quality of my _P

Re: [PyQt] Problems with stylesheets.

2007-12-03 Thread Hans-Peter Jansen
Am Freitag, 30. November 2007 schrieb Gustavo A. Díaz: > Hi guys. > > I have a weird problem when i want to style my app, but specially with > QPushButton and QScrollBar. > > I have this for QPushButton: > > self.setStyleSheet (" \ > QPushButton {background-image: > url(:/Styles/sty

Re: [PyQt] Message boxes or OSD

2007-11-21 Thread Hans-Peter Jansen
Am Mittwoch, 21. November 2007 schrieb Nahuel Defossé: > Hi List, > I'm creating a little app which monitors file system alterations using > pyinotify. It works, but notifications are made with kde's kdialog, with > the --passivepopup dialog, and popen. > I wonder if I could make nice notifications

Re: [PyQt] PyKDE installation error

2007-11-20 Thread Hans-Peter Jansen
Am Dienstag, 20. November 2007 schrieb [EMAIL PROTECTED]: > python configure.py > > PyKDE version 3.16.0 >--- > > Python include directory is /usr/local/include/python2.5 > Python version is 2.5.1 > > sip version is 4.6 (4.6.0) > > Qt directory is /usr/local/Trolltech/Qt-4.2.3

Re: [PyQt] Rejoice, for PyKDE4 has landed in KDE SVN

2007-11-12 Thread Hans-Peter Jansen
Am Montag, 3. September 2007 schrieb Simon Edwards: > [I'll just repeat my blog post here for everyone.] > > Almost all classes in kdelibs are covered, except Phonon which is > waiting on imporved namespace support in SIP before we can add support. > Supporting tools like a Qt designer compiler tha

Re: [PyQt] QMessageBox.about() with html text

2007-11-12 Thread Hans-Peter Jansen
Am Montag, 12. November 2007 schrieb Dirk Wagener: > Hi > > I have: > > QMessageBox.about(None, "Title Text", text ) > > > with > > text = " > > Test image: > > > > " > > > How do I get the QMessageBox() to use the bgcolor (red) and also to > display the image? > Currently it uses the default grey

Re: [PyQt] How to close QSqlDatabase connection?

2007-11-12 Thread Hans-Peter Jansen
Am Montag, 12. November 2007 schrieb Sibylle Koczian: > > So I looked around and saw that I had this: > > def main(args): > app = QtGui.QApplication(args) > if not visa_conn(): > sys.exit(1) > visa_mf = VisaMF() > visa_mf.show() > sys.exit(app.exec_()) > > if __name__ ==

Re: [PyQt] How to close QSqlDatabase connection?

2007-11-11 Thread Hans-Peter Jansen
Dear Sibylle, I can only talk for PyQt3, through (yes, I'm retro..), but.. Am Sonntag, 11. November 2007 schrieb Sibylle Koczian: > Hello, > > I'm trying to write a very small database application, but I can't get > rid of this error message when I close the main > window: "QSqlDatabasePrivate::r

Re: [PyQt] segmentation fault

2007-10-26 Thread Hans-Peter Jansen
Am Freitag, 26. Oktober 2007 13:23 schrieb alteo_gange: > Le vendredi 26 octobre 2007, Reinhard Thies a écrit : > > Now I've installed the debian packages, but getting the following > > errors [EMAIL PROTECTED]:/usr/share/doc/python-qt4-doc/examples/script$ > > python2.4 ./helloscript.py

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

2007-10-25 Thread Hans-Peter Jansen
Am Donnerstag, 25. Oktober 2007 21:15 schrieb David J Brooks: > > I expect the American response to overpriced books is much the same as > the European one: make a .torrent and put it on the .net Be careful, safari watermarked the rough cuts edition on every user. Probably with a highly expensiv

Re: [PyQt] segmentation fault

2007-10-25 Thread Hans-Peter Jansen
Am Donnerstag, 25. Oktober 2007 21:59 schrieb Reinhard Thies: > Hi all, > > i am new to PyQt an QT as well. > I just downloaded and installed Qt 4.3.2 and PyQt 4.3.1 from source on my > Debian based sidux machine. > Everything configured and compiled just fine. > All qt examples are working but if

Re: [PyQt] QMessageBox with unicode text fails

2007-10-25 Thread Hans-Peter Jansen
Am Donnerstag, 25. Oktober 2007 14:08 schrieb alteo_gange: > Le jeudi 25 octobre 2007, David Boddie a écrit : > > 3. The default encoding isn't UTF-8 > > What a shame! That will change with Python 3000. hp ___ PyQt mailing listPyQt@riverbankcomputi

Re: [PyQt] PyKDE4 guide/tutorial

2007-10-17 Thread Hans-Peter Jansen
Hi Arne, Am Mittwoch, 17. Oktober 2007 11:03 schrieb Arne Babenhauserheide: > Hi, > > Is there a guide for PyKDE4? Google didn't get me far, here... > > I don't yet know KDE programming. Should I try to get into PyKDE4 > nontheless? > > http://websvn.kde.org/tags/KDE/3.94/kdebindings/python/pykde4

Re: [PyQt] [PyQt3] signal sender() and self.name() issues

2007-09-18 Thread Hans-Peter Jansen
Am Sonntag, 16. September 2007 23:24 schrieb Phil Thompson: > On Sunday 16 September 2007, Hans-Peter Jansen wrote: > > Hi *, > > > > I stumbled upon some strange effects with signal sender() and > > self.name() properties in PyQt3. [...] > > The sender reso

[PyQt] [PyQt3] signal sender() and self.name() issues

2007-09-16 Thread Hans-Peter Jansen
Hi *, I stumbled upon some strange effects with signal sender() and self.name() properties in PyQt3. I had the impression, the latter is available immediately after calling a QObject derived constructor, while the Qt3 documentation states: Returns a pointer to the object that sent the signal,

Re: [PyQt] [Fwd: Bug#441577: ftbfs with g++-4.3/gcc-snapshot]

2007-09-11 Thread Hans-Peter Jansen
Am Mittwoch, 12. September 2007 00:26 schrieb Danny Pansters: > > I've seen this on FreeBSD when compiling with gcc42 (FreeBSD-STABLE=6 has > gcc34, FreeBSD-CURRENT=7 has gcc42 as their system compiler). I'd get > build cluster failures on CURRENT for py-qt4-gui, as well as py-kde (kde3 > that is).

Re: [PyQt] Adding properties to a custom widget

2007-09-10 Thread Hans-Peter Jansen
Am Montag, 10. September 2007 18:34 schrieb skawaii: > > Yeah, I know about pyqtProperty(), as was indicated in my first post. But > like you said, that's PyQt4. Oh well. Guess I'm out of luck and will have > to come up with some crazy work-around. ..which boils down to implementing your widget in

Re: [PyQt] PyKDE4 Update

2007-09-04 Thread Hans-Peter Jansen
Good Morning Jim, Am Dienstag, 4. September 2007 05:56 schrieb Jim Bublitz: > On Monday 03 September 2007 12:08, Hans-Peter Jansen wrote: > > Awesome, Jim. > > > > Am Montag, 3. September 2007 18:14 schrieb Jim Bublitz: > > > The module lineup is about the same

Re: [PyQt] PyKDE4 Update

2007-09-04 Thread Hans-Peter Jansen
Am Dienstag, 4. September 2007 10:56 schrieb Andreas Pakulat: > > > but the threading API sounds like a big can of worms for Python > > programs running on CPython. Sure, since it involves playing games with the GIL. See below. Phil can tell you stories.. > I don't know CPython and how Threadi

Re: [PyQt] PyKDE4 Update

2007-09-03 Thread Hans-Peter Jansen
Awesome, Jim. Am Montag, 3. September 2007 18:14 schrieb Jim Bublitz: > The module lineup is about the same as PyKDE3, with a few changes. kfile > has been rolled into the kio module, kabc/kresource are dropped, kmdi no > longer exists, kspell is now in kdecore/kdeui as Sonnet, the solid module >

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

2007-07-23 Thread Hans-Peter Jansen
Am Montag, 23. Juli 2007 21:58 schrieb 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

Re: [PyQt] Shouldn't an item view keep a reference to its associatedmodel?

2007-07-21 Thread Hans-Peter Jansen
Am Freitag, 20. Juli 2007 13:00 schrieb Florent Rougon: > Giovanni Bajo <[EMAIL PROTECTED]> wrote: > > It is not what Qt does. PyQt doesn't play tricks with object lifetimes: > > it exposes Qt's underlying object model. > > [...] > > OK, thanks to you and Phil for the answers. It makes sense now.

Re: [PyQt] New PyQt book: 1/2 available...

2007-06-19 Thread Hans-Peter Jansen
Am Dienstag, 19. Juni 2007 17:52 schrieb Mark Summerfield: > Hi, > > Just to let you know that the first half of my new book, > "Rapid GUI Programming with Python and Qt" > which is based on Python 2.5, PyQt 4.2 and Qt 4.2, is available online at > http://safari.informit.com/9780132354189 Nice

Re: [PyQt] Custom Delegates

2007-05-27 Thread Hans-Peter Jansen
Am Sonntag, 27. Mai 2007 11:12 schrieb Nahuel Defossé: > How can I create a table item that display some pixmap bar (like the > stars in amarok). I downloaded Amarok sourcecode, looked for delegate in > all the source codes, but i didn't find something useful. Hmm, since the distributed amarok is

Re: [PyQt] stuck on non-modal dialog

2007-05-23 Thread Hans-Peter Jansen
Am Mittwoch, 23. Mai 2007 16:26 schrieb Phil Thompson: > On Wednesday 23 May 2007 3:18 pm, David J Brooks wrote: > > On Wednesday 23 May 2007 02:22:41 am Phil Thompson wrote: > > > On Wednesday 23 May 2007 2:20 am, David J Brooks wrote: > > > > I'm sure I must be overlooking something obvious, but

Re: [PyQt] [PyQt3] QPen issues

2007-05-14 Thread Hans-Peter Jansen
Am Montag, 14. Mai 2007 21:22 schrieb Ingmar Steen: > On 5/14/07, Hans-Peter Jansen <[EMAIL PROTECTED]> wrote: > > Am Montag, 14. Mai 2007 09:56 schrieb Phil Thompson: > > > > > > In C++ pen() returns a const reference - and SIP doesn't support > > >

Re: [PyQt] [PyQt3] QPen issues

2007-05-14 Thread Hans-Peter Jansen
Am Montag, 14. Mai 2007 09:56 schrieb Phil Thompson: > On Sunday 13 May 2007 4:18 pm, Hans-Peter Jansen wrote: > > Hi Phil, > > > > while at PyQt3 issues, could you look into an issue with pens, when > > fetching them with pen() from a QPainter. When using a QPen() ins

[PyQt] [PyQt3] QPen issues

2007-05-13 Thread Hans-Peter Jansen
Hi Phil, while at PyQt3 issues, could you look into an issue with pens, when fetching them with pen() from a QPainter. When using a QPen() instance, all is well, but modifying the fetched pen does not work (a pen with default properties will be used, no matter what is set on it). A simple self

Re: [PyQt] Qspinbox maximum value

2007-05-08 Thread Hans-Peter Jansen
Am Dienstag, 8. Mai 2007 12:20 schrieb joanne matthews (RRes-Roth): > I have resolved this now by using a qtextedit and an inputmask. Thanks which lacks the spin box arrows, and at least my users hate this inputmask thing.. For a generic PyQt3 spinbox based solution, search for QSpinWidget in thi

Re: [PyQt] tableItem as a list

2007-05-02 Thread Hans-Peter Jansen
Am Mittwoch, 2. Mai 2007 02:30 schrieb Behnam Kamrani: > Hi, > I'm writing this message desperately. Using qt (3.3.4), I have a table in > a widget, and since it needed to Enabled/Disabled table cells, I used > tableItems for it. > > To make it structural in my thinking, I used a list like > self.m

Re: [PyQt] PyKDE dcopext string marshalling; no unicode chars in a QString?

2007-04-30 Thread Hans-Peter Jansen
Am Montag, 30. April 2007 16:22 schrieb Danny Pansters: > > The code that does the video capturing is written in C and used in the > rest of the app as a python module (using SWIG to expose a dozen simple > control functions). You may want to do yourself a favour and wrap that stuff with sip. Tha

Re: [PyQt] error installing PyQT 4.2 on Windows

2007-04-29 Thread Hans-Peter Jansen
Am Sonntag, 29. April 2007 21:16 schrieb David J Brooks: > > python configure.py > > Traceback (most recent call last): > File "configure.py", line 30 in > import sipconfig > ImportError: No module named sipconfig > > I have installed Python 2.5, Qt 4.2.4 and mingw. Those are working f

Re: [PyQt] question re Atext drag and drop in PyQt3

2007-04-29 Thread Hans-Peter Jansen
Am Freitag, 27. April 2007 23:43 schrieb Tony Willis: > I hope that someone can help me with the following. I'm attempting > to drag and drop some floating point numbers from one widget to > another with PyQt3. The easiest way to do the dragging would appear to be > with the QTextDrag object. So I

Re: [PyQt] Question On "QX11EmbedContainer"

2007-04-16 Thread Hans-Peter Jansen
Am Montag, 16. April 2007 07:25 schrieb Marco: > Hi, > I have a computer shipped a VIA display card(CLE266) and drived by > Xorg opensouce via driver. I want to rorate my monitor 90 degree and > ther via driver provide me a option: "Rotate" "CW". Now I can view the > "LONG_SCREEN". > > But I mee

Re: [PyQt] How to install Qt4 and PyQt4 without it documents?

2007-04-16 Thread Hans-Peter Jansen
Am Montag, 16. April 2007 02:44 schrieb Marco: > Hi, > I have about 10 machines need to install PyQt4, compiled in one > machines, and make it as debian packets. But I only need one copy of > documents. How to configure without documents? That is a debian packaging question, better ask on a rela

<    1   2   3   4   5   6   7   8   9   >