#NEWLINE# def init( self , flist ) : #NEWLINE# #INDENT# self . flist = flist #NEWLINE# pyclbr . _modules . clear ( ) #NEWLINE# self . top = top = ListedToplevel ( flist . root ) #NEWLINE# top . protocol ( 'WM_DELETE_WINDOW' , self . close ) #NEWLINE# top . bind ( '<Escape>' , self . close ) #NEWLINE# if self . _htest : #NEWLINE# #INDENT# top . geometry ( ( '+%d+%d' % ( flist . root . winfo_rootx ( ) , ( flist . root . winfo_rooty ( ) + 200 ) ) ) ) #NEWLINE# #UNINDENT# self . settitle ( ) #NEWLINE# top . focus_set ( ) #NEWLINE# theme = idleConf . GetOption ( 'main' , 'Theme' , 'name' ) #NEWLINE# background = idleConf . GetHighlight ( theme , 'normal' ) [ 'background' ] #NEWLINE# sc = ScrolledCanvas ( top , bg = background , highlightthickness = 0 , takefocus = 1 ) #NEWLINE# sc . frame . pack ( expand = 1 , fill = 'both' ) #NEWLINE# item = self . rootnode ( ) #NEWLINE# self . node = node = TreeNode ( sc . canvas , None , item ) #NEWLINE# node . update ( ) #NEWLINE# node . expand ( )