[PyQt] How to view 'invisible' folders & enter .app folders on Mac via QFileDialoge?

2007-09-17 Thread John Wheez
Hi all, When i make a PyQt file requestor on Mac, I'm unable to view some of the system folders such as /var. Is there a way to make these visible to the PyQt file dialogues? Also, is there a way to enter the .app dirs of a Mac rather than treat them as files? --Thanks for any input _

[PyQt] Last Item of Menu Tool bars is invisible on OS X but not Windows or Linux

2007-09-17 Thread John Wheez
Hi all, I have some menu tool bars in my GUI and I find that the last item on the menu is always invisible when the program is run on OS X but everything is fine when the program is run on Windows XP and Linux. I made the GUI with Qt Designer. Has anyone run in to this issue before? Any ti

[PyQt] QWindowsMime

2007-09-17 Thread Anthony Heading
Hi, We're migrating some code from PyQt3, and have discovered that QWindowMime doesn't seems to exist in PyQt4? Is there a reason for that? Would it be difficult to add, or is there an alternative? Thanks Anthony ___ PyQt mailing listPyQt@riverba

[PyQt] Re: Serious performance problem with sipQtFindConnection

2007-09-17 Thread Phil Thompson
On Monday 17 September 2007, Giovanni Bajo wrote: > Hi Phil, > > after some days/weeks of debugging/profiling some code without really > getting any clue at the Python level, I tried oprofile on the code, and > was shocked by sipQtFindConnection being shown as top entry (50% of the > total time spe

[PyQt] Serious performance problem with sipQtFindConnection

2007-09-17 Thread Giovanni Bajo
Hi Phil, after some days/weeks of debugging/profiling some code without really getting any clue at the Python level, I tried oprofile on the code, and was shocked by sipQtFindConnection being shown as top entry (50% of the total time spent in that execution, with total execution time being 32

Re: [PyQt] Dumb question about QDirModel / setModel

2007-09-17 Thread Phil Thompson
On Monday 17 September 2007, Nicolas Girard wrote: > Hi, > could someone tell me why this works...: > > #!/usr/bin/python > from PyQt4 import QtGui > import sys > > class Window(QtGui.QMainWindow): > def __init__(self, parent=None): > QtGui.QWidget.__init__(self, parent) > self.

[PyQt] QTreeView and QDataWidgetMapper

2007-09-17 Thread Nicolas Girard
Hi again, in the following example I would expect the lineEdit contents to be refreshed each time the treeview's selection changes ; unfortunately it doesn't work. I tried to follow the Qt docs but I'm probably missing something... but what ? Cheers, Nicolas === #!/usr/bin/python from PyQt4 im

Re: [PyQt] Dumb question about QDirModel / setModel

2007-09-17 Thread David Boddie
On Mon Sep 17 16:28:34 BST 2007, Nicolas Girard wrote: > class Window(QtGui.QMainWindow): > def __init__(self, parent=None): > QtGui.QWidget.__init__(self, parent) > self.tree = QtGui.QTreeView(self) > model = QtGui.QDirModel() > self.setModel(model) > def s

[PyQt] Dumb question about QDirModel / setModel

2007-09-17 Thread Nicolas Girard
Hi, could someone tell me why this works...: #!/usr/bin/python from PyQt4 import QtGui import sys class Window(QtGui.QMainWindow): def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.tree = QtGui.QTreeView(self) def setModel(self,model): tree

Re: [PyQt] Easy way to save the text of all QlineEdit widgets?

2007-09-17 Thread Paul Giannaros
It's fairly easy but just how trivial it will be will depend on your set up. Are all the QLineEdits on one widget? If so, some code a bit like the following could work: for widget in theParentWidget.children(): if isinstance(widget, QLineEdit): myDictionary[widget.objectName()] = widge

[PyQt] ANNOUNCE: PyQt3Support r1 - Python bindings for Qt3Support

2007-09-17 Thread Matteo Bertini
PyQt3Support - Python bindings for Qt3Support http://www.develer.com/oss/PyQt3Support What is this? PyQt3Support is an extension to PyQt4 that adds bindings to Qt's Qt3Support library for usage from the Python language. This is very helpful to migrate existing PyQt3 applications

Re: [PyQt] Easy way to save the text of all QlineEdit widgets?

2007-09-17 Thread Giovanni Bajo
On 9/17/2007 4:59 PM, John Wheez wrote: Is there a function in pyQt which will iterate over the existing QlineEdit widgets and make a list/dictionary with the widget name and it's current text? dict((unicode(w.objectName()), unicode(w.text())) for w in mainwidget.findChildren(QLineEdit))

[PyQt] Easy way to save the text of all QlineEdit widgets?

2007-09-17 Thread John Wheez
Is there a function in pyQt which will iterate over the existing QlineEdit widgets and make a list/dictionary with the widget name and it's current text? Thanks for any input. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbank

[PyQt] PyQt app doesn't receive SIGBREAK

2007-09-17 Thread Arve Knudsen
Hi I've tried to implement a handler for SIGBREAK on Windows (resulting from Ctrl+Break), but for PyQt applications it doesn't get called unless the application is run from a terminal and the terminal has focus. Any ideas why? Thanks, Arve ___ PyQt mail

Re: [PyQt] Failed to create ./qtdirs when running latest PyQt configure.py

2007-09-17 Thread Phil Thompson
On Sunday 16 September 2007, Nicolas Girard wrote: > Hi, > when running > python configure.py > from the latest PyQt4 snapshot, I got the following error message: > Error: Failed to create ./qtdirs using platform linux-g++. Make sure your > compiler is installed correctly and you have a working