Solved! I must use
self.OnLoginButton.setVisible(False) Instead of self.OnLoginButton.setVisible(self.OnLoginButton, False) Il giorno lunedì 13 agosto 2012 10:59:14 UTC+2, Cesare Di Mauro ha scritto: > > Hi, > > I need to dynamically hide (and show) a widget or a panel at runtime. > > Looking at the API documentation, it seams that the correct method is > setVisible. > However any kind of tests I made failed with an exception raised: > "AttributeError: 'Button' object has no attribute 'style'. > > Attached you'll find a simple example that I wrote (for Pyjamas 0.8, > Python 2.6.4). > There are two buttons and a label; clicking on one button hides itself and > shows the other one, and viceversa. > > Please, can you give me any suggestion on how to make it work? > > Thanks > Cesare > --
