Re: [PyKDE] QWMatrix bugs -- actually a documentation bug

2003-09-03 Thread Mark Summerfield
On Tuesday 02 September 2003 22:16, [EMAIL PROTECTED] wrote: Hi again, Sorry to bother you all with this, I found the bug, it's in the example on the weg page, not a Qt bug, but a documentation bug. I hope Trolltech will fix this, right now should do it ;) [EMAIL PROTECTED] writes: Your

Re: [PyKDE] sender info in Python slot

2006-11-10 Thread Mark Summerfield
() function, the proper one is to have a look at QSignalMapper. [snip] Using sender() is not considered unclean in Qt 4, so I would feel free to use it. -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de

Re: [PyKDE] PyQt book

2006-11-17 Thread Mark Summerfield
it will be a good book. Regards, -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] PyQt book

2006-11-17 Thread Mark Summerfield
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 not possible to reach http://www.opendocs.org/pyqt/. Any information ?, Is PyQt4 book on the way ? Simon

Re: [PyKDE] PyQt4: PyObject in SIGNAL

2006-11-30 Thread Mark Summerfield
though.) Also, there are some errors in the docs; in section 3.4 the two SLOT lines should be: QtCore.QObject.connect(a, QtCore.SIGNAL(QtSig()), b, QtCore.SLOT(QtSlot())) QtCore.QObject.connect(a, QtCore.SIGNAL(PySig()), b, QtCore.SLOT(QtSlot())) -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu

Re: [PyKDE] PyQt4: PyObject in SIGNAL

2006-12-01 Thread Mark Summerfield
On Fri 1-Dec-06 11:04, Giovanni Bajo wrote: Mark Summerfield wrote: what's the meaning of the string PyObject used within the signature of a signal in PyQt4? I can't seem to find it in the PyQt4 documentation. If I pass it a random python object I get core dumps and random crashes, so I

Re: [PyKDE] contextMenuEvent for QTableView column headers

2007-01-14 Thread Mark Summerfield
() myself though. -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] changing background color of QTextEdit/QLineEdit

2007-01-15 Thread Mark Summerfield
://doc.trolltech.com/4.2/stylesheet.html -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyQt] Re: trouble installing PyQt

2007-04-13 Thread Mark Summerfield
this because as far as they're concerned they've got qtvars.bat. In the Appendix to the book I will explain how to add Qt to the path, so at least readers will know:-) -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing list[EMAIL

Re: [PyQt] Re: trouble installing PyQt

2007-04-13 Thread Mark Summerfield
or who don't want their path fiddled with can uncheck it? -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing list[EMAIL PROTECTED] http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Pickle Support

2007-04-30 Thread Mark Summerfield
consider a few more though: QBitmap QBrush QCursor QFont QIcon QImage QPalette? QPen QPixmap QPolygonF QStringList? -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com

Re: *** GMX Spamverdacht *** Re: [PyQt] ImportError: No module named QtOpenGL

2007-04-30 Thread Mark Summerfield
that the PyQt4 libraries will only export things with names matching /Q[A-Z]\w+/ and would expect anything that didn't have such a name either not to be exported or to have a special prefix such as qt to avoid unpleasant surprises. -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu

Re: [PyQt] PyKDE dcopext string marshalling; no unicode chars in a QString?

2007-04-30 Thread Mark Summerfield
@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyKDE dcopext string marshalling; no unicode chars in a QString?

2007-05-01 Thread Mark Summerfield
. Since you are processing framebuffer data which I assume is just a char* of raw bytes then using a QByteArray and converting that to a str seems like the way to go. -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt

Re: [PyQt] Qspinbox maximum value

2007-05-08 Thread Mark Summerfield
be to use a QDoubleSpinBox. This will happily take a maximum of 1000L, and you can always set it to show no decimal digits so that it looks to the user like it only handles whole numbers. -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu

[PyQt] Which Linux distros have PyQt4 preinstalled?

2007-05-10 Thread Mark Summerfield
Hi, I just found out that Kubuntu 7.04 Feisty Fawn includes PyQt4 preinstalled (version 4.1). Does anyone know if it is also preinstalled on plain Ubuntu, or on the forthcoming Fedora 7, or indeed on any other Linux distro? Thanks. -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu

Re: [PyQt] Which Linux distros have PyQt4 preinstalled?

2007-05-10 Thread Mark Summerfield
On Thu 10-May-07, Douglas Soares de Andrade wrote: Mark Summerfield escreveu: Hi, I just found out that Kubuntu 7.04 Feisty Fawn includes PyQt4 preinstalled (version 4.1). Does anyone know if it is also preinstalled on plain Ubuntu, or on the forthcoming Fedora 7, or indeed

Re: [PyQt] Which Linux distros have PyQt4 preinstalled?

2007-05-10 Thread Mark Summerfield
(and therefore Kubuntu), and for Debian. I also know the ones for Fedora Core 6, but not for Fedora 7. -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Which Linux distros have PyQt4 preinstalled?

2007-05-10 Thread Mark Summerfield
On Thu 10-May-07, Ismail Dönmez wrote: On Thursday 10 May 2007 16:14:12 Mark Summerfield wrote: Hi, I just found out that Kubuntu 7.04 Feisty Fawn includes PyQt4 preinstalled (version 4.1). Does anyone know if it is also preinstalled on plain Ubuntu, or on the forthcoming Fedora 7

Re: [PyQt] Re: Which Linux distros have PyQt4 preinstalled?

2007-05-11 Thread Mark Summerfield
On Thu 10-May-07, Rex Dieter wrote: Mark Summerfield wrote: I just found out that Kubuntu 7.04 Feisty Fawn includes PyQt4 preinstalled (version 4.1). Does anyone know if it is also preinstalled on plain Ubuntu, or on the forthcoming Fedora 7, or indeed on any other Linux distro? PyQt4

Re: [PyQt] setTextFormat missing in QTextEdit

2007-05-24 Thread Mark Summerfield
) to control whether the user can insert HTML, e.g., by pasting HTML from elsewhere. -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyQt4 server trial

2007-05-25 Thread Mark Summerfield
connection state is: %d % mySocket.state() -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] how to get X info in qt

2007-05-29 Thread Mark Summerfield
at QApplication's API, and maybe QWidget. -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] PyQt4 Book: Update

2007-06-11 Thread Mark Summerfield
, and a brief description: http://www.qtrac.eu/pyqtbook.html An electronic rough cut is also due to be available soon for those who can't wait 'til October. Initially 50% of the book then 75% will be available---I'll email when I know about the price and availability. -- Mark Summerfield, Qtrac Ltd

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

2007-06-19 Thread Mark Summerfield
, and especially from the second half---even Phil has said that he'd learned new things from it. For those who prefer paper and are patient, the printed book is due out in the US at the end of October. -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu

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

2007-06-20 Thread Mark Summerfield
On 2007-06-19, Hans-Peter Jansen wrote: 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

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

2007-06-21 Thread Mark Summerfield
On 2007-06-19, Hans-Peter Jansen wrote: 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

Re: [PyQt] Qt::DisplayRole

2007-07-02 Thread Mark Summerfield
'exceptions.AttributeError': 'module' object has no attribute 'DisplayRole' Any hints? import PyQt4.QtCore hasattr(PyQt4.QtCore, Qt.DisplayRole) False hasattr(PyQt4.QtCore.Qt, DisplayRole) True from PyQt4.QtCore import * Qt.DisplayRole 0 Qt.EditRole 2 -- Mark Summerfield, Qtrac Ltd

Re: [PyQt] Not sure how to use QSqlRelationalTableModel

2007-07-10 Thread Mark Summerfield
think that your problem may solved by adding model.submitAll() at the end of your addRecord() method. -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman

Re: [PyQt] Help with help action

2007-09-27 Thread Mark Summerfield
helpDialog.setWindowTitle(Test App - Help) # Added for neatness helpDialog.show() # Changed app = QtGui.QApplication(sys.argv) mainWin = MainWindow() mainWin.show() app.exec_() -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing

