How it is assigned one scrollbar with 2 text at same time
ie
i have 2 text widget
one for displaying text and another for displaying number
Text1 Text2
1 aaaa
2 bbbb
3 5555
I want to configure the scrollbar with these texts in such a way that if u scroll both text should get scrolled
i tried the following way but it does not work
text $LinePath -relief raised -width 5 -yscrollcommand "$ScrollPath set"
text $sourcedisplay -relief raised -yscrollcommand "$ScrollPath set"
Configure scrollbar
$ScrollPath configure -command "$sourcedisplay yview"
$ScrollPath configure -command "$LinePath yview"
ie
i have 2 text widget
one for displaying text and another for displaying number
Text1 Text2
1 aaaa
2 bbbb
3 5555
I want to configure the scrollbar with these texts in such a way that if u scroll both text should get scrolled
i tried the following way but it does not work
text $LinePath -relief raised -width 5 -yscrollcommand "$ScrollPath set"
text $sourcedisplay -relief raised -yscrollcommand "$ScrollPath set"
Configure scrollbar
$ScrollPath configure -command "$sourcedisplay yview"
$ScrollPath configure -command "$LinePath yview"