Re: [PyQt] StyleSheet relative path

2011-05-05 Thread Hans-Peter Jansen
On Thursday 05 May 2011, 21:19:50 Hugo Léveillé wrote: Hi Lets say I have a styleheet and an image file in the same folder QTextEdit, QListView { background-color: white; background-image: url(myImage.png); background-attachment: scroll; } I expected this to work since

Re: [PyQt] QStyledItemDelegate.paint ignores styles?

2011-05-04 Thread Hans-Peter Jansen
On Sunday 01 May 2011, 19:02:27 Gerard Brunick wrote: If I override the paint method of QStyledItemDelegate and call the base case, then the base case seems to ignore styles. I thought that the whole point of QStyledItemDelegate was that it handled styles correctly?

Re: [PyQt] QCompleter in a QLineEdit

2011-05-04 Thread Hans-Peter Jansen
On Wednesday 27 April 2011, 08:29:48 C. B. Esquire wrote: (let me know if the space/tab formatting didn't come through and I'll attach the python script instead) I'm trying to create a QCompleter, which works fine if I just build the QLineEdit. However if I drop the QLineEdit into a

Re: [PyQt] How do I subclass QTextEdit without warnings on close?

2011-05-02 Thread Hans-Peter Jansen
On Monday 02 May 2011, 12:39:33 Brad Ralph wrote: Hello, I am trying to subclass QTextEdit to implement a foucsOutEvent. I must be doing something wrong however because when I replace the standard QTextEdit with my subclass I get the following error mesages when I close the program. (once

Re: [PyQt] Reopening QT Window - Segfault

2011-04-26 Thread Hans-Peter Jansen
On Tuesday 26 April 2011, 11:01:14 Michka Popoff wrote: Hello, and sorry to re-ask my question, but I really need a working GUI to display my OpenGL. I think I have read everything on the web about closing pyQT. Some people say you can't call QApplication twice, but don't give an alternative

Re: [PyQt] Reopening QT Window - Segfault

2011-04-26 Thread Hans-Peter Jansen
Michka, please keep the ML CCed at least. If somebody is searching for a similar issue, he might be interested in the follow-ups. On Tuesday 26 April 2011, 11:58:03 Michka Popoff wrote: It's a well known limitation of PyQt (and probably of Qt, too). Having it working for a single arch is

Re: [PyQt] Using layouts in a tab widget

2011-04-24 Thread Hans-Peter Jansen
On Sunday 24 April 2011, 14:11:49 Andreas Pakulat wrote: On 24.04.11 07:10:24, Sarah Mount wrote: Sorry if this is an obvious question, but I couldn't find an answer to it on the using-containers page or on StackOverflow. I have a bunch of tab widgets that need to have appropriate layouts

Re: [PyQt] visualizing PDF files in PyQT WIndows

2011-04-24 Thread Hans-Peter Jansen
On Friday 22 April 2011, 23:43:05 Wilbert Berendsen wrote: Op maandag 18 april 2011 schreef Jeremy: Is there any recommended way to visualize PDF files with PyQT under Windows? python-poppler-qt4 is a Python binding to the Poppler PDF library: http://code.google.com/p/python-poppler-qt4/

Re: [PyQt] Disable context menu of a plugin in QWebview

2011-04-20 Thread Hans-Peter Jansen
On Wednesday 20 April 2011, 00:13:33 Gelonida G wrote: Hi Hans-Peter, Thanks for your answer. You're welcome. On 04/19/2011 03:00 PM, Hans-Peter Jansen wrote: On Monday 18 April 2011, 11:16:17 Gelonida N wrote: The browser should always display a given context menu when the user

Re: [PyQt] Disable context menu of a plugin in QWebview

2011-04-19 Thread Hans-Peter Jansen
On Monday 18 April 2011, 11:16:17 Gelonida N wrote: Hi, Now I am able to activate a flash plugin in my QWebview browser and things work as they should. There is just one minor problem The browser should always display a given context menu when the user clicks on the riht mouse button.

Re: [PyQt] QSettings with QColor in PyQt

2011-04-12 Thread Hans-Peter Jansen
On Tuesday 12 April 2011, 11:23:33 goocreations wrote: I want to store and retrieve a QColor from QSettings. storing is no problem: self.settings.setValue(Color, myColor) But I can't figure out how to retrieve it again. In C++ you would just call .valueQColor(), but this is not possible in

[PyQt] QVector*D related compile failure in current PyQt snapshots

2011-04-12 Thread Hans-Peter Jansen
Hi Phil, there's a missing version conditional in qpyopengl_attribute_array.cpp resulting in compilation failures for certain Qt versions with current snapshots: g++ -c -pipe -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables

Re: [PyQt] setData in QTableView

2011-04-11 Thread Hans-Peter Jansen
On Monday 11 April 2011, 15:34:59 Vadym wrote: Hi, I try to insert some data in my QTableView via other method with code: self.emsTableModel.setData((self.emsTableModel.index(0, 2)), QtCore.QVariant(111)) this code works fine and, of cource, change content of cell with row #1 and

Re: [PyQt] Code structure in pyqt

2011-04-11 Thread Hans-Peter Jansen
On Monday 11 April 2011, 20:14:28 Jason Rahm wrote: Python 2.7.1 / PyQt 4.8.3 / Qt 4.7.2 Marrying the GUI components to processes that come fairly easy to me on the cli is a struggle for me at this point. I have a mainwindow and some dialogs, all of which I can open ok and do some

Re: [PyQt] help with performance issue

2011-04-11 Thread Hans-Peter Jansen
On Monday 11 April 2011, 21:31:11 Matt Chambers wrote: I'm hoping there is a PyQt historian out there that can answer this question for me. We have a major application that we've been unable to use anything beyond Pyqt 4.3 due to what I think is a performance issue with setVisible. I'd

Re: [PyQt] Dilemma: Pqt or wxpython

2011-04-08 Thread Hans-Peter Jansen
On Friday 08 April 2011, 17:42:23 col speed wrote: ?Hi, I'm a newbie that has been learning python for the last 3 years(between work, family and beer). I would like to learn GUI programming and I have looked at pqt and wx. I am obviously not asking which, but why? Why would you recommend

Re: [PyQt] Position widgets over widgets

2011-04-07 Thread Hans-Peter Jansen
On Thursday 07 April 2011, 14:58:30 Mads Ipsen wrote: Hi, I have attached a simple example where a widget sets up two labels. One which is added to the layout of the widget, and one which is not. In the paintEvent() of the parent widget I instead position the non-layout label using

Re: [PyQt] signal/slot vs Qt.UniqueConnection ?

2011-04-07 Thread Hans-Peter Jansen
On Thursday 07 April 2011, 12:49:43 Zoltan Szalai wrote: Hi, I'm quite sure I'm missing something fundamental here but I can't get QObject.connect to work as expected when using Qt.UniqueConnection as a connection type. I attached some code that demonstrates my problem. I would expect that

Re: [PyQt] Position widgets over widgets

2011-04-07 Thread Hans-Peter Jansen
(app.exec_()) I will abjure any relation to this code.. Pete Best regards, Mads On 2011-04-07 15:19, Hans-Peter Jansen wrote: On Thursday 07 April 2011, 14:58:30 Mads Ipsen wrote: Hi, I have attached a simple example where a widget sets up two labels. One which is added to the layout

Re: [PyQt] Bug in QAction?

2011-04-07 Thread Hans-Peter Jansen
On Thursday 07 April 2011, 12:12:48 Vicent Mas wrote: Hi, I'm trying PyQt-x11-gpl-snapshot-4.8.4-8641ecc135b3 on a debian testing box with Python2.7 and virtualenv-1.5.1. Running the attached script raises the following error: (venv2.7)vmas@rachael:/tmp$ Traceback (most recent call last):

Re: [PyQt] why do closeEvent and destroyed slot not get called on accepting PyQt4 QDialog?

2011-04-07 Thread Hans-Peter Jansen
On Thursday 07 April 2011, 17:27:15 Rui DaCosta wrote: Firstly thanks again for your reply, In the original code, from where this simplification is based, I have cleanup code on both closeEvent and destroyed, but... that's just the problem, the closeEvent isn't getting fired (unless I

Re: [PyQt] Bug in QAction?

2011-04-07 Thread Hans-Peter Jansen
On Thursday 07 April 2011, 22:36:43 Vicent Mas wrote: 2011/4/7 Vicent Mas uve...@gmail.com: On 2011-04-07 Hans-Peter Jansen h...@urpla.net said: On Thursday 07 April 2011, 12:12:48 Vicent Mas wrote: Hi, I'm trying PyQt-x11-gpl-snapshot-4.8.4-8641ecc135b3 on a debian testing box

Re: [PyQt] Editing multiple items in QTreeView delegate

2011-04-06 Thread Hans-Peter Jansen
On Wednesday 06 April 2011, 02:43:38 James Polk wrote: I have a curious dilemma I can't seem to find any information about in the docs... I have a QTreeView and a delegate... The items in the QTreeView have columns of similar data.  When I set the selection behaviour to multiSelect (actually

Re: [PyQt] QWebView crashes

2011-04-04 Thread Hans-Peter Jansen
On Monday 04 April 2011, 00:23:59 Hans-Peter Jansen wrote: On Sunday 03 April 2011, 22:49:44 Gelonida Gmail wrote: Nokia considers this bug not being their problem, but a webkit issue. Therefore I filed a new bug report for webkit. https://bugs.webkit.org/show_bug.cgi?id=57729 Hi

Re: [PyQt] Qwebview crashes almost always when entering Facebook apps

2011-04-03 Thread Hans-Peter Jansen
On Sunday 03 April 2011, 22:49:44 Gelonida Gmail wrote: Nokia considers this bug not being their problem, but a webkit issue. Therefore I filed a new bug report for webkit. https://bugs.webkit.org/show_bug.cgi?id=57729 Hi Phil, I was able to simplify the issue even further, and usually just

Re: [PyQt] long running operations

2011-04-01 Thread Hans-Peter Jansen
On Friday 01 April 2011, 20:53:41 Eric Frederich wrote: I'd like to be able to do something in PyQt that I know how to do in Java / Swing and that is run certain processes off of the EDT (event dispatch thread). Normally, I lock down different parts of the gui before hand, and then re-enable

Re: [PyQt] long running operations

2011-04-01 Thread Hans-Peter Jansen
[Oops, wrong key..] On Friday 01 April 2011, 20:53:41 Eric Frederich wrote: I'd like to be able to do something in PyQt that I know how to do in Java / Swing and that is run certain processes off of the EDT (event dispatch thread). Normally, I lock down different parts of the gui before

Re: [PyQt] problem with figure in pyqt

2011-03-27 Thread Hans-Peter Jansen
On Sunday 27 March 2011, 20:46:51 nimi pillai wrote: Hi, I want an application that displays a plot when a 'plot ' button is clicked. My code is given below. The figure window doesnot appear when i run the code. But if there is any error as i hav commented '#plt' the figure window appears.

Re: [PyQt] Qwebview crashes almost always when entering Facebook apps

2011-03-27 Thread Hans-Peter Jansen
) { QApplication app(argc, argv); QWebView *webview = new QWebView(); webview-load( QUrl(urlstr)); webview-show(); return app.exec(); } The related project file for qmake is CONFIG += qt SOURCES += webview.cc TARGET = webview QT += webkit On 3/25/2011 12:21 AM, Hans-Peter

Re: [PyQt] Qwebview crashes almost always when entering Facebook apps

2011-03-25 Thread Hans-Peter Jansen
On Friday 25 March 2011, 00:55:58 Gelonida wrote: Given the simpleness of your script, and since this happens deep under the covers in the javascript core, a *Qt* bugreport would be in order. That requires a C++ version, though. If that version works, then Phil is to blame, but I doubt

Re: [PyQt] Long running processes, threads, progress dialog

2011-03-24 Thread Hans-Peter Jansen
On Thursday 24 March 2011, 02:00:03 Catriona Johnson wrote: Hello I have a GUI application that occasionally has a number of long running processes - eg data deletions , html report generation. I have a custom progress widget that displays a spinning icon (my client didn't like the

Re: [PyQt] Qwebview crashes almost always when entering Facebook apps

2011-03-24 Thread Hans-Peter Jansen
On Thursday 24 March 2011, 23:52:53 Gelonida wrote: Hi I have a rather small (mostly crashing) script with a QWebViewwidget. # beginning of script import sys import platform import PyQt4.QtGui as QtGui import PyQt4.QtCore as QtCore from PyQt4.QtWebKit import QWebView class

Re: [PyQt] distinguish / enable / disable multiple pointer devices

2011-03-24 Thread Hans-Peter Jansen
On Friday 25 March 2011, 00:10:21 Gelonida wrote: Hi I have a small question, I have a PC (Windows) with a mouse, a touch screen and a graphics tablet. Is there any way to know with which device a widget was clicked? Is there any way to disable for example the touch screen events for

Re: [PyQt] Long running processes, threads, progress dialog

2011-03-22 Thread Hans-Peter Jansen
On Tuesday 22 March 2011, 04:27:14 Catriona Johnson wrote: Hello I have a GUI application that occasionally has a number of long running processes - eg data deletions , html report generation. I have a custom progress widget that displays a spinning icon (my client didn't like the Qt

Re: [PyQt] Passing text from MainWindow to popup Dialog

2011-03-22 Thread Hans-Peter Jansen
On Tuesday 22 March 2011, 22:39:12 James Polk wrote: I have a scenario where my MainWindow needs to call and display a popup Window...and while the window is open, processing continues in the main application, and during processing needs to send a string or two of text to the popup dialog. I

Re: [PyQt] Issue with selected cells in a QTableView

2011-03-22 Thread Hans-Peter Jansen
On Tuesday 22 March 2011, 20:50:18 Vicent Mas wrote: 2011/3/22 simozack simozac...@gmail.com: 2011/3/22 Vicent Mas uve...@gmail.com: it is explained in my second mail of this thread.  Vincent Van de Vyvre asked exactly the same. If it is not clear enough I can explain it again. But let me

Re: [PyQt] PyQt installation

2011-03-16 Thread Hans-Peter Jansen
On Wednesday 16 March 2011, 10:21:33 Pablo Campomanes wrote: Dear all, I am trying to install the latest stable version of PyQt in my computer (Red Hat Enterprise Linux 5). First, I installed SIP from source code (sip-4.12.1.tar.gz) in a non-standard folder (/software/sip-4.12.1) using the

Re: [PyQt] How to update the timer automatically in the tree view - Model/View programming

2011-03-16 Thread Hans-Peter Jansen
On Wednesday 16 March 2011, 13:21:21 vijay swaminathan wrote: Hi All, I'm a new bie to model/view programming and have just written a small script as attached. For some reasons the time is not getting updated on the tree view. it gets updated only when I select that element on that tree. I

Re: [PyQt] QButtongroup signal buttonclicked

2011-03-15 Thread Hans-Peter Jansen
On Tuesday 15 March 2011, 22:43:51 F.A.Pinkse wrote: Hi All, I have this: def InitApp(self): self.ui.buttonGroup.buttonClicked.connect(ButtonGroupClicked) def ButtonGroupClicked(clicked): print('clicked', clicked) When I run this I get: clicked PyQt4.QtGui.QRadioButton

Re: [PyQt] Editor alignment in QTreeView

2011-03-14 Thread Hans-Peter Jansen
On Monday 14 March 2011, 00:56:36 Albert Cervera i Areny wrote: A Dilluns, 14 de març de 2011 00:42:54, Hans-Peter Jansen va escriure: I don't believe, that alignment is the issue here. By the way, alignment seems to be the issue. I didn't mention it in the first place, but if I return

Re: [PyQt] Editor alignment in QTreeView

2011-03-13 Thread Hans-Peter Jansen
On Sunday 13 March 2011, 11:37:43 Albert Cervera i Areny wrote: Hi, in our application we right-align dates and numbers in QTreeViews using the TextAlignmentRole. The problem is that Qt shows the editor (QLineEdit) for those items, over the column on the right of the current cell. I tried to

Re: [PyQt] TypeError with getattr() in 4.8.3

2011-03-10 Thread Hans-Peter Jansen
On Friday 11 March 2011, 00:44:51 Peter Shinners wrote: There is a surprising TypeError using getattr. This only happens when the attribute being queried does not exist. This is happening on Windows and Osx with Python 2.5 from PyQt4 import QtCore obj = QtCore.QObject() getattr(obj,

Re: [PyQt] table view/model/delegate issue

2011-03-09 Thread Hans-Peter Jansen
On Wednesday 09 March 2011, 20:15:13 Kerri Reno wrote: Hello! I hope someone can help me with this. I have a QTableView with 3 columns, the 3rd column is editable, and the first two are not. My problem is when I double click on the 3rd column, any existing text is cleared. I want to be

Re: [PyQt] Big Trouble in Little QListWidget

2011-03-07 Thread Hans-Peter Jansen
On Tuesday 08 March 2011, 01:16:41 James Polk wrote: Somebody please put me out of my misery!... Just a simple little QListWidget...   temp1 = self.ScenesListView.currentItem()   print temp1 returns    PyQt4.QtGui.QListWidgetItem object at 0x025089C8 Hmm, you surely

Re: [PyQt] QSettings.value() returns string instead of bool

2011-03-06 Thread Hans-Peter Jansen
On Sunday 06 March 2011, 15:13:13 Andreas Pakulat wrote: On 06.03.11 13:23:53, Phil Thompson wrote: On Sun, 6 Mar 2011 13:49:16 +0100, Andreas Pakulat ap...@gmx.de wrote: Hi, I'm using sip API v2 for QVariant here and using QSettings.setValue/value does not work correctly for

Re: [PyQt] libpythonplugin.so not built on PyQt-x11-gpl-4.7.3

2011-03-05 Thread Hans-Peter Jansen
On Saturday 05 March 2011, 12:10:39 Carl Wolff wrote: Hello, when I build PyQt stuff everything works fine, I can make PyQt GUI's with help of Qt and PyQt. But I cannot make custom plugins, I found that for some reason libpythonplugin.so is not built. What do I wrong? Either search your

Re: [PyQt] Having trouble emitting and connecting SIGNALS

2011-03-05 Thread Hans-Peter Jansen
On Saturday 05 March 2011, 21:20:49 Entity Reborn wrote: For some reason, with this code, I cannot get newitemfunc called. from PyQt4 import QtCore, QtGui import sys def newitemfunc(parentitem, newitem): print(newitem) class class1(QtCore.QObject): pass class

Re: [PyQt] New Example for Advanced TreeViews

2011-03-05 Thread Hans-Peter Jansen
On Saturday 05 March 2011, 23:50:18 Entity Reborn wrote: Sorry, small untested bug introduced just before I sent that. On Sat, Mar 5, 2011 at 2:47 PM, Entity Reborn entityreb...@gmail.comwrote: I'd like to submit these two files as an advanced example for manipulation of treeviews. This

Re: [PyQt] Two QWebView == Segfault?

2011-03-01 Thread Hans-Peter Jansen
On Monday 28 February 2011, 23:22:23 Hans-Peter Jansen wrote: On Monday 28 February 2011, 23:15:44 Luca Beltrame wrote: In data lunedì 28 febbraio 2011 22:19:18, Hans-Peter Jansen ha scritto: Better make sure, that the sip and PyQt versions are compiled with the Qt libs in use. While

Re: [PyQt] Two QWebView == Segfault?

2011-03-01 Thread Hans-Peter Jansen
On Tuesday 01 March 2011, 19:43:22 Robert Siemer wrote: On 03/01/2011 05:19 AM, Hans-Peter Jansen wrote: On Monday 28 February 2011, 00:04:16 Robert Siemer wrote: On 02/28/2011 06:35 AM, David Boddie wrote: On Sun Feb 27 19:53:16 GMT 2011, Robert Siemer wrote: What am I doing wrong

Re: [PyQt] Two QWebView == Segfault?

2011-02-28 Thread Hans-Peter Jansen
On Sunday 27 February 2011, 20:53:16 Robert Siemer wrote: siemer@eee:~$ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. ~/.pystartup loaded. from PyQt4 import QtWebKit, QtGui q =

Re: [PyQt] Two QWebView == Segfault?

2011-02-28 Thread Hans-Peter Jansen
On Monday 28 February 2011, 00:04:16 Robert Siemer wrote: On 02/28/2011 06:35 AM, David Boddie wrote: On Sun Feb 27 19:53:16 GMT 2011, Robert Siemer wrote: What am I doing wrong? – The segmentation fault does not come immediately. I have to type something (above I typed “j”). Which

Re: [PyQt] Two QWebView == Segfault?

2011-02-28 Thread Hans-Peter Jansen
On Monday 28 February 2011, 23:15:44 Luca Beltrame wrote: In data lunedì 28 febbraio 2011 22:19:18, Hans-Peter Jansen ha scritto: Better make sure, that the sip and PyQt versions are compiled with the Qt libs in use. While the Qt folks claim backwards compatibility, I FYI, I observed

Re: [PyQt] PyKDE does not compile on ARM

2011-02-25 Thread Hans-Peter Jansen
On Friday 25 February 2011, 12:20:05 Phil Thompson wrote: On Fri, 25 Feb 2011 10:51:17 +, Jonathan Riddell jridd...@ubuntu.com wrote: On 29 January 2011 17:57, Jonathan Riddell jridd...@ubuntu.com wrote: -x PyQt_qreal_double doesn't seem to be working with current sip and pyqt.  

Re: [PyQt] how to mark dates in QCalenderwidget with RED color

2011-02-21 Thread Hans-Peter Jansen
On Monday 21 February 2011, 19:53:32 ad3d wrote: hi guys, i am trying to use QCalenderWidget in my program to show public holidays i want to mark some dates RED same like saturday sunday marked by qt. i am using PyQt4 How can i do dis?? Any suggestion Check out the calendarwidget

Re: [PyQt] Looking for list of errata for Summerfield's book on PyQt

2011-02-18 Thread Hans-Peter Jansen
On Friday 18 February 2011, 14:00:29 Richard D. Moores wrote: Thanks, Andres and christophe, I found the errata. BTW I'm new here. Hello. Arriving here is always a sign of good taste ;-) Is this list bottom posting or top posting? Most users, that use sane tools get this right, but we

Re: [PyQt] Get platform?

2011-02-16 Thread Hans-Peter Jansen
On Tuesday 15 February 2011, 17:57:01 mw wrote: import os os.name http://docs.python.org/library/os.html On Tue, Feb 15, 2011 at 8:51 AM, todd rme toddrme2...@gmail.com wrote: Is there any way inside pyqt, or in python, to determine what platform you are using? Specifically, I want to

Re: [PyQt] Setting WM_CLASS for a window

2011-02-16 Thread Hans-Peter Jansen
On Tuesday 15 February 2011, 18:04:58 todd rme wrote: Is this not possible? It seems pygtk can do it, but I can't find any way to do it in pyqt. I would start digging into the Qt source, but this is quite low level, hence probably only feasible with specialized libs. Pete -Todd On Thu,

Re: [PyQt] DataGrid with pyqt and xml-rpc

2011-02-12 Thread Hans-Peter Jansen
On Saturday 12 February 2011, 09:39:36 Matteo Boscolo wrote: Hi All, there is any fast way to get a sort of datagrid widget (like datagrid in m$) in pyqt that works with xml-rpc protocol ? Roll your own. This is not Borland territory (while they also use Qt, IIRC). Qt and therefor PyQt

Re: [PyQt] PyQt with Matplotlib: stacked bar problem

2011-02-10 Thread Hans-Peter Jansen
On Thursday 10 February 2011, 08:15:46 Roger Oberholtzer wrote: I'm new to all this as well. So I am currently lurking trying to see what folk are doing. I run various bits of code to see that I can learn. So of course I tried to run yours (in a file called matplotlib.py). I get: Traceback

Re: [PyQt] explanatory label in a not uniformly scaled QGraphicsView

2011-02-09 Thread Hans-Peter Jansen
On Wednesday 09 February 2011, 15:06:24 KONTRA, Gergely wrote: Hi all! Is there a way to place a text on a QGraphicsView, which always looks the same size (say 10px) on screen, regardless of the scaling applied to the View? Gergo, this is exactly a case, where studying the Qt source is most

Re: [PyQt] BUG: sip instance attribute error: Re: [eric4] python qscintilla traceback with current snapshot also

2011-02-08 Thread Hans-Peter Jansen
On Tuesday 08 February 2011, 01:17:25 Hans-Peter Jansen wrote: Dear Phil, On Monday 07 February 2011, 23:40:41 Phil Thompson wrote: I've now got to the bottom of this. It's a Python bug (#4230) which incorrectly handles __getattr__ when it is a descriptor. Glad, that you found

Re: [PyQt] BUG: sip instance attribute error: Re: [eric4] python qscintilla traceback with current snapshot also

2011-02-07 Thread Hans-Peter Jansen
Dear Phil, On Monday 07 February 2011, 23:40:41 Phil Thompson wrote: On Sun, 6 Feb 2011 15:49:59 +0100, Hans-Peter Jansen h...@urpla.net wrote: On Thursday 03 February 2011, 11:02:32 Phil Thompson wrote: On Thu, 3 Feb 2011 00:42:05 +0100, Hans-Peter Jansen h...@urpla.net Other than

Re: [PyQt] BUG: sip instance attribute error: Re: [eric4] python qscintilla traceback with current snapshot also

2011-02-06 Thread Hans-Peter Jansen
Dear Erik, On Sunday 06 February 2011, 05:19:54 e...@eebrown.com wrote: Mr. Jansen,   I noticed your messages on this subject, and wonder if you found a resolution to this problem?  I was able to track the issue down to this, and this message contains a temporary workaround to eric:

Re: [PyQt] BUG: sip instance attribute error: Re: [eric4] python qscintilla traceback with current snapshot also

2011-02-06 Thread Hans-Peter Jansen
On Thursday 03 February 2011, 11:02:32 Phil Thompson wrote: On Thu, 3 Feb 2011 00:42:05 +0100, Hans-Peter Jansen h...@urpla.net Other than that, I'm pretty baffled at the moment. How could I debug this issue any further? If I'm going to try bisecting it, would you think, that rebuilding

Re: [PyQt] BUG: sip instance attribute error: Re: [eric4] python qscintilla traceback with current snapshot also

2011-02-06 Thread Hans-Peter Jansen
On Sunday 06 February 2011, 15:49:19 Detlev Offenbach wrote: On Sonntag, 6. Februar 2011, Hans-Peter Jansen wrote: Dear Erik, On Sunday 06 February 2011, 05:19:54 e...@eebrown.com wrote: Mr. Jansen, I noticed your messages on this subject, and wonder if you found a resolution

Re: [PyQt] BUG: sip instance attribute error: Re: [eric4] python qscintilla traceback with current snapshot also

2011-02-06 Thread Hans-Peter Jansen
On Sunday 06 February 2011, 16:40:41 Phil Thompson wrote: On Sun, 6 Feb 2011 15:49:59 +0100, Hans-Peter Jansen h...@urpla.net wrote: # derive from a sip wrapped class class C(QtCore.QObject): def __init__(self): super(C, self).__init__() # access a non existing

Re: [PyQt] BUG: sip instance attribute error: Re: [eric4] python qscintilla traceback with current snapshot also

2011-02-06 Thread Hans-Peter Jansen
: Re: [eric4] python qscintilla traceback with current snapshot also From: Detlev Offenbach det...@die-offenbachs.de Date: Sun, February 06, 2011 10:13 am To: pyqt@riverbankcomputing.com Cc: Hans-Peter Jansen h...@urpla.net, e...@eebrown.com On Sonntag, 6. Februar 2011, Hans-Peter

Re: [PyQt] LayoutChanged() to refresh

2011-02-05 Thread Hans-Peter Jansen
On Saturday 05 February 2011, 19:06:34 Entity Reborn wrote: I've managed to overcome an issue with updating tge gui when a value is changed programmatically, in a chechbox enabled, radiobutton enhanced Listview, by emitting a layoutChanged() signal after my changes are done. (previously the

Re: [PyQt] Qt Creator uic error

2011-02-05 Thread Hans-Peter Jansen
On Saturday 05 February 2011, 23:38:33 Entity Reborn wrote: When trying to view code, i get the error Unable to launch..., etc. The path given in the error is valid, yet im not sure how to resolve this. Is this a paths issue? AFAIK, Qt Creator isn't PyQt aware. Pete

Re: [PyQt] BUG: sip instance attribute error: Re: [eric4] python qscintilla traceback with current snapshot also

2011-02-03 Thread Hans-Peter Jansen
[Oops, missing recipients..] On Wednesday 02 February 2011, 23:12:07 Phil Thompson wrote: On Wed, 2 Feb 2011 22:59:27 +0100, Hans-Peter Jansen h...@urpla.net Could you do me a flavor and call python -v sipinstance.py (attached again) for your 2.6 setup. Attached. Thanks, but nothing

[PyQt] sip instance attribute error: Re: [eric4] python qscintilla traceback with current snapshot also

2011-02-02 Thread Hans-Peter Jansen
Dear Phil, On Tuesday 01 February 2011, 22:26:43 Hans-Peter Jansen wrote: Phil, something is badly broken with the current release and the snapshots. Here's the essence of the issue: ___ PyQt mailing listPyQt@riverbankcomputing.com http

Re: [PyQt] BUG: sip instance attribute error: Re: [eric4] python qscintilla traceback with current snapshot also

2011-02-02 Thread Hans-Peter Jansen
On Wednesday 02 February 2011, 22:16:46 Phil Thompson wrote: On Wed, 2 Feb 2011 21:33:39 +0100, Hans-Peter Jansen h...@urpla.net wrote: [Oops, sorry, send too fast] Dear Phil, On Tuesday 01 February 2011, 22:26:43 Hans-Peter Jansen wrote: Phil, something is badly broken

Re: [PyQt] BUG: sip instance attribute error: Re: [eric4] python qscintilla traceback with current snapshot also

2011-02-02 Thread Hans-Peter Jansen
On Wednesday 02 February 2011, 22:29:48 Phil Thompson wrote: On Wed, 2 Feb 2011 22:25:09 +0100, Hans-Peter Jansen h...@urpla.net wrote: On Wednesday 02 February 2011, 22:16:46 Phil Thompson wrote: On Wed, 2 Feb 2011 21:33:39 +0100, Hans-Peter Jansen h...@urpla.net wrote: [Oops

Re: [PyQt] 2 PyQt installation questions

2011-02-01 Thread Hans-Peter Jansen
On Tuesday 01 February 2011, 10:58:12 Glenn Linderman wrote: Windows: Will PyQt source run on Python 3.2 ? I tried to install the binary for 3.1 64-bit and that didn't work on 3.2 64-bit is it worth trying the source distribution, or are the known problems with that? Ubuntu: Is there a

Re: [PyQt] 2 PyQt installation questions

2011-02-01 Thread Hans-Peter Jansen
Dear Roger, On Tuesday 01 February 2011, 15:45:48 Roger Oberholtzer wrote: On Tue, 2011-02-01 at 15:17 +0100, Hans-Peter Jansen wrote: I've asked tenderly for interest of automatically build ubuntu packages on openSUSEs build service (where I do this for openSUSE all the time

[PyQt] [eric4] python qscintilla traceback with current snapshot also

2011-02-01 Thread Hans-Peter Jansen
Hi Detlev, for some reasons, the traceback didn't made it in to this message (although created by report error..) Phil, something is badly broken with the current release and the snapshots. Before upgrade, I harvested strange crashes (just by hitting Ctrl-C in erics qscintilla editor):

Re: [PyQt] Whitespaces inside table widget

2011-01-31 Thread Hans-Peter Jansen
On Monday 31 January 2011, 12:51:38 disconnext wrote: I have a QTableWidget in layout. And I want it to change it's size with the addition of a new row, leaving no whitespaces inside table widget. (Row added, layout cell expanded.) posLayout = QVBoxLayout()

Re: [PyQt] Question about the new Signals / Slots mechanism.

2011-01-31 Thread Hans-Peter Jansen
On Monday 31 January 2011, 19:33:04 Thomas Mansencal wrote: Hello, I wanted to update my code to use the new Signals / Slots mechanism but I'm running into some troubles that I don't manage to understand. Here is the snippet that I use : def doStuff(self): Just make this read:

Re: [PyQt] Custom Widget

2011-01-26 Thread Hans-Peter Jansen
with rich text. It is impossible to put Greek letters, subscripts, etc. Hmm, greek letters aren't simple unicode characters?!? Pete Best Regards On 25 January 2011 20:03, Hans-Peter Jansen h...@urpla.net wrote: On Wednesday 26 January 2011, 01:35:07 Fernando Cosso wrote: Hi All I

Re: [PyQt] Custom Widget

2011-01-26 Thread Hans-Peter Jansen
On Wednesday 26 January 2011, 14:35:35 ferde...@gmail.com wrote: Thanks again Pete I think i will do my own custom widget from scratch following a book i have and then use the link you gave me to integrate it to the designer. As I told you, it is simpler to convert the Qt code. @Phil: for

Re: [PyQt] Custom Widget

2011-01-25 Thread Hans-Peter Jansen
On Wednesday 26 January 2011, 01:35:07 Fernando Cosso wrote: Hi All I would like to use this custom widget http://www.qtcentre.org/wiki/index.php?title=Buttons_with_richt_text_ %28multiple_colors%29in the Designer, but I don't have a clue as how to import it and use it in Python, any

Re: [PyQt] QMainWindow bug?

2011-01-22 Thread Hans-Peter Jansen
On Friday 21 January 2011, 08:47:13 Erik Janssens wrote: Hi, I wrote some general documentation around these issues, with regard to Camelot development, but it might be of use to others as well : http://downloads.conceptive.be/downloads/camelot/doc/sphinx/build/adv anced/development.html

Re: [PyQt] QMainWindow bug?

2011-01-22 Thread Hans-Peter Jansen
On Friday 21 January 2011, 10:21:11 Mailing List SVR wrote: Hi Erik, attacched is a small sample of what I'm doing in my app, I have a dialog that require some time to open, to speed up the things I store it in a global object and use this global object to reopen the dialog, this seems to

Re: [PyQt] currentRow and currentColumn is not updated when I click a combobox inside a cell of a QTableWidget

2011-01-21 Thread Hans-Peter Jansen
On Friday 21 January 2011, 15:23:21 Rodrigo wrote: Hi, I've just QComboBox cells in a column of my QTableWidget. I need to know the row and column where they are when the user changes the index of a ComboBox. I do this with currentRow() and currentColumn() with the SIGNAL

Re: [PyQt] Color characters in a qTreeWidgetItem

2011-01-20 Thread Hans-Peter Jansen
On Thursday 20 January 2011, 18:32:38 Christopher Evans wrote: I would like to color specific characters in a tree widget item. I looked around a bit, any ideas? I can change all the text, this is what I am doing now, but I really need to just hilight different values int he string. Hmm,

Re: [PyQt] Issues Installing

2011-01-12 Thread Hans-Peter Jansen
On Wednesday 12 January 2011, 22:50:11 Corey Richardson wrote: On 01/12/2011 04:39 PM, Phil Thompson wrote: On Wed, 12 Jan 2011 16:20:47 -0500, Corey Richardson kb1...@aim.com wrote: Greetings, I cannot use PyQt. I get the following error when trying to (among other things),

Re: [PyQt] Create a class to position a window on the screen.

2011-01-09 Thread Hans-Peter Jansen
Rohit, you might want to generally abandon this html junk in mailing lists to actually _raise_ your professionality score [and the is my last reply to an inquiry in such a form of you]. On Sunday 09 January 2011, 03:23:01 Rohit Coder wrote:

Re: [PyQt] saveState()/restoreState() of a nested QMainWindow

2011-01-09 Thread Hans-Peter Jansen
On Wednesday 05 January 2011, 16:48:51 Bram Marien wrote: Hello everybody, I'm trying to use QSettings to save and restore the window configuration, and the size and position of its docking widgets to be more precise, in my application. My application is a normal QMainWindow (let's call

Re: [PyQt] Error while importing QtGui

2011-01-07 Thread Hans-Peter Jansen
On Friday 07 January 2011, 21:39:33 Rohit Coder wrote: The entire question with the screen shot of my dev'. environment is given here.elementFontfont-familyfont-sizefont-stylefont-variantfont-weight letter-spacingline-heighttext-decorationtext-aligntext-indenttext-tran

Re: [PyQt] PyQt4 snapshot build issue with Qt 4.4.3

2011-01-05 Thread Hans-Peter Jansen
On Tuesday 04 January 2011, 15:31:53 Phil Thompson wrote: On Tue, 4 Jan 2011 13:35:14 +0100, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil, wishing you a Happy New Year. Starting over right away, current PyQt4 snapshots seem to suffer from a build issue with Qt 4.4.3 resulting

[PyQt] PyQt4 snapshot build issue with Qt 4.4.3

2011-01-04 Thread Hans-Peter Jansen
Hi Phil, wishing you a Happy New Year. Starting over right away, current PyQt4 snapshots seem to suffer from a build issue with Qt 4.4.3 resulting in: g++ -c -pipe -march=i586 -mtune=i686 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables

Re: [PyQt] Proposal for QPyNullVariant

2011-01-04 Thread Hans-Peter Jansen
On Tuesday 04 January 2011, 14:08:11 Phil Thompson wrote: The problem... v2 of the QVariant API (the default for Python v3) eliminates QVariant as a Python type. Python objects are converted to and from C++ QVariants automatically as and when required. An invalid C++ QVariant is converted

Re: [PyQt] Images not showing in WebView after cx_Freeze

2011-01-03 Thread Hans-Peter Jansen
On Monday 03 January 2011, 04:10:08 Mikael Modin wrote: Hi, I'm currently developing a small tool for taking and sending screnshots, time-reporting for freelancers, and am using cx_Freeze to avoid having the users install python, pyqt and all other dependencies. The problem I'm having is

Re: [PyQt] Images not showing in WebView after cx_Freeze

2011-01-03 Thread Hans-Peter Jansen
into pyInstaller as well then. /Mikael On 3 January 2011 21:03, Hans-Peter Jansen h...@urpla.net wrote: On Monday 03 January 2011, 04:10:08 Mikael Modin wrote: Hi, I'm currently developing a small tool for taking and sending screnshots, time-reporting for freelancers, and am using cx_Freeze

Re: [PyQt] animating, rotating UI layouts,elements,etc

2011-01-01 Thread Hans-Peter Jansen
On Saturday 01 January 2011, 21:11:27 James Polk wrote: Happy New Year to All!,... About to start searching PyQt docs,...thought I'd ask here too... I have to create a sorta' 1-2-3 menu process for users... Thought about doing something fancy, like rotating entire layouts in and out of main

Re: [PyQt] A possible bug in PyQt when loading Boolean values via QSettings

2010-12-26 Thread Hans-Peter Jansen
On Sunday 26 December 2010, 00:45:37 Xavion wrote: After further research, not even the following code works: User.System.bPreferSUdo = bool( str.title( oItems ) ) I had to use the following code, which isn't exactly pretty: User.System.bPreferSUdo = ( oItems == True ) or ( oItems == true

Re: [PyQt] [patch] Fix broken format string in standarddialogs.py example

2010-12-26 Thread Hans-Peter Jansen
On Sunday 26 December 2010, 19:29:22 Israel G. Lugo wrote: diff -durp a/examples/dialogs/standarddialogs.py b/examples/dialogs/standarddialogs.py --- a/examples/dialogs/standarddialogs.py   2010-12-23 11:25:29.0 +0100 +++ b/examples/dialogs/standarddialogs.py   2010-12-26

Re: [PyQt] SIP and Qxt Widgets

2010-12-24 Thread Hans-Peter Jansen
[Merry christmas, BTW] Dear Alexander, On Friday 24 December 2010, 20:28:21 Alexander Nestorov wrote: I'm trying to use one of Qxt's widgets (the schedule view) in Python, but I need to use SIP first to make the necesary bindings as Qxt is C++ only. After reading SIP docs I found that I

Re: [PyQt] PyQt API 2: equivalent of Null QVariant?

2010-12-22 Thread Hans-Peter Jansen
On Wednesday 22 December 2010, 07:00:01 Phil Thompson wrote: On Wed, 22 Dec 2010 01:33:49 +0100, Hans-Peter Jansen h...@urpla.net wrote: On Tuesday 21 December 2010, 23:58:39 Erik Janssens wrote: you could just access sql through python instead of through qt, NULL would then correspond

<    1   2   3   4   5   6   7   8   >