mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Added documentation on the ScrolledText module.
This commit is contained in:
		
							parent
							
								
									c54fc3179f
								
							
						
					
					
						commit
						1a76386194
					
				
					 1 changed files with 37 additions and 0 deletions
				
			
		| 
						 | 
					@ -107,6 +107,9 @@ Other modules that provide Tk support include:
 | 
				
			||||||
% \modulesynopsis{Constants used by Tkinter}
 | 
					% \modulesynopsis{Constants used by Tkinter}
 | 
				
			||||||
% FIXME 
 | 
					% FIXME 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					\item[\refmodule{ScrolledText}]
 | 
				
			||||||
 | 
					Text widget with a vertical scroll bar built in.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
\item[\module{tkColorChooser}]
 | 
					\item[\module{tkColorChooser}]
 | 
				
			||||||
Dialog to let the user choose a color.
 | 
					Dialog to let the user choose a color.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1470,6 +1473,40 @@ Instead, the \method{tix_resetoptions()} method must be used.
 | 
				
			||||||
\end{methoddesc}
 | 
					\end{methoddesc}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					\section{\module{ScrolledText} ---
 | 
				
			||||||
 | 
					         Scrolled Text Widget}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					\declaremodule{standard}{ScrolledText}
 | 
				
			||||||
 | 
					   \platform{Tk}
 | 
				
			||||||
 | 
					\modulesynopsis{Text widget with a vertical scroll bar.}
 | 
				
			||||||
 | 
					\sectionauthor{Fred L. Drake, Jr.}{fdrake@acm.org}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					The \module{ScrolledText} module provides a class of the same name
 | 
				
			||||||
 | 
					which implements a basic text widget which has a vertical scroll bar
 | 
				
			||||||
 | 
					configured to do the ``right thing.''  Using the \class{ScrolledText}
 | 
				
			||||||
 | 
					class is a lot easier than setting up a text widget and scroll bar
 | 
				
			||||||
 | 
					directly.  The constructor is the same as that of the
 | 
				
			||||||
 | 
					\class{Tkinter.Text} class.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					The text widget and scrollbar are packed together in a \class{Frame},
 | 
				
			||||||
 | 
					and the methods of the \class{Pack} geometry manager are acquired from
 | 
				
			||||||
 | 
					the \class{Frame} object.  This allows the \class{ScrolledText} widget
 | 
				
			||||||
 | 
					to be used directly to achieve most normal geometry management
 | 
				
			||||||
 | 
					behavior.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Should more specific control be necessary, the following attributes
 | 
				
			||||||
 | 
					are available:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					\begin{memberdesc}[ScrolledText]{frame}
 | 
				
			||||||
 | 
					  The frame which surrounds the text and scroll bar widgets.
 | 
				
			||||||
 | 
					\end{memberdesc}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					\begin{memberdesc}[ScrolledText]{vbar}
 | 
				
			||||||
 | 
					  The scroll bar widget.
 | 
				
			||||||
 | 
					\end{memberdesc}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
\input{libturtle}
 | 
					\input{libturtle}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue