How To Size Widget Elements to Percentage of Screen Rather Than a Fixed Value?

You must take the size of your screen space in pixels and then create your objects size based on a percentage you want with respect to the quantities obtained.