def __init__(self, parent, path=None, name=None, app=None):
        self.parent = parent
        self.app = app
        self.path = path
        self.name = name
        self._loaded = False
        if name is None and path is not None:
            self.name = os.path.basename(path)

        if path is not None:
            if ("http", "https") in path.split(":", 1)[0].lower():
                self.is_uri = True
                self.is_readonly = True
            else:
                self.path = os.path.abspath(self.path)
        self._name_var = tk.StringVar()
        self._name_var.trace("w", self._on_name_trace)

        tk.Frame.__init__(self, parent)
        self._create_widgets()
#        self.configure(background=self.app.colors.background2)

        # keep track of window height; when it changes, don't
        # immediately update the line numbers
        self._last_winfo_height = self.winfo_height()

        # This arranges for the file to be loaded the first time
        # the widget becomes visible. No point in doing it any
        # sooner. This potentially greatly speeds up startup
        # time when opening a lot of files.
        self.bind("<Visibility>", self._on_visibility)
dataset/ETHPy150Open boakley/robotframework-workbench/rwb/editor/editor_page.py/EditorPage.__init__/swapped operands of `in`