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…
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)- A6% (1)
- B6% (1)
- C88% (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
Community Discussion
No community discussion yet for this question.