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

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

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 the values are oscillating around 150

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 how

[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

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/QtTest

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

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 should be

[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 h...@urpla.net wrote: Dear Phil, since one of the more recent versions of SIP (4.14 or 4.14.1), MySQL database table data shows strange characters

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):

[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

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 My

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 pekingmas...@gmail.com

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 tly...@xype.com 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

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 data

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

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

2012-07-20 Thread Hans-Peter Jansen
, 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 h...@urpla.net wrote: Am Thursday 19 July 2012 19:46:39 schrieb Itay Brandes

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 sascha.ma...@open-slx.de 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 sascha.ma...@open-slx.de

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 deb...@kitterman.com 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

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] 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. During

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 point

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 command

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 make it easier

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 types,

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, the

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 h...@urpla.net wrote: Am Sunday 19 February 2012 12:47:28 schrieb Phil Thompson: On Sat, 11 Feb 2012 01:36:14 +0100, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil

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 h...@urpla.net wrote: 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

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 just

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) to

[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

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/widget and

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 h...@urpla.net wrote: Hi Phil, shouldn't this work: from PyQt4 import QtCore, QtGui app = QtGui.QApplication([]) pixmap = QtGui.QPixmap(16, 16) painter

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, it

[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:

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 parent

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

2012-01-24 Thread Hans-Peter Jansen
. Pete jorge On 22 January 2012 15:57, Hans-Peter Jansen h...@urpla.net wrote: 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

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

2012-01-23 Thread Hans-Peter Jansen
and the event loop is handled). Pete CE On Sun, Jan 22, 2012 at 4:27 PM, Hans-Peter Jansen h...@urpla.net wrote: 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

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 two

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] 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 no

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

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

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 =

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] 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] 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

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. What

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

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. Wondering if

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 done.

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 tired to re-write

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

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 inherited

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

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

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 it does

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 directly

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 selects

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

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] 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 document.

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: airline =

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 short:

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 h...@urpla.net: 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 of

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 code,

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 . Qarte+7 . PaQager

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 slot

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 based

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 loaded in

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-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] 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 PyQt. However, it does occur whenever I use

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

2011-06-28 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] 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 QLineEdit has

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? I

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

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...] Following Pete's advise, I've installed 23

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 run.

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 you run idle form the command line. You

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_() if __name__

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 version are

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

2011-06-14 Thread Hans-Peter Jansen
with very low priority only, if at all). Pete Saludos, Nahuel Greco. On Tue, Jun 14, 2011 at 6:28 AM, Hans-Peter Jansen h...@urpla.net wrote: 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

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 PyQt.

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 felip...@gmx.net 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

Re: [PyQt] job postings OK?

2011-06-10 Thread Hans-Peter Jansen
On Thursday 09 June 2011, 23:49:29 Kerri Reno wrote: Is it OK to post job openings here? IMHO, as long as they're serious offerings strongly related to PyQt, emitted directly from the principal (no head hunter), preferably in plain ASCII format, nobody would oppose this attempt here. If the

Re: [PyQt] QModelIndex.internalPointer

2011-05-22 Thread Hans-Peter Jansen
On Sunday 22 May 2011, 11:42:38 Phil Thompson wrote: On Sun, 22 May 2011 02:23:35 +0200, Hans-Peter Jansen h...@urpla.net wrote: On Wednesday 18 May 2011, 16:03:59 Andrei Kopats wrote: Here is example. Unfortunately, with it I can reproduce crash only if reference to integer was passed

Re: [PyQt] QModelIndex.internalPointer

2011-05-21 Thread Hans-Peter Jansen
On Wednesday 18 May 2011, 16:03:59 Andrei Kopats wrote: Here is example. Unfortunately, with it I can reproduce crash only if reference to integer was passed to createIndex() In the attachment you can find test script, and execution log. The log also contains my system info. Confirmed, and

Re: [PyQt] Reasign event

2011-05-20 Thread Hans-Peter Jansen
-Peter Jansen h...@urpla.net wrote: On Friday 20 May 2011, 00:12:14 Hugo Léveillé wrote: Newbie in using event in pyqt Let say I just want a keyPressEvent to happen with a certain QLineEdit I tried : self.myLineEDit.keyPressEvent = self.myEvent def myEvent(self,event): print

Re: [PyQt] Reasign event

2011-05-19 Thread Hans-Peter Jansen
On Friday 20 May 2011, 00:12:14 Hugo Léveillé wrote: Newbie in using event in pyqt Let say I just want a keyPressEvent to happen with a certain QLineEdit I tried : self.myLineEDit.keyPressEvent = self.myEvent def myEvent(self,event): print Hello world Sure enought its working. Now

Re: [PyQt] Links in QMessageBox.about() not working

2011-05-18 Thread Hans-Peter Jansen
On Wednesday 18 May 2011, 19:29:04 Detlev Offenbach wrote: On Dienstag, 17. Mai 2011, Joel B. Mohler wrote: On Tuesday, May 17, 2011 08:46:57 am David Boddie wrote: On Tue May 17 10:21:04 BST 2011, Hans-Peter Jansen wrote: On Monday 16 May 2011, 14:28:00 Anoop Panavalappil wrote: I

Re: [PyQt] App Color/Style Themes

2011-05-17 Thread Hans-Peter Jansen
On Monday 16 May 2011, 18:44:59 James Polk wrote: Anyone have any experience working with,tweeking, and/or creating new app color schemes? You can change your applications color scheme by tweaking QPalette and calling QApplication.setPalette(). ...the one's specificed with app.setStyle()...

Re: [PyQt] Links in QMessageBox.about() not working

2011-05-17 Thread Hans-Peter Jansen
On Monday 16 May 2011, 14:28:00 Anoop Panavalappil wrote: Hi There, I am developing a simple cross platform GUI using PyQt. I have tried to show the about dialog using QMessageBox.about() with richtext formatting with html tags (b, br, and a). The dialog correctly renders the HTML but the

Re: [PyQt] QSpinBox does not recognize returnPressed event

2011-05-11 Thread Hans-Peter Jansen
On Wednesday 11 May 2011, 11:13:24 Adrian Casey wrote: I want to connect the returnPressed() event to a QSpinBox widget but it is not working. I use the same approach with a QComboBox and it works. I'm using Qt 4.7.0 and PyQt on Kubuntu 10.10. Here is a simple form containing a combobox and

Re: [PyQt] QModelIndex.internalPointer

2011-05-05 Thread Hans-Peter Jansen
On Friday 29 April 2011, 09:59:40 Andrei Kopats wrote: Hi, Few days ago QModelIndex.internalPointer was discussed here. I also have problems with it. I can't say exactly, when crash occurs, and when it doesn't, but, this code generates crash for me: index = self.createIndex(row,

  1   2   3   4   5   6   7   8   >