[PyQt] segfault when using Qt.QueuedConnection

2011-08-25 Thread Erik Janssens
I've tried to create a test case for the previously reported issue. It appears the bug does not appear when the queued slot call is made after the sender has been deleted, but only if the call is made while the sender is deleted. To run the case, use : python -m nose.core \\ test_qt_bindings.py:

Re: [PyQt] subtle bug in PyQt in combination with Python garbage collector

2011-08-25 Thread Phil Thompson
On Sat, 13 Aug 2011 10:05:14 -0600, Kovid Goyal wrote: > This bug has been present for a very long time. As a workaround in my > projects, > I disable the automatic garbage collector and run garbage collection > manually > in the GUI thread via QTimer. Here's the code to do that: > > class Garba

Re: [PyQt] Leak found in PyQt version 4.8.5-1 / 4.8.5 win32 build

2011-08-25 Thread Phil Thompson
On Mon, 22 Aug 2011 20:00:31 +0200, Carl Wolff wrote: > Hello, > the following piece of code leaks: > > import PyQt4.QtGui > import PyQt4.QtCore > import time > > app = PyQt4.QtGui.QApplication([]) > mainWindow = PyQt4.QtGui.QMainWindow() > > while True: > button = PyQt4.QtGui.QPushButton(mai

[PyQt] segfault when using Qt.QueuedConnection

2011-08-25 Thread Erik Janssens
Hi, After lots of tries I have been able to get a stacktrace + core of a segfault that I believe occurs from time to time. The attached stacktrace shows the segfault is inside the QT event loop, without even involving Python. What I believe that happens is this : 1) A signal is connected to a s

Re: [PyQt] Updating Qlabel in widget

2011-08-25 Thread uahmed
hi Thanks for the reply , QLabel will be created once only when count is equal to 2 . Firstly i was thinking same that i make Qlabel first and then recall them and change only text but if i do that then i have to create nearly 40-60 Qlabel to cover all the loop holes so i need to create it on run

Re: [PyQt] Updating Qlabel in widget

2011-08-25 Thread Hans-Peter Jansen
On Thursday 25 August 2011, 12:02:52 uahmed wrote: > Hi > > I want to update the Qlabel after the widget is made , Problem is > that updating is base on counter so i call that function after 4 > seconds , but when it by pass the "if" statment it go through all the > commands give me no errors but i

Re: [PyQt] removeWidget

2011-08-25 Thread uahmed
Hi [Sorry Hans , i clicked on reply all so it Cc to the group too ] Although here i want to destroy the button like i dont want to use it again , if i am not wrong show and hide functions will be use when i want to reuse the button and show and hide will not destroy the button . On Thu, Aug 25,

[PyQt] Updating Qlabel in widget

2011-08-25 Thread uahmed
Hi I want to update the Qlabel after the widget is made , Problem is that updating is base on counter so i call that function after 4 seconds , but when it by pass the "if" statment it go through all the commands give me no errors but it does not update the widet although if i dont putt "if" statm

Re: [PyQt] removeWidget

2011-08-25 Thread Hans-Peter Jansen
[I prefer to not get personal replies on this list] On Thursday 25 August 2011, 11:39:46 uahmed wrote: > Hi > > Thanks for the reply , I used .close() . I guess this will destroy > the widget and will not leave memory for it . You cannot close arbitrary widgets, but you can hide and show them wi

Re: [PyQt] removeWidget

2011-08-25 Thread uahmed
Hi Thanks for the reply , I used .close() . I guess this will destroy the widget and will not leave memory for it . On Thu, Aug 25, 2011 at 2:22 PM, Hans-Peter Jansen wrote: > On Thursday 25 August 2011, 10:43:20 Vincent Vande Vyvre wrote: > > Le 25/08/11 07:59, uahmed a écrit : > > Hi > > > >

Re: [PyQt] removeWidget

2011-08-25 Thread Hans-Peter Jansen
On Thursday 25 August 2011, 10:43:20 Vincent Vande Vyvre wrote: > Le 25/08/11 07:59, uahmed a écrit : > Hi > > I want to add widget in (f1) function and want to remove the widget > from (f2) function . I tried the same thing in same function it do > work but when i try to remove the widget from a

Re: [PyQt] removeWidget

2011-08-25 Thread Vincent Vande Vyvre
Le 25/08/11 07:59, uahmed a écrit : Hi I want to add widget in (f1) function and want to remove the widget from (f2) function . I tried the same thing in same function it do work but when i try to remove the widget from another it doesnt . Any help ?