nerdexam
Python_Institute

PCPP-32-101 · Question #30

PCPP-32-101 Question #30: Real Exam Question with Answer & Explanation

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 -

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()

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)

Community Discussion

No community discussion yet for this question.

Full PCPP-32-101 Practice