Skip to content
Snippets Groups Projects
Commit 8e4d818a authored by Bob Lantz's avatar Bob Lantz
Browse files

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

parent d0e53ca8
No related branches found
No related tags found
No related merge requests found
......@@ -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 @@ def newTerm( net=self.net, node=self.node ):
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' )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment