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

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

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

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

Re: [PyQt] QImage.save() traceback

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

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

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

Re: [PyQt] QImage.save() traceback

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

Re: [PyQt] QImage.save() traceback

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

Re: [PyQt] QImage.save() traceback

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

Re: [PyQt] Problem getting QItemDelegate to work

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

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

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

Re: [PyQt] Multiple Inheritance

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

Re: [PyQt] Multiple Inheritance

2008-03-13 Thread Hans-Peter Jansen
. Well, that sounds like a perfect recipe to beg for trouble, even in C++. If you look at the semantics of both classes, you discover plenties of reasons to keep them separated. Pete thanks -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Hans-Peter

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

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

Re: [PyQt] pyqt and kbarcode

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

Re: [PyQt] DataTable layout problem

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

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

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

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

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

Re: [PyQt] Proposal for New-style Signals

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

Re: [PyQt] QLabel.setTextInteractionFlags raises AttributeError

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

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

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

Re: [PyQt] Null dates in QDateEdit

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

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

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

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

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

Re: [PyQt] Problems with stylesheets.

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

Re: [PyQt] Problems with stylesheets.

2007-12-03 Thread Hans-Peter Jansen
, and peered with PyQt's docs and sip's, this helped me to solve a lot of PyQt problems in the past, and greatly improved the quality of my _PyQt_ apps, at least. I'm going to shut up now. Pete Cheers. 2007/12/3, Hans-Peter Jansen [EMAIL PROTECTED]: Am Freitag, 30. November 2007 schrieb Gustavo

Re: [PyQt] Message boxes or OSD

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

Re: [PyQt] PyKDE installation error

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

Re: [PyQt] How to close QSqlDatabase connection?

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

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

2007-11-12 Thread Hans-Peter Jansen
Am Montag, 12. November 2007 schrieb Dirk Wagener: Hi I have: QMessageBox.about(None, Title Text, text ) with text = htmlbody bgcolor=#ff text=#ff h2Test image:/h2 centerimg src=images/test.bmp border=1 color=white/center /body/html How do I get the QMessageBox() to use

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

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

Re: [PyQt] How to close QSqlDatabase connection?

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

Re: [PyQt] segmentation fault

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

Re: [PyQt] QMessageBox with unicode text fails

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

Re: [PyQt] segmentation fault

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

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

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

Re: [PyQt] PyKDE4 guide/tutorial

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

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

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

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

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

Re: [PyQt] PyKDE4 Update

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

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

2007-07-23 Thread Hans-Peter Jansen
Am Montag, 23. Juli 2007 21:58 schrieb kib2: Hi, You may ask if it's a suicidal question or whatever, I just wanted to give you my impressions. I don't want to hurt anyone. Usually when I subscribe to a mailing list, I enjoy answering others questions and asking mine too, but not here for

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

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

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

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

Re: [PyQt] Custom Delegates

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

Re: [PyQt] stuck on non-modal dialog

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

Re: [PyQt] [PyQt3] QPen issues

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

Re: [PyQt] [PyQt3] QPen issues

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

[PyQt] [PyQt3] QPen issues

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

Re: [PyQt] Qspinbox maximum value

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

Re: [PyQt] tableItem as a list

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

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

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

Re: [PyQt] error installing PyQT 4.2 on Windows

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

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

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

Re: [PyQt] Question On QX11EmbedContainer

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

Re: [PyQt] qtrc? other options?

2007-03-24 Thread Hans-Peter Jansen
Am Freitag, 23. März 2007 16:45 schrieb Kerri Reno: It does run my application, without a surrounding window, but where it's getting the theme or style from, I don't know. I tried setting up a qtrc file, then I found that QT4 doesn't use qtrc. I can get a nice looking theme/style, but I

Re: [PyQt] bug with setTabOrder?

