Skip to content

part 6 (AttributeError: 'FigureManagerBase' object has no attribute 'window') no rectangular was drawn #38

Description

@hassannagy

i get this problem
`AttributeError Traceback (most recent call last)
in
16 fig, ax = plt.subplots(1)
17 mngr = plt.get_current_fig_manager()
---> 18 mngr.window.setGeometry(250, 120, 1280, 1024)
19 image = cv2.imread(image_file.path)
20 image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)

AttributeError: 'FigureManagerBase' object has no attribute 'window'`
on this line of code

mngr.window.setGeometry(250, 120, 1280, 1024)

why i get this error ?

i run the code in jupyter in i get this
Screenshot 2019-06-15 02 32 25

when i click on the photo no rectangular is appear

any help ?

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