DrawingArea.setContentWidth
void setContentWidth(int width)Sets the desired width of the contents of the drawing area.
Note that because widgets may be allocated larger sizes than they requested, it is possible that the actual width passed to your draw function is larger than the width set here. You can use [gtk.widget.Widget.setHalign] to avoid that.
If the width is set to 0 (the default), the drawing area may disappear.
Parameters
width | the width of contents |