[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 turn

Re: [PyQt] sip segfault in disconnectNotify

2010-09-09 Thread Phil Thompson
On Thu, 09 Sep 2010 09:40:43 +0200, Erik Janssens 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 are garbage collect

[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 successfully

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

Re: [PyQt] Drop to system

2010-09-09 Thread Massimo Di Stefano
Hello All, David :-) infinite thanks for your powerfull help !!! i tried to apply little changes to the code, so now i'm able to drag n drop a QtLabel as a file.kml :-) : - http://www.geofemengineering.it/dragmime.py tring to learn how to use the Drag class, i tried to hack the "draggablet

[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 exce

[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 wo

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

2010-09-09 Thread Darren Dale
On Thu, Sep 9, 2010 at 4:43 AM, Phil Thompson 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 suggestion for the docs at http://

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 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 dimension in my case). > >

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 g

Re: [PyQt] sip segfault in disconnectNotify

2010-09-09 Thread Phil Thompson
On Thu, 09 Sep 2010 16:35:15 +0200, Erik Janssens 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 be helpful > to have so

Re: [PyQt] Drop to system

2010-09-09 Thread Hugo Léveillé
Thanks alot On Thu, 09 Sep 2010 14:24 +0100, "Baz Walter" wrote: > 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

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 Millikenwrote: Probably not. The code snippet might be a bad example. I am attempt

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 st

Re: [PyQt] SubClassed checkbox signal problem

2010-09-09 Thread Phil Thompson
On Thu, 9 Sep 2010 21:12:26 +0200, Peter Liedler 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 > situation:

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 reco

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 Date: Thu, 09 Sep 2010 20:34:50 +0100 On Thu, 9 Sep 2010 21:12:26 +0200, Peter Liedler wrote: > Hello, > > I am testing the current beta of (k)ubuntu 10.10 m

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 wrote: > On 09/09/10 05:12, Peter Milliken wrote: > >> Sorry, that previous email should have explained that within th

[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