Re: [PyQt] PyKDE build failure with Sip 4.15.1

2013-08-24 Thread Hans-Peter Jansen
On Freitag, 23. August 2013 23:17:59 Scott Kitterman wrote: > I've updated the Debian packages in the Debian Experimental repository for > testing (just Sip 4.1.5 so far, but I'll upload 4.15.1 shortly). I tried > rebuilding the current Debian PyKDE package (4.10.5) and it failed to build > (last

Re: [PyQt] ANN: SIP v4.15.1 Released

2013-08-24 Thread Hans-Peter Jansen
On Freitag, 23. August 2013 18:44:38 Phil Thompson wrote: > SIP v4.15.1 has been released. This fixes a regression in v4.15 related to > the handling of hidden virtual methods. PyQt is unaffected. Well, but PyQt3 is: [ 121s] g++ -c -pipe -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-

Re: [PyQt] PyQt4 original example “dbus” bugged

2013-04-03 Thread Hans-Peter Jansen
On Mittwoch, 3. April 2013 18:17:46 Pietro Moras wrote: > Hi Andreas, I've not > misunderstood, you have. In the sense that “\example\dbus” here > considered is an original example provided into the original PyQt4 > package and, therefore, as such supposed to work as a model from > which to learn

Re: [PyQt] QGraphicsView very slow under Linux and Mac OS X

2013-04-03 Thread Hans-Peter Jansen
On Mittwoch, 3. April 2013 17:28:28 Clemens Brunner wrote: > On 04/03/2013 04:23 PM, Hans-Peter Jansen wrote: > > What you see is possibly related to the default Qt graphics engine: > > > > when using: > > QT_GRAPHICSSYSTEM=opengl python graphicsviewtest.py > >

Re: [PyQt] QGraphicsView very slow under Linux and Mac OS X

2013-04-03 Thread Hans-Peter Jansen
On Mittwoch, 3. April 2013 15:50:46 Clemens Brunner wrote: > On 04/03/2013 03:24 PM, Andreas Pakulat wrote: > > first of all, QTimer gives you no guarantee that it'll fire exactly > > after the given amount of time. In particular not with such small > > timeouts and when having non-trivial paint fu

[PyQt] eric4 and PyQt dtors

2013-03-21 Thread Hans-Peter Jansen
Hi Phil, If I remember correctly, you talked about making a new termination scheme default, where you don't call any dtors from a certain point in the termination process. Is this already available as an option? When leaving eric4 running for an extended period of time, I *always* harvest below

Re: [PyQt] PyQt compilation problem with the latest snapshot

2013-03-15 Thread Hans-Peter Jansen
Am Freitag, 15. März 2013, 18:04:17 schrieb Umit Oztosun: > Hello, > > Using sip-4.14.5-snapshot-c65a525a0a17, I am unable to compile > PyQt-win-gpl-snapshot-4.10.1-ba2fe994bb0b on Windows XP 32 bit with > VS2008. I am using a self compiled Qt 4.8.4. It fails with: > > /* snipped */ > sipQtGuiQSy

Re: [PyQt] PyQt4 issue

2013-03-05 Thread Hans-Peter Jansen
Am Dienstag, 5. März 2013, 18:44:24 schrieb Detlev Offenbach: > Hello, > > here is the extract. > > Checking to see if the QtTest module should be built... > g++ -DQT_NO_DEBUG -DQT_TEST_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB -I. - > I/usr/local/Qt-5.0.1/mkspecs/linux-g++ -I/usr/local/Qt-5.0.1/include/

Re: [PyQt] QPixmap.loadFromData()

2013-01-28 Thread Hans-Peter Jansen
Am Freitag, 25. Januar 2013, 00:41:04 schrieb pa...@paolodestefani.it: > Hello > I'm trying to create a item delegate for a sql table (postgres db) > where i have a field (type bytea) that should contain a PNG image. > This is the code of the create editor method: > > def createEditor(self, parent

[PyQt] QDBusPendingCall issue with Qt v4.4.3

2013-01-14 Thread Hans-Peter Jansen
Hi Phil, as I support some quite old distributions on build service, those builds shake out some compatibility issues. This time, it's related to QDBusPendingCall, which seems to be missing in Qt 4.4.3 at least: [ 267s] This is the GPL version of PyQt 4.9.6 (licensed under the GNU General Pub

Re: [PyQt] HeightForWidth label

2013-01-09 Thread Hans-Peter Jansen
Dear Mads, Am Mittwoch, 9. Januar 2013, 15:56:29 schrieb Mads Ipsen: > Hi, > > 4-5 years I needed a widget with the following properties: > > * Display text incl. HTML > * Text should be wrapped on several lines > * When the widget is put into a layout, the height of the widget > shoul

[PyQt] Fwd: [Kde-bindings] problem with sip api 2 for QString

2013-01-03 Thread Hans-Peter Jansen
Dear Phil, wishing you a successful and pleasable 2013. You might want to look into the attached issue. It looks like it is a sip issue, althrough I wouldn't exclude PyKDE wrapper issues here... Cheers, Pete -- Weitergeleitete Nachricht -- Betreff: [Kde-bindings] problem

Re: [PyQt] Strange utf-8 conversions in PyQt3

2012-12-16 Thread Hans-Peter Jansen
Dear Phil, Am Dienstag, 20. November 2012, 09:56:06 schrieb Phil Thompson: > On Wed, 14 Nov 2012 00:39:52 +0100, Hans-Peter Jansen > > wrote: > > Dear Phil, > > > > since one of the more recent versions of SIP (4.14 or 4.14.1), MySQL > > database > > t

Re: [PyQt] Problems with pyInstaller 2.0 and qt setWindowIcon Command

2012-11-14 Thread Hans-Peter Jansen
Am Mittwoch, 14. November 2012, 12:57:05 schrieb James Goss: > Hi All, > > > Wondering if anyone can help, > > Simple Qt Application: > |from PyQt4 import QtGui, QtCore > > import sys, atexit > > class ApplicationWindow(QtGui.QMainWindow): > def __init__(self): > QtGui.QM

[PyQt] Strange utf-8 conversions in PyQt3

2012-11-13 Thread Hans-Peter Jansen
Dear Phil, since one of the more recent versions of SIP (4.14 or 4.14.1), MySQL database table data shows strange characters with PyQt3. The tables hold utf-8 data, and all other database tools handle the utf-8 data as expected. Only PyQt3 apps show this anomaly, PyQt4 is still fine. I can pro

Re: [PyQt] Python3.2 and PyQt 4.9.5 : undefined symbol: PyUnicode_AsLatin1String

2012-10-25 Thread Hans-Peter Jansen
Am Donnerstag, 25. Oktober 2012, 11:54:24 schrieb t...@tobix.eu: > Hello, > > when using python 3.2 to run any python program that uses PyQt 4.9.5 I > get the following error: > > ImportError: /usr/local/lib/python3.2/site-packages/PyQt4/QtCore.so: > undefined symbol: PyUnicode_AsLatin1String >

Re: [PyQt] clipboard not work on GNOME/Unity?

2012-09-20 Thread Hans-Peter Jansen
Am Thursday 20 September 2012 06:36:33 schrieb zw g: > Can anyone help me on this? > Still stuck. This is rather OT, and you failed to RTFM. http://doc.qt.digia.com/4.7-snapshot/qclipboard.html#notes-for-x11-users Pete > Thanks. > > On Tue, Sep 11, 2012 at 10:12 AM, zw g wrote: > > Anyone? So

Re: [PyQt] Dilemma: Pqt or wxpython

2012-09-13 Thread Hans-Peter Jansen
Am Dienstag, 11. September 2012, 16:39:01 schrieb Gour: > On Tue, 11 Sep 2012 15:14:42 +0100 > > "Tony Lynch" wrote: > > Qt is much better than wx in general, and more widely used. I'd go for > > Qt/PyQt every time, > > One pro for wx might be using native toolkits and (probably) looking > bette

Re: [PyQt] Model/view: values of type Decimal not shown

2012-07-27 Thread Hans-Peter Jansen
Am Thursday 26 July 2012 20:24:13 schrieb Sibylle Koczian: > Hello, > > I don't know how to get numeric data from my model to my GUI, if they > aren't floats but decimal.Decimal. In the following example the last > column of the view and the last QLineEdit of the form both stay > empty. The model d

Re: [PyQt] Creating QSplashScreen with a .gif animation

2012-07-20 Thread Hans-Peter Jansen
re he loads the gif with QMovie, but that approach might lack, too, since QMovie needs the event loop running, which is usually not the case during initialization. Oh well. Pete > Thanks. > > On Fri, Jul 20, 2012 at 10:52 AM, Hans-Peter Jansen wrote: > > Am Thursday 19 July 2012 1

Re: [PyQt] Creating QSplashScreen with a .gif animation

2012-07-20 Thread Hans-Peter Jansen
Am Thursday 19 July 2012 19:46:39 schrieb Itay Brandes: > Hey, > QtGui.QSplashScreen allows to use a static image source for the > splash screen, but does not support .gif animations. > > How can I bind a QtGui.QMovie to the QtGui.QSplashScreen? > There are many snap-ins in C++, like > this

Re: [PyQt] Packaging Error in python-qt [Linux-RPM]

2012-06-29 Thread Hans-Peter Jansen
On Thursday 28 June 2012, 11:05:51 Phil Thompson wrote: > On Thu, 28 Jun 2012 10:48:21 +0200, Sascha Manns > > > wrote: > > Hello Phil, > > > > Am Donnerstag, 28. Juni 2012, 09:27:03 schrieb Phil Thompson: > >> On Wed, 27 Jun 2012 21:48:10 +0200, Sascha Manns > >> > >> > >> wrote: > >> > Hello ma

Re: [PyQt] How to exclude the Lineedits in QSpinbox

2012-06-25 Thread Hans-Peter Jansen
On Monday 25 June 2012, 15:08:46 mani kandan wrote: > > How do I classify between the acual lineedits, and lineedits of the > spin/double spinboxes? Check the names and avoid the qt ones. While this is dirty as hell, it's quite unlikely, that the qt names will change over time.. Pete __

Re: [PyQt] Compiler Flags and PyQt

2012-06-25 Thread Hans-Peter Jansen
On Sunday 24 June 2012, 19:32:44 Phil Thompson wrote: > On Sun, 24 Jun 2012 12:05:15 -0400, Scott Kitterman > > > wrote: > > Passing the CCPFLAGS via CFLAGS/CXXFLAGS as discussed yesterday > > worked great > > for SIP4. I it mostly working for PyQT, but it doesn't appear that > > QtCore/QtGui and

Re: [PyQt] Possible bug with new signal-slot connection

2012-05-17 Thread Hans-Peter Jansen
On Wednesday 16 May 2012, 22:21:05 Phil Thompson wrote: > > So the rule is that if you make a connection old style then you must > disconnect old style as well and the same for new style. You also > need to be aware that pyuic4 uses old style connections. While all of this makes sense, it might be

Re: [PyQt] Possible bug with new signal-slot connection

2012-05-16 Thread Hans-Peter Jansen
Hi Alexander, Am Tuesday 15 May 2012 16:34:05 schrieb Alexander Bruy: > Hi all, > > I try to use new style for signal-slot connection [0] in my project. And > have one problem that looks like bug in PyQt. > > There is a dialog window with QDialogButtonBox, which has two buttons > OK and Close. Dur

Re: [PyQt] Disturbing evidence of garbage collection error

2012-04-30 Thread Hans-Peter Jansen
Dear Andrew, Am Sunday 29 April 2012 17:21:34 schrieb Andrew Suffield: > On Sun, Apr 29, 2012 at 03:51:43PM +0100, Phil Thompson wrote: > > You might try keeping explicit references to any objects involved in the > > query where you might be expecting PyQt to keep the reference for you. > > At the

Re: [PyQt] Cannot 'configure' PyQt4.9 before build on Linuxmint

2012-04-26 Thread Hans-Peter Jansen
Am Wednesday 25 April 2012 14:28:54 schrieb Brian Kelley: > That would have been nice, except (1) This affected multiple distress that > did not have the openSUSE build service (2) I need to build with multiple > pythons (2.3Š2.7) (3) I need to install into a specific prefix and PyQt is > not easil

Re: [PyQt] Cannot 'configure' PyQt4.9 before build on Linuxmint

2012-04-25 Thread Hans-Peter Jansen
Dear Brian, Am Tuesday 24 April 2012 19:44:17 schrieb Brian Kelley: > I got hit by this as well. Apparently having the correct sip in your path > may not be enough. I have attached a script that properly builds sip+qt > assuming you have downloaded the current tarballs. It also has the > comman

Re: [PyQt] Designer source

2012-03-09 Thread Hans-Peter Jansen
Am Thursday 08 March 2012 23:08:09 schrieb Andreas Pakulat: > On 08.03.12 19:42:39, Detlev Offenbach wrote: > > Am Donnerstag, 8. März 2012, 09:49:41 schrieb Andreas Pakulat: > > > On 08.03.12 09:35:51, Andreas Pakulat wrote: > > > > On 07.03.12 16:14:18, JPolk wrote: > > > > > ...'cause it would m

Re: [PyQt] isRunning() returns true after QThread completion

2012-03-05 Thread Hans-Peter Jansen
On Tuesday 28 February 2012, 21:08:46 Lars Beiderbecke wrote: > Hello Hans-Peter, > > Thanks for your answer! The connection type default > Qt.AutoConnection should be equivalent to Qt.QueuedConnection, which > in turn should be the right kind of connection to avoid race > conditions. With both t

Re: [PyQt] isRunning() returns true after QThread completion

2012-02-26 Thread Hans-Peter Jansen
Dear Lars, On Sunday 26 February 2012, 15:55:25 Lars Beiderbecke wrote: > Hello, > > In my application some QThreads still return isRunning() == true when > they should be completed. > > More specifically, I'm using QThreads to load images asynchronously > in the background. By emitting a signal,

Re: [PyQt] TableView - activated signal

2012-02-21 Thread Hans-Peter Jansen
On Tuesday 21 February 2012, 18:06:51 Mads Ipsen wrote: > On 21/02/2012 16:47, Mateusz Korniak wrote: > > On Tuesday 21 of February 2012, Mads Ipsen wrote: > >> On 21/02/2012 15:32, Mateusz Korniak wrote: > >>> On Tuesday 21 of February 2012, Mads Ipsen wrote: > (...) I attach a snippet that r

Re: [PyQt] Mouse Hover Event small issue

2012-02-21 Thread Hans-Peter Jansen
On Tuesday 21 February 2012, 03:27:41 uahmed wrote: > hi , > > I want to do hover i saw an example and then write a script which > will be use as i made program i am facing one problem that hover only > occur if u putt mouse on the left corner of button i want that it > will happen for all the butt

Re: [PyQt] spreadsheet example

2012-02-21 Thread Hans-Peter Jansen
Am Monday 20 February 2012 19:30:06 schrieb Phil Thompson: > On Mon, 20 Feb 2012 18:20:32 +0100, "Hans-Peter Jansen" > > wrote: > > Am Sunday 19 February 2012 12:47:28 schrieb Phil Thompson: > >> On Sat, 11 Feb 2012 01:36:14 +0100, "Hans-Peter Jansen

Re: [PyQt] spreadsheet example

2012-02-20 Thread Hans-Peter Jansen
Am Sunday 19 February 2012 12:47:28 schrieb Phil Thompson: > On Sat, 11 Feb 2012 01:36:14 +0100, "Hans-Peter Jansen" > > > wrote: > > Hi Phil, > > > > while I'm seriously overloaded at the moment (a bunch of people are > > much > > >

Re: [PyQt] QDockWidget issue in Linux, but not Windows, OSX

2012-02-13 Thread Hans-Peter Jansen
Am Monday 13 February 2012 21:37:55 schrieb JPolk: > Thanks for your help, Pete > > While your example does indeed fix the problem that my example code showed, > unfortunately, when plugging it in to the real program, the problem > persists. > > However, I have been able to reproduce this bug using

[PyQt] spreadsheet example

2012-02-10 Thread Hans-Peter Jansen
Hi Phil, while I'm seriously overloaded at the moment (a bunch of people are much harder to organize then code), I did some relaxations by converting another fine Qt example. As usual, I couldn't resist in pimping it up in some minor ways. Most prominently, I added a way to change the date for

Re: [PyQt] QDockWidget issue in Linux, but not Windows, OSX

2012-02-10 Thread Hans-Peter Jansen
On Friday 10 February 2012, 21:42:52 JPolk wrote: > Here is a simplified example of the bug... > > Again, this behaviour only happens in Linux, not WinXP or > OSX...Anybody have any idea or thoughts on this? This is most probably due to differences in window manager behavior, that Qt tries (hard)

Re: [PyQt] Can DockWidgets be docked onto anything else except MainWindows?

2012-02-02 Thread Hans-Peter Jansen
On Thursday 02 February 2012, 08:55:44 Andreas Pakulat wrote: > On 01.02.12 17:37:53, JPolk wrote: > > Can DockWidgets be docked onto anything else except MainWindows ? > > > > Supposed you have either a layout or a widget that's "mid-page" in > > a window and want to dock/undock from that layout/w

Re: [PyQt] Parent/Child widget clipping

2012-02-01 Thread Hans-Peter Jansen
On Wednesday 01 February 2012, 20:47:01 JPolk wrote: > ...not sure if this is the proper or elegant way, but I found a > workaroundby setting minWidth and minHeight > > self.widget.setMinimumWidth(minW) > self.widget.setMinimumHeight(minH) > > ...then, once inserted into the TreeWidget,

Re: [PyQt] issue with QPainter.drawPolyline and list of QPoints

2012-02-01 Thread Hans-Peter Jansen
On Wednesday 01 February 2012, 09:57:35 Phil Thompson wrote: > On Wed, 1 Feb 2012 01:25:57 +0100, "Hans-Peter Jansen" > > > wrote: > > Hi Phil, > > > > shouldn't this work: > > > > from PyQt4 import QtCore, QtGui > > app = QtGui.

[PyQt] issue with QPainter.drawPolyline and list of QPoints

2012-01-31 Thread Hans-Peter Jansen
Hi Phil, shouldn't this work: from PyQt4 import QtCore, QtGui app = QtGui.QApplication([]) pixmap = QtGui.QPixmap(16, 16) painter = QtGui.QPainter(pixmap) plist = [QtCore.QPoint(0, 15), QtCore.QPoint(0, 0), QtCore.QPoint(15, 0)] painter.drawPolyline(plist) With PyQt 4.9, this results in: TypeEr

Re: [PyQt] Parent/Child widget clipping

2012-01-30 Thread Hans-Peter Jansen
On Tuesday 31 January 2012, 00:07:24 James Polk wrote: > Greetings All, > > Doing some prototyping where I have a simple QTreeWidget with 3 > items. Each item has 3 simple children. > > Using QTreeWidget.setItemWidget()I "set/insert" a simple > QTableWidget into a child of one of the tree's par

Re: [PyQt] Sending a Signal from a QTableWidget header

2012-01-24 Thread Hans-Peter Jansen
on startup, if you fail to type the signal name correctly. Pete > jorge > > On 22 January 2012 15:57, Hans-Peter Jansen wrote: > > On Sunday 22 January 2012, 16:38:21 Hans-Peter Jansen wrote: > > > On Saturday 21 January 2012, 23:21:18 starglider.dev wrote: > >

Re: [PyQt] Function to open window and return user input

2012-01-23 Thread Hans-Peter Jansen
xtension code (eg. how QApplication and the event loop is handled). Pete > CE > > On Sun, Jan 22, 2012 at 4:27 PM, Hans-Peter Jansen wrote: > > On Friday 20 January 2012, 20:38:33 Christopher Evans wrote: > > > QInput is designed to get a single input from a user. > > &

Re: [PyQt] Sending a Signal from a QTableWidget header

2012-01-22 Thread Hans-Peter Jansen
On Sunday 22 January 2012, 16:38:21 Hans-Peter Jansen wrote: > On Saturday 21 January 2012, 23:21:18 starglider.dev wrote: > > Hi, > > I need to open a dialog if the user click in the QTableWidget > > header. > > There's no such class in PyQt (nor in Qt). If you mea

Re: [PyQt] Sending a Signal from a QTableWidget header

2012-01-22 Thread Hans-Peter Jansen
On Saturday 21 January 2012, 23:21:18 starglider.dev wrote: > Hi, > I need to open a dialog if the user click in the QTableWidget header. There's no such class in PyQt (nor in Qt). If you mean QTable, then QHeader.clicked() is proably, wat you're looking for. Pete ___

Re: [PyQt] Function to open window and return user input

2012-01-22 Thread Hans-Peter Jansen
On Friday 20 January 2012, 20:38:33 Christopher Evans wrote: > QInput is designed to get a single input from a user. > > In my case, we are making a complex remapping dialog that takes two > ordered lists as input, allows the users to change the order, then on > dialog close, it should return the t

Re: [PyQt] Can't get keyboard shortcuts to work

2012-01-22 Thread Hans-Peter Jansen
On Thursday 19 January 2012, 10:53:31 David Townshend wrote: > I can't get keyboard shortcuts to work with Qt.WidgetShortcut > or Qt.WidgetWithChildrenShortcut context. It seems that nothing I do > will trigger the action. Below is a sample class which is giving the > problem. Can anyone point out

Re: [PyQt] Cannot 'configure' PyQt4.9 before build on Linuxmint

2011-12-29 Thread Hans-Peter Jansen
On Thursday 29 December 2011, 10:48:21 Nico Dufort wrote: > Hmm, I'm puzzled then. I have installed another virtual machine with > Fedora 16, and it gives the exact same error as I had under LinuxMint > 12 and Xubuntu 11.10. Each package was downloaded fresh and rebuilt > for each machine, with n

Re: [PyQt] Menu icons missing in Xfce

2011-12-07 Thread Hans-Peter Jansen
On Wednesday 07 December 2011, 10:10:39 Mark Summerfield wrote: > Hi, > > I have a Python 3/PyQt 4 application that has standard menus and > toolbars and works fine under GNOME 2 on Debian 6. However, on > Xubuntu (Xfce 4.8) the icons only show up in the toolbars not in the > menus. Yet other appli

Re: [PyQt] Version matching: Qt and PyQt

2011-12-02 Thread Hans-Peter Jansen
[Although already answered by Phil, this one errously made it to James only..] Am Friday 02 December 2011 03:13:52 schrieb James Polk: > Is there a online guide anywhere to match a version of Qt with it's > corresponding > > version of PyQt ? > > For example,...on Windows, in order to work with M

Re: [PyQt] QLineEdit in QToolBar

2011-12-01 Thread Hans-Peter Jansen
Am Thursday 01 December 2011 06:18:02 schrieb Vadym Honcharuk: > Hello, > > I can't understand why QLineEdit can't send signal from QToolBar... > > trying via addWidget and addAction, for example last edition: > > self.searchDBLine = QtGui.QLineEdit(self) > self.searchDBLineAction = QtGui.QWidgetAc

Re: [PyQt] non ascii names in QObject?

2011-11-24 Thread Hans-Peter Jansen
On Thursday 24 November 2011, 12:19:09 Victor Varvariuc wrote: > #!/usr/bin/env python3 > > from PyQt4 import QtGui, QtCore, uic > > class Form(QtGui.QDialog): > > def __init__(self, parentWidget): > super().__init__(parentWidget) > self.setupUi() > > def setupUi(self): >

Re: [PyQt] Storing QString/Unicode in Sqlite Database

2011-11-15 Thread Hans-Peter Jansen
On Wednesday 09 November 2011, 10:29:55 Tayfun Kayhan wrote: > Thank you, the first one is working well. I tried setting API V2 but > it gave an error which says that it has been already set to V1. I'll > try fixing this, as well. Quoting http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/

Re: [PyQt] Why won't my dialog show properly when I set its parent on instantiation?

2011-11-15 Thread Hans-Peter Jansen
On Tuesday 08 November 2011, 02:47:54 Åke Kullenberg wrote: > In the attached example script, why won't the MyDialog instance show > properly when I set MyDialog's parent to self on line 20 instead of > leaving it blank? Well, is does show properly. The difference is in positioning (as expected).

Re: [PyQt] PyQt4.Gui.QFileDialog

2011-11-01 Thread Hans-Peter Jansen
On Monday 31 October 2011, 08:07:00 Janwillem wrote: > I want a small script with just a few filedialogs not a full blown > gui application . However when I try the code below the dialog does > not disappear after clicking the Open button on the dialog but stays > on top until the script exits. Wh

Re: [PyQt] QString and unicode problems

2011-10-18 Thread Hans-Peter Jansen
Am Tuesday 18 October 2011 11:07:24 schrieb Andrei Kopats: > Hi > > I am developing PyQt app now, and I very often have crashes, > connected with QString usage. There are 2 reasons for exceptions: > - QString contains unicode characters never had problems with that, as long as you provide proper u

Re: [PyQt] setting color of window titlebar or window background

2011-10-17 Thread Hans-Peter Jansen
On Sunday 16 October 2011, 21:14:44 Brad Buran wrote: > When users of my program run it in test mode, it is not actively > saving data. Once in a while, a user forgets that they are in test > mode and attempts to run an experiment only to realize that the data > wasn't being saved after they're do

Re: [PyQt] Icon on OS X

2011-10-17 Thread Hans-Peter Jansen
On Sunday 16 October 2011, 16:27:25 Clément Mairet wrote: > On 10/16/2011 05:52 AM, Joseph Yeung wrote: > > I am trying out my application on OS X Lion 10.7.2 and PyQt4 4.8.4 > > and it is showing the default Python Launcher Icon. > > > > But on Ubuntu it is showing the icon which I specify. Wonder

Re: [PyQt] segv crashes on mac os around signal statements

2011-09-09 Thread Hans-Peter Jansen
Am Friday 09 September 2011 00:27:22 schrieb David Cortesi: > I am experimenting with trying to implement a custom signal and > having a lot of trouble with the syntax of connect, etc, and while > making various changes I am getting frequent SEGV crashes in the > QtCore plugin. Below is the abbrevi

Re: [PyQt] Delaying splash screen

2011-09-09 Thread Hans-Peter Jansen
Am Thursday 08 September 2011 00:32:17 schrieb Muhammad Bashir Al-Noimi: > On 07/09/2011 11:27 م, Hans-Peter Jansen wrote: > On Wednesday 07 September 2011, 14:04:02 ad...@mbnoimi.net wrote: > > Hi guys, > > I wrote a tiny class for delaying splash screen in C++ but when I >

Re: [PyQt] Delaying splash screen

2011-09-07 Thread Hans-Peter Jansen
On Wednesday 07 September 2011, 14:04:02 ad...@mbnoimi.net wrote: > Hi guys, > > I wrote a tiny class for delaying splash screen in C++ but when I > tired to re-write it in python it didn't work! > > I got "AttributeError TeSplashScreen object has no attribut QFrate" > although TeSplashScreen inh

Re: [PyQt] Updating Qlabel in widget

2011-08-25 Thread Hans-Peter Jansen
On Thursday 25 August 2011, 12:02:52 uahmed wrote: > Hi > > I want to update the Qlabel after the widget is made , Problem is > that updating is base on counter so i call that function after 4 > seconds , but when it by pass the "if" statment it go through all the > commands give me no errors but i

Re: [PyQt] removeWidget

2011-08-25 Thread Hans-Peter Jansen
[I prefer to not get personal replies on this list] On Thursday 25 August 2011, 11:39:46 uahmed wrote: > Hi > > Thanks for the reply , I used .close() . I guess this will destroy > the widget and will not leave memory for it . You cannot close arbitrary widgets, but you can hide and show them wi

Re: [PyQt] removeWidget

2011-08-25 Thread Hans-Peter Jansen
On Thursday 25 August 2011, 10:43:20 Vincent Vande Vyvre wrote: > Le 25/08/11 07:59, uahmed a écrit : > Hi > > I want to add widget in (f1) function and want to remove the widget > from (f2) function . I tried the same thing in same function it do > work but when i try to remove the widget from a

Re: [PyQt] Printing from QWebView (contents visible) gives a set of blank pages

2011-08-21 Thread Hans-Peter Jansen
On Sunday 21 August 2011, 19:52:41 ivanko.rus wrote: > Good afternoon! Recently I was trying to print a Web page from > QWebView and ran into a pretty weird problem. It is the following: I > can print my QWebView perfectly when setting the QPrinter's output > format to PDF or PostScript. But when I

Re: [PyQt] Help needed with SIP

2011-08-09 Thread Hans-Peter Jansen
On Sunday 07 August 2011, 15:29:59 Vipul Raheja wrote: > Hi, > > Thanks for your replies, Pete and Phil, I was able to fix the issues > and build PyQt on my system by doing a few rebuilds with changes in > them. I had earlier installed sip and PyQt using apt-get, but later I > did the same by direc

Re: [PyQt] desktop workspace

2011-08-06 Thread Hans-Peter Jansen
On Saturday 06 August 2011, 01:35:55 emmanuel_mays...@lynceantech.com wrote: > I am trying to save the geometry and and the workspace where the > application has been closed. Is there a way with Python/Qt to get the > info on the workspace number!? While Arnold is generally right, there might be

Re: [PyQt] Help needed with SIP

2011-08-06 Thread Hans-Peter Jansen
On Saturday 06 August 2011, 23:28:05 Vipul Raheja wrote: > Hi, > > Thanks for your reply Phil. > > I had earlier installed SIP and PyQt4 through apt-get in Ubuntu, but > was still getting the same problem since there was no QtGuimod.sip > file present on my system. Probably, your local sip/PyQt ma

Re: [PyQt] Please tell me if I have this straight...

2011-08-06 Thread Hans-Peter Jansen
On Saturday 06 August 2011, 00:35:51 David Boddie wrote: > On Fri Aug 5 19:27:51 BST 2011, David Cortesi wrote: > > I present a document to a user in a QPlainTextEdit widget. The > > widget nicely handles most editing functions, but there is a unique > > operation I want to provide. When the user s

Re: [PyQt] Please tell me if I have this straight...

2011-08-05 Thread Hans-Peter Jansen
On Friday 05 August 2011, 20:27:51 David Cortesi wrote: > I present a document to a user in a QPlainTextEdit widget. The widget > nicely handles most editing functions, but there is a unique > operation I want to provide. When the user selects Edit > BLEEP, the > app is supposed to BLEEP the docume

Re: [PyQt] Trying insert image into QTableWidget

2011-08-04 Thread Hans-Peter Jansen
On Thursday 04 August 2011, 21:45:01 Tony Peña wrote: > ok nothing yet > i refresh the code again here with QLabel now.. :| > > airlineCodePath = './airlines/%s.gif' % code_airline > try: > if os.path.exists(airlineCodePath) is True: > air

Re: [PyQt] Trying to learn ...

2011-08-03 Thread Hans-Peter Jansen
Dear BigAl, On Wednesday 03 August 2011, 01:27:55 Algis Kabaila wrote: > > Hi, Pete! > > Looking at testui.py it seems to me that it should/would work without > the decorator @pyqtSlot(). This suggests two questions: > > 1. What is the advantage, if any, to use the decorator in this case? In sho

Re: [PyQt] Trying to learn ...

2011-08-02 Thread Hans-Peter Jansen
Magnus, please keep the conversation on the ML or CC at the very least. Others might want to participate. My personal preference is to NOT receive personal copies. On Tuesday 02 August 2011, 11:20:15 Magnus Wirström wrote: > 2011/8/2 Hans-Peter Jansen : > > On Monday 01 August 2011,

Re: [PyQt] Trying to learn ...

2011-08-01 Thread Hans-Peter Jansen
On Monday 01 August 2011, 22:20:32 Magnus Wirström wrote: > Hi > > I am sorry if this have been asked before :) > > I am trying to learn using python and pyqt using ERIC 5.1.2. I have a > problem with signals and slots. I tried this on 2 different computer > with different OS and different version

