Python code for a horizontal scrollbar