Hi, I know the answer has been posted here several times but I'm not being able to find it.
My code:

def onConectarHit(self, evt):

led = self.Form.LedConexion

btn = self.Form.BtnConexion

btn.Caption = 'Conectar' if led.On else 'Desconectar'

led.On = not led.On

btn.refresh()


The problem: The button does not resize to fit the bigger Caption.
I've also tried "self.refresh()" with no results.




--- StripMime Report -- processed MIME parts ---
multipart/alternative
 text/plain (text body -- kept)
 text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to