Re: [PyQt] QTableWidget - pyuic does not compile several attributes

2011-07-29 Thread Hans-Peter Jansen
On Thursday 28 July 2011, 19:45:40 Phil Thompson wrote: > On Thu, 28 Jul 2011 01:58:38 +0100, "Protopia" > > > > > And then I ran the compiler and looked at the code (attached) and > > found the following things missing: > > > > > > QTableWidget: > > > > 1. .font.Kerning not compiled. > > Fixe

Re: [PyQt] QTableWidget - pyuic does not compile several attributes

2011-07-28 Thread Hans-Peter Jansen
On Thursday 28 July 2011, 02:58:38 Protopia wrote: > I am not sure whether anyone has found this problem before, however I > can't find it in the archives on Gmane. > > > > I first came across this problem when I designed a table in QT > Designer, and set fonts on certain cells. But when I ran the

Re: [PyQt] QListWidget data fetching

2011-07-26 Thread Hans-Peter Jansen
On Tuesday 26 July 2011, 14:05:45 ad3d wrote: > Hi guys, > >i am trying to get data from listWidget but i am getting it in a > PyQt4.QListWidget object format..where as i want it in QString or > string [item.text() for item in listWidget.items()] Pete _

Re: [PyQt] Fwd: QFileDialog error

2011-07-23 Thread Hans-Peter Jansen
On Saturday 23 July 2011, 07:49:02 Martin Airs wrote: > On Saturday 23 July 2011 07:41:18 Vincent Vande Vyvre wrote: > > It's normal, lineedit.text() returns a QString and Python don't > > like that. > > > > Use : os.path.split(str(self.lineedit.text())) > > > > -- > > Vincent V.V. > > Oqapy . Qa

Re: [PyQt] QGraphicsScene background

2011-07-22 Thread Hans-Peter Jansen
On Friday 22 July 2011, 21:04:44 Lee Harr wrote: > I work on a turtle graphics application written using > PyQt (pynguin.googlecode.com) and I am stuck on one > particular feature that I would like to add. > > Right now, I am using QGraphicsScene and when the > turtle draws, it uses QGraphicsItem b

Re: [PyQt] QRunnable issue

2011-07-22 Thread Hans-Peter Jansen
On Monday 18 July 2011, 20:36:53 Jeremy Sanders wrote: > Hi - I'm having problems with the following code where a QRunnable > emits a signal then ends. If you click the button it should print > 1,2,3. It sometimes works for the first few times but the wrong > number of arguments is given to the slo

Re: [PyQt] A dire warning message

2011-07-08 Thread Hans-Peter Jansen
On Friday 08 July 2011, 02:01:46 Algis Kabaila wrote: > > @Pete - I really do appreciate your helpful comments. It is people > like you that keep me interested in software issues "at the sunset of > my life" (as my even older sister says - "I don't mind dying, just > not today - and not tomorrow")