Re: [PyQt] Re: Help with help action

2007-09-27 Thread Mark Summerfield
On 2007-09-27, Thorsten Kampe wrote: * Mark Summerfield (Thu, 27 Sep 2007 08:45:59 +0100) On 2007-09-26, Thorsten Kampe wrote: I'm trying to teach myself GUI programmming with the help of the new PyQt book and the examples from the PyQt package. Although I've been doing Python

Re: [PyQt] doubt with QtCore.QThread

2007-10-02 Thread Mark Summerfield
= QApplication(sys.argv) t = Tmp() t.show() t.worker.start() sys.exit(app.exec_()) -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Problems with QDialog, QLineEdit and returnPressed event

2007-10-10 Thread Mark Summerfield
it correctly that if I need some input (QLineEdit specifically) connected wiht the returnPressed signal it is better to create a void dialog and then put all the controls than to create a dialog with the standard buttons ? Thanks bye Gianluca -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu

Re: [PyQt] layout management serious problem

2007-10-12 Thread Mark Summerfield
layout grid.addWidget(myWidget01, row, col) # set row, col appropriately # ... grid.addWidget(myWidget15, row, col) centralWidget = QWidget() centralWidget.setLayout(grid) self.setCentralWidget(centralWidget) Hope this helps! -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu

Re: [PyQt] Call a window from other parent window

2007-10-17 Thread Mark Summerfield
: self.connect(runConectarAction, SIGNAL(triggered()), self.runConectar) -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2007-10-23 Thread Mark Summerfield
as is, with fonts and typesetting exactly as I wanted them, whereas the Safari online edition was retypeset by the publisher.) -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http

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

2007-10-24 Thread Mark Summerfield
supplied as is, with the fonts and typesetting as I wanted them, whereas the publisher retypeset the online version. Le mardi 23 octobre 2007, pyprog a écrit : Excuse in advance for my bad english. I forgive you. ;-) Thanks:-) -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu

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

2007-10-25 Thread Mark Summerfield
it through Amazon---I only mention Amazon on the book's homepage because it is so well known. Naturally, I think the cost of the book---even with shipping---will pay back in terms of time saved when writing PyQt applications:-) 2007/10/23, Mark Summerfield [EMAIL PROTECTED]: Hi, I am delighted

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

2007-10-25 Thread Mark Summerfield
(usually:-) enjoy reading them, and they often pay back in terms of time saved. -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2007-10-26 Thread Mark Summerfield
/listinfo/pyqt -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2007-10-26 Thread Mark Summerfield
a copy just because there are some things in Qt4 I still haven't found time to get on top of, and some bad habits I should probably break. You will certainly find some topics that aren't covered in the C++/Qt book:-) -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu

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

2007-10-29 Thread Mark Summerfield
hightligher (and updated README.txt regarding these)---so no need to get the updated archive if you're not interested in SDI or python syntax highlighting. PS On the book's Prentice Hall web page it says Format: Cloth, whereas the format is actually hardback. -- Mark Summerfield, Qtrac Ltd

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

2007-10-29 Thread Mark Summerfield
to USD:EUR exchange rates, or maybe they dropped the price because they calculate that the loss in cover price will be offset by more sales? I just hope the books arrive soon! -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt

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

2007-10-30 Thread Mark Summerfield
a review (assuming it is a nice one of course:-) Kerri On 10/29/07, Mark Summerfield [EMAIL PROTECTED] wrote: On 2007-10-29, kib2 wrote: Hi, I just wanted to buy the book on Amazon.fr, and I saw something really amazing : price has changed from 58 euros to about 37 since

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

2007-10-30 Thread Mark Summerfield
! I will buy the book. I hope you enjoy it! In amazon.de the book costs 63,99 euros! :-s Not anymore! This morning amazon.de had dropped the price to 50 EUR:-) -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt

Re: [PyQt] QAbstractTableModel problems in PyQt4

2007-11-05 Thread Mark Summerfield
or by making it an instance variable, for example (untested): self.model = AModel() self.ui.tableView.setModel(self.model) # OR self.ui.tableView.setModel(AModel(self)) -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing list

Re: [PyQt] Model/View

2007-11-08 Thread Mark Summerfield
) self.setCentralWidget(splitter) self.setWindowTitle(Two views onto the same directory model) app = QtGui.QApplication(sys.argv) t = ZeTest() t.show() app.exec_() -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt

Re: [PyQt] QTreeView: inserting and removing rows in view and underlying data...

2007-11-09 Thread Mark Summerfield
QAbstractItemModel.reset()---this will tell any views that they must refresh all their visible data. Getting hierarchical models working is tricky. You might find more help in the C++ documentation: http://doc.trolltech.com/4.3/model-view-programming.html -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu

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

2007-11-14 Thread Mark Summerfield
bookshop that claims to have it is booktopia.com.au: http://www.booktopia.com.au/rapid-gui-programming-with-python-and-qt-the-definitive-guide-to-pyqt-programming/prod9780132354189.html at 58.45 AUD, but I have no personal knowledge of them so don't know if they are good or not. -- Mark Summerfield

Re: [PyQt] printpreview.cpp to printpreview.py

2007-11-15 Thread Mark Summerfield
maybe write something like this instead (untested): self.paperSize.setWidth(self.paperSize.width() * \ (view.logicalDpiX() / float(printer.logicalDpiX))) self.paperSize.setHeight(self.paperSize.height() * \ (view.logicalDpiY() / float(printer.logicalDpiY))) -- Mark Summerfield

Re: [PyQt] strange extra spacing between checkboxes

2007-11-19 Thread Mark Summerfield
].setMaximumHeight(height) checkboxes[i].setMinimumHeight(height) mainLayout . addWidget ( checkboxes [ i ] ) Note that this might fail, for example if the font is changed dynamically. It also means that the minimum size of the widget becomes fixed (10 * (height + (2 * margin))). -- Mark

Re: [PyQt] strange extra spacing between checkboxes

2007-11-20 Thread Mark Summerfield
On 2007-11-20, Shriramana Sharma wrote: Mark Summerfield wrote: height = QFontMetrics(window.font()).height() checkboxes[i].setMaximumHeight(height) checkboxes[i].setMinimumHeight(height) Thanks. Adding these lines corrected the problem. Note that this might fail

Re: [PyQt] Custom widgets, dynamic properties and css

2007-11-20 Thread Mark Summerfield
hints as to why the style of the control isn't being updated as the state changes? Am I missing something crucial? -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com

Re: [PyQt] Custom widgets, dynamic properties and css

2007-11-21 Thread Mark Summerfield
On 2007-11-20, Richard Smith wrote: Mark Summerfield wrote: I think for styles you must call setStyle() rather than update() to apply a new (or modified) style. Nope, that segfaulted... It did update the style before it segfaulted though. Well, if you're not mixing painting with calling

Re: [PyQt] QProcess arguments list problem

2007-11-21 Thread Mark Summerfield
and write that to your .ps file. Off Topic: In lout (and many other apps) the -o option says write the postscript to the filename following; do lout -v for a summary of all the options; and don't use the PDF option, use ghostscript for PDF. -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu

Re: [PyQt] Deleting a PyQt object

2007-11-22 Thread Mark Summerfield
reparented to that widget, so even if you remove it from the layout its parent still has a reference to it. -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo

Re: [PyQt] Problem updating QLabel font

2008-01-07 Thread Mark Summerfield
is that existing apps may break - but, then again, they are broken anyway. An alternative might be to automatically make a copy under the covers so that wrapped C++ instances are never const. I think this second way would be easier for users and seems perfectly Pythonic. -- Mark Summerfield, Qtrac

Re: [PyQt] PyQt book: problem with database example

2008-01-10 Thread Mark Summerfield
regarding the lifetime of the default connection, so I'm passing the buck to Phil on this one. All I can suggest is trying to upgrade to Qt 4.3.3 and PyQt 4.3.3 and seeing if the bugs have been fixed in those versions! -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu

Re: [PyQt] PyQt book: problem with database example

2008-01-10 Thread Mark Summerfield
On 2008-01-10, Phil Thompson wrote: On Thursday 10 January 2008, Mark Summerfield wrote: On 2008-01-09, Sibylle Koczian wrote: Hello, [snip] - After leaving the application I get the error message QSqlDatabasePrivate::removeDatabase: connection 'qt_sql_default_connection' is still

Re: [PyQt] one column not wrapping in QTableView

2008-01-12 Thread Mark Summerfield
) form.show() app.exec_() -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] simpler 'connect' function

2008-01-17 Thread Mark Summerfield
. -- -- Ewald ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt

Re: [PyQt] 10.7: super and PyQt classes

2008-01-20 Thread Mark Summerfield
---in other methods). If you prefer a more rigid consistency, you could simply not use super() at all, and always use base class calls (rather like C++). -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com

Re: [PyQt] processEvents on QlistWidget operations does nothing

2008-01-28 Thread Mark Summerfield
___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt

[PyQt] PyQt4 book: sample chapter etc available online

2008-02-12 Thread Mark Summerfield
the examples and exercise solutions, and the errata are here: http://www.qtrac.eu/pyqtbook.html -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] problem with QSystemTrayIcon

2008-02-21 Thread Mark Summerfield
() quitAction.connect(quitAction, SIGNAL(triggered()), app, SLOT(quit())) #atray.connect(tray, SIGNAL(clicked())) tray.setToolTip(Ale czad!) tray.showMessage(Title of the message, Body of the message) sys.exit(app.exec_()) Regards, -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu

Re: [PyQt] problem adding data to a QTableWidget

2008-03-03 Thread Mark Summerfield
', 6)]     win = Table(data = d)     win.show()     sys.exit(App.exec_()) -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] os.popen output to a progress bar

2008-03-21 Thread Mark Summerfield
. Have you tried self.ui.CHNGSPBar.setValue(int(per)) -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Bug with QGraphicsTextItem in pagedesigner.pyw (Mark Summerfield's script)?

2008-03-25 Thread Mark Summerfield
versions of PyQt, Qt, and Python are you using? What operating system are you using? As I mention at the beginning of chapter 12, this example needs PyQt 4.1 (ideally PyQt 4.2) or later and Qt 4.2 or later. -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu

Re: [PyQt] How to create a user-resizeable widget?

2008-04-10 Thread Mark Summerfield
much for me - I only want a handle between two areas of the window that the user can drag, I don't need crazy floating windows) QSplitter sounds like what you need. -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt

Re: [PyQt] Keyboard shortcuts not working

2008-04-11 Thread Mark Summerfield
() sys.exit(app.exec_()) if __name__ == '__main__': main() ### I've tried using different shortcut context: WindowShortcut, WidgetShortcut, ApplicationShortcut, but it still doesn't work. Any help greately appreciated. -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu

Re: [PyQt] Custom QSqlRelationalDelagate: how to change text?

2008-04-11 Thread Mark Summerfield
/mailman/listinfo/pyqt -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Custom Model for HDF5 QTreeView?

2008-04-22 Thread Mark Summerfield
. PyQt 6. QScintilla bindings 7. eric4 -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] PyQt's Undo/Redo framework - A Very Short Intro

2008-04-24 Thread Mark Summerfield
, but if not you'll spot it anyway.) The article has been heavily edited for style so it doesn't read like my usual writing, but the content is fine:-) -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http

Re: [PyQt] PyQt's Undo/Redo framework - A Very Short Intro

2008-04-25 Thread Mark Summerfield
On 2008-04-24, Giovanni Bajo wrote: On 4/24/2008 12:30 PM, Mark Summerfield wrote: Hi, I've written a very short introductory article on using PyQt's Undo/Redo framework. It is available here: http://www.informit.com/articles/article.aspx?p=1187104 (The indentation of the last

[PyQt] OT: A GUI tool to help choose keyboard accelerators for menus dialogs

2008-05-08 Thread Mark Summerfield
++/Qt4 it should be useful to anyone doing GUI programming with PyQt or any other toolkit. Accelerator is licensed under the GNU General Public License v 3 open source license and its source is available from http://www.qtrac.eu/accelerator.html -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu

Re: [PyQt] a newbie pyqt question, the pyqt book related

2008-05-29 Thread Mark Summerfield
visible to the user In a QTableView it is possible to have a selected item that is not the current item, in other words there are two different concepts selected item and current item. -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing

Re: [PyQt] QWidget focusInEvent() ?

2008-05-29 Thread Mark Summerfield
: app = QtGui.QApplication(sys.argv) tw = TestWidget() tw.show() sys.exit(app.exec_()) -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QVariant and Python list

2008-05-30 Thread Mark Summerfield
and Trolltech solved that by providing some static methods (that accept and return Java Strings) to fill the gaps; the same could be done in PyQt. My 2c;-) -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt

[PyQt] Comparing QString with QChar

2008-06-27 Thread Mark Summerfield
a QString---which makes sense because in Python a char is just a str of length 1, but maybe this particular case could be handled more intuitively? -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http

Re: [PyQt] Comparing QString with QChar

2008-06-27 Thread Mark Summerfield
On 2008-06-27, Hans-Peter Jansen wrote: Am Freitag, 27. Juni 2008 schrieb Mark Summerfield: Hi, I got caught by this today: from PyQt4.QtCore import * s = QString(X) c = QChar(X) s[0] == c False s[0] == QString(c) True In C++/Qt

Re: [PyQt] Comparing QString with QChar

2008-06-27 Thread Mark Summerfield
On 2008-06-27, Phil Thompson wrote: On Fri, 27 Jun 2008 09:38:04 +0100, Mark Summerfield [EMAIL PROTECTED] wrote: Hi, I got caught by this today: from PyQt4.QtCore import * s = QString(X) c = QChar(X) s[0] == c False s[0] == QString(c

Re: [PyQt] Strange shadowing of hex() function by PyQt4.QtCore

2008-08-08 Thread Mark Summerfield
builtins.hex(). But I'm hoping that in PyQt4 for Python 3, the * imports will only import objects that begin with q or Q, forcing the handful of objects that don't meet this criterion to either be imported explicitly or accessed fully qualified. [Any comment on this, Phil?] -- Mark Summerfield, Qtrac Ltd

[PyQt] Rapid PyQt book - examples for Python 2.6

2008-09-29 Thread Mark Summerfield
2.6 isn't officially available yet I've tested against release candidate 2 and the PyQt 4.4.4 snapshot and used the -3 flag. I hope that this is useful to those who want to make the move to 2.6! -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy

Re: [PyQt] PyQt4 and Python 3.0

2008-10-03 Thread Mark Summerfield
be used in PyQt subclasses just like any other subclasses. ;-) -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy C++ GUI Programming with Qt 4 - ISBN 0132354160 ___ PyQt mailing listPyQt

Re: [PyQt] PyQt4 and Python 3.0

2008-10-03 Thread Mark Summerfield
On 2008-10-03, Paul A. Giannaros wrote: On Fri, Oct 3, 2008 at 5:08 PM, Mark Summerfield [EMAIL PROTECTED] wrote: On 2008-10-03, Phil Thompson wrote: On Fri, 3 Oct 2008 17:11:19 +0200, Detlev Offenbach Here's my personal wish list for Python 3/PyQt4 (including those that Phil is going

Re: [PyQt] Re: PyQt4 and Python 3.0

2008-10-06 Thread Mark Summerfield
something more explicit: PyQt25/Qt4? -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy C++ GUI Programming with Qt 4 - ISBN 0132354160 ___ PyQt mailing listPyQt@riverbankcomputing.com http

Re: [PyQt] Extracting QSqlQuery results in PyQt4

2008-10-09 Thread Mark Summerfield
it will return False. [snip] -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy C++ GUI Programming with Qt 4 - ISBN 0132354160 ___ PyQt mailing listPyQt@riverbankcomputing.com http

Re: [PyQt] QSqlTableModel and complex queries

