Skip to content

NameError: name 'root' is not defined #2

@stefan-c-kremer

Description

@stefan-c-kremer

src/Editor.py line 141 should be changed from:

self.menu_bar = Menu(root)

to

self.menu_bar = Menu(self.root)

The former doesn't work unless you define a global root variable. But you already have root stored as a member variable within the object, so the latter solves the problem.

Also line 297:

root.resizable(width = FALSE, height = FALSE)

Should read:

root.resizable( width=None, height=None );

(Thanks for creating this and posting it on GitHub. I find it useful.)

Stefan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions