Re: [PyQt] QFileDialog problem (native: fast but no input field; non-native: has input field but slow)

2010-12-17 Thread V. Armando Solé
Hi, I am using newer versions of Qt (4.5.3 and 4.6.2) and I also have the same problem. I observe the problem mainly under windows when one is using mounted network disks. The only hint I have found is: http://lists.trolltech.com/qt-interest/2007-05/msg00179.html Best regards, Armando

Re: [PyQt] Display of Japanese Characters on Mac

2010-12-17 Thread Ullrich Martini
Hello, this sample also doesn't display japanese. Same syndrome as I described before. best regards, Ullrich Am 16.12.2010 um 22:38 schrieb Hans-Peter Jansen: > #!/usr/bin/env python > from PyQt4 import QtGui > app = QtGui.QApplication([]) > win = QtGui.QTextEdit() > win.show() > app.exec_() ___

[PyQt] creating QWidgets outside the GUI thread

2010-12-17 Thread Erik Janssens
Hi, has anybody experience with creating QWidgets outside the GUI thread ? I'd like to know if it's possible to construct QWidgets in some kind of worker thread, and when they are needed, reparent them and move them to the GUI thread before displaying them. Regards, Erik ___

[PyQt] QContextMenuEvent on a QTreeWidgetItem

2010-12-17 Thread Christopher Evans
Hi guys, I have been using pyqt for years at many different jobs and many different projects, however some things elude me. (I am a self-taught noob at heart) I have written many tutorials for the community to help spread knowledge, but this is one of the many things I myself have never found a g

[PyQt] gtk.ListStore replacement in PyQt

2010-12-17 Thread praveen koduru
In my code I am using gtk.Liststore for for Storing the listitems. and later to retrieve Listitems and their listItementries I am using the below. liststore = gtk.Liststore( str, str, int, gtk.gdk.Pixbuf) *For retrieving ListItems:* item = liststore.get_iter_first () or item = liststore

Re: [PyQt] QContextMenuEvent on a QTreeWidgetItem

2010-12-17 Thread Paul Du Bois
Well, I suppose you would start with class MainWindow(QMainWindow): def contextMenuEvent(self, event): item = self.tree_widget.itemAt(event.globalPos()) # create or fetch a QMenu that relates to your item menu.exec(event.globalPos()) or you could override the event on the

[PyQt] Fwd: creating QWidgets outside the GUI thread

2010-12-17 Thread KONTRA, Gergely
-- Forwarded message -- From: KONTRA, Gergely Date: Fri, Dec 17, 2010 at 13:03 Subject: Re: [PyQt] creating QWidgets outside the GUI thread To: erik.janss...@conceptive.be AFAIK you shouldn't create or manipulate QWidgets just from the main thread. If you'd like to initiate some

Re: [PyQt] Fwd: creating QWidgets outside the GUI thread