2008-10-09 Thread Mark Summerfield
or over how it is edited or both. -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy Rapid GUI Programming with Python and Qt - ISBN 0132354187 ___ PyQt mailing listPyQt@riverbankcomputing.com http

[PyQt] strange dialog slowness

2008-10-21 Thread Mark Summerfield
had hit the problem and maybe had a fix they could suggest? Thanks! -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy Rapid GUI Programming with Python and Qt - ISBN 0132354187 ___ PyQt mailing

Re: [PyQt] 2 litlle questions

2008-10-23 Thread Mark Summerfield
separators are unknow chars for my computer. You're getting the Unicode line break character. Add this line before you print the text: sel = sel.replace(u\u2029, \n) Another : I saw that Mark Summerfield recently played with the Poppler bindings for Qt4. Is there any port of it for PyQt ? I

Re: [PyQt] PyQt menu and tool tip font

2008-10-25 Thread Mark Summerfield
)) You can find out what fonts are availabe to Qt using QtGui.QFontDatabase(). -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy Programming in Python 3 - ISBN 0137129297 ___ PyQt mailing list

Re: [PyQt] Re: dialogs and extentions

2008-10-29 Thread Mark Summerfield
is all in code the .py version's form is a .ui file) -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy C++ GUI Programming with Qt 4 - ISBN 0132354160 ___ PyQt mailing listPyQt

Re: [PyQt] Re: dialogs and extentions

2008-10-30 Thread Mark Summerfield
not resize down, so that's the only case you have to fix---but I don't think it is easy to do! Thanks again, and by the way: your book is great! Thanks:-D Wim On Wed, Oct 29, 2008 at 4:02 PM, Mark Summerfield [EMAIL PROTECTED] wrote: On 2008-10-29, Wim Verhavert wrote: I already found out

[PyQt] OT: New Book: Programming in Python 3

2008-12-04 Thread Mark Summerfield
. Note: The only GUI coverage is of tkinter! (But still worth reading just to see what a pure joy PyQt is by comparison;-) -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy ___ PyQt mailing listPyQt

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Mark Summerfield
of the name is silly... Yes, but it has precedents in PyQt already, e.g. QApplication.exec_(). (and in my previous mail when I said David I actually meant Mark, happy new year ;-) ) Understandable since David is a much more regular poster than I am:-) -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu

Re: [PyQt] Learning path

2009-01-09 Thread Mark Summerfield
On 2009-01-09, Steven Woody wrote: Hi, I want to use PyQt but I don't get experience with Qt itself. What's the best learning path to me? Any suggestion will be highly appreciated! Well obviously the first step is to buy my book:-) -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C

Re: [PyQt] QPainter bug(?) in printing.pyw example from PyQt book

2009-01-09 Thread Mark Summerfield
in statement.transactions: ... mysticism? Hi Denis, I get exactly the same problem as you do with Qt 4.4, so it looks to me like a Qt (or PyQt) bug that was not present in Qt 4.3. My preferred workaround is: painter.setPen(Qt.NoPen)# workaround painter.setPen(Qt.black) -- Mark

Re: [PyQt] Log viewer Re: [PyQt] Log viewer

2009-01-16 Thread Mark Summerfield
On 2009-01-16, Frédéric wrote: Le 16/1/2009, Mark Summerfield m...@qtrac.eu a écrit: QPlainTextEdit is optimized for use as a log display and has appendHtml() and appendPlainText(). For Qt 4.3 or earlier use QTextEdit or QTextBrowser instead. Thanks, Mark. So, you suggest I subclass

Re: [PyQt] Log viewer

2009-01-19 Thread Mark Summerfield
On 2009-01-16, Frédéric wrote: On vendredi 16 janvier 2009, Mark Summerfield wrote: If you have 100K + log lines then a list model + QListView (+ custom delegate if you want fine control over rendering); but anything less and QPlainTextEdit + a simple data class should be fine. (I'm

Re: [PyQt] Catching key events

2009-01-19 Thread Mark Summerfield
. -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy Programming in Python 3 - ISBN 0137129297 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo

  1   2   >