2007-03-22 Thread Hans-Peter Jansen
Am Donnerstag, 22. März 2007 08:41 schrieb Phil Thompson: On Wednesday 21 March 2007 10:39 pm, Kerri Reno wrote: Sorry to bother the list. When I tried to make a complete example, setTabOrder worked fine. It's so stupid, I don't want to say, but I called my function setTabOrder, and

Re: [PyKDE] Unexplained delay calling Python method- partial explanation

2007-03-01 Thread Hans-Peter Jansen
Am Donnerstag, 1. März 2007 08:13 schrieb Tony Cappellini: When I set the breakpoint in the debugger, I had inadvertently set it on this line FileDialog = QFileDialog() I really wanted to set the breakpoint on the getOpenFileNames() call. However, I've FOUND the source of the

Re: [PyKDE] Writing Qt Designer Plugins in Python

2007-02-18 Thread Hans-Peter Jansen
Am Samstag, 17. Februar 2007 schrieb Phil Thompson: Thanks to work done by David Boddie, the current PyQt4 snapshot (and SIP as well) allows you to write custom widget plugins for Qt Designer using Python. Wow, these are exceptionally good news. Congrats to you both! Python custom widgets

Re: [PyKDE] session handling

2007-02-14 Thread Hans-Peter Jansen
Am Montag, 12. Februar 2007 schrieb Marcos Dione: I'm trying to add session saving support to my app to no avail. all I've got to, was to simulate it at window close. Please elaborate. Typically, I'm reimplementing close on a QMainWindow derived class for this purpose with success:

Re: [PyKDE] PyQt application freezing on long operations

2007-01-22 Thread Hans-Peter Jansen
Am Montag, 22. Januar 2007 13:45 schrieb Carlos Eduardo: I created a SQL front end for multiple databases in PyQt, currently it supports sqlite and Oracle. I have a MDI window that i execute the SQL statements and populate a table in it. The problem is that when i run a query that takes too

Re: [PyKDE] Re: PyQt application freezing on long operations

2007-01-22 Thread Hans-Peter Jansen
Am Montag, 22. Januar 2007 22:25 schrieb Carlos Eduardo: Hans-Peter Jansen hpj at urpla.net writes: You're way to sparse with description of your environment/approaches to give you helpful answers. One nice thing of Qt3 QDataTables is, you don't need to care about the number of rows

Re: [PyKDE] performance issues

2007-01-10 Thread Hans-Peter Jansen
Am Mittwoch, 10. Januar 2007 02:38 schrieb Steven James Samuel Stapleton: I can post runnable code easy enough, problem is I'm not sure how to make the code /short/ Provide a link? Thanks, -Jim ___ PyKDE mailing list

Re: [PyKDE] khtmlpart and pyuic3

2006-12-17 Thread Hans-Peter Jansen
Am Sonntag, 17. Dezember 2006 19:47 schrieb Marcos Dione: hi all. I have a .ui file that uses a KHTMLPart. the .ui file is originally generated by qtdesigner; I put a KTextBrowser, but then I use sed to both replace the QMainWindow for a KMainWindow and the KTextBrowser with a KHTMLPart.

Re: [PyKDE] Building PyKDE doesn't work

2006-12-06 Thread Hans-Peter Jansen
Am Mittwoch, 6. Dezember 2006 22:40 schrieb Andreas Pakulat: Hi, there is a ln -sf /usr/lib/kde3/libkonsolepart.so /usr/lib/libkonsolepart.so in the top-level Makefile, this fails because I don't build PyKDE as root, and I won't do that. Same here (rpm build as user..) I remember some

Re: [PyKDE] python 2.5 and pyKDE (was: compile error for pyqt)

2006-11-24 Thread Hans-Peter Jansen
Am Freitag, 24. November 2006 18:01 schrieb Jim Bublitz: On Friday 24 November 2006 04:10, Hans-Peter Jansen wrote: Am Freitag, 24. November 2006 05:54 schrieb Jim Bublitz: On Thursday 23 November 2006 17:40, Jonathan Riddell wrote: However I came across another issue with PyKDE 3.17

Re: [PyKDE] PyQt book

2006-11-18 Thread Hans-Peter Jansen
Am Samstag, 18. November 2006 09:18 schrieb johnf: On Friday 17 November 2006 23:33, Mark Summerfield wrote: On Sat 18-Nov-06 07:17, johnf wrote: On Friday 17 November 2006 22:40, Mark Summerfield wrote: On Wed 15-Nov-06 06:40, simon stockes wrote: Hi, Since few days it is

Re: [PyKDE] [PyQt3] QSpinWidget derived widgets

2006-10-28 Thread Hans-Peter Jansen
Am Samstag, 28. Oktober 2006 12:20 schrieb Phil Thompson: On Wednesday 25 October 2006 4:59 pm, Hans-Peter Jansen wrote: Hi Phil et.al., attached is an example, what can be done within PyQt, if QSpinWidget is made available. I know, your policy is: don't wrap internal Qt classes

[PyKDE] [PyQt3] QSpinWidget derived widgets

2006-10-25 Thread Hans-Peter Jansen
Hi Phil et.al., attached is an example, what can be done within PyQt, if QSpinWidget is made available. I know, your policy is: don't wrap internal Qt classes, but this one may deserve an exception for these reasons: - the risk, that Trolltech will change these interfaces in Qt3 is next to

Re: [PyKDE] layout issues

2006-10-24 Thread Hans-Peter Jansen
Am Dienstag, 24. Oktober 2006 23:52 schrieb Matt Chambers: Hi all, trying to use a QSplitter to separate 2 different widgets, they both end up as little tiny things in the upper left hand corder of the window. Resizing the window doesn't affect them. I'm sure this has something to do with

[PyKDE] Re: [PyQt3] QStyle.drawComplexControl() with invalid type in arg 7

2006-10-23 Thread Hans-Peter Jansen
Am Sonntag, 22. Oktober 2006 23:32 schrieb Hans-Peter Jansen: Hi Phil et al., for some special DecimalSpinBox and DateTimeEdit widgets, I've reimplemented QSpinWidget in Python. Unfortunately, I'm stuck with a problem in paintEvent, when executing this line: self.style

[PyKDE] Re: [PyQt3] QStyle.drawComplexControl() with invalid type in arg 7

2006-10-23 Thread Hans-Peter Jansen
Am Montag, 23. Oktober 2006 18:22 schrieb Hans-Peter Jansen: Am Sonntag, 22. Oktober 2006 23:32 schrieb Hans-Peter Jansen: Update: to avoid the SC_All value for the sub parameter, I added: sub = QStyle.SC_SpinWidgetUp | QStyle.SC_SpinWidgetDown | QStyle.SC_SpinWidgetFrame

Re: [PyKDE] [PyQt3] problem using a custom QSqlCursor on a QDataTable

2006-10-08 Thread Hans-Peter Jansen
Am Sonntag, 8. Oktober 2006 17:26 schrieb Phil Thompson: On Saturday 07 October 2006 12:13 pm, Hans-Peter Jansen wrote: Hi Phil, here's is a nasty problem with using a custom QSqlCursor on a QDataTable, I didn't found a workaround yet (other than avoiding this all together, which isn't

[PyKDE] [PyQt3] problem using a custom QSqlCursor on a QDataTable

2006-10-07 Thread Hans-Peter Jansen
Hi Phil, here's is a nasty problem with using a custom QSqlCursor on a QDataTable, I didn't found a workaround yet (other than avoiding this all together, which isn't a feasible option here): Whenever the update() and delRecords() methods on the parent class are called, they show recursive

Re: [PyKDE] signals

2006-10-07 Thread Hans-Peter Jansen
Am Samstag, 7. Oktober 2006 17:39 schrieb M.Chambers: I cut and pasted collapsed (const QModelIndex index) directy from Assistant, which is how I did it with PtQt3 Changing to this fixed it: self.connect(self, QtCore.SIGNAL(collapsed (const QModelIndex)), still wrong, the ampersand is

Re: [PyKDE] sip-4.4.5 problem

2006-10-03 Thread Hans-Peter Jansen
Am Dienstag, 3. Oktober 2006 08:26 schrieb Neil Philip Hankey: I'm trying to install PyQT (PyQt-x11-gpl-4.0.1) on a SUSE 10.1 box and having problems with sip-4.4.5. After installing sip-4.4.5 by following the configure-make-make install process the system still reports and sip-4.2.1 is

Re: [PyKDE] [QScintilla2] install on windows

2006-09-29 Thread Hans-Peter Jansen
Am Freitag, 29. September 2006 12:34 schrieb Jürgen Urner: Hi all I have a question regarding QScintilla2 on windows. I would like to play around with the snapshot but can't get it installed. The configure script is looking for pyqtconfig and this is not included in the binary distro of

Re: [PyKDE] QFileDialog problems

2006-09-20 Thread Hans-Peter Jansen
Am Mittwoch, 20. September 2006 22:24 schrieb Dave S: OK I am a bit stuck. I am trying to use QFileDialog to allow users to select where they want to save a file to, by default the Desktop desktop = self.config.get('dbase','desktop') file_selector =

Re: [PyKDE] [PyQt3] alignment issue on subclassed QTableItem

2006-09-07 Thread Hans-Peter Jansen
Hi Jim, Am Donnerstag, 31. August 2006 23:42 schrieb Jim Bublitz: Sorry - can't help with QCheckBox/QButton. I implemented checkboxes with pixmaps, I think because I didn't like the way the Qt checkboxes looked and worked. It's fairly simple - I kept the underlying data in a list of one

Re: [PyKDE] [PyQt3] alignment issue on subclassed QTableItem

2006-09-07 Thread Hans-Peter Jansen
Am Donnerstag, 7. September 2006 23:57 schrieb Dave S: Pedantic is good :) I am learning all the time and looking at how you guys get round problems is all good Hehe, and don't forget to look into the PyQt examples. They're worth it. Good luck, Pete

Re: KDE 4 (was: [PyKDE] PyQt 4 on openSUSE)

2006-09-07 Thread Hans-Peter Jansen
Am Donnerstag, 7. September 2006 23:03 schrieb Simon Edwards: On Wednesday 06 September 2006 13:46, Hans-Peter Jansen wrote: Am Dienstag, 5. September 2006 19:29 schrieb Joachim Werner: SUSE has been shipping with PyQt/PyKDE installed in the default system for quite a while. For PyQT

Re: [PyKDE] PyQt 4 on openSUSE

2006-09-06 Thread Hans-Peter Jansen
Am Dienstag, 5. September 2006 19:29 schrieb Joachim Werner: Hi all, SUSE has been shipping with PyQt/PyKDE installed in the default system for quite a while. For PyQT/PyKDE 3 this was a no-brainer: The HP printer tools are installed by default and need them, so we have to install PyQt/PyKDE

Re: [PyKDE] feature request for eric4

2006-07-08 Thread Hans-Peter Jansen
Am Samstag, 8. Juli 2006 20:55 schrieb Detlev Offenbach: On Saturday 08 July 2006 20:04, Andreas Pakulat wrote: On 08.07.06 16:01:51, Detlev Offenbach wrote: On Saturday 08 July 2006 13:49, Hans-Peter Jansen wrote: Sounds like it's i/o encoding related, and then yes, that could make

[PyKDE] QTextEdit.setAutoFormatting() has an invalid type

2006-07-03 Thread Hans-Peter Jansen
Hi Phil, I just stumbled on this one: ~ pyuic -x -o form1.py form1.ui ~ python form1.py Traceback (most recent call last): File form1.py, line 54, in ? w = Form1() File form1.py, line 33, in __init__ self.textBrowser.setAutoFormatting(QTextBrowser.AutoAll) TypeError: argument 1 of

Re: [PyKDE] Run-time error (Must construct a QApplication before a QPaintdevice)

2006-04-21 Thread Hans-Peter Jansen
Am Freitag, 21. April 2006 01:52 schrieb Adam Tenderholt: If these were self-written programs that might really be the case, however this is with the examples and I can't see any sign for improper QApplication initialization in bigtable.py or smalltable.py. I also don't think Phil has

Re: [PyKDE] How To Publish a pyqt application

2006-03-28 Thread Hans-Peter Jansen
Am Dienstag, 28. März 2006 12:23 schrieb Tina Isaksen: Gerard Vermeulen wrote: A possibility is to install Python, Qt and PyQt and your application in for instance /home/yourhome/usr. You can do this with Python's ./configure --prefix=/home/yourhome/usr For Qt you have to do something

Re: [PyKDE] SIP: MappedType for pointers?

2006-03-22 Thread Hans-Peter Jansen
Am Mittwoch, 22. März 2006 14:19 schrieb Giovanni Bajo: Jim Bublitz [EMAIL PROTECTED] wrote: Same as the following, except %MappedType wchar_t and other obvious changes. Many thanks Jim. For some reason, I had thought that %MappedType wouldn't work for pointers... never mind! if

Re: [PyKDE] also about pyqt

2006-03-15 Thread Hans-Peter Jansen
Am Dienstag, 14. März 2006 17:49 schrieb Roberto Alsina: If the user has PyQt installed by other means (for example for Red Hat/Fedora/Centos users, kde-redhat.sf.net), distutils can create fairly simple RPMs (they have no dependencies listed, so they are technically broken, though). which

Re: [PyKDE] Run program as root

2006-02-15 Thread Hans-Peter Jansen
Am Mittwoch, 15. Februar 2006 12:30 schrieb Tina Isaksen: Tina Isaksen wrote: Try running kdesu ps auxww to get a nice password request UI.. Pete Oh for crying out loud! Of course... I wish I could see the woods but all those darn trees are in the way... :P Thanks Pete!

Re: [PyKDE] QtextEdit to file?

2006-02-15 Thread Hans-Peter Jansen
Am Mittwoch, 15. Februar 2006 18:47 schrieb Andreas Pakulat: On 15.02.06 18:19:42, Tina Isaksen wrote: I need to save the contents of a QtextEdit box as a file text-file, retaining the carriage returns. I've been googling for an hour, studied QT-assistant, and I just don't get it... as

Re: [PyKDE] Run program as root

2006-02-14 Thread Hans-Peter Jansen
Am Dienstag, 14. Februar 2006 09:45 schrieb Patrick Stinson: Even though this is more of a python question than a pykde question, #!/bin/sh # wrapper shell script sudo /path/to/python $@ This will only work with sudo configured to not ask for a password. Otherwise you need to run it in a

Re: [PyKDE] Newbie: Initiate

2006-02-12 Thread Hans-Peter Jansen
Am Sonntag, 12. Februar 2006 03:39 schrieb Kuljo: Hi Mikhail, thanks for your contribution. But I think, I did not described my problem clear enough: I have a kListBox1 which I want to fill with the names of the directories out of a higher level directory. For this purpose I have made a slot

Re: [PyKDE] Tina's question

2006-02-09 Thread Hans-Peter Jansen
Am Donnerstag, 9. Februar 2006 08:17 schrieb Tina Isaksen: Thanks Jim and Tobias! Sorry about the missing topic in my original post... I still don't get the basics I think. I haven't really programmed anything since BASIC some 20+ years ago so I'm a bit rusty. Keep in mind, that you have to

Re: [PyKDE] What little detail am I missing?

2006-02-09 Thread Hans-Peter Jansen
Am Donnerstag, 9. Februar 2006 18:08 schrieb Andreas Pakulat: On 09.02.06 17:47:28, Tina Isaksen wrote: void enkelTest::click() { innput=self.lineEdit1.text().toInt() return innput } You're mixing C++ and Python here, not good. This I took directly from a tutorial...?

Re: [PyKDE] unicode two-way conversion

2005-10-25 Thread Hans-Peter Jansen
Am Dienstag, 25. Oktober 2005 12:48 schrieb Sebastian Kügler: On Tuesday 25 October 2005 12:28, Mateusz Korniak wrote: Encode to (and back from) utf-8. Remember only that utf-8 representation is longer than number of chars in unicode string if any non 7bit ascii char is used. Also make

Re: [PyKDE] SIP: example of documentation does not work ?

2005-10-12 Thread Hans-Peter Jansen
Am Mittwoch, 12. Oktober 2005 13:09 schrieb elho: 4.3.1 (4.3.1-SIP-4_3-362) I'm getting crazy - even if I delete the first lines of my word.sip file, it is the same error. May there be something wrong about my file? what will I need before %Module.. ? Probably line termination? (e.g.

Re: [PyKDE] Newbie question on QWidget.focusOutEvent

2005-09-26 Thread Hans-Peter Jansen
Am Montag, 26. September 2005 08:04 schrieb Volker Lenhardt: Hi Pete, I thought I'd got the knack of it. But I haven't succeeded yet. This is the relevant part of my script: class DlgTourn(QDialog): def __init__(self, tourn): QDialog.__init__(self, None, None, True, 1)

Re: [PyKDE] Newbie question on QWidget.focusOutEvent

2005-09-26 Thread Hans-Peter Jansen
Hi Volker, Am Montag, 26. September 2005 12:36 schrieb Volker Lenhardt: I tried installing the event filter in the dialog itself without a special Combo class: no effect at all. This version works as expected for me: #!/usr/bin/env python # # focusouttest.py # import sys from qt import *

Re: [PyKDE] Newbie question on QWidget.focusOutEvent

2005-09-26 Thread Hans-Peter Jansen
Am Montag, 26. September 2005 20:01 schrieb Volker Lenhardt: Pete, I'll have a drink to your health. Thank you, it works. Glad to hear. Cheers ;-) The central problem was the message box (it would have given me direct information with my terminal blocked out of sight). It's interesting

Re: [PyKDE] Newbie question on QWidget.focusOutEvent

2005-09-24 Thread Hans-Peter Jansen
[I'm CCing PyKDE to make it available for others too] Am Samstag, 24. September 2005 14:31 schrieb Volker Lenhardt: Hi Pete, leider haben die Listenmoderatoren meine jeweiligen Antworten noch nicht eingestellt, so dass ich auch deine Antwort nicht als Mail erhalten habe. Ich vermute, sie ist

Re: [PyKDE] Newbie question on QWidget.focusOutEvent

2005-09-23 Thread Hans-Peter Jansen
Am Freitag, 23. September 2005 10:12 schrieb Giovanni Bajo: Volker Lenhardt [EMAIL PROTECTED] wrote: But I don't get it to work. I try to open a message box on focus change, but it never comes. Focus changes undisturbed. A snippet of my script: Are you sure you are giving focus to the

Re: [PyKDE] memleak with QMovie

2005-09-19 Thread Hans-Peter Jansen
Am Montag, 19. September 2005 00:28 schrieb Russell Valentine: Phil Thompson said the following on 09/18/05 17:13: On Sunday 18 September 2005 10:11 pm, Russell Valentine wrote: So if it isn't doing it on your system, I wonder what is different with mine that causes this. It does it on two

Re: [PyKDE] pykde segfaults

2005-09-06 Thread Hans-Peter Jansen
Am Dienstag, 6. September 2005 18:30 schrieb Jim Bublitz: On Tuesday 06 September 2005 05:19, Giovanni Bajo wrote: Jim Bublitz [EMAIL PROTECTED] wrote: You're using QApplication instead of KApplication. If you add: from kdecore import KApplication and change app =

<    1   2   3   4   5   6   7   8   >