2010-12-17 Thread Erik Janssens
well, the idea is not to initiate GUI changes from another thread. the idea is to do the construction of widgets outside the GUI thread. The reasons for this are : - I have some screens that take considerable amount of time to build up 2 to 3 seconds (widgets only, not populating the widget

[PyQt] resizing polygon via bounding rectangle

2010-12-17 Thread Randy Heiland
Hello all, I'd like to know how one could implement this functionality - resizing a polygon (QGraphicsPolygonItem) as is commonly done, for example, in PowerPoint. Essentially, select the object to display its bounding rectangle and display the (minimally 4) handles at the corners. Selecting

Re: [PyQt] Display of Japanese Characters on Mac

2010-12-17 Thread Hans-Peter Jansen
On Friday 17 December 2010, 10:11:26 Ullrich Martini wrote: > Hello, > this sample also doesn't display japanese. Same syndrome as I > described before. best regards, > Ullrich Then I've no idea, what could be the difference to Qt here. You might need to produce a step by step guidance, that Phil

Re: [PyQt] QContextMenuEvent on a QTreeWidgetItem

2010-12-17 Thread Baz Walter
On 17/12/10 09:40, Christopher Evans wrote: Hi guys, I have been using pyqt for years at many different jobs and many different projects, however some things elude me. (I am a self-taught noob at heart) I have written many tutorials for the community to help spread knowledge, but this is one of

Re: [PyQt] Display of Japanese Characters on Mac

2010-12-17 Thread Ullrich Martini
Hello, here are more datails. I use MacOS 10.6.5, I assume that this is valid for any recent Mac. I assume further that this here does not apply to a non-Mac computer. Enable Japanese Input: - Start System Settings - Under Personal Settings there is a blue flag. Click that - A new Window opens w

[PyQt] Error building PyQt 4.8.1 as universal on OS X 10.5.8

2010-12-17 Thread Brian Zambrano
Building a universal version of my commercial PyQt has worked for me in the past with these steps: sip: $ python configure.py --universal $ make && sudo make install PyQt: $ python configure.py --confirm-license $ make && sudo make install I just upgraded to Qt 4.7, and am trying to build PyQt

Re: [PyQt] Hunting down memory leaks

2010-12-17 Thread Mailing List SVR
Il giorno mar, 14/12/2010 alle 18.02 +0100, Hans Meine ha scritto: > Am Dienstag 14 Dezember 2010, 17:05:42 schrieb Darryl Wallace: > > One of the things I've found in this regard has to do with Python and > > garbage collection. If the reference count to certain objects does not go > > to zero

Re: [PyQt] Hunting down memory leaks

2010-12-17 Thread Darryl Wallace
> > Il giorno mar, 14/12/2010 alle 18.02 +0100, Hans Meine ha scritto: > > Am Dienstag 14 Dezember 2010, 17:05:42 schrieb Darryl Wallace: > > > One of the things I've found in this regard has to do with Python > and > > > garbage collection. If the reference count to certain objects does > not go

Re: [PyQt] Display of Japanese Characters on Mac

2010-12-17 Thread Phil Thompson
On Fri, 17 Dec 2010 19:50:21 +0100, Ullrich Martini wrote: > Hello, > here are more datails. > > I use MacOS 10.6.5, I assume that this is valid for any recent Mac. I > assume further that this here does not apply to a non-Mac computer. > > Enable Japanese Input: > - Start System Settings > - Un

Re: [PyQt] Hunting down memory leaks

2010-12-17 Thread Hans-Peter Jansen
On Friday 17 December 2010, 22:01:40 Darryl Wallace wrote: > > Il giorno mar, 14/12/2010 alle 18.02 +0100, Hans Meine ha scritto: > > > Am Dienstag 14 Dezember 2010, 17:05:42 schrieb Darryl Wallace: > > > > One of the things I've found in this regard has to do with > > > > Python > > > > and > > >

Re: [PyQt] Unable to get QDeclarativeImageProvider to work

2010-12-17 Thread Phil Thompson
On Wed, 15 Dec 2010 15:38:24 -0700, "Brett Stottlemyer" wrote: > All, > > I am unable to get QDeclarativeImageProvider working. When I run the > attached code (on Win7) with >> python qmltest.py > it locks up and I get a "python has stopped responding" message. > > Is this a bug? It looks lik

Re: [PyQt] Display of Japanese Characters on Mac

2010-12-17 Thread Hans-Peter Jansen
On Friday 17 December 2010, 22:30:20 Phil Thompson wrote: > On Fri, 17 Dec 2010 19:50:21 +0100, Ullrich Martini > > wrote: > > Hello, > > here are more datails. > > > > I use MacOS 10.6.5, I assume that this is valid for any recent Mac. > > I assume further that this here does not apply to a non-M

Re: [PyQt] Display of Japanese Characters on Mac

2010-12-17 Thread Ullrich Martini
Hello, no, I believe that copy and paste does reproduce the problem. When I try to paste something japanese into the window I see a flickering that makes me believe that something should happen. But, instead, nothing happens. best regards, Ullrich Am 17.12.2010 um 22:30 schrieb Phil Thompson:

[PyQt] Page of QStackedWidget showing up in QApplication.topLevelWidgets()

2010-12-17 Thread Grant Limberg
I'm having an issue in finding the top level widgets of my application. When I call QApplication.topLevelWidgets(), one of the pages that I have in a QStackedWidget is showing up in the list of top level widgets. Also, if I try to call parentWidget() on the page of the QStackedWidget showing u

Re: [PyQt] Page of QStackedWidget showing up in QApplication.topLevelWidgets()

2010-12-17 Thread Grant Limberg
On Dec 17, 2010, at 3:38 PM, Grant Limberg wrote: > I'm having an issue in finding the top level widgets of my application. When > I call QApplication.topLevelWidgets(), one of the pages that I have in a > QStackedWidget is showing up in the list of top level widgets. Also, if I > try to call

Re: [PyQt] Page of QStackedWidget showing up in QApplication.topLevelWidgets()

2010-12-17 Thread Grant Limberg
Nevermind. I was calling this too early in the creation of the window hierarchy and that was what was messing me up. Grant Limberg <> glimb...@cedrus.com http://www.cedrus.com/ On Dec 17, 2010, at 3:43 PM, Grant Limberg wrote: > On Dec 17, 2010, at 3:38 PM, Grant Limberg wrote: > >> I'm ha

[PyQt] Question about labels with status message

2010-12-17 Thread Abhishek
Hi all, I have a general coding question as opposed to specific to pyqt. In a gui, if I want to have a status message box (a QLabel) which should display messages from all components of the gui, what is the best way to go about it? Should all the components need to have a pointer to the QLabel? Or