Made the scroll bars narrower to fit ping output on my 15" screen.

This commit is contained in:
Bob Lantz
2010-04-10 21:01:44 -07:00
parent d0e53ca863
commit 8e4d818a60
+2 -2
View File
@@ -4,7 +4,7 @@
consoles.py: bring up a bunch of miniature consoles on a virtual network
This demo shows how to monitor a set of nodes by using
Tkinter's createfilehandler() and Node()'s monitor().
Node's monitor() and Tkinter's createfilehandler().
"""
from Tkinter import *
@@ -49,7 +49,7 @@ class Console( Frame ):
label = Button( self, text=self.node.name, command=newTerm, **buttonStyle )
label.pack( side='top', fill='x' )
text = Text( self, wrap='word', **textStyle )
ybar = Scrollbar( self, orient='vertical', command=text.yview )
ybar = Scrollbar( self, orient='vertical', width=7, command=text.yview )
text.configure( yscrollcommand=ybar.set )
text.pack( side='left', expand=True, fill='both' )
ybar.pack( side='right', fill='y' )