<s> '''<STR_LIT>''' <EOL> from arelle . UITkTable import ScrolledTkTableFrame <EOL> from arelle . ViewWinPane import ViewPane <EOL> class ViewTkTable ( ViewPane ) : <EOL> def __init__ ( self , modelXbrl , tabWin , tabTitle , <EOL> hasToolTip = False , lang = None , browseCmd = None ) : <EOL> contentView = ScrolledTkTableFrame ( tabWin , browseCmd ) <EOL> super ( ViewTkTable , self ) . __init__ ( modelXbrl , tabWin , tabTitle , <EOL> contentView , hasToolTip = hasToolTip , <EOL> lang = lang ) <EOL> self . table = self . viewFrame . table <EOL> self . setHeightAndWidth ( ) <EOL> self . table . contextMenuClick = self . contextMenuClick <EOL> def contextMenu ( self ) : <EOL> super ( ViewTkTable , self ) . contextMenu ( ) <EOL> self . bindContextMenu ( self . table ) <EOL> return self . menu <EOL> def setHeightAndWidth ( self ) : <EOL> frameWidth = self . tabWin . winfo_width ( ) <EOL> frameHeight = self . tabWin . winfo_height ( ) <EOL> self . table . config ( maxheight = frameHeight - self . viewFrame . horizontalScrollbarHeight , <EOL> maxwidth = frameWidth - self . viewFrame . verticalScrollbarWidth ) </s>