Re: [PyQt] A dire warning message

2011-07-08 Thread Hans-Peter Jansen
On Friday 08 July 2011, 08:07:16 Algis Kabaila wrote: > On Fri, 8 Jul 2011 01:37:35 PM Baz Walter wrote: > > On 08/07/11 02:36, Algis Kabaila wrote: > > > On Fri, 8 Jul 2011 03:36:40 AM Baz Walter wrote: > > > > you would need to reboot for it to have an effect, as the plugin > > would still be loa

Re: [PyQt] A dire warning message

2011-07-07 Thread Hans-Peter Jansen
On Thursday 07 July 2011, 14:00:28 Algis Kabaila wrote: > On Thu, 7 Jul 2011 09:03:47 PM Hans-Peter Jansen wrote: > > Dear Al, > > > > On Thursday 07 July 2011, 11:22:34 Algis Kabaila wrote: > > > This bothersome warning message probably has nothing to do with >

Re: [PyQt] A dire warning message

2011-07-07 Thread Hans-Peter Jansen
Dear Al, On Thursday 07 July 2011, 11:22:34 Algis Kabaila wrote: > This bothersome warning message probably has nothing to do with PyQt. > However, it does occur whenever I use PyQt. No great harm seems to > occur and the programs function normally, except for that message. > Is there something

Re: [PyQt] QPainter::end: Painter ended with 2 saved states

2011-07-01 Thread Hans-Peter Jansen
Hi Eric, sorry for the delay. On Tuesday 28 June 2011, 21:42:51 Eric Frederich wrote: > Here is a reworked example. > Do you see any potential problems with this one? > Is the call to setText okay? Sure, it's done from the main thread, hence in the main thread context. > Is it okay to access th

Re: [PyQt] QPainter::end: Painter ended with 2 saved states

2011-06-28 Thread Hans-Peter Jansen
On Tuesday 28 June 2011, 20:52:12 Eric Frederich wrote: > I was trying to get an example working with a QThread. > I wound up creating one but after running it for a while and pressing > buttons I got the error... > QPainter::end: Painter ended with 2 saved states > > Am I doing something wrong? >

Re: [PyQt] QLineEdit vs. menu keyboard shortcuts

2011-06-28 Thread Hans-Peter Jansen
On Tuesday 28 June 2011, 19:56:35 Nathan Weston wrote: > On 6/28/2011 1:48 PM, Baz Walter wrote: > > On 28/06/11 16:50, Nathan Weston wrote: > >> QLineEdit has some keyboard shortcuts (e.g. Ctrl+Z for Undo) that > >> clash with the shortcuts for QActions in my application menus. > >> When a QLineEd

Re: [PyQt] Designer issues, WYS-is not-WYG

2011-06-27 Thread Hans-Peter Jansen
On Tuesday 28 June 2011, 01:08:38 James Polk wrote: > I like Designer and have been using it more and more... > but I've been noticing that many times what you see in the Designer > window ends up not matching when you run your program later. > > For example, small offsets in X and Y...look good in

Re: [PyQt] Image doesn't show up

2011-06-25 Thread Hans-Peter Jansen
On Saturday 25 June 2011, 06:57:05 Algis Kabaila wrote: > > But how to change the old style signal/slot statement to the new > style?... exit.triggered.connect(self.close) perhaps? Pete ___ PyQt mailing listPyQt@riverbankcomputing.com http

Re: [PyQt] Bug report: multiple QApplication instances cause a segfault

2011-06-24 Thread Hans-Peter Jansen
On Friday 24 June 2011, 03:35:55 Algis Kabaila wrote: > On Thu, 23 Jun 2011 10:08:50 PM Hans-Peter Jansen wrote: > > Dear Al, > > > > On Thursday 23 June 2011, 13:26:02 Algis Kabaila wrote: > > > On Thu, 23 Jun 2011 07:06:49 PM Hans-Peter Jansen wrote: > > [snip

Re: [PyQt] PyQt application frozen if run in localhost; OK if SSH'd to another host

2011-06-23 Thread Hans-Peter Jansen
On Thursday 23 June 2011, 18:26:52 Arrieta wrote: > Consider the following PyQT application (helloworld.py): > > > import sys > from PyQt4 import QtGui > > def main(): > app = QtGui.QApplication(sys.argv) > win = QtGui.QPushButton("Hello, World!") > win.show() > return app.exec_() >

Re: [PyQt] Bug report: multiple QApplication instances cause a segfault

2011-06-23 Thread Hans-Peter Jansen
Dear Al, On Thursday 23 June 2011, 13:26:02 Algis Kabaila wrote: > On Thu, 23 Jun 2011 07:06:49 PM Hans-Peter Jansen wrote: > > On Thursday 23 June 2011, 08:28:06 David Townshend wrote: > > > If it vanishes, it implies a segfault which you will probably see > > > if yo

Re: [PyQt] Bug report: multiple QApplication instances cause a segfault

2011-06-23 Thread Hans-Peter Jansen
On Thursday 23 June 2011, 08:28:06 David Townshend wrote: > If it vanishes, it implies a segfault which you will probably see if > you run idle form the command line. You should be able to get a > backtrace by running idle through gdb, i.e, from the command line, > run "gdb idle". Then in gdb type

Re: [PyQt] Comppiling QScintilla with python 3.2

2011-06-14 Thread Hans-Peter Jansen
On Wednesday 15 June 2011, 03:04:32 Algis Kabaila wrote: > After long trepidation, I started moving my python scripts from python > 2.x to python 3.2. > > Pleasant surprise - sip-4.12.3 and PyQt-x11-gpl-4.8.4 compiled without > problems! > > Python 3.2 IDLE does not work well with this version of

Re: [PyQt] SIP, PyQt compatibility with QT version

2011-06-14 Thread Hans-Peter Jansen
PyQt3 bugs are handled with very low priority only, if at all). Pete > Saludos, > Nahuel Greco. > > On Tue, Jun 14, 2011 at 6:28 AM, Hans-Peter Jansen wrote: > > On Tuesday 14 June 2011, 07:09:27 Vivek Narvekar wrote: > >> Hello, > >> > >> > >

Re: [PyQt] SIP, PyQt compatibility with QT version

2011-06-14 Thread Hans-Peter Jansen
On Tuesday 14 June 2011, 07:09:27 Vivek Narvekar wrote: > Hello, > > > > I was previously using SIP 3.3 and PyQt 3.3 versions with Qt 3.0.8. > > Now I am planning to migrate to QT 3.3.6-8. This might work, but nobody will care, if it doesn't. > Can you please tell me if SIP 3.3 and PyQt 3.3 vers

Re: [PyQt] ANN: dip v0.3 Released

2011-06-13 Thread Hans-Peter Jansen
On Monday 13 June 2011, 10:12:03 Phil Thompson wrote: > On Sun, 12 Jun 2011 20:06:45 +0200, Wolfgang Keller > > wrote: > > Hello, > > > >> It also includes the ability to bind GUIs created using traditional > >> means (ie. standard PyQt calls or Qt Designer) to models so that > >> those models are

  1   2   3   4   5   6   7   8   9   >