Re: [PyQt] sizing a QTextEdit...

2010-09-09 Thread Algis Kabaila
On Thursday 09 September 2010 14:12:00 Peter Milliken wrote: Sorry, that previous email should have explained that within the main QFrame I am attempting to lay everything out using gridlayout. On Thu, Sep 9, 2010 at 2:06 PM, Peter Milliken peter.milli...@gmail.comwrote: Probably not. The

[PyQt] sip segfault in disconnectNotify

2010-09-09 Thread Erik Janssens
Hello Phil, I'm experiencing a segmentation fault in sip. I have build the latest released versions of sip and pyqt on ubuntu, to be able to have a decent stack trace. The issue only arises when objects are garbage collected, so I'm unsure on how to build a simple test case for it ? When I

Re: [PyQt] sip segfault in disconnectNotify

2010-09-09 Thread Phil Thompson
On Thu, 09 Sep 2010 09:40:43 +0200, Erik Janssens erik.janss...@conceptive.be wrote: Hello Phil, I'm experiencing a segmentation fault in sip. I have build the latest released versions of sip and pyqt on ubuntu, to be able to have a decent stack trace. The issue only arises when objects

[PyQt] ANN: dip v0.2 Released

2010-09-09 Thread Phil Thompson
dip v0.2 has been released and can be downloaded from the usual place. Most changes are in response to feedback gratefully received rather than new areas of functionality. From the NEWS file... - Python v2.6 and v2.7 are now supported. - Attribute observers are now only invoked if an attribute

[PyQt] Problems with MSVC2008 build and MSVCR90.DLL

2010-09-09 Thread Hans Meine
Hi, I have successfully been using PyQwt under Windows by using binary packages for Qt, python, NumPy, SIP, PyQt etc., using the MinGW compiler bundled with Qt for compilation of PyQwt (and the bundled Qwt). Now, I need to use the compiler that comes with Visual Studio 2008. I have

Re: [PyQt] Drop to system

2010-09-09 Thread Baz Walter
On 09/09/10 01:17, David Boddie wrote: On Wed Sep 8 22:33:17 BST 2010, Hugo Leveille wrote: I have looked at the doc but all I could find was drag and drop within the pyqt app itself. What id like to do is the, for exemple, attach an url or whatever needed to an item so that if I drag the item

[PyQt] Problem with exception translation

2010-09-09 Thread Hans Meine
Hi, I have had many problems with exception translation. First of all, it seems to be an undocumented fact that the exception translation is overwritten by %MethodCode blocks (i.e. not wrapped around them). Second, even after enabling exception translation by passing -e and describing my

[PyQt] %MappedType with non-class template arg?

2010-09-09 Thread Hans Meine
Hi, I was happy when I saw that %MappedType supports templates, but then I realized that I could not use it for my multi-dimensional array type [1] since it does not support non-class arguments (integer dimension in my case). Would that be hard to fix? It would be helpful to at least find a

Re: [PyQt] ANN: dip v0.2 Released

2010-09-09 Thread Darren Dale
On Thu, Sep 9, 2010 at 4:43 AM, Phil Thompson p...@riverbankcomputing.com wrote: dip v0.2 has been released and can be downloaded from the usual place. Most changes are in response to feedback gratefully received rather than new areas of functionality. Exciting changes! May I make a

Re: [PyQt] %MappedType with non-class template arg?

2010-09-09 Thread Phil Thompson
On Thu, 9 Sep 2010 16:17:58 +0200, Hans Meine me...@informatik.uni-hamburg.de wrote: Hi, I was happy when I saw that %MappedType supports templates, but then I realized that I could not use it for my multi-dimensional array type [1] since it does not support non-class arguments (integer

Re: [PyQt] sip segfault in disconnectNotify

2010-09-09 Thread Erik Janssens
Hi, I understand that it's possible to segfault writing python code (although in my naive view this should not be the case ;)). I'm rather convinced the code is not doing anything 'illegal', but it would be helpful to have some descriptions on what exactly one can do wrong using pyqt with regard

Re: [PyQt] upgrade to ubuntu 10.04 -- problem with graphics (solved)

2010-09-09 Thread Preisig, Heinz A
Seems the problem is solved for now. I searched for a couple of days and came to no conclusion. The task crashed after having left itemChange in the next execution call. As mentioned running it in the debugger inside Eclipse did not result any error message. Running it from the terminal it

Re: [PyQt] sip segfault in disconnectNotify

2010-09-09 Thread Phil Thompson
On Thu, 09 Sep 2010 16:35:15 +0200, Erik Janssens erik.janss...@conceptive.be wrote: Hi, I understand that it's possible to segfault writing python code (although in my naive view this should not be the case ;)). I'm rather convinced the code is not doing anything 'illegal', but it would

Re: [PyQt] sizing a QTextEdit...

2010-09-09 Thread Baz Walter
On 09/09/10 05:12, Peter Milliken wrote: Sorry, that previous email should have explained that within the main QFrame I am attempting to lay everything out using gridlayout. On Thu, Sep 9, 2010 at 2:06 PM, Peter Millikenpeter.milli...@gmail.comwrote: Probably not. The code snippet might be a

Re: [PyQt] Drop to system

2010-09-09 Thread Baz Walter
On 09/09/10 14:29, Massimo Di Stefano wrote: tring to learn how to use the Drag class, i tried to hack the draggabletext.py from the pyqt source : - http://www.geofemengineering.it/draggabletext_.py i'm now blocked on how to reuse the same code to drag a QTableWidgetItem from a QtTablewidjet,

[PyQt] SubClassed checkbox signal problem

2010-09-09 Thread Peter Liedler
Hello, I am testing the current beta of (k)ubuntu 10.10 maverick meerkat and recognized that my pyqt application stopped to work properly. After some time of research I could tie the problem down to the following situation: I have a qcheckbox in a subclassed qobject and connected the sigal

Re: [PyQt] SubClassed checkbox signal problem

2010-09-09 Thread Phil Thompson
On Thu, 9 Sep 2010 21:12:26 +0200, Peter Liedler pe...@liedler.at wrote: Hello, I am testing the current beta of (k)ubuntu 10.10 maverick meerkat and recognized that my pyqt application stopped to work properly. After some time of research I could tie the problem down to the following

Re: [PyQt] Drop to system

2010-09-09 Thread Massimo Di Stefano
Thanks Baz, that works perfectly, thanks to David too, who has explained me how to handle the drag actions inside a QtLabel and Qtable i used this code to populate a QtTable with the full path to the files in a directory, each item is draggable in my app, the mime tipe is automagically

Re: [PyQt] SubClassed checkbox signal problem

2010-09-09 Thread peter
A big thank you, Phil! That did the trick. Peter -- Original Message -- From: Phil Thompson p...@riverbankcomputing.com Date: Thu, 09 Sep 2010 20:34:50 +0100 On Thu, 9 Sep 2010 21:12:26 +0200, Peter Liedler pe...@liedler.at wrote: Hello, I am

Re: [PyQt] sizing a QTextEdit...

2010-09-09 Thread Peter Milliken
Yes, it does - thanks mate :-) I'll work my way through this example and adapt what is appropriate - but thanks for the help! Peter On Fri, Sep 10, 2010 at 1:55 AM, Baz Walter baz...@ftml.net wrote: On 09/09/10 05:12, Peter Milliken wrote: Sorry, that previous email should have explained

[PyQt] Drop Site example

2010-09-09 Thread Hans-Peter Jansen
Hi Phil et al, here's a PyQt version of the drop site example, that you might want to add to the PyQt examples. Since modularity is a good idea generally, I've kept the modules organization, but renounced supporting translations. Has anybody an idea, which linux app is able to drop real images

Re: [PyQt] Drop Site example

2010-09-09 Thread David Boddie
On Fri Sep 10 00:04:27 BST 2010, Hans-Peter Jansen wrote: here's a PyQt version of the drop site example, that you might want to add to the PyQt examples. Since modularity is a good idea generally, I've kept the modules organization, but renounced supporting translations. Has anybody an

Re: [PyQt] Selecting the last added item in a QAbstractTableModel

2010-09-09 Thread AmFreak
Ok solved it :) index = self.model.index(len(self.fList) - 1, 0) sourceIndex = self.sortFilterModel.mapFromSource(index) sRow = sourceIndex.row() self.view.selectRow(sRow) Thanks for the answer, but that doesn't work, cause the list is