Bonjour j'ai un problème lorsque je redimensionne ma fenêtre, son contenue disparait. J'utilise python 2.5 sous windows.
Quelqu'un aurait il une idée ou une solution de secourt pour avoir une fenetre scrollée avec des widgets Control
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 import Tix root = Tix.Tk() support = Tix.ScrolledWindow( root, scrollbar='auto', height = 100) variables = {} # dico de StringVar() for i in range( 10 ) : variables[ i ] = Tix.StringVar() Tix.Control( support, label = 'ligne %d' % i, integer=1, variable = variables[ i ], min=0, max=100, options='entry.width 10 label.width 20 label.anchor e').grid(row = i ) support.grid()








Répondre avec citation
Partager