[wxPython-users] wx.ScrolledPanel and Disable()

Stefano Bartaletti s.bartaletti at dyemagic.com
Tue Feb 19 06:03:15 PST 2008


Alle martedì 19 febbraio 2008, Robin Dunn ha scritto:
> Have you tried disabling the new panels after they've been added?  How
> about wrapping SP.Enable()/SP.Disable() around the code above?

I had thought of this, the following code solved the "issue":

def Enable(self, enable=True):
        map(lambda x:x.Enable(enable), self.GetChildren())
        return True

def Disable(self):
	map(lambda x:x.Disable(), self.GetChildren())
	return True

When I refresh the panel content (database refresh or user input), I have a 
stupid line saying

	self.Enable(self.IsEnabled())

-- 
Cordialmente

Stefano Bartaletti
Responsabile Software

G.Tosi Spa Tintoria

Skype account: stefano.bartaletti
ICQ contact  : 1271960

Viale dell'Industria 61
21052 Busto Arsizio (VA)

Tel. +39 0331 34 48 11
Fax  +39 0331 35 21 23 




More information about the wxpython-users mailing list