add tk/ttk preference

Added a constructor option (preferTk=True/False) to set the preferred
framework