Modification taille ToolBar
bonjour,
Grand débutant en wxPython, je voudrais savoir comment faire en sorte qu'une toolbar s'adapte à la largeur du Frame lorsqu'on modifie sa taille ?
Je n'arive pas à accéder au attributs Hauteur Largeur des composants visuels :
par avance merci
Code:
1 2 3 4 5 6 7 8 9 10
|
##barre commande
self.barre_cmd = wx.ToolBar(self, -1, style = wx.TB_HORIZONTAL
|wx.NO_BORDER)
##adaptatation taille des objets enfants
wx.EVT_SIZE(self, self.OnSize)
def OnSize(self, evt):
self.barre_cmd.SetSize(?????????) |