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
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
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
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
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
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
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
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
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
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
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
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
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
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 -
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
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
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
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
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
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
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 **
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
47 matches
Mail list logo