[PyQt] dirmodel

2008-11-07 Thread Krzysztof
hi, how can I list all files and dirs including ".." except "." I do this class QDirModelEx(PyQt4.QtGui.QDirModel): def __init__(self, parent = None): PyQt4.QtGui.QDirModel.__init__(self, parent) def data(self, index, role = PyQt4.QtCore.Qt.DisplayRole): data = PyQt4.QtGu

Re: [PyQt] Next PyQt, SIP, QScintilla Releases

2008-11-07 Thread Phil Thompson
On Fri, 07 Nov 2008 19:29:14 +, Baz Walter <[EMAIL PROTECTED]> wrote: > Phil Thompson wrote: >> There will be new releases of PyQt, SIP and QScintilla in the next few >> days >> based on current snapshots. >> >> Let me know if there is anything you are expecting that doesn't seem to >> be >> t

[PyQt] Re: Data binding to widgets/forms/dialogs

2008-11-07 Thread Alberto Berti
> "Arthur" == Arthur Pemberton <[EMAIL PROTECTED]> writes: Arthur> What is the best way to bind data (example from an Arthur> SQLAlchemy entity) to a form (QDialog)? I doubt that there is just "one best way" to bind data to forms:) i have developed it my way, which is available here

[PyQt] strange bug after a hide()

2008-11-07 Thread Jean-Baptiste BUTET
Hi all :) I have a very strange bug, I hope you give me hints to clear it ;) I attached a simple script, that launch 2 Qlabel : you can move mouse over first (videol_label), then it appears a new one with a red cross. then, near middle of first oone, right-click and move mouse -> it blinks. as

Re: [PyQt] Next PyQt, SIP, QScintilla Releases

2008-11-07 Thread Baz Walter
Phil Thompson wrote: There will be new releases of PyQt, SIP and QScintilla in the next few days based on current snapshots. Let me know if there is anything you are expecting that doesn't seem to be there. A while ago i reported a problem with code like this: def keyPressEvent(self, event):

Re: [PyQt] PyQt compile error on Windows XP

2008-11-07 Thread Phil Thompson
On Fri, 7 Nov 2008 18:26:15 +0100, Markus Dahlbokum <[EMAIL PROTECTED]> wrote: >> >> Can you confirm it works for you? >> >> Phil > > > I get unresolved external symbols when compiling with standard > configuration > (sip and PyQt snapshots used). When I configure PyQt without QtWebkit, the > c

[PyQt] Data binding to widgets/forms/dialogs

2008-11-07 Thread Arthur Pemberton
What is the best way to bind data (example from an SQLAlchemy entity) to a form (QDialog)? I have my own ideas of how to do it, but I'm trying to figure out what the best practices are for leveraging the power of Python in PyQt4. Thank you. -- Fedora 9 : sulphur is good for the skin ( www.pembo

Re: [PyQt] SQLite commit success, but data isn't modified

2008-11-07 Thread David Boddie
On Thu Nov 6 10:48:55 GMT 2008, Alessandro Re wrote: > I'm trying to using QSqlTableModel on a SQLite database. > Following the Qt Cached Table Example, I did a simple program (see below): > pressing a button should commit table's changes to the database. > But pressing it, the table return to ori

Re: [PyQt] PyQt compile error on Windows XP

2008-11-07 Thread Markus Dahlbokum
> > Can you confirm it works for you? > > Phil I get unresolved external symbols when compiling with standard configuration (sip and PyQt snapshots used). When I configure PyQt without QtWebkit, the compile works fine (unresolved symbols point to QtWebkit). For me this is ok. I don't need QtWe

Re: [PyQt] QGrahicsView and event issue

2008-11-07 Thread David Boddie
On Fri Nov 7 15:36:49 GMT 2008, Oguz Yarimtepe wrote: > I was trying to implement a simple PDF reader. The problem about the GUI > is, when i choose the file from file dialog it shows the rendered image > at a new window, not inside the QGraphicsView widget. If i solve it i > think the event part

[PyQt] QGrahicsView and event issue

2008-11-07 Thread Oguz Yarimtepe
I was trying to implement a simple PDF reader. The problem about the GUI is, when i choose the file from file dialog it shows the rendered image at a new window, not inside the QGraphicsView widget. If i solve it i think the event part will start to work in the right way. I read the documents and t

Re: [PyQt] Shadow in Text

2008-11-07 Thread celsowm
i tried this, and works: wwrap = QtCore.Qt.TextWordWrap print (wwrap) paint = QtGui.QPainter() paint.begin(self) paint.setFont(QtGui.QFont('Decorative', 27)) paint.setPen(QtGui.QColor(223, 135, 19, 255)) #f

Re: [PyQt] Shadow in Text

2008-11-07 Thread Paul A. Giannaros
On Fri, Nov 7, 2008 at 1:34 PM, celsowm <[EMAIL PROTECTED]> wrote: > > How is the best way to put shadow in text. > I tried this: http://trolltech.com/developer/faqs/faq.2007-07-27.3052836051 > I tried this ... but it was not good What do you mean by "it was not good"? It did not look good? If so

Re: [PyQt] Python or Qt/C++ property style

2008-11-07 Thread Paul A. Giannaros
On Fri, Nov 7, 2008 at 11:24 AM, Georg Altmann <[EMAIL PROTECTED]> wrote: > Hello, > > I am thinking about wether I should use python properties in my code. As > PyQt is currently following Qt style (getter: property(), setter: > getProperty()), I am a bit undecided. > > Benefits of python properti

[PyQt] Shadow in Text

2008-11-07 Thread celsowm
How is the best way to put shadow in text. I tried this: http://trolltech.com/developer/faqs/faq.2007-07-27.3052836051 I tried this ... but it was not good -- View this message in context: http://www.nabble.com/Shadow-in-Text-tp20380625p20380625.html Sent from the PyQt mailing list archive at Na

[PyQt] Python or Qt/C++ property style

2008-11-07 Thread Georg Altmann
Hello, I am thinking about wether I should use python properties in my code. As PyQt is currently following Qt style (getter: property(), setter: getProperty()), I am a bit undecided. Benefits of python properties from my point of view: 1. Code is more expressive (readability). Drawbacks:

Re: [PyQt] Next PyQt, SIP, QScintilla Releases

2008-11-07 Thread Phil Thompson
On Fri, 07 Nov 2008 10:22:29 +0100, Giovanni Bajo <[EMAIL PROTECTED]> wrote: > On sab, 2008-11-01 at 17:29 +, Phil Thompson wrote: >> There will be new releases of PyQt, SIP and QScintilla in the next few >> days >> based on current snapshots. >> >> Let me know if there is anything you are exp

Re: [PyQt] Next PyQt, SIP, QScintilla Releases

2008-11-07 Thread Giovanni Bajo
On sab, 2008-11-01 at 17:29 +, Phil Thompson wrote: > There will be new releases of PyQt, SIP and QScintilla in the next few days > based on current snapshots. > > Let me know if there is anything you are expecting that doesn't seem to be > there. sip.voidptr() only accepts a Python "int" in