'_htest - bool, change box location when running htest'

def __init__(self, parent, title, _htest=False):

    Toplevel.__init__(self, parent)
    self.wm_withdraw()
    self.configure(borderwidth=5)
    self.title('IDLE    Preferences')
    if _htest:
        parent.instance_dict = {}
    self.geometry(('+%d+%d' % ((parent.winfo_rootx() + 20), (parent.winfo_rooty() + (30 if (not _htest) else 150)))))
    self.themeElements = {'Normal    Text': ('normal', '00'), 'Python    Keywords': ('keyword', '01'), 'Python    Definitions': ('definition', '02'), 'Python    Builtins': ('builtin', '03'), 'Python    Comments': ('comment', '04'), 'Python    Strings': ('string', '05'), 'Selected    Text': ('hilite', '06'), 'Found    Text': ('hit', '07'), 'Cursor': ('cursor', '08'), 'Error    Text': ('error', '09'), 'Shell    Normal    Text': ('console', '10'), 'Shell    Stdout    Text': ('stdout', '11'), 'Shell    Stderr    Text': ('stderr', '12')}
    self.ResetChangedItems()
    self.CreateWidgets()
    self.resizable(height=FALSE, width=FALSE)
    self.transient(parent)
    self.grab_set()
    self.protocol('WM_DELETE_WINDOW', self.Cancel)
    self.parent = parent
    self.tabPages.focus_set()
    self.LoadConfigs()
    self.AttachVarCallbacks()
    self.wm_deiconify()
    self.wait_window()
