[PyQt] what does import urllib2 as ulib mean?
Heys guys; as the name of the post indicates my questionwhat are those libraries? i need further details Thanks -- View this message in context: http://www.nabble.com/what-does-import-urllib2-as-ulib-mean--tp23008258p23008258.html Sent from the PyQt mailing list archive at Nabble.com. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] List Widgets, adjustable
Do you mean something like a QSplitter? A splitter lets the user control the size of child widgets by dragging the boundary between the children. Any number of widgets may be controlled by a single splitter. Reference: http://doc.trolltech.com/4.5/qsplitter.html Matt Smith schrieb: Okay, I've got two QListWidgets in a frame with an HBoxLayout. I was looking for some suggestions to make the width of the two widgets adjust-able. Ideally I would like to be able to grab the space between the widgets with the mouse and move it to adjust the way that the available space is distrubuted, ie one gets larger and the other gets smaller. thanks mbs ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] List Widgets, adjustable
Okay, I've got two QListWidgets in a frame with an HBoxLayout. I was looking for some suggestions to make the width of the two widgets adjust-able. Ideally I would like to be able to grab the space between the widgets with the mouse and move it to adjust the way that the available space is distrubuted, ie one gets larger and the other gets smaller. thanks mbs ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] segfault when using a proxy and SIGNAL( "clicked(QModelIndex)" )
Why do you need access to the QModelIndex internal pointer? It sounds like you are trying to access a null pointer, causing a crash. Looking at the signature, ptr is some sort of id or extra data associated with the index, which you probably need to add yourself when creating an index. QModelIndex QAbstractItemModel::createIndex ( int row, int column, void * ptr = 0 ) const [protected] TP-5 wrote: > > TP a écrit : >> Could this be a bug in PyQt? > > Has someone tried my script to check if the segfault is reproducible? > > Julien > > ___ > PyQt mailing listPyQt@riverbankcomputing.com > http://www.riverbankcomputing.com/mailman/listinfo/pyqt > > -- View this message in context: http://www.nabble.com/segfault-when-using-a-proxy-and-SIGNAL%28-%22clicked%28QModelIndex%29%22-%29-tp22977318p23006807.html Sent from the PyQt mailing list archive at Nabble.com. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Annoying TypeError with graphics animations
Hello all, I get some strange TypeErrors when I use the QGraphicsItemAnimation. An example can be boiled down to the example below taken from the Qt documentation : http://doc.trolltech.com/4.5/qgraphicsitemanimation.html What I get is this error, when the application is running. "TypeError: native Qt signal is not callable" I have installed the snapshot : PyQt-x11-gpl-4.5-snapshot-20090403.tar.gz under python2.6 ( verified the error under python2.5 too ) I can hardly see that I do something wrong.. or is it my installation that has failed?? best Regards BBZ # --- 8< -- import sys from PyQt4.QtGui import QApplication , QGraphicsEllipseItem , QGraphicsItemAnimation from PyQt4.QtGui import QGraphicsScene , QGraphicsView from PyQt4.QtCore import SIGNAL , QPointF , QTimeLine app = QApplication( sys.argv ) # create a graphicsview with a moving ball... ball = QGraphicsEllipseItem(0, 0, 20, 20) timer = QTimeLine(5000) timer.setFrameRange(0, 100) animation = QGraphicsItemAnimation() animation.setItem(ball) animation.setTimeLine(timer) for i in xrange( 200 ) : animation.setPosAt(i / 200.0, QPointF(i, i)) scene = QGraphicsScene() scene.setSceneRect(0, 0, 250, 250) scene.addItem(ball) view = QGraphicsView(scene) view.show() timer.start() app.exec_() # --- 8< -- ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] PyQt make failure
Sounds like a problem with the C++ libraries. Taken from the PyQt documentation: You may need to install the MSVC2008 C++ runtime DLLs from http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en here Von Dreele wrote: > > I have the following installed on my WinXP SP3 system; > MinGW 4.3.1 > Python 2.5.2 > Qt 4.5.0 > Sip 4.7.9 > QScintilla-gpl 2.3.2 > PyQt Py2.5.2-gpl-4.4.3 from the exe file. > All appears to work except Eric4; fails on: > > QVariant::load(QDataStream &s): type unknown to QVariant. > > on start up. > > I have written to Detlev directly about this. > > The PyQt version of QtAssistant fails on start up with the following: > > "Microsoft Visual C++ Runtime Library Runtime Error! > Program: C:\Python25\Lib\site-packages\PyQt4\assistant.exe > > This application has requested the Runtime to terminate it in an unusual > way. > Please contact the application's support team for more information" > > Not nice. > This gives me pause in using PyQt/Qt compared to WX/WXPython for my > applications development. > Bob Von Dreele > > -- View this message in context: http://www.nabble.com/PyQt-make-failure-tp23002715p23003182.html Sent from the PyQt mailing list archive at Nabble.com. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Re: segfault when using a proxy and SIGNAL( "clicked(QModelIndex)" )
TP a écrit : Could this be a bug in PyQt? Has someone tried my script to check if the segfault is reproducible? Julien ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] BUG: pyqtSignal('QString') vs pyqtSignal(['QString']) causes crash
On Fri, 10 Apr 2009 14:58:30 -0700 (PDT), Demetrius Cassidy wrote: > I am not sure if passing a string by itself to pyqtSignal is correct, but > shoulden't it raise an exception instead of crashing? I don't see why we > can't use this form instead. > > If I use the latter form of pyqtSignal(['QString']), passing it a list of > strings, everything works great. If I pass it a quoted string, I get a > crash > in QtCore.pyd using the latest nightly build (0409) > > Simple test case, replace pyqtSignal('QString') with > pyqtSignal(['QString']) > and it works OK. Should be fixed in tonight's snapshot. Thanks, Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Global Interpreter Lock
Jason Voegele wrote: I answered this in my reply to Giovanni. My QThread derivatives are in Python. From what I've read so far, that sounds like bad news. :( Well, only in so much as you should spawn of processes to do this work... Encoding sounds like something that should be pretty easily wrapped up in separate spawnable processes. Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt