<?xml version="1.0"?>
<page id="GimpUi.prop_scale_entry_new"
      type="topic"
      style="function"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="index" group="function" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Gtk.Widget</api:type>
      </api:returns>
      <api:name>gimp_prop_scale_entry_new</api:name>
      <api:arg>
        <api:type>GObject.Object</api:type>
        <api:name>config</api:name>
      </api:arg>
      <api:arg>
        <api:type>unicode</api:type>
        <api:name>property_name</api:name>
      </api:arg>
      <api:arg>
        <api:type>unicode</api:type>
        <api:name>label</api:name>
      </api:arg>
      <api:arg>
        <api:type>float</api:type>
        <api:name>factor</api:name>
      </api:arg>
      <api:arg>
        <api:type>bool</api:type>
        <api:name>limit_scale</api:name>
      </api:arg>
      <api:arg>
        <api:type>float</api:type>
        <api:name>lower_limit</api:name>
      </api:arg>
      <api:arg>
        <api:type>float</api:type>
        <api:name>upper_limit</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.prop_scale_entry_new</title>
  <synopsis><code mime="text/x-python">
@accepts(GObject.Object, unicode, unicode, float, bool, float, float)
@returns(Gtk.Widget)
def prop_scale_entry_new(config, property_name, label, factor, limit_scale, lower_limit, upper_limit):
    # Python wrapper for gimp_prop_scale_entry_new()
  </code></synopsis>
  <p>Creates a <link xref="GimpUi.ScaleEntry"/> (slider and spin button) to set and display
the value of a specified int or double property with sensible default
settings depending on the range (decimal places, increments, etc.).
These settings can be overridden by the relevant widget methods.</p>  <p>If <code>label</code> is <code>None</code>, the <code>property_name</code>'s nick will be used as label
of the returned object.</p>  <p>If <code>factor</code> is not 1.0, the widget's range will be computed based of
<code>property_name</code>'s range multiplied by <code>factor</code>. A typical usage would
be to display a [0.0, 1.0] range as [0.0, 100.0] by setting 100.0 as
<code>factor</code>.</p>  <p>See <link xref="GimpUi.ScaleEntry.set_bounds"/> for more information on
<code>limit_scale</code>, <code>lower_limit</code> and <code>upper_limit</code>.</p>
  <p>Since 2.4</p>
<terms>
<item>
<title><code>config</code></title>
  <p>Object to which property is attached.</p>
</item>
<item>
<title><code>property_name</code></title>
  <p>Name of integer or double property controlled by the scale.</p>
</item>
<item>
<title><code>label</code></title>
  <p>The text for the <link href="../Gtk-3.0/Gtk.Label.html">Gtk.Label</link> which will appear left of
                    the <link href="../Gtk-3.0/Gtk.Scale.html">Gtk.Scale</link>.</p>
</item>
<item>
<title><code>factor</code></title>
  <p>Optional multiplier to convert <code>property_name</code>'s
                 range into the <link xref="GimpUi.ScaleEntry"/>'s range. The common
                 usage is to set 1.0.
                 For non-double properties, no other values than 1.0
                 are acceptable.</p>
</item>
<item>
<title><code>limit_scale</code></title>
  <p><code>False</code> if the range of possible values of the
                 GtkScale should be the same as of the GtkSpinButton.</p>
</item>
<item>
<title><code>lower_limit</code></title>
  <p>The scale's lower boundary if @scale_limits is <code>True</code>.</p>
</item>
<item>
<title><code>upper_limit</code></title>
  <p>The scale's upper boundary if @scale_limits is <code>True</code>.</p>
</item>
<item>
<title><code>Returns</code></title>
{formatter.format(node, node.retval.doc)}
</item>
</terms>

</page>
