nerdexam
Python_Institute

PCPP-32-101 · Question #30

If w is a correctly created main application window, which method would you use to fix both of the main window's dimensions?

The correct answer is C. w.resizable(). If you want your window to be completely inflexible and stiff, you'll make use of the method named resizable(). It uses two parameters named width and height, but they accept Boolean values, not integer values. Their meaning is: True - the user can change this dimension; False…

Advanced OOP

Question

If w is a correctly created main application window, which method would you use to fix both of the main window's dimensions?

Options

  • Aw.fixshape()
  • Bw.fixdim()
  • Cw.resizable()
  • Dw.makewindow()

How the community answered

(17 responses)
  • A
    6% (1)
  • B
    6% (1)
  • C
    88% (15)

Explanation

If you want your window to be completely inflexible and stiff, you'll make use of the method named resizable(). It uses two parameters named width and height, but they accept Boolean values, not integer values. Their meaning is: True - the user can change this dimension; False - the user can't change this dimension. Setting both arguments to False will stiffen your window completely. window.resizable(width=False, height=False)

Topics

#tkinter#window dimensions#resizable method#main window

Community Discussion

No community discussion yet for this question.

Full PCPP-32-101 Practice