I've got a short question: What does the create_window() function for a Canvas do? Oh, and does this function have something to do with setting a Scrollbar inside a Canvas?
            Asked
            
        
        
            Active
            
        
            Viewed 740 times
        
    -2
            
            
         
    
    
        Vamoos
        
- 327
- 4
- 10
- 
                    take a look at this: http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/create_window.html – Tadhg McDonald-Jensen Jan 26 '16 at 19:59
- 
                    then at this: http://stackoverflow.com/questions/7727804/python-and-tkinter-using-scrollbars-on-a-canvas and next time try to find the answer without posting a new question first, this took one google search to find – Tadhg McDonald-Jensen Jan 26 '16 at 20:02
1 Answers
0
            create_window creates an object on the canvas based off of a widget. For example, you could create a button widget, and use create_window to embed that button in the canvas.
This has nothing to do with "setting a Scrollbar inside a Canvas". However, it is often used to make it a scrollable frame. For normal canvases, though, you don't need to use create_window in order to tie a scrollbar to a canvas.
 
    
    
        Bryan Oakley
        
- 370,779
- 53
- 539
- 685