Re: [PyQt] Importing Css file

2011-11-30 Thread Scott Ballard
Give this a try, It works for me in my application. I'm able to embed the css file into the resources file. css = QtCore.QFile(':/my_stylesheet.css') css.open(QtCore.QIODevice.ReadOnly) if css.isOpen(): self.setStyleSheet(QtCore.QVariant(qss.readAll()).toString()) css.close() Cheers, -Scott

[PyQt] Zooming the contents of a Qt application

2011-09-22 Thread Scott Ballard
In Qt Designer there is an option in the preferences to zoom in/out the application when its launched (tested). Does anyone know if this is calling Qt core functionality or is it just a trick that Designer is doing? Cheers, -Scott ___ PyQt mailing list

Re: [PyQt] bug: QProcessEnvironment insert failing

2010-12-10 Thread Scott Ballard
On Freitag 10 Dezember 2010, Scott Ballard wrote: > > The insert method of QProcessEnvironment overwrites the > > environment variable instead of inserting into it. > > according to the manual, this is correct. > > Inserts the environment variable of name name and

[PyQt] bug: QProcessEnvironment insert failing

2010-12-09 Thread Scott Ballard
I ran across the following bug tonight: The insert method of QProcessEnvironment overwrites the environment variable instead of inserting into it. === Example === from PyQt4 import QtCore env = QtCore.QProcessEnvironment.systemEnvironment() print env.value('PATH') >>C:\WINDOWS\system32;C:\WINDOW

Re: [PyQt] ImportError: DLL load failed: The specified procedure could not be found.

2010-08-14 Thread Scott Ballard
This truly is a problem that I've seen on several random machines. I can't seem to make head or tails with it but I know others have encountered it too. I've also seen things work just fine and then one day fail, only to have to copy the DLLs into the Python26\Lib\site-packages\PyQt4 directory

[PyQt] Deleting QRunnables in QThreadPool

2010-07-21 Thread Scott Ballard
Just wondering if anyone knows how to delete QRunnables that have been added to a QThreadPool. example: I've added 5000+ QRunnable objects to a QThreadPool and I now want to cancel all of them. The only was seems to be to stop the entire script which kind of defeats the purpose. Any thought woul

[PyQt] QDomElement set text?

2010-07-19 Thread Scott Ballard
If I have an XML element such as "hello" I can retrieve its text ("hello") using the method .text(), but how do I set it? Or do I somehow have to use a QTextNode to set the QDomElement? Any thoughts? Thanks, -Scott ___ PyQt mailing listPyQt@riverb

[PyQt] PyQt compiled for Snow Leopard 10.6.3

2010-05-20 Thread Scott Ballard
Howdy, Does anyone have a compiled version of PyQt for Snow Leopard 10.6.3 that they wouldn't mind sharing? I'd really appreciate it and would save me a lot of time and headache! :) Thanks, -Scott ___ PyQt mailing listPyQt@riverbankcomputing.com

[PyQt] This implementation does not support subelements! (ID 2 unknown for QMenuBar)

2010-05-16 Thread Scott Ballard
ication.UnicodeUTF8)) if __name__ == "__main__": import sys app = QtGui.QApplication(sys.argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow() ui.setupUi(MainWindow) MainWindow.show() sys.exit(app.exec_()) -- Cheers, -Scott Scott Ballard CG Supervisor / Pipeline

[PyQt] DPX image format

2010-05-11 Thread Scott Ballard
Anyone know if QT supports the DPX image format or how hard it would be to implement support for it? Thanks, -Scott ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Playing Quicktimes on Windows using Phonon

2010-04-23 Thread Scott Ballard
Howdy, I'm wondering if anyone has gotten Quicktimes to play on Windows using Phonon? I'm able to play Quicktimes in Windows Media Player using a Quicktime WMP Filter made by Riverpast (riverpast.com) but they don't play in Phonon.VideoPlayer. Do I need to add MIME support for it? Any tips would

[PyQt] QGroupbox CSS inner border color?

2010-04-22 Thread Scott Ballard
Does anyone know the CSS code to change the inner border color of the QGroupbox? border-color only changes the outer color but not the inner border color. Thanks, -Scott ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing

Re: [PyQt] Updated Windows Installers for Python v2.6 and v3.1

2010-04-20 Thread Scott Ballard
Works like a charm now Phil!! Thanks! On 4/20/2010 5:00 AM, Phil Thompson wrote: I've uploaded new Windows installers for Python v2.6 and v3.1. These are built against Python v2.6.4 (rather than v2.6.5) and v3.1.1 (rather than v3.1.2). Hopefully this will fix the problems with the original in

Re: [PyQt] DLL Problem with PyQt-Py3.1-gpl-4.7.3-1.exe

2010-04-19 Thread Scott Ballard
Phil, I investigated the DLL problem and found the following. Still not sure what is causing it though. I tested 2 different PyQt installers under Windows 7 64-bit, uninstalling each before testing the other. I made a clean PATH env var to just PyQt and Python. -- PyQt-Py2.6-gpl-4.7-1.exe  -

Re: [PyQt] DLL Problem with PyQt-Py3.1-gpl-4.7.3-1.exe

2010-04-19 Thread Scott Ballard
Phil, do you mind posting the PATH env var from your test machine? I'm curious to see how it matches up to mine. I installed with Admin privileges. -Scott > On Mon, 19 Apr 2010 09:00:54 -0700, Scott Ballard > wrote: >> I noticed this issue when I've installed the 4.7.x

Re: [PyQt] DLL Problem with PyQt-Py3.1-gpl-4.7.3-1.exe

2010-04-19 Thread Scott Ballard
I noticed this issue when I've installed the 4.7.x releases under Python 2.6. When compared to the 4.6.x releases, the directory structure has changed and all of the DLLs have been moved to a subdirectory instead of the root. There was a thread that described copying the QtCore and QtGui DLLs to

Re: [PyQt] Help: packaging PyQt app

2010-03-02 Thread Scott Ballard
You need to include sip: http://www.py2exe.org/index.cgi/Py2exeAndPyQt from distutils.core import setup import py2exe setup(windows=[{"script":"main.py"}], options={"py2exe":{"includes":["sip"]}}) -Scott On 3/2/2010 8:51 AM, Anshul Jain wrote: I have made a very simple browser using Qwebview

Re: [PyQt] MemoryError: can I use more?

2010-02-15 Thread Scott Ballard
x27;m sure it effects a lot of people. Cheers, -Scott Scott Ballard CG Supervisor / Pipeline TD http://www.linkedin.com/in/scottballard On 2/14/2010 4:22 PM, Echavarria Gregory, Maria Angelica wrote: Scott, Thanks for the tip of the 0.5GB more... I'm googling it! that might be all I n

Re: [PyQt] PyQt 4.7 and py2exe error

2010-02-09 Thread Scott Ballard
yInstaller? Thanks! On 2/9/2010 7:22 AM, Giovanni Bajo wrote: Il giorno lun, 08/02/2010 alle 18.30 -0800, Scott Ballard ha scritto: Wow, that worked like a charm! I'd love to get Phil's input on this one. The package looks like a dummy package but I dont know. py2exe thinks that you

Re: [PyQt] PyQt 4.7 and py2exe error

2010-02-08 Thread Scott Ballard
olution or not. On Tue, Feb 9, 2010 at 4:25 AM, Scott Ballard wrote: I'm trying to create an executable on Windows using Py 2.6.2, PyQt 4.7 and py2exe 0.6.9 and am getting the following error: C:\Python26\lib\site-packages\py2exe\build_exe.py:16: DeprecationWarning: the sets module is depr

[PyQt] PyQt 4.7 and py2exe error

2010-02-08 Thread Scott Ballard
I'm trying to create an executable on Windows using Py 2.6.2, PyQt 4.7 and py2exe 0.6.9 and am getting the following error: C:\Python26\lib\site-packages\py2exe\build_exe.py:16: DeprecationWarning: the sets module is deprecated import sets running py2exe *** searching for required modules **

Re: [PyQt] Downloading PyQt for Python 2.6

2010-01-20 Thread Scott Ballard
Not sure why Phil hasn't chimed in by now, he usually does. Anyway, I throw PyQt-Py2.6-gpl-4.5.4.exe up on my FTP if anyone wants it. I believe that was the latest version for Python2.6 www.scottballard.net/PyQt-Py2.6-gpl-4.5.4.exe Cheers, -Scott Chris Bergstresser wrote: On Wed, Jan 20,

Re: [PyQt] pyqt, py2exe and ui files

2009-11-24 Thread Scott Ballard
onment and I'm using the same python2.5 install for Eclipse and command line py2exe. Any thoughts? -Scott Albert Cervera i Areny wrote: A Dimecres, 25 de novembre de 2009, Scott Ballard va escriure: I have a Python/PyQt script that is loading a .ui file. If I use py2exe to

[PyQt] pyqt, py2exe and ui files

2009-11-24 Thread Scott Ballard
I have a Python/PyQt script that is loading a .ui file. If I use py2exe to turn it into an executable I get errors about missing modules like PyQt4.elementtree.ElementTree. If I convert the .ui files using pyuic4 and embed them into the Python script then py2exe works just fine. Has anyone fig

Re: [PyQt] QtSQL cant connect using MySQL driver

2009-09-08 Thread Scott Ballard
out the crash I will post the results. -Scott Phil Thompson wrote: On Tue, 08 Sep 2009 08:48:53 -0700, Scott Ballard wrote: Thanks for the response Phil! Forgive my ignorance but does it assume the default path to the MySQL client libraries or can that path be set? I'm

Re: [PyQt] QtSQL cant connect using MySQL driver

2009-09-08 Thread Scott Ballard
ilt with support for MySQL. It requires the MySQL client libraries to be installed (unlike the PostgreSQL support which is linked against static libraries). Phil On Sep 7, 2009, at 3:39 PM, Scott Ballard wrote: According to Phil, he added MySQL suppo

Re: [PyQt] QtSQL cant connect using MySQL driver

2009-09-07 Thread Scott Ballard
Makes sense now... looks like this is going to be more involved than I hoped. Thanks for the help!! Christian Caron wrote: Phil has control over PyQt. I'm talking about compiling mysql support into Trolltech's err I mean Nokia's Qt. On Sep 7, 2009, at 3:39 PM, Scot

Re: [PyQt] QtSQL cant connect using MySQL driver

2009-09-07 Thread Scott Ballard
e current installers (for Python v2.6 and v3.1). I'm not >updating the installer for Python v2.5. >Phil Christian Caron wrote: By default, QtSql does't have support for mysql. You have to compile it by specifying the right options when ./configuring Qt for build. Christian

[PyQt] QtSQL cant connect using MySQL driver

2009-09-07 Thread Scott Ballard
Hey list, Sorry to ask about this again, but I never got it working and was pulled off onto something else. Now I have time to look into it again. I can't seem to get the qmysql driver to work with the QtSQL module in PyQt 4.5.4 and Python 2.6.2 on Windows XP SP2. What exactly is required t

Re: [PyQt] missing MySQL/PostGres drivers

2009-08-18 Thread Scott Ballard
ysql4.dll is in the Python26\Lib\site-packages\PyQt4\plugins\sqldrivers. Any thoughts Phil? Is there anything special I need to do to load the driver? Phil Thompson wrote: On Tue, 18 Aug 2009 10:56:44 -0700, Scott Ballard Qt wrote: Hey Phil and community, I'm just wondering why the My

[PyQt] missing MySQL/PostGres drivers

2009-08-18 Thread Scott Ballard
Hey Phil and community, I'm just wondering why the MySQL drivers can't be compiled into the PyQt Windows binary installer, instead we have to compile our own Qt/PyQt with the MySQL and/or PostGres drivers. Is it for legal reasons? It's really a bullet in the foot... Cheers, -Scott

Re: [PyQt] Collapse/expand frame

2009-08-13 Thread Scott Ballard
Thanks for all the feedback. Are there any good tutorials for implementing your own custom widgets/layouts? (if no one has an implementation of this) Cheers, -Scott Alexei Puzikov wrote: I'm really looking for a frame that has the collapse/expand ability built into it. See the

Re: [PyQt] Collapse/expand frame

2009-08-13 Thread Scott Ballard
h, 12. August 2009 schrieb Scott Ballard: Does anyone know of a way to collapse/expand a frame or a group box that contains widgets in it? I don't see anything in the docs or Google about it, but it would seem like something common. Try .hide()/.show() resp. .setVisible(b

[PyQt] Collapse/expand frame

2009-08-12 Thread Scott Ballard
Does anyone know of a way to collapse/expand a frame or a group box that contains widgets in it? I don't see anything in the docs or Google about it, but it would seem like something common. Cheers, -Scott __ Information from ESET NOD32 Antivirus, version of virus signature database

[PyQt] .ui files embedded in a resource file

2009-05-15 Thread Scott Ballard
I'm wondering if it's possible to embed a .ui file into a resource file and access it like icons or images? I gave it a try and it seemed that it put it into the resource file, but I couldn't access it in the conventional way. The docs don't make any mention of it. It would be powerful to be a

Re: [PyQt] riverbankcomputing.co.uk down?

2009-05-10 Thread Scott Ballard
Looks like its back up... nevermind. Scott Ballard wrote: Can't seem to get on the website. Anyone know if its down? Can anyone else get on it? -Scott ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/ma

[PyQt] riverbankcomputing.co.uk down?

2009-05-10 Thread Scott Ballard
Can't seem to get on the website. Anyone know if its down? Can anyone else get on it? -Scott ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] node graph widgets?

2009-05-07 Thread Scott Ballard
Do you have any examples or source code your willing to share? Or any links to examples? Thanks! -Scott Alexei Puzikov wrote: Nothing standard, however it's actually pretty easy to implement either with GraphicsScene or OpenGL surface. Latter is exactly what I've did. Alexei

[PyQt] node graph widgets?

2009-05-07 Thread Scott Ballard
Does anyone know if Qt (PyQt) offer any widgets for creating a node graph with connections between the nodes? A quick Google search didn't turn up much. Thanks, -Scott ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.

[PyQt] Parenting a PyQt window to another application

2009-04-23 Thread Scott Ballard
Hi, I'm trying to find a way to parent a PyQt (QMainWindow) to another application. In my case, I have PyQt running in Autodesk Maya and am trying to get the PyQt window to parent to Maya's main window (so that it raises/restores with Maya's window) I was able to get the PyQt window to paren

[PyQt] Eclipse sliding info panels

2009-04-19 Thread Scott Ballard
For those who haven't seen the sliding info panels in the Eclipses IDE they are great. They slide out over the main working area and collapse out of sight when you click back into the main working area. Makes it really convenient to get/edit data. They differ from splitting a Frame in two with

Re: [PyQt] QDirModel populating QTreeView in Windows Slow Response

2009-04-19 Thread Scott Ballard
Could be that one of your drives has gone to sleep. It takes a couple of seconds for the drive to wake up and give a directory listing. Its not that slow on my machine. -Scott akumarzen wrote: I populate QTreeView with QDirModel ... While EXECUTING. It takes much time to generate the TREE

[PyQt] QAbstractItemModel, QTreeView, arbitrary Python object, drag/drop working example

2009-04-15 Thread Scott Ballard
to include this example in the next release of PyQt. Cheers, -Scott Ballard CG Supervisor / Pipeline TD www.scottballard.net . http://www.linkedin.com/in/scottballard - code - code - code - impor

[PyQt] Drag/Drop, removeRows method not being called

2009-04-08 Thread Scott Ballard
Hi, Wondering if anyone has a clue about this. I'm using a sub-classed QAbstractItemModel with all of the required methods reimplemented for drag/drop functionality. For some reason, if the columnCount method returns a value great than 1 the removeRows method doesn't get called after the dro

[PyQt] Model/View, QTreeView, drag/drop and arbitrary objects

2009-03-23 Thread Scott Ballard
uickly for more high level uses. Someone must have figured this out before!? Cheers, -Scott Ballard ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Executing function with argument under a button in pyqt

2009-03-13 Thread Scott Ballard
I came across this link while I was trying to do the same thing. It explained everything and might help you with passing arguments. http://blog.qgis.org/node/102 Cheers, -Scott klia wrote: Till Gerken-2 wrote: On Fri, Mar 13, 2009 at 2:23 PM, klia wrote: I h

[PyQt] QDataStream and arbitrary Python objects

2009-03-13 Thread Scott Ballard
I'm a bit of a PyQt newbie but have plenty of Python experience. Does anyone know if arbitrary Python objects will be supported by QDataStream in PyQt 4.5? I'm looking for a method of using PyQts model/view programming and its drag and drop functionality with Python's base object class which