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,

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 ?

[PyQt] removeWidget

2011-08-24 Thread uahmed
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 ? Code : import sys,os from functools import partial from PyQt4 import QtGui, QtCo